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

基于覆盖的后训练量化校准:通过加权覆盖处理异常通道

Coverage-Based Calibration for Post-Training Quantization via Weighted Set Cover over Outlier Channels

Department of Computer Science, Iowa State University(伊阿华州立大学计算机科学系);Department of Civil, Construction & Environmental Engineering, Iowa State University(伊阿华州立大学土木、建设与环境工程系)

Ibne Farabi Shihab, Sanjeda Akter, Anuj Sharma

AI总结:

本文提出通过加权覆盖异常通道来改进后训练量化校准,解决校准样本未能激活异常通道导致的动态范围低估问题,提出 COVERCAL 算法在多种模型和评估中取得显著效果。

摘要:

后训练量化(PTQ)通过小校准集将大语言模型压缩到低比特宽度,其质量依赖于所选样本。我们发现一种故障模式:校准样本未能激活异常通道,隐藏维度具有异常大的激活,导致量化器低估其动态范围,产生主导层间损失的每通道重建误差。受此启发,我们主张 PTQ 校准质量由加权异常通道覆盖而非通用样本代表性决定,并将校准选择形式化为异常通道上的加权集合覆盖问题。目标是单调子模的,贪心算法 COVERCAL 在预计算的激活统计上运行,无需 GPU 时间。进一步显示权重选择是内部一致的:在简化截断模型下,遗漏加权覆盖上界于替代损失,证明加权覆盖目标是原则性的而非纯经验性的。在 LLaMA-2、LLaMA-3 和 Mistral 上,使用 AWQ 和 GPTQ 后端及五种下游评估,COVERCAL 在随机、最大困惑度、最大激活方差和分层基线中表现更优,尤其在小校准预算下效果显著。在 INT4 128 样本时,COVERCAL 比随机校准提升 MMLU 1.2 到 1.5 分,减少困惑度退化 15 到 30%;在 64 样本时,与随机校准持平或超过。贡献不是新的 PTQ 后端,而是将校准选择形式化为加权异常覆盖,具有简单高效的算法和基于替代的证明。

英文摘要:

Post-Training Quantization (PTQ) compresses large language models to low bit-widths using a small calibration set, and its quality depends strongly on which samples are chosen. We identify a failure mode in which calibration samples fail to activate outlier channels, hidden dimensions with unusually large activations, causing the quantizer to underestimate their dynamic range and producing per-channel reconstruction errors that dominate layer-wise loss. Motivated by this observation, we argue that PTQ calibration quality is governed more by weighted outlier-channel coverage than by generic sample representativeness, and formulate calibration selection as a weighted set cover problem over outlier channels. The objective is monotone submodular, and the greedy algorithm, COVERCAL, operates on pre-computed activation statistics and requires no GPU time at selection. We further show that the weight choice is internally consistent: under a stylized clipping model, missed weighted coverage upper-bounds surrogate loss, justifying the weighted coverage objective as principled rather than purely empirical. Across LLaMA-2, LLaMA-3, and Mistral, under AWQ and GPTQ backends and five downstream evaluations, COVERCAL improves over random, max-perplexity, max-activation-variance, and stratified baselines, with the largest gains at small calibration budgets. At INT4 with 128 samples, COVERCAL improves MMLU by 1.2 to 1.5 points over random calibration and reduces perplexity degradation by 15 to 30\%; with 64 samples, it matches or exceeds random calibration at 256. The contribution is not a new PTQ backend but a formulation of calibration selection as weighted outlier coverage, with a simple, efficient algorithm and a surrogate-based justification.

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

↑