Introduction
Large Language Models (LLMs) are increasingly being deployed as agents capable of using external tools (APIs) to solve complex, real-world tasks. However, the research community faces a growing "reproducibility crisis" in tool-learning evaluation. Existing benchmarks, such as ToolBench, rely on thousands of live, third-party APIs. Because the internet is dynamic, these APIs frequently change their schemas, update authentication requirements, or go offline entirely—a phenomenon known as "API rot."
StableToolBench is proposed as a solution to this instability. By decoupling model evaluation from the volatility of live web services, it provides a consistent and reproducible environment for benchmarking the tool-use capabilities of LLMs.
The Problem: API Rot and Noisy Evaluation
Research into tool-learning is currently hampered by two primary issues:
- Environmental Instability: An analysis of the original ToolBench revealed that 55.6% of the tools were inconsistent over time. When researchers attempted to reproduce earlier results, they observed massive drops in reported performance simply because the underlying APIs had changed or failed. This makes it impossible to determine if a model's performance change is due to architectural improvements or environmental noise.
- Unreliable Metrics: Standard practices often use GPT-3.5 as an automatic evaluator. However, GPT-3.5 frequently fails to distinguish between a model that successfully executed a tool chain and one that merely hallucinated a plausible-sounding response, leading to high variance in scoring.
The StableToolBench Framework
StableToolBench evolves the benchmarking process through two core innovations: a Virtual API Server and a Stable Evaluation System.
1. Virtual API Server
To ensure consistency, StableToolBench replaces direct live API calls with a hybrid virtual system:
- Caching System: The framework maintains a database of successful real-world API responses. If a model makes a request that matches a known state, it receives a cached "ground-truth" response.
- API Simulator: For requests not found in the cache (cache misses) or when a real API is unavailable, the system employs a GPT-4-turbo-powered simulator. By reading the original API documentation and using successful historical calls as few-shot examples, the simulator generates a realistic, document-compliant response.
2. Stable Evaluation System
To improve the rigor of the results, the authors introduced a more disciplined evaluation pipeline:
- Solvable Task Filtration: Not all prompts in existing benchmarks are actually answerable. StableToolBench uses a majority vote from three state-of-the-art models (GPT-4, Gemini Pro, and Claude 2) to identify a subset of tasks that are verified as solvable. This reduced the test set from 1,100 tasks to 765 verified solvable tasks.
- Upgraded Evaluator and Metrics: The noisy GPT-3.5 judge is replaced with GPT-4-turbo. Furthermore, the authors introduced two new metrics: Solvable Pass Rate (SoPR) and Solvable Win Rate (SoWR). these metrics focus specifically on the model's ability to complete tasks that are known to be possible, eliminating randomness inherent in previous methods.
Key Insights
The API Turing Test
In human evaluation trials, participants were often unable to distinguish between a real API response and one generated by the GPT-4 simulator. Interestingly, simulated responses were occasionally rated higher because they strictly adhered to the documentation, whereas real-world APIs sometimes returned messy or malformed data that could confuse a model.
Rationality Over Ground Truth
One of the paper's central arguments is that for benchmarking tool use, the rationality of the interaction is more important than the literal accuracy of the data (e.g., the exact current temperature in a specific city). As long as the simulator provides a plausible, document-compliant response, the benchmark can accurately measure whether the LLM understands how to select and sequence the correct tools.
Results and Robustness
StableToolBench demonstrates significant improvements in reliability:
- Restored Reproducibility: While live API failures caused Pass Rates for models like ToolLLaMA to drop by as much as 40% in traditional setups, StableToolBench eliminated this variance entirely.
- Extreme Robustness: To test the simulator's limits, the authors manually "broke" up to 50% of the real APIs. Despite half the environment being "down," the model performance scores remained stable because the virtual simulator stepped in seamlessly to maintain the environment.
- Superior Correlation: Human correlation studies showed that the GPT-4-based evaluation system reached an accuracy of 80% in judging task solvability, a significant leap from the 65% accuracy achieved by GPT-3.5.
Limitations and Future Work
While StableToolBench provides a path forward for stable benchmarking, it faces challenges regarding cost and accessibility. Relying on GPT-4 for both simulation and evaluation is significantly more expensive than using static datasets or smaller models. Additionally, the benchmark currently relies on closed-source models to act as the "ground truth" for simulation. The authors suggest that as open-source models improve, they may eventually be fine-tuned to serve as simulators, which would lower costs and increase the transparency of the benchmark.
Summary updated