arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.03807cs.AIcs.CLcs.RO
收藏

Tool-Planner:跨多个工具的任务规划与聚类

Tool-Planner: Task Planning with Clusters across Multiple Tools

Zhejiang University(浙江大学);Southeast University(东南大学);Massachusetts Institute of Technology(麻省理工学院)

Yanming Liu, Xinyue Peng, Jiannan Cao, Yuwei Zhang, Xuhong Zhang, Sheng Cheng, Xun Wang, Jianwei Yin, Tianyu Du

AI总结:

本文提出Tool-Planner框架,通过将功能相同的API工具聚类为工具包并支持跨工具包规划,解决了LLM工具学习中冗余纠错和规划困难的问题,在多个数据集上取得高通过率和胜率。

摘要:

大型语言模型(LLMs)已展现出卓越的推理能力,使其能够解决各种复杂问题。近期,这一能力已被应用于工具学习范式。工具学习涉及提供工具使用示例及其对应功能,使LLMs能够制定计划并展示调用和执行每个工具的过程。LLMs可以处理它们无法独立完成的任务,从而增强其在不同任务中的潜力。然而,这种方法面临两个关键挑战。首先,冗余的错误纠正导致规划不稳定和执行时间过长。此外,在多个工具中设计正确的计划也是工具学习中的一个挑战。为解决这些问题,我们提出了Tool-Planner,一个基于工具包的任务处理框架。Tool-Planner根据具有相同功能的API函数将工具分组为一个工具包,并允许LLMs在各个工具包之间实施规划。当工具发生错误时,语言模型可以基于工具包重新选择和调整工具。实验表明,我们的方法在不同数据集上表现出较高的通过率和胜率,并优化了GPT-4和Claude 3等模型中工具学习的规划方案,展示了我们方法的潜力。我们的代码已在 https://github.com/OceannTwT/Tool-Planner 公开。

英文摘要:

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

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

↑