[Paper Review] MetaTool Benchmark for Large Language Models: Deciding Whether to Use Tools and Which to Use
This paper introduces MetaTool, a benchmark to evaluate large language models' (LLMs) tool usage awareness and selection capabilities. It proposes a dataset, ToolE, with diverse user queries across single- and multi-tool scenarios, and defines four subtasks: similar choices, specific scenarios, reliability issues, and multi-tool selection. Experiments reveal that most LLMs struggle with tool selection, exposing significant gaps in their ability to act as intelligent agents.
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.
Motivation & Objective
- To address the lack of benchmarks evaluating LLMs' ability to decide whether and which tools to use, beyond just tool invocation.
- To identify critical gaps in LLMs' tool usage awareness and selection in real-world, complex scenarios.
- To provide a comprehensive evaluation framework that captures nuanced decision-making in tool utilization.
- To guide tool developers in optimizing tool descriptions for better downstream LLM compatibility.
Proposed method
- Design a new benchmark, MetaTool, focused on two core capabilities: tool usage awareness (whether to use a tool) and tool selection (which tool to use).
- Create the ToolE dataset containing user queries that trigger tool usage, covering single-tool and multi-tool scenarios with diverse intents.
- Define four subtasks: tool selection with similar choices, selection in specific scenarios, handling tools with reliability issues, and multi-tool coordination.
- Evaluate eight popular LLMs (including GPT-4, ChatGPT, Vicuna, Llama2) on the benchmark using a standardized evaluation protocol.
- Conduct error analysis on failure cases to identify patterns in LLMs’ misjudgments about tool necessity and self-capability.
- Provide recommendations for tool developers based on findings, particularly on rewriting tool descriptions to align with downstream LLMs.
Experimental results
Research questions
- RQ1Can LLMs correctly decide when to use a tool versus relying on their internal knowledge?
- RQ2How well do LLMs perform in selecting the most appropriate tool among multiple plausible options?
- RQ3How do LLMs handle tool selection in ambiguous or high-reliability-risk scenarios?
- RQ4What are the failure patterns in multi-tool coordination, and how do they differ across models?
- RQ5To what extent do LLMs overestimate or underestimate their own capabilities in tool-related decisions?
Key findings
- Most LLMs struggle with tool usage awareness, often incorrectly deciding not to use tools when they are necessary.
- A significant number of LLMs overestimate their internal capabilities, refusing to use tools for tasks like mathematical calculations or internet searches.
- LLMs exhibit inconsistent behavior—some claim they can perform calculations internally, while others insist on external tools, even for simple operations.
- Error analysis reveals that LLMs frequently rely on tools for tasks they could handle internally, indicating a lack of self-awareness about their own capabilities.
- The benchmark exposes a clear gap between current LLMs and the behavior expected of true intelligent agents in autonomous, multi-step tasks.
- Tool developers are advised to tailor tool descriptions to the target LLM to improve downstream tool selection performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.