arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2508.19201cs.LGcs.AIstat.ML
收藏

理解工具集成推理

Understanding Tool-Integrated Reasoning

Tencent(腾讯);Tsinghua University(清华大学)

Heng Lin, Zhongwen Xu

AI总结:

本研究首次形式化证明工具集成推理扩展了大语言模型能力,并提出优势塑造策略优化算法,在数学基准上显著提升性能。

摘要:

我们研究为何工具集成推理(TIR)能使大型语言模型(LLM)更具能力。虽然集成如Python代码解释器等工具的LLM展现出巨大潜力,但缺乏一个原则性的理论来解释这种范式的有效性。本工作首次提供了形式化证明,表明TIR从根本上扩展了LLM的能力。我们证明,工具使得模型的实证和可行支持集得到严格扩展,通过解锁纯文本模型无法实现或冗长到难以处理的解题策略,突破了纯文本模型的能力上限。为了在不损害训练稳定性和性能的前提下引导模型行为,我们还引入了优势塑造策略优化(ASPO),这是一种直接修改优势函数以引导策略行为的新算法。我们在具有挑战性的数学基准上进行了全面实验,利用Python解释器作为外部工具。结果表明,在pass@k指标上,TIR模型显著优于其纯文本对应模型。关键在于,这一优势不仅限于计算密集型问题,还扩展到需要大量抽象洞察的问题。我们进一步识别了涌现的认知模式,这些模式展示了模型如何学会使用工具进行思考。最后,我们报告了ASPO带来的改进工具使用行为,包括早期代码调用和更多交互轮次。总体而言,我们的工作为TIR的成功提供了首个原则性解释,将焦点从工具有效这一事实转向它们为何以及如何实现更强大的推理。

英文摘要:

We study why Tool-Integrated Reasoning (TIR) makes Large Language Models (LLMs) more capable. While LLMs integrated with tools like Python code interpreters show great promise, a principled theory explaining why this paradigm is effective has been missing. This work provides the first formal proof that TIR fundamentally expands an LLM's capabilities. We demonstrate that tools enable a strict expansion of the model's empirical and feasible support, breaking the capability ceiling of pure-text models by unlocking problem-solving strategies that are otherwise impossible or intractably verbose. To guide model behavior without compromising training stability and performance, we also introduce Advantage Shaping Policy Optimization (ASPO), a novel algorithm that directly modifies the advantage function to guide the policy behavior. We conduct comprehensive experiments on challenging mathematical benchmarks, leveraging a Python interpreter as the external tool. Our results show that the TIR model decisively outperforms its pure-text counterpart on the pass@k metric. Crucially, this advantage is not confined to computationally-intensive problems but extends to those requiring significant abstract insight. We further identify the emergent cognitive patterns that illustrate how models learn to think with tools. Finally, we report improved tool usage behavior with early code invocation and much more interactive turns with ASPO. Overall, our work provides the first principled explanation for TIR's success, shifting the focus from the mere fact that tools work to why and how they enable more powerful reasoning.

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

↑