思维级束搜索用于推理
研究论文 · 2026/08/15
测试时计算扩展是大型推理模型性能的主要驱动力,但当前方法效率极低,关键问题从花费多少计算转变为将计算分配到哪里。本文将测试时推理形式化为在部分轨迹上的约束计算分配问题。在固定硬件预算下,现有范式无法主动将计算分配给最有希望的中间进展:传统并行采样独立处理轨迹并导致严重的内存瓶颈,而剪枝方法则使硬件饥饿且无法主动充分改变输出分布。为克服这一 dichotomy,我们提出 Gambit,一种执行思想级束搜索的推理算法。通过定期剪枝无望轨迹并立即从高质量前缀分支,Gambit 通过轻量级评分器探测隐藏状态,动态将计算集中到最有希望的推理轨迹上,同时保持持续的高硬件利用率。在多个模型和基准上的广泛评估表明,Gambit 严格优于现有基线。在相同硬件约束下,我们的方法在 HMMT-24 上比剪枝基线绝对准确率提高高达 6.7%,在 AIME-25 上提高 3.3%,轨迹完成吞吐量提高 2 倍以上,相对于标准并行采样总 token 消耗减少高达 68.5%。
该论文提出了一种新颖的推理算法 Gambit,通过思想级束搜索有效解决测试时计算分配问题,在多个基准上显著提升性能并降低计算成本,对大型推理模型的效率优化具有重要价值。
Test-time compute scaling is a primary driver of performance in large reasoning models (LRMs), but extreme inefficiency bounds current approaches, shifting the critical question from how much compute to spend, to where to allocate it. We formalize test-time reasoning as a constrained compute allocation problem over partial trajectories. Under a fixed hardware budget, existing paradigms fail to actively allocate the compute to the most promising partial progress: traditional parallel sampling treats traces independently and induces severe memory bottlenecks, while subtractive pruning starves hardware and fails to actively and sufficiently shift the output distribution. To overcome this dichotomy, we introduce Gambit, an inference algorithm that executes thought-level beam search. By periodically pruning unpromising trajectories and immediately branching from high-quality prefixes, Gambit dynamically concentrates compute onto the most promising reasoning traces via a light-weight scorer probing hidden states while maintaining continuous high hardware utilization. Extensive evaluations across multiple models and benchmarks demonstrate that Gambit strictly dominates existing baselines. Under identical hardware constraints, our method yields up to a +6.7\% absolute accuracy gain on HMMT-24 and +3.3\% on AIME-25 over pruning baselines, delivers >2times higher throughput on trace completion, and reduces total token consumption by up to 68.5\% relative to standard parallel sampling.