Introduction: The Robustness Gap in Tool Learning
Large Language Models (LLMs) have demonstrated impressive capabilities in "tool learning"—the process of using external APIs to solve complex tasks. However, most evaluations occur in "clean" environments where tool names and parameters are perfectly descriptive and stable. Real-world software ecosystems are far messier, characterized by typos, inconsistent naming conventions, and frequent API updates.
The authors of RoTBench identify a critical "robustness gap." Even state-of-the-art models like GPT-4 can be incredibly brittle when faced with environmental noise. For instance, if a model is trained to use a tool named Get_Weather, it may fail to invoke it if the name is changed to a non-descriptive string like ABC, even if the functional description remains exactly the same. This sensitivity prevents reliable deployment in evolving real-world systems.
The RoTBench Framework
To systematically address this brittleness, the researchers developed RoTBench, a multi-level benchmark designed to evaluate LLM resilience across five levels of environmental noise:
- Clean: Pristine environment with no noise.
- Slight: Character-level errors such as insertions, omissions, or substitutions (e.g.,
cat_breedbecomesbat_breod). - Medium: Structural errors like string reversals or random nonsense strings.
- Heavy: Logic-level noise, such as swapping tool names or adding irrelevant mandatory parameters.
- Union: A comprehensive combination of all noise types.
Evaluation is conducted across three critical phases of tool use: Tool Selection (identifying the correct API), Parameter Identification (determining the required keys), and Content Filling (extracting values from the user query).
RoTTuning: Hardening Models for Real-World Use
Beyond evaluation, the authors propose RoTTuning, a four-phase training strategy to improve model resilience. This process involves expanding user queries for diversity, generating tool-use trajectories using GPT-4, augmenting these trajectories with RoTBench-style noise, and finally fine-tuning the model using Low-Rank Adaptation (LoRA). This "hardening" process ensures the model learns to prioritize functional descriptions over exact string matching.
Key Insights and Results
The benchmark revealed several surprising behaviors in current LLMs:
- The GPT Paradox: GPT-4’s internal "noise correction" can be a liability. When encountering a noisy tool name like
predOict_aTge, the model often "corrects" it topredict_agein its output. Since the environment expects the exact (noisy) string, the task fails despite the model's correct intent. - Impact of Naming: Noise in tool names is significantly more damaging than noise in parameter names. A failure in tool selection causes the entire reasoning chain to collapse immediately.
- Performance Collapse: GPT-4’s tool selection accuracy dropped from 80.00% in clean settings to 58.10% in the "Union" noise environment. In contrast, human performance remained remarkably stable (dropping only from 88.57% to 85.71%), highlighting the gap between LLM pattern matching and human functional understanding.
- RoTTuning Success: Models trained with RoTTuning showed an average improvement of 16.10 points across noisy environments. Specifically, the robustly tuned "RoTLLaMA" produced far fewer hallucinations (3) than GPT-4 (23) across the benchmark.
Conclusion and Future Directions
RoTBench highlights that current LLMs are not yet ready for the messiness of real-world software integration. While RoTTuning offers a path forward, limitations remain. Future work should address multi-turn interactions where models must recover from errors based on feedback, as well as noise within long-form documentation. Moving toward dynamic environments where tool definitions change mid-task will be essential for truly adaptive AI agents.
Summary updated