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

OSAQ: 用于准确低比特LLM量化中的异常自吸收

OSAQ: Outlier Self-Absorption for Accurate Low-bit LLM Quantization

Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);University of California, Santa Barbara(加州大学圣芭芭拉分校)

Zhikai Li, Zhen Dong, Xuewen Liu, Jing Zhang, Qingyi Gu

AI总结:

本文提出OSAQ方法,通过利用Hessian的低秩特性,利用加法权重抑制技术有效抑制低比特量化中的异常,提升模型性能。

摘要:

大型语言模型(LLMs)展现了显著的能力。然而,其庞大的参数规模导致推理过程中的显著资源消耗和延迟。后训练权重仅量化提供了一种有前途的解决方案,通过减少模型大小和加速令牌生成来缓解内存瓶颈问题。然而,权重中存在的固有系统性异常仍然是主要障碍。尽管现有方法,如缩放和旋转,试图解决这个问题,但性能仍不令人满意。本文提出异常自吸收量化(OSAQ),通过利用二次低秩特性进行加法权重抑制,以实现LLM的低比特权重仅量化。具体而言,我们观察到Hessian在不同输入下表现出低秩一致性,某些方向始终显示出消失的曲率。利用这一特性,我们识别出Hessian的稳定空域,然后通过线性组合该空域内的向量构建加法权重变换,从而在不影响任务损失的情况下抑制权重异常。该加法变换可以离线吸收进权重中,无需层间变换,也不引入推理开销。此外,通过闭式解高效实现该构造,无需资源密集型训练或迭代过程。广泛的实验表明,OSAQ有效抑制了异常并提高了低比特量化的性能。例如,在2比特量化中,OSAQ与GPTQ结合时,相比 vanilla GPTQ, perplexity 降低超过40%。

英文摘要:

Large Language Models (LLMs) have demonstrated remarkable capabilities. However, their massive parameter scale leads to significant resource consumption and latency during inference. Post-training weight-only quantization offers a promising solution by reducing model size and accelerating token generation through alleviating the memory-bound issue. Nevertheless, the presence of inherent systematic outliers in weights continues to be a major obstacle. While existing methods, such as scaling and rotation, attempt to address this issue, the performance remains unsatisfactory. In this paper, we propose Outlier Self-Absorption Quantization (OSAQ), which performs additive weight suppression guided by the second-order low-rank property for low-bit weight-only quantization of LLMs. Specifically, we observe that the Hessian exhibits low-rank consistency across different inputs, with certain directions consistently showing vanishing curvature. Leveraging this property, we identify a stable null space of the Hessian and then construct an additive weight transformation by linearly combining the vectors within this null space, thereby suppressing weight outliers without affecting the task loss. This additive transformation can be absorbed into the weights offline, requiring no inter-layer transformations and introducing no inference overhead. Moreover, the construction is efficiently achieved by a closed-form solution, without resource-intensive training or iterative procedures. Extensive experiments demonstrate that OSAQ effectively suppresses outliers and enhances low-bit quantization performance. For instance, in 2-bit quantization, OSAQ, when integrated with GPTQ, achieves over 40% lower perplexity compared to vanilla GPTQ.

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

↑