Tool-Planner: Task Planning with Clusters across Multiple Tools

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Liu, Yanming, Peng, Xinyue, Cao, Jiannan, Zhang, Yuwei, Zhang, Xuhong, Cheng, Sheng, Wang, Xun, Yin, Jianwei, Du, Tianyu
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866911105876492288
author Liu, Yanming
Peng, Xinyue
Cao, Jiannan
Zhang, Yuwei
Zhang, Xuhong
Cheng, Sheng
Wang, Xun
Yin, Jianwei
Du, Tianyu
author_facet Liu, Yanming
Peng, Xinyue
Cao, Jiannan
Zhang, Yuwei
Zhang, Xuhong
Cheng, Sheng
Wang, Xun
Yin, Jianwei
Du, Tianyu
contents Large language models (LLMs) have demonstrated exceptional reasoning capabilities, enabling them to solve various complex problems. Recently, this ability has been applied to the paradigm of tool learning. Tool learning involves providing examples of tool usage and their corresponding functions, allowing LLMs to formulate plans and demonstrate the process of invoking and executing each tool. LLMs can address tasks that they cannot complete independently, thereby enhancing their potential across different tasks. However, this approach faces two key challenges. First, redundant error correction leads to unstable planning and long execution time. Additionally, designing a correct plan among multiple tools is also a challenge in tool learning. To address these issues, we propose Tool-Planner, a task-processing framework based on toolkits. Tool-Planner groups tools based on the API functions with the same function into a toolkit and allows LLMs to implement planning across the various toolkits. When a tool error occurs, the language model can reselect and adjust tools based on the toolkit. Experiments show that our approach demonstrates a high pass and win rate across different datasets and optimizes the planning scheme for tool learning in models such as GPT-4 and Claude 3, showcasing the potential of our method. Our code is public at https://github.com/OceannTwT/Tool-Planner
format Preprint
id arxiv_https___arxiv_org_abs_2406_03807
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Tool-Planner: Task Planning with Clusters across Multiple Tools
Liu, Yanming
Peng, Xinyue
Cao, Jiannan
Zhang, Yuwei
Zhang, Xuhong
Cheng, Sheng
Wang, Xun
Yin, Jianwei
Du, Tianyu
Artificial Intelligence
Computation and Language
Robotics
Large language models (LLMs) have demonstrated exceptional reasoning capabilities, enabling them to solve various complex problems. Recently, this ability has been applied to the paradigm of tool learning. Tool learning involves providing examples of tool usage and their corresponding functions, allowing LLMs to formulate plans and demonstrate the process of invoking and executing each tool. LLMs can address tasks that they cannot complete independently, thereby enhancing their potential across different tasks. However, this approach faces two key challenges. First, redundant error correction leads to unstable planning and long execution time. Additionally, designing a correct plan among multiple tools is also a challenge in tool learning. To address these issues, we propose Tool-Planner, a task-processing framework based on toolkits. Tool-Planner groups tools based on the API functions with the same function into a toolkit and allows LLMs to implement planning across the various toolkits. When a tool error occurs, the language model can reselect and adjust tools based on the toolkit. Experiments show that our approach demonstrates a high pass and win rate across different datasets and optimizes the planning scheme for tool learning in models such as GPT-4 and Claude 3, showcasing the potential of our method. Our code is public at https://github.com/OceannTwT/Tool-Planner
title Tool-Planner: Task Planning with Clusters across Multiple Tools
topic Artificial Intelligence
Computation and Language
Robotics
url https://arxiv.org/abs/2406.03807