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

SERQ:基于显著性的低秩误差重建用于LLM量化

SERQ: Saliency-Aware Low-Rank Error Reconstruction for LLM Quantization

Kyung Hee University(庆熙大学);Yonsei University(延世大学)

Yeonsik Park, Hyeonseong Kim, Seungkyu Choi

AI总结:

SERQ通过基于显著性的低秩误差重建方法,在低比特LLM推理中提升精度并降低校准复杂度。

摘要:

后训练量化(PTQ)已成为在边缘设备和服务器平台上高效部署大语言模型(LLMs)的主流技术,兼顾内存和计算效率。现有的PTQ方法主要旨在通过减轻通道级异常激活引起的量化误差来降低权重和激活的精度。在这些方法中,利用低秩适应(LoRA)的误差重建已被证明特别有效,因为它引入了一个轻量级的辅助计算路径,而无需进行大量优化或额外的在线层。然而,先前的研究揭示了在W4A4设置下存在严重的精度下降问题,且传统低秩适应依赖于两个连续因素,需要在推理过程中进行中间量化,从而限制了低精度效率。在本工作中,我们提出SERQ,一种针对低比特LLM推理的基于显著性的误差重建方法,该方法使用一个单一的低秩补偿矩阵。SERQ通过三个阶段共同减轻来自激活和权重显著性的量化误差,从而在线性层中保持高效的4比特矩阵乘法:(1)静态激活展平,(2)基于显著性的误差重建,(3)离线权重排列。该方法仅通过单次分解进行额外的计算,而所有其他操作均在离线进行,从而保持了极小的延迟开销。实证结果表明,SERQ在W4A8和W4A4设置下均优于先前的误差重建方法,并在比现有最先进的旋转基W4A4方法更高的精度上实现了显著的校准复杂度降低。

英文摘要:

Post-training quantization (PTQ) has emerged as a prevailing technique for deploying large language models (LLMs) efficiently in terms of both memory and computation, across edge devices and server platforms. Existing PTQ methods primarily aim to reduce precision in weights and activations by mitigating quantization errors caused by channel-wise outlier activations (e.g., pre-quantization scaling, online transformations, or low-rank error reconstruction). Among these approaches, error reconstruction with low-rank adaptation (LoRA) has proven particularly effective, as it introduces a lightweight auxiliary computation path without requiring heavy optimization or additional online layers. However, prior studies reveal severe accuracy degradation under W4A4 settings, and conventional low-rank adaptations rely on two sequential factors, necessitating intermediate quantization during inference and thereby limiting low-precision efficiency. In this work, we propose SERQ, a saliency-aware error reconstruction method for low-bit LLM inference that employs a single low-rank compensation matrix. SERQ preserves efficient 4-bit matrix multiplication in linear layers by jointly mitigating quantization errors arising from both activation and weight saliency through three stages: (1) static activation flattening, (2) saliency-aware error reconstruction, and (3) offline weight permutation. The method incurs additional computation only for low-rank error reconstruction via a single decomposition, while all other operations are performed offline, thereby keeping latency overhead minimal. Empirically, SERQ outperforms prior error reconstruction methods under both W4A8 and W4A4 settings, and achieves higher accuracy than state-of-the-art rotation-based W4A4 approaches, while substantially reducing calibration complexity. Code is available at https://github.com/acalabys/SERQ

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

↑