Right On Q:通过自生成轨迹在量化下恢复推理能力
Right On Q: Recovering Reasoning under Quantization via Self-Generated Trajectories
AI总结:
该研究针对低比特量化 LLM 推理能力不足的问题,提出 OnQ 流水线,结合在线策略蒸馏与逐候选动态 KL,在 Qwen3 系列模型的 2/3 比特精度下,显著提升了长 horizon 推理等基准的性能。
摘要:
量化感知训练(QAT)旨在恢复低比特大型语言模型(LLM)的推理能力。现有方法通常在固定响应序列上用原始全精度模型监督量化学生模型,但得到的低比特量化模型在长 horizon 推理任务上仍表现不佳,且常无法在全精度模型可承受的 token 预算内终止。我们发现缩小该差距存在两个挑战:其一,固定响应监督导致训练前缀与学生生成时遇到的前缀不匹配,且这种轨迹分歧随响应长度增加而扩大;其二,学生在自身前缀上对部分下一个 token 候选的预测不足,对其他候选的预测过度,且这种分布错位在高熵前缀中更频繁。我们提出 OnQ,一种结合在线策略蒸馏和逐候选动态 KL 的低比特恢复流水线。从分块校准开始,量化学生模型生成响应并在自身前缀上接收全精度教师模型的监督。动态 KL 通过每个候选的教师-学生概率比率对前向和反向 KL 加权,以平衡对预测不足和过度预测的修正。在 Qwen3-1.7B、4B 和 8B 模型的 2 比特和 3 比特精度下,OnQ 在九项基准测试中取得最高平均成绩,在长 horizon 推理基准上增益最大。在 2 比特时,它在所有模型尺寸的所有基准上均优于所有基线,较最强基线将 Qwen3-8B 的平均成绩提升了 10.26 点,同时生成的响应更短,截断和重复错误更少。
英文摘要:
Quantization-aware training (QAT) aims to recover reasoning capabilities in low-bit large language models (LLMs). Existing recipes typically supervise the quantized student with the original full-precision model on fixed response sequences. However, the resulting low-bit quantized models still struggle on long-horizon reasoning tasks and often fail to terminate within a token budget that suffices for the full-precision model. We identify two challenges in closing this gap. First, fixed-response supervision leaves a mismatch between training prefixes and those encountered during student generation, and this trajectory divergence grows as responses lengthen. Second, on its own prefixes, the student underpredicts some next-token candidates and overpredicts others, and this distributional misalignment becomes more frequent at high-entropy prefixes. We present OnQ, a low-bit recovery pipeline that combines on-policy distillation and candidate-wise Dynamic KL. Starting from block-wise calibration, the quantized student generates responses and receives full-precision teacher supervision on its own prefixes. Dynamic KL weights forward and reverse KL by each candidate's teacher-student probability ratio to balance correction of under- and overprediction. Across Qwen3-1.7B, 4B, and 8B at 2- and 3-bit precision, OnQ achieves the highest nine-benchmark average, with the largest gains on long-horizon reasoning benchmarks. At 2 bits, it outperforms every baseline on every benchmark at every model size, improving the Qwen3-8B average by 10.26 points over the strongest baseline. It also produces shorter responses with fewer truncations and repetitive errors.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。