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

StableQAT: 在超低位宽下实现稳定的量化感知训练

StableQAT: Stable Quantization-Aware Training at Ultra-Low Bitwidths

Microsoft(微软公司);Lehigh University(莱文斯顿大学);New York University(纽约大学);Renmin University of China(中国人民大学)

Tianyi Chen, Sihan Chen, Xiaoyi Qu, Dan Zhao, Ruomei Yan, Jongwoo Ko, Luming Liang, Pashmina Cameron

AI总结:

StableQAT通过新型替代方案提升超低位宽下QAT的稳定性与性能

摘要:

量化感知训练(QAT)对于在严格内存和延迟约束下部署大模型至关重要,但实现超低位宽下的稳定和鲁棒优化仍具挑战性。基于直通估计器(STE)或软量化器的常见方法往往面临梯度不匹配、不稳定或计算开销大的问题。为此,我们提出了StableQAT,一种统一且高效的QAT框架,通过从舍入运算的离散傅里叶分析中衍生出的新型、轻量且理论上严谨的替代方案,稳定地在超低位宽设置下进行训练。StableQAT严格推广了STE,后者作为我们更表达性替代方案的特例出现,产生平滑、有界且成本低廉的梯度,从而在各种超参数选择下提高QAT训练性能和稳定性。在实验中,StableQAT在2-4位范围内表现出稳定且高效的QAT,展示了改进的训练稳定性、鲁棒性和优于标准QAT技术的性能,训练开销可忽略不计。我们的代码可在https://github.com/microsoft/StableQAT获取。

英文摘要:

Quantization-aware training (QAT) is essential for deploying large models under strict memory and latency constraints, yet achieving stable and robust optimization at ultra-low bitwidths remains challenging. Common approaches based on the straight-through estimator (STE) or soft quantizers often suffer from gradient mismatch, instability, or high computational overhead. As such, we propose StableQAT, a unified and efficient QAT framework that stabilizes training in ultra low-bit settings via a novel, lightweight, and theoretically grounded surrogate for backpropagation derived from a discrete Fourier analysis of the rounding operator. StableQAT strictly generalizes STE as the latter arises as a special case of our more expressive surrogate family, yielding smooth, bounded, and inexpensive gradients that improve QAT training performance and stability across various hyperparameter choices. In experiments, StableQAT exhibits stable and efficient QAT at 2-4 bit regimes, demonstrating improved training stability, robustness, and superior performance with negligible training overhead against standard QAT techniques. Our code is available at https://github.com/microsoft/StableQAT.

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

↑