arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.14570cs.LG
收藏

理解大语言模型低精度训练后量化的难点

Understanding the Difficulty of Low-Precision Post-Training Quantization for LLMs

d-Matrix

Zifei Xu, Sayeh Sharify, Wanzin Yazar, Tristan Webb, Xin Wang

AI总结:

本研究揭示大语言模型低精度训练后量化效果逊于量化感知微调的原因是局部与全局目标函数优化错位,强调极低精度场景下直接量化感知微调的重要性。

摘要:

高参数量的大语言模型计算成本高昂,但可通过将权重压缩至极低数值精度大幅提升效率。这可通过两种方式实现:一是训练后量化,最小化局部、逐层量化误差;二是量化感知微调,最小化全局损失函数。本研究发现,在相同数据约束下,前者效果几乎总是逊于后者,且在数值精度极低时该现象尤为突出。我们进一步表明,训练后量化的这一难点源于局部与全局目标函数优化间的显著错位。研究结果解释了在大模型极低精度场景下,最小化局部量化误差的效用有限,以及直接进行量化感知微调的重要性。

英文摘要:

Large language models of high parameter counts are computationally expensive, yet can be made much more efficient by compressing their weights to very low numerical precision. This can be achieved either through post-training quantization by minimizing local, layer-wise quantization errors, or through quantization-aware fine-tuning by minimizing the global loss function. In this study, we discovered that, under the same data constraint, the former approach nearly always fared worse than the latter, a phenomenon particularly prominent when the numerical precision is very low. We further showed that this difficulty of post-training quantization arose from stark misalignment between optimization of the local and global objective functions. Our findings explains limited utility in minimization of local quantization error and the importance of direct quantization-aware fine-tuning, in the regime of large models at very low precision.

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

↑