Want faster LLM training? Give more bits to exponents, less to mantissa.
The paper finds not all bits are equal - exponent bits matter more than mantissa bits in LLM training.
Floating-point quantization needs different bit ratios at different precision levels for optimal LLM training.
There's a sweet spot for data size in low-precision training - more isn't always better.
This paper develops a unified scaling law for floating-point quantization in LLM training, revealing optimal bit allocation between exponent and mantissa bits for different precision levels.
https://arxiv.org/abs/2501.02423
π€ Original Problem:
β Existing scaling laws focus on integer quantization but don't account for floating-point quantization parameters like exponent bits, mantissa bits, and block size
β No clear understanding of how these parameters affect LLM training performance
-----
π§ Solution in this Paper:
β The researchers developed a unified scaling law that considers model size (N), data size (D), exponent bits (E), mantissa bits (M), and block size (B).
β The law predicts model loss as: L = n/N^Ξ± + d/D^Ξ² + Ξ΅ + (D^Ξ²/N^Ξ±)(log2 B)/(Ξ³(E+0.5)^Ξ΄(M+0.5)^Ξ½)
β They trained 366 models with different configurations to validate the law.
-----
π‘ Key Insights:
β Exponent bits contribute slightly more to model performance than mantissa bits
β Optimal bit ratios: FP4 (E2M1), FP8 (E4M3), FP16 (E8M7)
β Critical data size exists - training beyond this point degrades performance in low precision
-----
π Results:
β For 1B parameter model: BF16 critical size = 1730T tokens, FP8-E4M3 = 27T tokens, FP4-E2M1 = 0.4T tokens
β Best cost-performance precision lies between 4-8 bits across wide compute ranges
------
Are you into AI and LLMsβ Join my daily AI newsletter. I will send you 7 emails a week analyzing the highest signal AI developments. ββ
π https://rohanpaul.substack.com/










