arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2505.07773cs.AI
收藏

智能体强化学习缩放定律:用于数学问题求解的自发代码执行智能体强化学习

Agent RL Scaling Law: Agent RL with Spontaneous Code Execution for Mathematical Problem Solving

Fudan University(复旦大学);Xiaohongshu(小红书);East China Normal University(华东师范大学);University of Chinese Academy of Sciences(中国科学院大学)

Xinji Mai, Haotian Xu, Zhong-Zhi Li, Xing W, Weinong Wang, Jian Hu, Yingying Zhang, Wenqiang Zhang

AI总结:

针对LLMs数学推理中精确计算的不足,提出ZeroTIR框架,通过结果奖励RL训练模型自发生成执行Python代码,发现训练步数与代码执行频率、准确率等指标正相关,在数学基准上显著优于无工具基线。

摘要:

大型语言模型(LLMs)在需要精确、可验证计算的数学推理任务中常面临困难。虽然基于结果奖励的强化学习(RL)能增强文本推理能力,但理解智能体如何自主学习利用代码执行等外部工具仍至关重要。我们研究了面向工具集成推理的基于结果奖励的强化学习——ZeroTIR,在无工具使用监督示例的情况下,训练基础LLMs自发生成并执行Python代码以解决数学问题。核心贡献在于证明随着RL训练推进,关键指标呈可预测缩放趋势:训练步数增加与自发代码执行频率、平均响应长度及最终任务准确率显著正相关,表明训练投入的计算量与有效工具增强推理策略的涌现存在量化关系。我们实现了包含解耦代码执行环境的稳健框架,并在标准RL算法和框架上验证发现。实验显示ZeroTIR在挑战性数学基准上显著优于无工具的ZeroRL基线。研究为智能体强化学习中自主工具使用的习得与缩放提供基础理解,为未来研究提供可复现基准。代码已在https://github.com/yyht/openrlhf_async_pipline发布。

英文摘要:

Large Language Models (LLMs) often struggle with mathematical reasoning tasks requiring precise, verifiable computation. While Reinforcement Learning (RL) from outcome-based rewards enhances text-based reasoning, understanding how agents autonomously learn to leverage external tools like code execution remains crucial. We investigate RL from outcome-based rewards for Tool-Integrated Reasoning, ZeroTIR, training base LLMs to spontaneously generate and execute Python code for mathematical problems without supervised tool-use examples. Our central contribution is we demonstrate that as RL training progresses, key metrics scale predictably. Specifically, we observe strong positive correlations where increased training steps lead to increases in the spontaneous code execution frequency, the average response length, and, critically, the final task accuracy. This suggests a quantifiable relationship between computational effort invested in training and the emergence of effective, tool-augmented reasoning strategies. We implement a robust framework featuring a decoupled code execution environment and validate our findings across standard RL algorithms and frameworks. Experiments show ZeroTIR significantly surpasses non-tool ZeroRL baselines on challenging math benchmarks. Our findings provide a foundational understanding of how autonomous tool use is acquired and scales within Agent RL, offering a reproducible benchmark for future studies. Code is released at \href{https://github.com/yyht/openrlhf_async_pipline}{https://github.com/yyht/openrlhf\_async\_pipline}.

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

↑