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

基于闭式旋转的W4A4大语言模型量化去噪

Outlier Smoothing with Closed-Form Rotations for W4A4 Large Language Model Quantization

National University of Defense Technology(国防科技大学);Qinghai Normal University(青海师范大学);Tibet University(西藏大学)

Jinying Xiao, Bin Ji, Shasha Li, Xiaodong Liu, Ma Jun, Chao Wang, Wei Li, Ye Zhong, Xuan Xie, Nyima Tashi, Jie Yu

AI总结:

本文提出SingleQuant框架,通过闭式最优旋转平滑激活异常值,提升大语言模型量化性能,实验证明其在多种任务中优于基线方法。

摘要:

大语言模型(LLMs)量化有助于在资源受限环境下部署LLMs,但现有结合不兼容梯度优化和量化截断的方法导致严重收敛问题。本文研究证实,Stiefel流形上的Straight-Through Estimator(STE)引入非光滑性和梯度噪声,阻碍优化收敛,阻碍高保真量化LLM发展。为解决上述限制,我们提出SingleQuant,一种单次量化框架,与量化截断解耦,从而消除上述非光滑性和梯度噪声因素。具体而言,SingleQuant构建了对齐旋转变换(ART)和均匀性旋转变换(URT),针对不同的激活异常值,其中ART通过闭式最优旋转平滑异常值,URT通过几何映射重塑分布。两者矩阵均由严格制定的Givens旋转组成,具有预定义的维度和旋转角度,使在短时间内实现有希望的LLM任务性能。实验结果表明,SingleQuant在7B-70B LLMs上的多种任务中优于所选基线。更精确地说,SingleQuant使量化LLMs在更短的时间内实现更高的任务性能。例如,当对LLaMA-2-13B进行量化时,SingleQuant实现了1,400×的量化加速,并相比所选最佳基线提高了+0.57%的平均任务性能。

英文摘要:

Large Language Models (LLMs) quantization facilitates deploying LLMs in resource-limited settings, but existing methods that combine incompatible gradient optimization and quantization truncation lead to serious convergence pathology. This prolongs quantization time and degrades LLMs' task performance. Our studies confirm that Straight-Through Estimator (STE) on Stiefel manifolds introduce non-smoothness and gradient noise, obstructing optimization convergence and blocking high-fidelity quantized LLM development despite extensive training. To tackle the above limitations, we propose SingleQuant, a single-pass quantization framework that decouples from quantization truncation, thereby eliminating the above non-smoothness and gradient noise factors. Specifically, SingleQuant constructs Alignment Rotation Transformation (ART) and Uniformity Rotation Transformation (URT) targeting distinct activation outliers, where ART achieves smoothing of outlier values via closed-form optimal rotations, and URT reshapes distributions through geometric mapping. Both matrices comprise strictly formulated Givens rotations with predetermined dimensions and rotation angles, enabling promising LLMs task performance within a short time. Experimental results demonstrate SingleQuant's superiority over the selected baselines across diverse tasks on 7B-70B LLMs. To be more precise, SingleQuant enables quantized LLMs to achieve higher task performance while necessitating less time for quantization. For example, when quantizing LLaMA-2-13B, SingleQuant achieves 1,400$\times$ quantization speedup and increases +0.57\% average task performance compared to the selected best baseline.

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

↑