Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Optimizing Large Language Model Training Using FP4 Quantization

About

The growing computational demands of training large language models (LLMs) necessitate more efficient methods. Quantized training presents a promising solution by enabling low-bit arithmetic operations to reduce these costs. While FP8 precision has demonstrated feasibility, leveraging FP4 remains a challenge due to significant quantization errors and limited representational capacity. This work introduces the first FP4 training framework for LLMs, addressing these challenges with two key innovations: a differentiable quantization estimator for precise weight updates and an outlier clamping and compensation strategy to prevent activation collapse. To ensure stability, the framework integrates a mixed-precision training scheme and vector-wise quantization. Experimental results demonstrate that our FP4 framework achieves accuracy comparable to BF16 and FP8, with minimal degradation, scaling effectively to 13B-parameter LLMs trained on up to 100B tokens. With the emergence of next-generation hardware supporting FP4, our framework sets a foundation for efficient ultra-low precision training.

Ruizhe Wang, Yeyun Gong, Xiao Liu, Guoshuai Zhao, Ziyue Yang, Baining Guo, Zhengjun Zha, Peng Cheng• 2025

Related benchmarks

TaskDatasetResultRank
Commonsense ReasoningPIQA
Accuracy73.78
757
Question AnsweringARC Challenge
Accuracy (ARC)39.85
598
Question AnsweringOBQA
Accuracy39.6
347
Logical reasoningLogiQA
LogiQA Accuracy30.88
251
Reading ComprehensionBoolQ
Accuracy (BoolQ)62.2
228
Question AnsweringARC Easy
Accuracy67.97
210
Word PredictionLAMBADA
Accuracy46.89
192
Commonsense ReasoningHellaSwag--
43
Language ModelingZero-shot Perplexity Suite (Lambada, Pile 10k, Wikitext)
Average Perplexity33.99
6
Question AnsweringSciQ
Accuracy (SciQ)85.8
6
Showing 10 of 10 rows

Other info

Follow for update