Introduction
As Large Language Models (LLMs) evolve from passive text generators to active agents, the ability to interact with external tools—such as calculators, web scrapers, and database APIs—has become a critical capability. However, real-world problem-solving often requires more than a single tool call. It demands multi-hop tool use, where the output of one tool serves as the necessary input for the next.
Despite its importance, evaluating this capability is notoriously difficult. Current benchmarks often rely on a "tool-driven" approach, where researchers collect disparate APIs and prompt LLMs to generate queries for them. This often results in weak inter-tool dependencies, a lack of locally executable environments for feedback, and a lack of verifiable ground truth. To address these gaps, we introduce ToolHop, a benchmark designed to rigorously evaluate LLMs on complex, interdependent tool-use tasks.
The ToolHop Framework: Query-Driven Construction
The core innovation of ToolHop is its query-driven data construction scheme. Instead of starting with a library of tools, the benchmark begins with complex multi-hop questions and builds a custom, executable tool environment around them. This process follows a three-stage pipeline:
- Tool Creation: Complex queries are decomposed into atomic subqueries. For each subquery, a preliminary tool document is drafted to provide the necessary information.
- Document Refinement: To mirror real-world API complexity, these basic descriptions are upgraded. Simple string parameters are replaced with structured data types (e.g., objects, arrays, booleans), and advanced features like result filtering are integrated.
- Code Generation: The refined documents are converted into locally executable Python functions. These functions include robust exception handling, providing models with realistic, detailed error messages (tracebacks) when tool calls are malformed.
The resulting dataset comprises 995 multi-hop queries and 3,912 executable tools across 47 distinct domains, providing a diverse and challenging environment for testing.
Evaluating State-of-the-Art Models
The authors evaluated 14 prominent LLMs, including the GPT-4, Claude 3.5, Qwen2.5, LLaMA3.1, and Gemini families. The results reveal a significant performance gap in multi-hop reasoning across the board.
Key Findings and Model Behaviors
The evaluation uncovered several distinct failure modes and behavioral patterns across different model architectures:
- The Parallelism Trap: Models like the Qwen2.5 family are optimized for parallel tool calling to reduce latency. In multi-hop scenarios, this optimization becomes a liability. The models frequently attempt to call a second tool before receiving the output of the first, leading to "parameter hallucination" where the model guesses the required input.
- The Necessity of Detailed Feedback: The GPT family shows a remarkable ability to self-correct, but this is highly dependent on the quality of error messages. When detailed Python tracebacks were replaced with generic "Error" strings, GPT-4o’s success rate dropped by over 20%, highlighting the importance of informative environment feedback.
- Reasoning vs. Execution: Claude 3.5 models demonstrate superior Chain-of-Thought (CoT) reasoning, often arriving at correct answers through internal knowledge. However, when forced to use tools, they occasionally struggle with the mechanical syntax of the tool invocation itself.
- Architectural Bottlenecks: LLaMA3.1-Instruct-8B faced significant hurdles, with over 40% of its attempts failing due to tool documentation misunderstandings, such as hallucinating parameters or missing required fields. Gemini 1.5 struggled specifically with complex union-type parameters in tool definitions.
Results and Performance Analysis
The benchmark results underscore the difficulty of multi-hop tasks. Even the top-performing model, GPT-4o, achieved an accuracy of only 49.04% when tool use was mandatory.
While using tools generally improved performance—providing an average boost of 12.29% compared to zero-shot internal reasoning—the absolute success rates remain low. For the GPT family, the benefit of tools was most pronounced, yielding a 23.59% accuracy increase. Conversely, smaller models like LLaMA3.1-8B often found the tool documentation so complex that they were more likely to hallucinate than to successfully execute the required sequence.
Conclusion and Future Directions
ToolHop reveals that multi-hop tool use remains a major frontier for AI. While current state-of-the-art models show promise, they frequently stumble on the interdependencies and structural requirements of complex workflows.
The primary contribution of ToolHop is diagnostic, but its methodology offers a path forward. The query-driven pipeline is highly scalable and can be used to synthesize massive, high-quality training datasets. By fine-tuning models on these interdependent trajectories, researchers can move beyond simple tool-calling toward true agentic reasoning.
Summary updated