arXiv:2608.28447cs.AI2026-08

用计算器工具+强化学习,让大模型数学推理更准。

Learning to Use Tools: Reinforcement Learning for Tool-Integrated Mathematical Reasoning

论文配图:Learning to Use Tools: Reinforcement Learning for Tool-Integrated Mathematical Reasoning
图 1 · 摘自论文原文
  • 教模型调用计算器并理解返回结果,提升推理能力。
  • 强化学习使准确率从35.8%升至66.0%,提升约30个百分点。
  • 无需中间奖励,仅靠最终答案反馈也能学好工具使用。

当前大型语言模型越来越依赖外部工具集成,尤其在需要可靠计算与验证的任务中。本文研究在计数任务(Countdown)中引入计算器工具调用以提升数学推理能力。首先分析推理失败原因,发现计算错误占错误响应的很大比例。随后构建监督微调数据集,教会模型有效的工具使用模式及对返回结果的解读方式。基于此工具化策略,采用RLOO、RLOO++、GRPO和DAPO等在线强化学习方法,使用可自动验证的最终答案奖励进行训练。为确保评估可靠性,构建了一个包含1,024道题且与训练数据无重叠的独立测试基准。结果表明,计算器工具集成显著提升SFT与RL基线表现,整体在pass@k上获得约10个百分点的增益。其中Tool-DAPO表现最佳,将pass@1从35.8%提升至66.0%。进一步分析显示,即使仅提供最终答案奖励,强化学习仍能促使模型更有效地使用工具。这些发现表明,工具集成可减少算术与验证错误,而强化学习则提高了正确推理路径的概率。

原文摘要 · Abstract (English)

Current large language models (LLMs) increasingly benefit from external tool integration, especially for tasks requiring reliable computation and verification. Motivated by this, we study calculator tool calling for improving mathematical reasoning on the Countdown task. We first analyze reasoning failures and find that calculation errors account for a substantial portion of incorrect responses. We then construct supervised fine-tuning datasets to teach the model useful tool-use patterns and how to interpret returned outputs. Building on this tool-formatted policy, we apply several on-policy reinforcement learning methods, including RLOO, RLOO++, GRPO, and DAPO, using automatically verifiable final-answer rewards. To enable a more reliable evaluation, we construct a fresh 1,024-problem held-out Countdown benchmark with no exact overlap with the training data. Our results show that calculator tool integration consistently improves both SFT and RL baselines, yielding roughly 10 percentage-point gains across pass@k. Among the RL methods, Tool-DAPO achieves the strongest performance, improving pass@1 from 35.8% for Tool-SFT to 66.0%. Further analysis shows that RL encourages more effective tool use even when only final-answer rewards are provided. These findings suggest that tool integration reduces arithmetic and verification errors, while RL increases the probability of correct reasoning traces.

数学推理工具调用强化学习

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。