arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2504.07052cs.LG
收藏

回溯还是不回溯:当序列搜索限制模型推理时

To Backtrack or Not to Backtrack: When Sequential Search Limits Model Reasoning

Harvard University(哈佛大学);Kempner Institute(凯普纳研究所);MSR(微软研究院)

Tian Qin, David Alvarez-Melis, Samy Jelassi, Eran Malach

AI总结:

该研究对比了序列搜索回溯与并行采样两种扩展大语言模型测试时计算的策略,发现回溯效果因任务而异,还明确了其性能下降的两个因素,并验证了RL微调对具备回溯能力模型的增益作用,挑战了回溯普遍提升推理的假设。

摘要:

大语言模型(LLMs)的最新进展显著提升了其推理能力,这尤其得益于涉及搜索和回溯的技术。回溯通过长思维链(CoT)生成实现序列化、线性化的探索,从而自然地扩展测试时计算量。然而,这并非扩展测试时计算量的唯一策略:搭配最佳N项选择的并行采样提供了一种可同时生成多样化解决方案的替代方案。尽管序列搜索的应用日益广泛,但它相较于并行采样的优势——尤其是在固定计算预算下——仍未得到充分理解。本文中,我们在两项具有挑战性的推理任务(CountDown和Sudoku)上系统比较了这两种方法。令人意外的是,我们发现序列搜索在CountDown任务上的表现不及并行采样,但在Sudoku任务上优于后者,这表明回溯并非普遍有益。我们确定了两个可能导致回溯降低性能的因素:(1)在固定搜索轨迹上训练会使模型陷入次优策略;(2)显式的CoT监督会抑制隐式(非言语化)推理。将分析扩展到强化学习(RL)后,我们表明具备回溯能力的模型能从RL微调中显著获益,而不具备回溯能力的模型收益有限且好坏参半。综上,这些发现挑战了回溯能普遍增强LLM推理的假设,反而揭示了任务结构、训练数据、模型规模与学习范式之间复杂的相互作用。

英文摘要:

Recent advancements in large language models (LLMs) have significantly improved their reasoning abilities, particularly through techniques involving search and backtracking. Backtracking naturally scales test-time compute by enabling sequential, linearized exploration via long chain-of-thought (CoT) generation. However, this is not the only strategy for scaling test time-compute: parallel sampling with best-of-N selection provides an alternative that generates diverse solutions simultaneously. Despite the growing adoption of sequential search, its advantages over parallel sampling-especially under a fixed compute budget-remain poorly understood. In this paper, we systematically compare these two approaches on two challenging reasoning tasks: CountDown and Sudoku. Surprisingly, we find that sequential search underperforms parallel sampling on CountDown but outperforms it on Sudoku, suggesting that backtracking is not universally beneficial. We identify two factors that can cause backtracking to degrade performance: (1) training on fixed search traces can lock models intro suboptimal strategies, and (2) explicit CoT supervision can discourage implicit (non verbalized) reasoning. Extending our analysis to reinforcement learning (RL), we show that models with backtracking capabilities benefit significantly from RL fine-tuning, while models without backtracking see limited, mixed gains. Together, these findings challenge the assumption that backtracking universally enhances LLM reasoning, instead revealing a complex interaction between task structure, training data, model scale, and learning paradigm.

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

↑