arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.03128cs.SEcs.CL
收藏

面向大型语言模型的 MetaTool 基准:决定是否使用工具以及使用哪些工具

MetaTool Benchmark for Large Language Models: Deciding Whether to Use Tools and Which to Use

Lehigh University(利哈伊大学);Huazhong University of Science Technology(华中科技大学);University of Cambridge(剑桥大学);Duke University(杜克大学)

Yue Huang, Jiawen Shi, Yuan Li, Chenrui Fan, Siyuan Wu, Qihui Zhang, Yixin Liu, Pan Zhou, Yao Wan, Neil Zhenqiang Gong, Lichao Sun

AI总结:

该研究提出 MetaTool 基准与 ToolE 数据集,通过工具使用意识及四类工具选择任务评估 8 个 LLM,发现其工具决策能力仍有明显不足。

摘要:

大型语言模型(LLM)因其令人印象深刻的自然语言处理(NLP)能力而获得了广泛关注。近来,许多研究聚焦于 LLM 的工具使用能力。这些研究主要考察 LLM 如何与给定的特定工具有效协作。然而,在 LLM 充当智能体的场景中(如 AutoGPT 和 MetaGPT 等应用所示),LLM 被期望参与复杂的决策过程,包括决定是否使用工具,以及从一组可用工具中选择最合适的一个或多个工具来满足用户请求。因此,本文提出 MetaTool,这是一个旨在评估 LLM 是否具备工具使用意识并能否正确选择工具的基准。具体而言,我们在该基准中构建了一个名为 ToolE 的数据集。该数据集包含以提示形式出现的各类用户查询,用于触发 LLM 使用工具,涵盖单工具和多工具场景。随后,我们设置了工具使用意识和工具选择两类任务。在工具选择中,我们从不同角度定义了四个子任务,包括含相似选项的工具选择、特定场景下的工具选择、可能存在可靠性问题的工具选择,以及多工具选择。我们对 8 个流行的 LLM 进行了实验,发现其中大多数仍难以有效选择工具,这凸显了现有 LLM 与真正智能体之间的差距。不过,通过错误分析,我们发现仍有显著的改进空间。最后,我们总结了面向工具开发者的见解——我们强烈建议工具开发者根据工具将要应用的下游 LLM,选择合适的重写模型来生成新的工具描述。我们的代码位于 https://github.com/HowieHwong/MetaTool。

英文摘要:

Large language models (LLMs) have garnered significant attention due to their impressive natural language processing (NLP) capabilities. Recently, many studies have focused on the tool utilization ability of LLMs. They primarily investigated how LLMs effectively collaborate with given specific tools. However, in scenarios where LLMs serve as intelligent agents, as seen in applications like AutoGPT and MetaGPT, LLMs are expected to engage in intricate decision-making processes that involve deciding whether to employ a tool and selecting the most suitable tool(s) from a collection of available tools to fulfill user requests. Therefore, in this paper, we introduce MetaTool, a benchmark designed to evaluate whether LLMs have tool usage awareness and can correctly choose tools. Specifically, we create a dataset called ToolE within the benchmark. This dataset contains various types of user queries in the form of prompts that trigger LLMs to use tools, including both single-tool and multi-tool scenarios. Subsequently, we set the tasks for both tool usage awareness and tool selection. We define four subtasks from different perspectives in tool selection, including tool selection with similar choices, tool selection in specific scenarios, tool selection with possible reliability issues, and multi-tool selection. We conduct experiments involving eight popular LLMs and find that the majority of them still struggle to effectively select tools, highlighting the existing gaps between LLMs and genuine intelligent agents. However, through the error analysis, we found there is still significant room for improvement. Finally, we conclude with insights for tool developers -- we strongly recommend that tool developers choose an appropriate rewrite model for generating new descriptions based on the downstream LLM the tool will apply to. Our code is in https://github.com/HowieHwong/MetaTool.

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

↑