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

上下文搜索何时有用?基于反射驱动推理的采样复杂性理论

When Does In-Context Search Help? A Sampling-Complexity Theory of Reflection-Driven Reasoning

The Hebrew University(希伯来大学)

Yotam Wolf, Noam Wies, Amnon Shashua

AI总结:

研究上下文搜索何时有用,通过将其建模为对推理轨迹的近似推理分析采样复杂性,表明反思能定位早期错误时可指数级改进,收益稳健可学习,还在强化学习抽象下验证了理论预测。

摘要:

训练具有扩展推理能力的大型语言模型(LLMs)实现了上下文搜索,即模型迭代生成、批判和修正解决方案尝试。我们通过将其建模为对推理轨迹的近似推理,对上下文搜索进行理论分析,其中基础模型定义先验,自我反思为后验更新提供反馈,并研究由此产生的推理时间采样复杂性,即达到高成功概率所需的顺序尝试次数。我们表明,当反思可靠地定位早期错误时,上下文搜索可以比基础模型产生指数级改进,仅用多项式数量的顺序尝试就能解决零样本通过率指数级小的问题;而当此属性不成立时,基于过去尝试进行条件设定相对于并行采样没有渐近优势。我们进一步表明,这些收益是稳健且可学习的:近似后验更新就足够了,并且在搜索展开上进行交叉熵训练可以用多项式样本复杂性恢复所需行为。最后,我们表明在具有可验证奖励的强化学习的阶段式抽象下,最优策略扩展实现相同的后验重新加权规则。我们在实际大型推理模型上验证了该理论的关键定性预测。

英文摘要:

Training large language models (LLMs) with extended reasoning has enabled in-context search, in which models iteratively generate, critique, and revise solution attempts. We provide a theoretical analysis of in-context search by modeling it as approximate inference over reasoning traces, where the base model defines a prior and self-reflection provides feedback for posterior updates, and study the resulting inference-time sampling complexity - the number of sequential attempts needed to achieve high success probability. We show that when reflections reliably localize early mistakes, in-context search can yield exponential improvements over the base model, solving problems with exponentially small zero-shot pass rates using only a polynomial number of sequential attempts, whereas when this property fails, conditioning on past attempts offers no asymptotic benefit over parallel sampling. We further show that these gains are robust and learnable: approximate posterior updates suffice, and cross-entropy training on search rollouts recovers the required behavior with polynomial sample complexity. Finally, we show that under a stagewise abstraction of reinforcement learning with verifiable rewards, the optimal policy extension implements the same posterior reweighting rule. We validate key qualitative predictions of the theory on real large reasoning models.

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

↑