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

ASER:面向大语言模型量化的激活平滑与误差重构

ASER: Activation Smoothing and Error Reconstruction for Large Language Model Quantization

Alibaba Cloud Computing(阿里云)

Weibo Zhao, Yubin Shi, Xinyu Lyu, Wanchen Sui, Shen Li, Yong Li

AI总结:

针对大语言模型低比特量化误差大、性能下降明显的问题,提出包含误差重构与激活平滑的ASER算法,可在低比特下保持模型精度,性能比肩现有最优方法且开销小。

摘要:

量化是大语言模型(LLM)部署的关键技术,但在实现有效的低比特量化方面存在重大挑战。有限的数值映射会导致量化模型产生显著误差,带来难以接受的性能下降。本文以模型压缩目标的基本思路为基础,深入研究了训练后量化过程中LLM的逐层误差分布。随后,我们提出ASER算法,它包含两部分:(1)误差重构:使用通过白化SVD构建的LoRA风格矩阵,对量化误差进行低秩补偿;(2)激活平滑:通过离群值提取获得平滑激活,实现更优的误差补偿。ASER可将典型LLM量化为低比特模型,即便在W4A8逐通道设置下仍能保持精度。实验结果表明,ASER在现有最先进量化算法中具有竞争力,在激活量化方面展现出潜力,且开销极小。

英文摘要:

Quantization stands as a pivotal technique for large language model (LLM) serving, yet it poses significant challenges particularly in achieving effective low-bit quantization. The limited numerical mapping makes the quantized model produce a non-trivial error, bringing out intolerable performance degration. This paper is anchored in the basic idea of model compression objectives, and delves into the layer-wise error distribution of LLMs during post-training quantization. Subsequently, we introduce ASER, an algorithm consisting of (1) Error Reconstruction: low-rank compensation for quantization error with LoRA-style matrices constructed by whitening SVD; (2) Activation Smoothing: outlier extraction to gain smooth activation and better error compensation. ASER is capable of quantizing typical LLMs to low-bit ones, particularly preserving accuracy even in W4A8 per-channel setup. Experimental results show that ASER is competitive among the state-of-the-art quantization algorithms, showing potential to activation quantization, with minor overhead.

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

↑