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

工具增强的策略优化:通过强化学习协同推理与自适应工具使用

Tool-Augmented Policy Optimization: Synergizing Reasoning and Adaptive Tool Use with Reinforcement Learning

Wenxun Wu, Yuanyang Li, Guhan Chen, Linyue Wang, Hongyang Chen

AI总结:

TAPO通过强化学习整合多跳推理与自适应工具调用,提升模型在知识密集型和计算密集型任务中的性能。

摘要:

近年来,大语言模型(LLMs)的进步推动了测试时扩展,其中模型在生成最终答案前会生成额外的推理标记。这些方法在涉及数学推理的基准测试中展示了显著的性能提升。然而,仅依赖直接推理的语言模型仍然在需要最新知识或计算工具(如计算器和代码解释器)的复杂算术操作任务上遇到困难。为克服这些限制,我们提出了工具增强的策略优化(TAPO),一种新颖的强化学习框架,系统地整合了多跳推理与自适应工具调用能力。我们的方法采用动态采样策略优化(DAPO)的修改版本,这是一种最近发展的RL范式,我们将其专门适应于工具调用场景,使模型能够动态地将复杂的推理与按需的工具使用(包括搜索API和Python解释器)交织在一起。为了支持这项研究,我们引入了两个新数据集:TAPO-easy-60K和TAPO-hard-18K,专门设计用于训练和评估基于事实的推理和数学计算能力。我们在Qwen2.5-3B和Qwen2.5-7B模型上的实验表明,我们的方法有效,这两种模型在需要外部知识和数学计算的任务中,与参数相当的方法相比实现了最先进的性能。值得注意的是,TAPO在工具使用效率上优于基线方法,同时防止了由奖励黑客引起的过度调用。这些结果突显了将先进的推理与工具使用相结合以增强知识密集型和计算密集型任务中模型性能的显著潜力。

英文摘要:

Recent advances in large language models (LLMs) have popularized test-time scaling, where models generate additional reasoning tokens before producing final answers. These approaches have demonstrated significant performance improvements on benchmarks involving mathematical reasoning. However, language models relying solely on direct inference still struggle with tasks demanding up-to-date knowledge or computational tools such as calculators and code interpreters for complex arithmetic operations. To overcome these limitations, we propose Tool-Augmented Policy Optimization (TAPO), a novel reinforcement learning framework that systematically integrates multi-hop reasoning with adaptive tool-calling capabilities. Our approach employs a modified version of Dynamic Sampling Policy Optimization (DAPO), a recently developed RL paradigm, which we adapt specifically for tool invocation scenarios, enabling models to dynamically interleave complex reasoning with on-demand tool usage (including search APIs and Python interpreters). To support this research, we introduce two new datasets: TAPO-easy-60K and TAPO-hard-18K, specifically designed to train and evaluate both fact-based reasoning and mathematical calculation capabilities. Our experiments on Qwen2.5-3B and Qwen2.5-7B models demonstrate the effectiveness of our approach, with both models achieving state-of-the-art performance on tasks requiring external knowledge and mathematical computation among methods with comparable parameters. Notably, TAPO achieves more efficient tool utilization than baseline methods while preventing excessive calls caused by reward hacking. These results highlight the significant potential of combining advanced reasoning with tool usage to enhance model performance in knowledge-intensive and computationally demanding tasks.

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

↑