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

Qinzhuo Wu, Wei Liu, Jian Luan, Bin Wang
9/23/2024
cs.CLcs.AI

No official code found. Best implementation: XiaoMi/toolplanner (18 stars, last commit 2024-12-03).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

XiaoMi/toolplannerCommunity100%

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

181Shell, PythonDec 3, 20241 years agoNOASSERTION

Similar Papers

Cite this paper

@article{wu2024toolplanner,
  title  = {ToolPlanner: A Tool Augmented LLM for Multi Granularity Instructions with Path Planning and Feedback},
  author = {Qinzhuo Wu and Wei Liu and Jian Luan and Bin Wang},
  year   = {2024},
  eprint = {2409.14826},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.14826v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.14826.svg)](https://codeofpaper.com/paper/2409.14826)

Discussion