Abstract
Existing evaluations of tool learning primarily focus on validating the alignment of selected tools for large language models (LLMs) with expected outcomes. However, these approaches rely on a limited set of scenarios where answers can be pre-determined. Furthermore, a sole emphasis on outcomes disregards the complex capabilities required for LLMs to effectively use tools. To tackle this issue, we propose ToolEyes, a fine-grained system tailored for the evaluation of the LLMs’ tool learning capabilities in authentic scenarios. The system meticulously examines seven real-world scenarios, analyzing five dimensions crucial to LLMs in tool learning: format alignment, intent comprehension, behavior planning, tool selection, and answer organization. Additionally, ToolEyes incorporates a tool library boasting approximately 600 tools, serving as an intermediary between LLMs and the physical world. Evaluations involving ten LLMs across three categories reveal a preference for specific scenarios and limited cognitive abilities in tool learning. Intriguingly, expanding the model size even exacerbates the hindrance to tool learning. The code and data are available at https://github.com/Junjie-Ye/ToolEyes.
Introduction
As Large Language Models (LLMs) transition from conversational chatbots to autonomous agents capable of interacting with the physical world via APIs, the need for robust evaluation frameworks becomes paramount. Traditional benchmarks often suffer from "Outcome Bias," focusing solely on whether the final answer matches a static ground truth. This approach fails to capture the multi-step reasoning and dynamic nature of real-world tool use, where API outputs like stock prices or weather data are constantly changing.
ToolEyes addresses these limitations by peering into the "black box" of LLM tool use. It shifts the focus from final outcomes to the underlying cognitive processes, evaluating how models understand intent, plan actions, and format outputs to interact with external tools.
The ToolEyes Framework
The ToolEyes system evaluates LLMs across five critical dimensions:
- Format Alignment: Adherence to strict output formats (e.g., JSON) required for tool triggering.
- Intent Comprehension: Understanding user needs and adapting to new information.
- Behavioral Planning: Logical sequencing of actions and state summarization.
- Tool Selection: Choosing the correct tool and providing accurate parameters.
- Answer Organization: Synthesizing tool outputs into coherent user responses.
The framework utilizes a tool library of 568 real-world APIs across seven scenarios, including Financial Transactions (FT), Information Retrieval (IR), and Data Understanding (DU). Evaluation is performed using GPT-4 as an automated judge, which showed over 83% agreement with human experts.
Experimental Results and Key Insights
Evaluations of ten LLMs revealed several critical insights into the current state of tool learning:
The Size Paradox and the Barrel Effect
A surprising finding was that increasing model size within a family (e.g., LLaMA-2-7B to 70B) can actually degrade tool-use performance. Larger models, often more heavily fine-tuned for human-like conversation, tend to be "too chatty." Their tendency to include polite filler or redundant sentences often violates the strict formatting required for API calls, a phenomenon the authors call the "Size Paradox." Furthermore, tool use exhibits a "Barrel Effect," where a model's overall performance is limited by its weakest dimension—often Format Alignment or Behavioral Planning.
The Planning Bottleneck
Behavioral planning remains the most significant hurdle. Even GPT-4, the top-performing model with an overall score of 70.31%, achieved only ~35% proficiency in this dimension. Models frequently struggle to summarize intermediate steps or plan the next logical action in a multi-turn interaction.
Model Performance Comparison
While GPT-4 and GPT-3.5-turbo lead the field, tool-oriented models like ToolLLaMA-2-7B-v2 punch significantly above their weight, outperforming much larger general-purpose models. Conversely, LLaMA-2-70B struggled immensely, scoring only 5.29% due to persistent failures in format alignment.
Conclusion
ToolEyes provides a comprehensive and fine-grained lens through which to view LLM tool-learning capabilities. By identifying specific bottlenecks like behavioral planning and the counter-intuitive effects of model scaling, this work paves the way for developing more reliable and effective LLM-based agents. Future research will focus on reducing evaluation costs and addressing the "hallucination" problem in tool and parameter selection.
Summary updated