Scaling Laws for Floating Point Quantization Training

Xingwu Sun, Shuaipeng Li, Ruobing Xie, Weidong Han, Kan Wu +11 more
1/5/2025
cs.LGcs.ARcs.CL

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Low-precision training is considered an effective strategy for reducing both training and downstream inference costs. Previous scaling laws for precision mainly focus on integer quantization, which pay less attention to the constituents in floating-point (FP) quantization, and thus cannot well fit the LLM losses in this scenario. In contrast, while FP quantization training is more commonly implemented in production, it's research has been relatively superficial. In this paper, we thoroughly explore the effects of FP quantization targets, exponent bits, mantissa bits, and the calculation granularity of the scaling factor in FP quantization training performance of LLM models. In addition to an accurate FP quantization unified scaling law, we also provide valuable suggestions for the community: (1) Exponent bits contribute slightly more to the model performance than mantissa bits. We provide the optimal exponent-mantissa bit ratio for different bit numbers, which is available for future reference by hardware manufacturers; (2) We discover the formation of the critical data size in low-precision LLM training. Too much training data exceeding the critical data size will inversely bring in degradation of LLM performance; (3) The optimal FP quantization precision is directly proportional to the computational power, but within a wide computational power range. We estimate that the best cost-performance precision should lie between 4-8 bits.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{sun2025scaling,
  title  = {Scaling Laws for Floating Point Quantization Training},
  author = {Xingwu Sun and Shuaipeng Li and Ruobing Xie and Weidong Han and Kan Wu and Zhen Yang and Yixing Li and An Wang and Shuai Li and Jinbao Xue and Yu Cheng and Yangyu Tao and Zhanhui Kang and Chengzhong Xu and Di Wang and Jie Jiang},
  year   = {2025},
  eprint = {2501.02423},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.02423v3},
  journal = {ICML 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.02423.svg)](https://codeofpaper.com/paper/2501.02423)

Discussion