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

ToolPlanner:一种具备路径规划与反馈的、面向多粒度指令的工具增强大语言模型

ToolPlanner: A Tool Augmented LLM for Multi Granularity Instructions with Path Planning and Feedback

XiaoMi AI Lab(小米AI实验室)

Qinzhuo Wu, Wei Liu, Jian Luan, Bin Wang

AI总结:

针对工具增强LLM训练指令与真实场景脱节、交互过程难遵循指令的问题,该研究构建MGToolBench多粒度指令数据集,提出带路径规划与双反馈的两阶段强化学习框架ToolPlanner,显著提升了多项性能指标。

摘要:

近年来,工具增强型大语言模型(LLM)受到越来越多的关注。给定一条指令,工具增强型LLM可以多轮与各类外部工具交互,最终给出答案。但以往的LLM是在包含API名称或参数的、过于详细的指令上训练的,而真实用户不会明确提及这些API细节,这就导致训练后的LLM与真实场景之间存在差距。此外,大多数研究都忽略了交互过程是否遵循指令的问题。为解决这些问题,我们构建了名为MGToolBench的训练数据集,其中包含陈述级与类别级指令,能更好地反映真实场景。同时我们提出ToolPlanner——一个两阶段强化学习框架,它利用路径规划和两种反馈机制来增强LLM的任务完成能力与指令遵循能力。实验结果表明,与当前最优(SOTA)模型相比,ToolPlanner的匹配率、通过率和胜率分别显著提升了26.8%、20.2%和5.6%。人工评估验证了多粒度指令能更好地契合用户的使用习惯。我们的数据和代码将在论文录用后公开。

英文摘要:

Recently, tool-augmented LLMs have gained increasing attention. Given an instruction, tool-augmented LLMs can interact with various external tools in multiple rounds and provide a final answer. However, previous LLMs were trained on overly detailed instructions, which included API names or parameters, while real users would not explicitly mention these API details. This leads to a gap between trained LLMs and real-world scenarios. In addition, most works ignore whether the interaction process follows the instruction. To address these issues, we constructed a training dataset called MGToolBench, which contains statement and category-level instructions to better reflect real-world scenarios. In addition, we propose ToolPlanner, a two-stage reinforcement learning framework that utilizes path planning and two feedback mechanisms to enhance the LLM's task completion and instruction-following capabilities. Experimental results show that ToolPlanner significantly improves the Match Rate, Pass Rate and Win Rate by 26.8%, 20.2%, and 5.6% compared to the SOTA model. Human evaluation verifies that the multi-granularity instructions can better align with users' usage habits. Our data and code will be released upon acceptance.

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

↑