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

ResCom:用于大语言模型量化的激活残差补偿

ResCom: Activation Residual Compensation for Large Language Model Quantization

Fudan University(复旦大学)

Ning Yang, Bohan Cui, Zhuowen Liu, Yuting Wang

AI总结:

ResCom是一种低秩校正方法,通过激活舍入残差补偿大语言模型量化的精度损失,在Llama-3-8B等模型上显著提升了困惑度、MMLU和GSM8K指标,同时保持内存优势。

摘要:

低位权值-激活量化可降低大语言模型部署所需的内存与计算量,但激活舍入仍会在校准后降低精度。从舍入输入进行重建无法区分同一量化区间内的激活。我们提出ResCom,一种低秩校正方法,利用激活舍入残差补偿由此产生的层输出误差。一种感知输出的校准程序通过残差对输出重建的贡献选择残差方向,并以闭式计算校正值,无需梯度训练或更新已校准的权值。在Llama-3-8B模型采用4位权值与激活的设置下,秩为32的注意力校正将WikiText-2困惑度从7.708降至7.147,MMLU提升2.89个百分点,五-shot GSM8K准确率从23.96%升至36.16%。对参数规模1B至70B的模型及保留的C4测试集的评估验证了该方法的泛化性。所评估的FP32实现使4K预填充时间增加2.25%;单独的紧凑存储实现相比FP16仍保持27.7%的峰值内存降低。

英文摘要:

Low-bit weight--activation quantization reduces the memory and computation needed to deploy large language models, but activation rounding can still degrade accuracy after calibration. Reconstruction from rounded inputs cannot distinguish activations within the same quantization bin. We propose ResCom, a low-rank correction that uses the activation rounding residual to compensate for the resulting layer-output error. An output-aware calibration procedure selects residual directions by their contribution to output reconstruction and computes the correction in closed form, without gradient training or updates to the calibrated weights. On Llama-3-8B with 4-bit weights and activations, rank-32 attention corrections reduce WikiText-2 perplexity from 7.708 to 7.147, improve MMLU by 2.89 percentage points, and raise five-shot GSM8K accuracy from 23.96 to 36.16 percent. Evaluations on models from 1B to 70B parameters and on held-out C4 test the method beyond this setting. The evaluated FP32 implementation adds 2.25 percent to 4K prefill time; a separate compact-storage implementation retains a 27.7 percent peak-memory reduction relative to FP16.

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

↑