Scaling Laws for Floating Point Quantization Training

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Sun, Xingwu, Li, Shuaipeng, Xie, Ruobing, Han, Weidong, Wu, Kan, Yang, Zhen, Li, Yixing, Wang, An, Li, Shuai, Xue, Jinbao, Cheng, Yu, Tao, Yangyu, Kang, Zhanhui, Xu, Chengzhong, Wang, Di, Jiang, Jie
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866908392104132608
author Sun, Xingwu
Li, Shuaipeng
Xie, Ruobing
Han, Weidong
Wu, Kan
Yang, Zhen
Li, Yixing
Wang, An
Li, Shuai
Xue, Jinbao
Cheng, Yu
Tao, Yangyu
Kang, Zhanhui
Xu, Chengzhong
Wang, Di
Jiang, Jie
author_facet Sun, Xingwu
Li, Shuaipeng
Xie, Ruobing
Han, Weidong
Wu, Kan
Yang, Zhen
Li, Yixing
Wang, An
Li, Shuai
Xue, Jinbao
Cheng, Yu
Tao, Yangyu
Kang, Zhanhui
Xu, Chengzhong
Wang, Di
Jiang, Jie
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2501_02423
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Scaling Laws for Floating Point Quantization Training
Sun, Xingwu
Li, Shuaipeng
Xie, Ruobing
Han, Weidong
Wu, Kan
Yang, Zhen
Li, Yixing
Wang, An
Li, Shuai
Xue, Jinbao
Cheng, Yu
Tao, Yangyu
Kang, Zhanhui
Xu, Chengzhong
Wang, Di
Jiang, Jie
Machine Learning
Hardware Architecture
Computation and Language
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.
title Scaling Laws for Floating Point Quantization Training
topic Machine Learning
Hardware Architecture
Computation and Language
url https://arxiv.org/abs/2501.02423