CoreQ: 无学习的不匹配校正与连续舍入用于量化
CoreQ: Mismatch-Corrected Successive Rounding for LLM Quantization
AI总结:
CoreQ提出一种无学习的PTQ框架,通过几何分解得到闭式系数校正不匹配,减少过拟合并提升性能,适用于多种LLM场景。
摘要:
后训练量化(PTQ)通过将预训练权重映射到低比特格式实现大语言模型的高效部署,通常使用小校准集最小化层间校准目标。然而,此顺序过程导致不匹配:早期量化层的误差会改变后续层接收到的输入,使激活偏离全精度模型。近期方法引入不匹配感知校准目标以补偿此影响,但未明确如何调整各层校准目标的不匹配程度。完全应用此校正可能过拟合有限校准数据,而以固定系数扩展不匹配校正则忽视各层不匹配估计的可靠性差异。为解决这些限制,我们提出CoreQ,一种无学习的PTQ框架,通过不匹配的几何分解推导出闭式系数,该系数在各层间自适应调整,减少对有限校准数据的过拟合,并无需超参数调优。给定校正后的目标,CoreQ通过高效的贪心连续舍入求解器和有界束搜索扩展K-CoreQ,在计算上略有增加但性能更优。在多种LLM家族、规模、比特宽度和量化设置下,CoreQ在困惑度和下游准确性上优于强PTQ基线。
英文摘要:
Post-training quantization (PTQ) enables efficient deployment of large language models by mapping pretrained weights to low-bit formats without retraining, typically using a small calibration set to minimize a layer-wise calibration objective. However, this sequential procedure induces a mismatch: errors from earlier quantized layers alter the inputs received by later layers, causing the activations to deviate from those of the full-precision model. Recent approaches introduce mismatch-aware calibration objectives to compensate for this effect, but leave open how much of the observed mismatch should shift each layer's calibration target. We show that fully applying the empirical mismatch correction can overfit finite calibration data, while using a fixed correction coefficient ignores variation in mismatch estimates across layers. To address these limitations, we propose CoreQ, a learning-free PTQ framework that uses a geometric decomposition of the mismatch to compute a closed-form, layer-adaptive correction coefficient. This coefficient controls how much of the observed mismatch enters each layer's calibration target, reducing overfitting to limited calibration data without coefficient tuning. CoreQ then applies efficient greedy successive rounding to the resulting triangular least-squares objective. Its bounded beam-search extension, K-CoreQ, trades modest additional compute for improved performance. Across multiple LLM families, scales, bit-widths, and quantization settings, CoreQ and K-CoreQ achieve lower perplexity and higher downstream accuracy than strong PTQ baselines. Code is available at GitHub.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。