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

QUAD:基于激活分解的大语言模型量化与参数高效微调

QUAD: Quantization and Parameter-Efficient Tuning of LLM with Activation Decomposition

Renmin University of China(中国人民大学)

Yuxuan Hu, Xiaodong Chen, Cuiping Li, Hong Chen, Jing Zhang

AI总结:

QUAD通过奇异值分解抑制激活异常值,实现4比特量化,并结合参数高效微调,在Llama-3和Qwen-2.5上达到94%-98%的准确性。

摘要:

大语言模型(LLMs)在各种应用中表现出色,但由于规模庞大而存在效率低下的问题。虽然量化降低了计算成本,但现有方法在中等规模的大语言模型(如Llama-3-8B)中因激活异常值而降低了准确性。为解决此问题,我们提出了QUAD(基于激活分解的量化),一个利用奇异值分解(SVD)来抑制激活异常值以实现有效4比特量化的框架。QUAD使用校准数据离线估计激活奇异向量,构建正交变换矩阵P,将异常值以全精度转移到额外维度,同时将其余分量量化为4比特。此外,QUAD通过可适应的全精度异常值权重实现参数高效微调,缩小了量化模型与全精度模型之间的准确性差距。实验表明,在W4A4量化下,QUAD在Llama-3和Qwen-2.5模型上实现了94%至96%的准确性,在W4A4/A8及参数高效微调下实现了98%的准确性。我们的代码可在\href{https://github.com/hyx1999/Quad}{仓库}中获取。

英文摘要:

Large Language Models (LLMs) excel in diverse applications but suffer inefficiency due to massive scale. While quantization reduces computational costs, existing methods degrade accuracy in medium-sized LLMs (e.g., Llama-3-8B) due to activation outliers. To address this, we propose QUAD (Quantization with Activation Decomposition), a framework leveraging Singular Value Decomposition (SVD) to suppress activation outliers for effective 4-bit quantization. QUAD estimates activation singular vectors offline using calibration data to construct an orthogonal transformation matrix P, shifting outliers to additional dimensions in full precision while quantizing rest components to 4-bit. Additionally, QUAD enables parameter-efficient fine-tuning via adaptable full-precision outlier weights, narrowing the accuracy gap between quantized and full-precision models. Experiments demonstrate that QUAD achieves 94% ~ 96% accuracy under W4A4 quantization and 98% accuracy with W4A4/A8 and parameter-efficient fine-tuning for Llama-3 and Qwen-2.5 models. Our code is available at \href{https://github.com/hyx1999/Quad}{repository}.

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

↑