arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.06825cs.CL
收藏

自适应工具生成:以模型为工具与强化学习

Adaptive Tool Generation with Models as Tools and Reinforcement Learning

Chenpeng Wang(王晨鹏);Xiaojie Cheng(程晓杰);Chunye Wang(王春业);Linfeng Yang(杨林峰);Lei Zhang(张磊)

Chenpeng Wang, Xiaojie Cheng, Chunye Wang, Linfeng Yang, Lei Zhang

AI总结:

提出MTR仿真优先训练框架,通过多智能体生成工具和模拟观察,结合SFT与GRPO强化学习,在四个多跳问答基准上达到与实时API系统相当的精确匹配性能。

摘要:

工具增强的语言模型已展现出强大的能力,但其对实时API访问的依赖在训练和部署过程中带来了可扩展性和可靠性方面的挑战。我们提出MTR,一种面向工具增强推理的仿真优先训练框架。MTR不依赖实时API,而是从带有模式验证的模拟观察的完整ReAct轨迹中学习。我们的方法通过多智能体架构运作,其中ToolMaker生成任务特定的、兼容OpenAI的工具接口,AutoAgent产生结构化的思考-行动-观察序列,ToolActor模拟逼真的响应。训练分两个阶段进行:第一阶段监督微调(SFT)从完整推理序列中教授“轨迹语法”;第二阶段组相对策略优化(GRPO)通过复合轨迹奖励优化策略,该奖励平衡答案正确性和内部一致性。在四个多跳问答基准(HotpotQA、MuSiQue、2WikiMultiHopQA、Bamboogle)上,MTR取得了与实时API系统相当的精确匹配(EM)分数,并在推理密集型任务上表现出色,这表明有效的工具推理可以从结构化轨迹中学习,而无需实时交互。

英文摘要:

Tool-augmented language models have demonstrated strong capabilities, but their reliance on live API access creates scalability and reliability challenges during training and deployment. We propose MTR, a simulation-first training framework for tool-augmented reasoning. Instead of relying on live APIs, MTR learns from complete ReAct traces with schema-validated, simulated observations. Our approach operates through a multi-agent architecture where a ToolMaker generates task-specific, OpenAI-compatible tool interfaces, an AutoAgent produces structured think-act-observe sequences, and a ToolActor simulates realistic responses. Training proceeds in two stages: Stage-1 Supervised Fine-Tuning (SFT) teaches 'trace grammar' from complete reasoning sequences; Stage-2 Group Relative Policy Optimization (GRPO) optimizes strategy with a composite trace reward that balances answer correctness and internal consistency. Across four multi-hop QA benchmarks (HotpotQA, MuSiQue, 2WikiMultiHopQA, Bamboogle), MTR attains competitive Exact Match (EM) scores to live-API systems and excels on reasoning-intensive tasks, suggesting that effective tool reasoning can be learned from structured traces without live interactions.

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

↑