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

分两阶段的网格优化用于大语言模型的组级量化

Two-Stage Grid Optimization for Group-wise Quantization of LLMs

Junhan Kim, Gukryeol Lee, Seungwoo Son, Jeewook Kim, Yongkweon Jeon

AI总结:

本文提出分两阶段的网格优化方法,通过显式最小化层间重建损失来提升大语言模型组级量化的准确性,同时减少计算开销。

摘要:

组级量化是减轻低精度量化在大语言模型(LLMs)中精度下降的有效策略。在现有方法中,GPTQ由于其效率而被广泛采用;然而,它在确定组规模时忽略了输入统计信息和组间相关性,导致与其最小化层间重建损失的目标不匹配。在本工作中,我们提出了一种用于组规模的两阶段优化框架,以显式最小化层间重建损失。在第一阶段,该阶段在GPTQ之前进行,我们初始化每个组规模以最小化组级重建损失,从而纳入输入统计信息。在第二阶段,我们冻结通过GPTQ获得的整数权重,并细化组规模以最小化层间重建损失。为此,我们采用坐标下降算法并推导出闭合形式的更新规则,这使得在不耗费昂贵数值优化的情况下能够高效地进行细化。值得注意的是,我们的推导纳入了前一层的量化误差以防止误差累积。实验结果表明,我们的方法一致地提高了组级量化,以更高的精度实现了几乎无额外开销。

英文摘要:

Group-wise quantization is an effective strategy for mitigating accuracy degradation in low-bit quantization of large language models (LLMs). Among existing methods, GPTQ has been widely adopted due to its efficiency; however, it neglects input statistics and inter-group correlations when determining group scales, leading to a mismatch with its goal of minimizing layer-wise reconstruction loss. In this work, we propose a two-stage optimization framework for group scales that explicitly minimizes the layer-wise reconstruction loss. In the first stage, performed prior to GPTQ, we initialize each group scale to minimize the group-wise reconstruction loss, thereby incorporating input statistics. In the second stage, we freeze the integer weights obtained via GPTQ and refine the group scales to minimize the layer-wise reconstruction loss. To this end, we employ the coordinate descent algorithm and derive a closed-form update rule, which enables efficient refinement without costly numerical optimization. Notably, our derivation incorporates the quantization errors from preceding layers to prevent error accumulation. Experimental results demonstrate that our method consistently enhances group-wise quantization, achieving higher accuracy with negligible overhead.

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

↑