量化小模型可信度评测存在测量伪影:误差可伪造或逆转量化效应
Measurement Artifacts in Trustworthiness Evaluations of Quantized Small Language Models
做量化小模型评测的值得细看:论文用 8 个 2B 以下模型证明 LLM.int8() 的答案会因 padding 和 batch 组成而变,NF4 则批不变。如果你引用过 4-bit 模型安全性下降的数字,这篇文章的修正估计可能会改变你的结论。
一篇 arXiv 论文指出,量化模型的基准分数变化可能来自测量工具本身而非量化。作者在 8 个 20 亿参数以下的指令微调模型上,比较 float16、LLM.int8() 和 NF4 三种精度下同一批条目的表现,估计了四种测量选择的交互误差。
具体发现包括:以两位人工标注者的标签为基准,4-bit 模型有害依从性的上升约为经修正关键词检测器记录的非拒答上升的一半到三分之二;Cloze 与带字母选项的多选评分对量化效应的估计相关性仅 ρ = 0.10,而噪声上限约为 0.77。LLM.int8() 的回答依赖批内条目组成,仅 padding 就会改变答案,把激活值舍入到 8 bit 即可产生这种依赖,NF4 则是批不变的。报告的两个最大校准损失实为响应偏置漂移。
作者发布了逐条目的预测、选项分数和人工标注,并给出压缩小模型的评测建议。对做边缘部署和量化比较的开发者来说,这些结论意味着常见的 4-bit 安全性退化数字需要重新解读。
Measurement Artifacts in Trustworthiness Evaluations of Quantized Small Language Models
Evaluations of quantized language models attribute the change in a benchmark score to quantization. We write the measured change as the true change plus a term contributed by the instrument. Instrument error that is the same at every precision can shrink a paired comparison but cannot create or reverse an effect. Error that interacts with quantization can do both, and it is reported as an effect of quantization. We estimate this interaction for four measurement choices in 8 instruction-tuned models below two billion parameters, at float16, LLM.int8() and NF4, on identical items. Measured against labels from two human annotators, the 4-bit rise in harmful compliance is about half to two-thirds of the rise in non-refusal that a corrected key word detector records. Cloze and lettered multiple-choice scoring disagree about the effect of quantization far more than their noise allows: their estimates correlate at \r{ho} = 0.10, against a ceiling of about 0.77. LLM.int8() answers and generations depend on which items share a batch, and padding alone changes its answers. Rounding activations to 8 bits is enough to produce this dependence. NF4 is batch-invariant. The two largest reported calibration losses are response-bias shifts. We release item-level predictions, option scores and human annotations, and give recommendations for evaluating compressed small models.
This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include LLM.int8(), NF4, quantization, model evaluation.
Source attribution: curated from arXiv cs.AI (@Tanzeel Abbas, Tehseen Zia, David Windridge).