量化膨胀推理:低比特推理模型的隐藏成本——令牌膨胀
Quantization Inflates Reasoning: Token Inflation as a Hidden Cost of Low-Bit Reasoning Models
AI总结:
研究发现低比特后训练量化虽保持推理准确性,但会显著增加推理令牌使用量,导致端到端服务性能下降,并提出了CoT令牌膨胀比来量化该效应。
摘要:
量化被广泛用于降低大型语言模型的推理成本,但其对推理模型的影响并不能完全通过最终答案准确率或每令牌延迟来体现。我们表明,低比特后训练量化会引入隐藏的测试时计算成本:量化推理模型即使在回答正确时,也往往生成更长的思维链。在数学推理、代码生成、科学问答和智能体工具使用基准测试中,我们发现INT4/INT3量化可以保持准确率,但会增加推理令牌的使用量,抵消了预期的每令牌加速。为了衡量这一效应,我们引入了CoT令牌膨胀比,该比值比较了量化模型与全精度模型在所有评估基准上的平均推理长度。我们进一步表明,令牌膨胀伴随着推理轨迹中的行为变化,包括更多的中间步骤和更大的语义重复。这些变化转化为可衡量的端到端实际服务惩罚。最后,我们评估了缓解策略,发现提示和解码时采样提供了不一致的准确率-长度权衡,而量化感知训练在减少准确率下降和令牌膨胀方面显示出更大的潜力。我们的结果表明,在评估量化推理模型时,除了准确率外,还应报告推理令牌的使用量。
英文摘要:
Quantization is widely used to reduce the inference cost of large language models, but its effect on reasoning models is not fully captured by final-answer accuracy or per-token latency. We show that low-bit post-training quantization can introduce a hidden test-time compute cost: quantized reasoning models often generate longer chains of thought even when they still answer correctly. Across mathematical reasoning, code generation, scientific question answering, and agentic tool-use benchmarks, we find that INT4/INT3 quantization can preserve accuracy but increase reasoning-token usage, offsetting the expected per-token speedup. To measure this effect, we introduce the CoT Token Inflation Ratio, which compares reasoning length between quantized and full-precision models averaged across all evaluation benchmarks. We further show that token inflation is accompanied by behavioral changes in the reasoning trace, including more intermediate steps and greater semantic repetition. These changes translate into measurable end-to-end real-world serving penalties. Finally, we evaluate mitigation strategies and find that prompting and decoding-time sampling offer inconsistent accuracy-length trade-offs, while quantization-aware training shows more promise in reducing both accuracy degradation and token inflation. Our results suggest that reasoning-token usage should be reported alongside accuracy when evaluating quantized reasoning models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。