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

补偿量化误差+:量化模型是好奇的学习者

Compensate Quantization Errors+: Quantized Models Are Inquisitive Learners

Yifei Gao ∗ , Jie Ou ∗ , Lei Wang † † {\dagger} † , Jun Cheng, and Mengchu Zhou ∗(作者)

Yifei Gao, Jie Ou, Lei Wang, Jun Cheng, Mengchu Zhou

AI总结:

针对 LLM 权重量化中分布失配、额外开销及全局优化不足的问题,本文提出 Singular-value Diagonal Expansion 与 Cross-layer Learning,以即插即用方式改善量化对齐并显著超越现有方法。

摘要:

大语言模型(LLM)的量化一直是一个重要研究领域,旨在实现其在实践中的轻量化部署。现有关于 LLM 量化的研究主要探索权重与激活之间的相互作用,或采用辅助组件,却忽视了在量化过程中调整权重的必要性。因此,原始权重分布在最近邻舍入(RTN)量化后往往无法产生理想结果。尽管在 LLM 量化中引入混合精度和低秩误差近似等技术可以带来更好的结果,但它们不可避免地会产生额外的计算开销。另一方面,传统权重量化技术(如 Generative Post-Training Quantization)依赖手动调整权重分布以最小化局部误差,却无法实现全局最优结果。虽然最近提出的 Learnable Singular-value Increment 通过修改权重分布改进了全局权重量化,但它会显著破坏原始分布。这会引入对训练数据的明显偏差,并可能降低下游任务性能。本文提出 Singular-value Diagonal Expansion,这是一种更精细的方法,用于优化权重分布以实现更好的量化对齐。此外,我们提出 Cross-layer Learning,通过在各层之间更均匀地分配误差来改善整体量化结果。我们的即插即用权重量化方法相比 OmniQuant、DuQuant 和 PrefixQuant 等最先进方法展现出显著的性能提升。

英文摘要:

The quantization of large language models (LLMs) has been a prominent research area aimed at enabling their lightweight deployment in practice. Existing research about LLM's quantization has mainly explored the interplay between weights and activations, or employing auxiliary components while neglecting the necessity of adjusting weights during quantization. Consequently, original weight distributions frequently fail to yield desired results after round-to-nearest (RTN) quantization. Even though incorporating techniques such as mixed precision and low-rank error approximation in LLM's quantization can yield improved results, they inevitably introduce additional computational overhead. On the other hand, traditional techniques for weight quantization, such as Generative Post-Training Quantization, rely on manually tweaking weight distributions to minimize local errors, but they fall short of achieving globally optimal outcomes. Although the recently proposed Learnable Singular-value Increment improves global weight quantization by modifying weight distributions, it disrupts the original distribution considerably. This introduces pronounced bias toward the training data and can degrade downstream task performance. In this paper, we introduce Singular-value Diagonal Expansion, a more nuanced approach to refining weight distributions to achieve better quantization alignment. Furthermore, we introduce Cross-layer Learning that improves overall quantization outcomes by distributing errors more evenly across layers. Our plug-and-play weight-quantization methods demonstrate substantial performance improvements over state-of-the-art approaches, including OmniQuant, DuQuant, and PrefixQuant.

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

↑