Training large language models efficiently with 4-bit floating-point precision
What Matters for NVFP4 Training? A Comparative Study of Low-Precision Pretraining Recipes
Computation and LanguageArtificial IntelligenceMachine Learning
Summary
Training large language models usually requires a lot of computing power and energy. This paper studies how to train these models directly using a very compact 4-bit floating-point format, which can make training faster and more efficient. The authors tested different techniques on medium-sized models and found the best combination of methods to keep the model’s accuracy close to standard training. They discovered that some layers need higher precision and that not every part of the training process benefits equally from certain error-reduction tricks.
What this means in practice
- •For machine learning engineers: Implement efficient training pipelines for large language models with minimal loss in accuracy using optimized 4-bit floating-point methods.
- •For data center operators: Reduce energy and hardware costs by adopting 4-bit precision training techniques for large-scale NLP workloads while maintaining model performance.
Authors
Anjulie Agrusa, Andrei Panferov, Elizabeth Wei, Keith Wyss, Paul Gibbons, Erik Schultheis, Jinhang Choi, Frank Sun, Tijmen Blankevoort, Dan Alistarh
Abstract
Training large language models directly in 4-bit floating-point (FP) formats promises substantial improvements in throughput and energy efficiency. While some recipe design choices have been validated at scale, many promising approaches remain untested beyond small models and short token horizons, leaving open the question of which trends will hold. We present a systematic comparison of recent NVFP4 recipes at medium model scale, evaluating dense 8B and 30B-A3B MoE models trained for up to 1T tokens, with a focus on which ingredients are necessary for accuracy recovery. We propose a final recipe grounded in the principles behind established stable NVFP4 training at scale, incorporating state-of-the-art techniques such as unbiased gradient estimation with lower quantization error than stochastic rounding. To the best of our knowledge, this is the strongest FP4 training result demonstrated at this scale to date in loss gap to BF16. Through ablation studies, we find that: (i) each technique in the optimized recipe measurably improves loss trajectory, (ii) selective high-precision layers are necessary for recovering accuracy at scale, (iii) not all tensors in the backward pass benefit equally from de-biasing, leaving room to apply complementary error-reduction techniques to the remaining tensors.