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

Tool-R1:面向智能体工具使用的样本高效强化学习

Tool-R1: Sample-Efficient Reinforcement Learning for Agentic Tool Use

Harbin Institute of Technology(哈尔滨工业大学);Huawei Noah’s Ark Lab(华为诺亚实验室)

Yabo Zhang, Yihan Zeng, Qingyun Li, Zhen Hu, Kavin Han, Wangmeng Zuo

AI总结:

本文提出强化学习框架Tool-R1,通过生成可执行Python代码实现LLMs的多步工具使用,并采用动态样本队列提升训练效率,在GAIA基准上较基线提升约10%。

摘要:

大型语言模型(LLMs)在语言理解和推理方面展现出了强大的能力,但在处理需要最新知识、精确操作或专门工具使用的现实世界任务时仍存在局限。为此,我们提出了Tool-R1,这是一个强化学习框架,通过生成可执行的Python代码使LLMs能够进行通用、组合且多步的工具使用。Tool-R1支持集成用户自定义工具和标准库,并通过跨步骤变量共享来构建连贯的工作流。基于结果的奖励函数结合了基于LLM的答案判断和代码执行成功情况,以此指导策略优化。为提高训练效率,我们维护了一个动态样本队列来缓存和重用高质量轨迹,从而减少了高成本在线采样的开销。在GAIA基准上的实验表明,Tool-R1显著提升了准确性和鲁棒性,相比强基线实现了约10%的性能提升,在复杂的多步任务上提升更为明显。这些结果突显了Tool-R1在实际应用中实现可靠且高效的工具增强推理的潜力。我们的代码将在 https://github.com/YBYBZhang/Tool-R1 提供。

英文摘要:

Large language models (LLMs) have demonstrated strong capabilities in language understanding and reasoning, yet they remain limited when tackling real-world tasks that require up-to-date knowledge, precise operations, or specialized tool use. To address this, we propose Tool-R1, a reinforcement learning framework that enables LLMs to perform general, compositional, and multi-step tool use by generating executable Python code. Tool-R1 supports integration of user-defined tools and standard libraries, with variable sharing across steps to construct coherent workflows. An outcome-based reward function, combining LLM-based answer judgment and code execution success, guides policy optimization. To improve training efficiency, we maintain a dynamic sample queue to cache and reuse high-quality trajectories, reducing the overhead of costly online sampling. Experiments on the GAIA benchmark show that Tool-R1 substantially improves both accuracy and robustness, achieving about 10\% gain over strong baselines, with larger improvements on complex multi-step tasks. These results highlight the potential of Tool-R1 for enabling reliable and efficient tool-augmented reasoning in real-world applications. Our code will be available at https://github.com/YBYBZhang/Tool-R1.

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

↑