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

ParoQuant: 基于成对旋转的量化方法用于高效推理大语言模型推理

ParoQuant: Pairwise Rotation Quantization for Efficient Reasoning LLM Inference

NVIDIA;MIT(麻省理工学院);UC San Diego(加州大学圣地亚哥分校)

Yesheng Liang, Haisheng Chen, Zihan Zhang, Song Han, Zhijian Liu

AI总结:

ParoQuant通过结合硬件高效旋转与通道缩放,有效解决推理LLMs中的异常值问题,实现更高的准确性和更低的开销。

摘要:

后训练量化(PTQ)将大型语言模型(LLMs)的权重和激活压缩成低精度表示,以减少内存占用并加速推理。然而,权重和激活中的异常值往往导致较大的量化误差和严重的准确性下降,尤其是在最近的推理LLMs中,误差会在长链思考中累积。现有的PTQ方法要么无法充分抑制异常值,要么在推理过程中引入显著的开销。在本文中,我们提出了Pairwise Rotation Quantization(ParoQuant),一种结合硬件高效且可优化的独立Givens旋转与通道级缩放的PTQ方法,以平衡通道间的幅度并缩小每个量化组内的动态范围,从而有效解决异常值问题。我们进一步设计了推理内核,以充分利用GPU并行性,并在运行时保持旋转和缩放的轻量级。在仅权重量化的情况下,ParoQuant在推理任务上相对于AWQ平均实现了2.4%的准确性提升,且开销低于10%。ParoQuant还与最先进的权重-激活量化方法具有相同的准确性。这为更高效和准确的推理LLMs部署铺平了道路。

英文摘要:

Post-training quantization (PTQ) compresses the weights and activations of large language models (LLMs) into low-precision representations to reduce memory footprint and accelerate inference. However, the presence of outliers in weights and activations often leads to large quantization errors and severe accuracy degradation, especially in recent reasoning LLMs where errors accumulate across long chains of thought. Existing PTQ methods either fail to sufficiently suppress outliers or introduce significant overhead during inference. In this paper, we propose Pairwise Rotation Quantization (ParoQuant), a PTQ method that combines hardware-efficient and optimizable independent Givens rotations with channel-wise scaling to even out the magnitudes across channels and narrow the dynamic range within each quantization group, effectively addressing the outlier issue. We further co-design the inference kernel to fully exploit GPU parallelism and keep the rotations and scaling lightweight at runtime. Under weight-only quantization, ParoQuant achieves an average 2.4% accuracy improvement over AWQ on reasoning tasks, with less than 10% overhead. ParoQuant also matches the accuracy of state-of-the-art weight-activation quantization methods. This paves the way for more efficient and accurate deployment of reasoning LLMs.

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

↑