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

轨迹引导:修复与奖励工具使用轨迹以实现工具集成推理

Guided by Trajectories: Repairing and Rewarding Tool-Use Trajectories for Tool-Integrated Reasoning

School of Computer Science and Engineering, Southeast University, Nanjing, China(东南大学计算机科学与工程学院);Key Lab. of Computer Network and Information Integration (Southeast University), MOE, China(计算机网络与信息集成重点实验室(东南大学));State Key Laboratory of Cognitive Intelligence, University of Science and Technology of China, Hefei, China(认知智能国家重点实验室(中国科学技术大学))

Siyu Gong, Linan Yue, Weibo Gao, Fangzhou Yao, Shimin Di, Lei Feng, Min-Ling Zhang

AI总结:

AutoTraj通过自动修复和奖励工具使用轨迹,提升大型语言模型在工具集成推理中的性能。

摘要:

工具集成推理(TIR)使大型语言模型(LLMs)能够通过与外部工具交互来解决复杂任务,但现有方法依赖于由评分函数选择的高质量合成轨迹和基于稀疏结果的奖励,为学习TIR提供了有限且偏见的监督。为了解决这些挑战,本文提出AutoTraj,一个两阶段框架,通过修复和奖励工具使用轨迹自动学习TIR。具体来说,在监督微调(SFT)阶段,AutoTraj为每个查询生成多个候选工具使用轨迹,并在多个维度上评估它们。高质量轨迹被直接保留,而低质量轨迹则通过LLM(即LLM作为修复器)进行修复。修复后的高质量轨迹形成一个合成SFT数据集,而每个修复轨迹与其原始低质量对应物构成用于轨迹偏好建模的数据集。在强化学习(RL)阶段,基于偏好数据集,我们训练一个轨迹级奖励模型来评估推理路径的质量,并将其与结果和格式奖励相结合,从而明确引导优化向可靠的TIR行为发展。在真实世界基准测试中的实验展示了AutoTraj在TIR中的有效性。

英文摘要:

Tool-Integrated Reasoning (TIR) enables large language models (LLMs) to solve complex tasks by interacting with external tools, yet existing approaches depend on high-quality synthesized trajectories selected by scoring functions and sparse outcome-based rewards, providing limited and biased supervision for learning TIR. To address these challenges, in this paper, we propose AutoTraj, a two-stage framework that automatically learns TIR by repairing and rewarding tool-use trajectories. Specifically, in the supervised fine-tuning (SFT) stage, AutoTraj generates multiple candidate tool-use trajectories for each query and evaluates them along multiple dimensions. High-quality trajectories are directly retained, while low-quality ones are repaired using a LLM (i.e., LLM-as-Repairer). The resulting repaired and high-quality trajectories form a synthetic SFT dataset, while each repaired trajectory paired with its original low-quality counterpart constitutes a dataset for trajectory preference modeling. In the reinforcement learning (RL) stage, based on the preference dataset, we train a trajectory-level reward model to assess the quality of reasoning paths and combine it with outcome and format rewards, thereby explicitly guiding the optimization toward reliable TIR behaviors. Experiments on real-world benchmarks demonstrate the effectiveness of AutoTraj in TIR.

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

↑