自适应推理:测试时计算分配学习
Learning When to Think: Adaptive Reasoning for Test-Time Compute Allocation
这篇论文介绍了一种自适应推理模型,通过选择不同的推理模式来优化计算分配,这在处理不同难度的问题时非常有用,值得一看。
研究自适应推理模型,通过选择三种模式(无思考、简短推理、扩展推理)来自动分配推理努力。在MATH模型上,简短模式比扩展模式更准确,平均响应长度减少了41%。
该模型在多个基准测试中表现良好,无需重新训练即可迁移到其他任务。
Learning When to Think: Adaptive Reasoning for Test-Time Compute Allocation
Reasoning language models trained with reinforcement learning typically operate under a fixed token budget rather than an explicitly adaptive one, which can lead to over-computation on easy problems and insufficient computation on difficult ones. We study whether a model can learn to allocate its own reasoning effort by choosing, as the first token of its response, one of three modes: \textsc{NoThink} (answer as quickly as possible), \textsc{Short} (brief reasoning), or \textsc{Long} (extended reasoning). The choice is learned inside Group Relative Policy Optimization (GRPO) with no separate router, through a shaped reward that makes each mode worthwhile at a different response length, together with hard per-mode token caps that keep the modes distinct. On a 1.5B distilled model trained on MATH, the three modes emerge without collapsing to a single choice, and the brief modes end up more accurate than \textsc{Long}, which shows that the router sorts problems by difficulty rather than at random. Averaged over three seeds, the resulting policy stays close to the base model's accuracy on the held-out MATH500 ($0.782$ vs.\ $0.796$) while cutting the mean response length from $4{,}796$ to $2{,}811$ tokens (a $41\%$ reduction). Interestingly, it also transfers to other benchmarks without retraining, with the largest savings where problems are easier, with for instance 76\% token reduction on GSM8K and at higher accuracy than the baselines at similar response length. In short, we build a reasoning model that adaptively chooses how much to reason for each problem.
This report is categorized under AITOP's "Papers" desk. Key entities and technical topics under continuous tracking include adaptive inference, transfer learning.
Source attribution: curated from arXiv cs.AI (@Gijs Kassenaar, Zhao Yang, Vincent François-Lavet).