TL;DR
This paper tackles the critical "sim-to-real" gap in tool-using language agents, showing that current benchmarks fail to capture real-world deployment issues like typos and API errors. They introduce RobustBench-TC, a new benchmark with 22 realistic failure modes, and ToolRL-DR, a domain-randomization RL training method that significantly improves agent robustness without sacrificing clean performance.
What Problem Does This Paper Address?
Large language models (LLMs) are increasingly being integrated into systems that use external tools (APIs, databases, etc.) to perform tasks. While benchmarks exist to evaluate these "tool-use agents," they typically assume perfect inputs, unambiguous tool descriptions, and reliable API behavior. In real-world deployments, however, these assumptions are frequently violated: users make typos, tool names can be duplicated across different services, and API calls can time out or return errors. This discrepancy between benchmark performance and real-world reliability is known as the "sim-to-real gap." The authors argue that current benchmarks don't adequately prepare agents for these deployment-time failures, leading to brittle systems. They formalize these failures within the framework of a Partially Observable Markov Decision Process (POMDP), identifying four key areas where noise can be introduced: observation, action space, reward-relevant metadata, and transition dynamics.
Methods
The core of the paper introduces two main contributions:
- RobustBench-TC Benchmark: This is a novel benchmark designed to simulate real-world deployment failures. It comprises 199 samples from existing tool-use benchmarks, augmented with 22 distinct perturbation types. These perturbations are systematically categorized across the four POMDP components (Observation, Action, Reward, Transition). Crucially, each perturbation type is grounded in verified GitHub issues from major agent frameworks or peer-reviewed studies, ensuring its relevance to actual production problems.
- ToolRL-DR (Domain-Randomization RL Recipe): To address the robustness issues identified by RobustBench-TC, the authors propose a domain-randomization approach for reinforcement learning (RL) training. Instead of training on clean trajectories, ToolRL-DR trains agents on trajectories augmented with perturbations from the statically encodable POMDP components (Observation, Action, Reward). Notably, transition perturbations (runtime errors) are excluded from training to test for behavioral transfer. This recipe aims to make agents more resilient to unseen runtime failures.
Datasets
- RobustBench-TC: This is a newly introduced benchmark. It's constructed by taking samples from five existing tool-use benchmarks: BFCL V3, API-Bank, RoTBench, ToolAlpaca, and ToolEyes. These samples are then augmented with 22 types of perturbations.
- Training Data for ToolRL-DR: The authors use perturbation-augmented trajectories derived from the 16 statically encodable POMDP components (Observation, Action, Reward) for training.
Key Insights and Ideas
- The "sim-to-real" gap is severe and uneven: Agents are surprisingly brittle, with performance drops varying significantly across different types of failures. Observation perturbations are relatively easy to handle, while Reward and Transition perturbations cause substantial accuracy degradation.
- Scaling alone doesn't solve robustness: Larger models don't automatically close the sim-to-real gap. Even 32B parameter models show similar robustness profiles to smaller ones when faced with these real-world failures.
- Domain randomization for tool-use is effective: Training on perturbed data (even when excluding runtime errors) significantly improves an agent's ability to handle real-world deployment issues.
- Transfer learning from static perturbations to runtime errors: The most surprising finding is that training on static perturbations (Observation, Action, Reward) leads to improved performance on unseen transition (runtime) perturbations. This suggests that RL on adversarial static inputs encourages a more persistent retry policy.
Key Results
- RobustBench-TC Benchmark: Evaluated 21 models, revealing that Observation perturbations reduce accuracy by less than 5%, while Reward and Transition perturbations cause drops of roughly 40% and 30%, respectively.
- ToolRL-DR Performance: On a 3B backbone, ToolRL-DR-Full retains about 75% of its clean accuracy. It achieves aggregate perturbed accuracy comparable to open-source 14B function-calling baselines and significantly narrows the gap to the closed-source
o4-mini. - Transition Gap Closure: ToolRL-DR-Full closes approximately 27% of the Transition gap, despite never being trained on transition perturbations. This demonstrates significant behavioral transfer.
Limitations and Future Work
- Multi-turn Coverage: The current evaluation focuses on single-turn interactions. Extending the benchmark and training to multi-turn scenarios is a future direction, as transition perturbations are harder to inject cleanly in multi-turn dialogues.
- Transition Gap Not Fully Closed: ToolRL-DR does not fully close the transition gap by design. Future work might involve RL with explicit retry mechanisms and rewards for handling runtime errors, or test-time strategies like self-consistency.
- Scaling of ToolRL-DR: The effectiveness of the ToolRL-DR recipe at larger scales (14B/32B) and with more training data needs further investigation.
- New Perturbation Axes: The authors identify eight additional production-failure modes that could inform future versions of RobustBench-TC, some of which require runtime infrastructure beyond the current scope.
Summary updated