arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.18149cs.CL
收藏

首次完成搜索:大型语言模型中的高效测试时扩展

First Finish Search: Efficient Test-Time Scaling in Large Language Models

Indian Institute of Technology Delhi(印度理工学院德里分校)

Aradhye Agarwal, Ayan Sengupta, Tanmoy Chakraborty

AI总结:

提出首次完成搜索(FFS),一种无需训练的并行解码策略,通过返回首个完成的样本提升推理效率,在多个模型和数据集上显著提高准确率,并理论分析了其有效性。

摘要:

测试时扩展(TTS)涉及在推理过程中动态分配计算资源,为提高大型语言模型的推理能力提供了一种有前景的方法。尽管现有的TTS方法效果良好,但它们通常依赖于较长的解码路径或需要生成大量样本,从而增加了令牌使用量和推理延迟。我们观察到一个令人惊讶的事实:对于推理任务,较短的轨迹比更长的轨迹更有可能正确。受此启发,我们引入了首次完成搜索(FFS),这是一种无需训练的并行解码策略,它启动$n$个独立样本,并在任何一个样本完成时立即返回结果。我们将FFS与简单解码、束搜索、多数投票和预算强制在四个推理模型(DeepSeek-R1、R1-Distill-Qwen-32B、QwQ-32B和Phi-4-Reasoning-Plus)以及四个数据集(AIME24、AIME25-I、AIME25-II和GPQA Diamond)上进行了评估。使用DeepSeek-R1,FFS在AIME数据集上达到了$82.23\%$的准确率,比DeepSeek-R1的独立准确率提高了$15\%$,几乎与OpenAI的o4-mini性能相当。我们的理论分析解释了为什么在最短轨迹处停止可能产生正确答案,并确定了早期停止可能次优的条件。FFS的简洁性和简单性表明,直接的TTS策略可以表现得非常出色,揭示了推理时简单方法的未开发潜力。

英文摘要:

Test-time scaling (TTS), which involves dynamic allocation of compute during inference, offers a promising way to improve reasoning in large language models. While existing TTS methods work well, they often rely on long decoding paths or require a large number of samples to be generated, increasing the token usage and inference latency. We observe the surprising fact that for reasoning tasks, shorter traces are much more likely to be correct than longer ones. Motivated by this, we introduce First Finish Search (FFS), a training-free parallel decoding strategy that launches $n$ independent samples and returns as soon as any one completes. We evaluate FFS alongside simple decoding, beam search, majority voting, and budget forcing on four reasoning models (DeepSeek-R1, R1-Distill-Qwen-32B, QwQ-32B and Phi-4-Reasoning-Plus) and across four datasets (AIME24, AIME25-I, AIME25-II and GPQA Diamond). With DeepSeek-R1, FFS achieves $82.23\%$ accuracy on the AIME datasets, a $15\%$ improvement over DeepSeek-R1's standalone accuracy, nearly matching OpenAI's o4-mini performance. Our theoretical analysis explains why stopping at the shortest trace is likely to yield a correct answer and identifies the conditions under which early stopping may be suboptimal. The elegance and simplicity of FFS demonstrate that straightforward TTS strategies can perform remarkably well, revealing the untapped potential of simple approaches at inference time.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑