arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.14481cs.CLcs.AI
收藏

SASQ:用于大语言模型量化感知训练的静态激活缩放

SASQ: Static Activation Scaling for Quantization-Aware Training in Large Language Models

University of Science and Technology of China(中国科学技术大学)

Shizhuo Mao, Song Chen, Yi Kang

AI总结:

SASQ通过优化激活量化因子,实现了大语言模型在量化感知训练中的高精度静态推理与高效部署。

摘要:

大型语言模型(LLMs)在自然语言任务中表现出色,但其不断增长的规模超出了GPU内存进步的速度,导致部署面临挑战。模型量化通过降低权重和激活的精度来缓解这一问题,但现有解决方案面临根本性的权衡:动态量化带来较高的计算开销并在边缘设备上部署具有挑战性,而静态量化则牺牲了准确性。现有的量化感知训练(QAT)方法进一步面临权重训练成本的问题。我们提出了SASQ:一种专门针对激活量化因子的轻量级QAT框架。SASQ仅优化量化因子(不改变预训练权重),从而在保持部署效率的同时实现高精度的静态推理。SASQ自适应地截断一些异常值,从而在减少量化难度的同时保持激活分布特征。SASQ不仅超越了现有最先进的量化方案,还优于对应的FP16模型。在LLaMA2-7B上,其在QuaRot上的困惑度降低了5.2%,在WikiText2上的困惑度比FP16模型低4.7%。

英文摘要:

Large language models (LLMs) excel at natural language tasks but face deployment challenges due to their growing size outpacing GPU memory advancements. Model quantization mitigates this issue by lowering weight and activation precision, but existing solutions face fundamental trade-offs: dynamic quantization incurs high computational overhead and poses deployment challenges on edge devices, while static quantization sacrifices accuracy. Existing approaches of quantization-aware training (QAT) further suffer from weight training costs. We propose SASQ: a lightweight QAT framework specifically tailored for activation quantization factors. SASQ exclusively optimizes only the quantization factors (without changing pre-trained weights), enabling static inference with high accuracy while maintaining deployment efficiency. SASQ adaptively truncates some outliers, thereby reducing the difficulty of quantization while preserving the distributional characteristics of the activations. SASQ not only surpasses existing SOTA quantization schemes but also outperforms the corresponding FP16 models. On LLaMA2-7B, it achieves 5.2% lower perplexity than QuaRot and 4.7% lower perplexity than the FP16 model on WikiText2.

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

↑