arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.10849cs.LGcs.AIcs.CL
收藏

用于改进大型语言模型量化感知训练的连续近似方法

Continuous Approximations for Improving Quantization Aware Training of LLMs

Beijing Academy(北京科学院);Wuhan Britain-China School(武汉英中学校);Luwan Senior Highschool(卢湾高级中学);Ryan International School(瑞安国际学校);Chongqing Bashu Secondary School(重庆巴蜀中学)

He Li, Jianhang Hong, Yuanzhuo Wu, Snehal Adbol, Zonglin Li

AI总结:

本文提出两种连续近似方法改进大型语言模型的量化感知训练,通过优化舍入和截断函数提升参数学习准确性,在相同精度和模型规模下显著降低了困惑度并提升了多项基准任务性能,助力更节能的LLM技术发展。

摘要:

模型压缩方法被用于降低大型语言模型(LLMs)的计算和能耗需求。量化感知训练(QAT)作为一种有效的模型压缩方法,被提出用于减少量化后的性能下降。为了进一步最小化这种下降,我们向QAT过程引入了两种连续近似,分别针对舍入函数(传统上由直通估计器(STE)近似)和截断函数。通过应用这两种方法,量化模型在WikiText-v2数据集上的困惑度(PPL)达到9.0815,优于基线的9.9621。此外,我们在BoolQ上实现了2.76%的提升,在MMLU上实现了5.47%的提升,证明通过我们的方法可以更准确地学习步长和权重。我们的方法在相同精度、模型大小和训练设置下实现了更好的性能,有助于发展更节能的LLMs技术,与全球可持续发展目标相一致。

英文摘要:

Model compression methods are used to reduce the computation and energy requirements for Large Language Models (LLMs). Quantization Aware Training (QAT), an effective model compression method, is proposed to reduce performance degradation after quantization. To further minimize this degradation, we introduce two continuous approximations to the QAT process on the rounding function, traditionally approximated by the Straight-Through Estimator (STE), and the clamping function. By applying both methods, the perplexity (PPL) on the WikiText-v2 dataset of the quantized model reaches 9.0815, outperforming 9.9621 by the baseline. Also, we achieve a 2.76% improvement on BoolQ, and a 5.47% improvement on MMLU, proving that the step sizes and weights can be learned more accurately with our approach. Our method achieves better performance with the same precision, model size, and training setup, contributing to the development of more energy-efficient LLMs technology that aligns with global sustainability goals.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑