TL;DR
ResiliBench is a novel benchmark designed to stress-test how Large Language Models (LLMs) handle the "messy" reality of agentic workflows, specifically focusing on flaky APIs and low-quality user instructions. By utilizing Markov Decision Processes (MDPs) to define optimal behavior in uncertain environments, the authors reveal that while some models are surprisingly resilient to bad advice, others collapse when faced with even minor stochasticity.
The Challenge of Stochastic Environments
Most current LLM benchmarks evaluate tool use in a vacuum, assuming that APIs always work perfectly and user instructions are flawlessly clear. In production, however, environments are inherently stochastic. APIs time out, services go down, and users frequently provide incomplete or contradictory plans.
Existing benchmarks often filter out these failures to maintain "clean" data. The authors of ResiliBench argue that handling uncertainty should be a primary capability, not an incidental one. The benchmark addresses the lack of a systematic way to measure an agent's resilience: its ability to detect errors, recover from tool failures, and adaptively replan when the original instructions are flawed.
Methodology
The authors built an automated pipeline to generate 5,040 unique tasks using a library of 30 simulated APIs. The core of their approach involves three novel components:
- Probabilistic Tool Modeling: Instead of binary success or failure, the benchmark uses parameterized error models (simulating timeouts, validation errors, etc.) with a base success rate of 0.8. It also includes "penalties"—if an agent misses a dependency, the success probability of the subsequent tool drops further.
- MDP-Derived Gold Standards: To establish what "perfect" execution looks like in an uncertain world, workflow execution is formulated as a Markov Decision Process (MDP). A policy trained using Reinforcement Learning (PPO) finds the sequence of actions that maximizes the expected success rate, providing a mathematically grounded upper bound for evaluation.
- Controlled Perturbations: The authors systematically injected seven types of flaws into workflow prompts—such as incorrect ordering, missing steps, or "semantic drift" (replacing a tool with a similar-sounding but incorrect one)—to test if models could spot the errors and self-correct.
Datasets
- ResiliBench (Simulated): 5,040 tasks across three complexity levels (Easy, Medium, Hard) and five task types (e.g., data pipelines, network integration).
- Tool Registry: 30 canonical software APIs organized into six functional categories (Data Processing, File Ops, Network, etc.).
- Real-World Validation Set: To ensure the simulation translates to reality, models were also tested on 8 tasks using 23 live, public APIs known for occasional latency and failures.
Key Insights and Results
- The Robustness Gap: There is a massive disparity in how models handle "bad advice." For example, when given a flawed workflow, GPT-4o-mini only saw a 5.5% performance drop, suggesting strong implicit error-correction capabilities. In contrast, other models saw staggering drops, essentially following flawed instructions off a cliff.
- The 7B Threshold: Testing the Qwen2.5 series revealed a non-linear scaling of emergent abilities. The 3B model almost entirely failed at multi-step coordination (99.1% failure rate), but the 7B model suddenly "got it," jumping to a 63.5% success rate.
- CoT isn't a Silver Bullet: Interestingly, standard Chain-of-Thought (CoT) prompts (50.8% success) actually performed worse than flawed workflow prompts (54.3%) on average. This suggests that even a broken plan provides more useful structural context to an LLM than a blank slate with a "think step-by-step" instruction.
- Semantic Drift is the Silent Killer: Models were generally good at catching ordering errors but struggled significantly with "semantic drift"—where a tool is replaced by one that sounds right but is functionally inappropriate.
Performance Comparison
The benchmark evaluated several top-tier models under "Optimal" versus "Flawed" conditions:
| Model | Optimal Success Rate | Flawed Success Rate | Delta (Robustness) |
|---|---|---|---|
| GPT-4o-mini | 67.7% | 62.2% | -5.5% |
| Llama-3.3-70B | 66.1% | 59.5% | -6.6% |
| Qwen2.5-32B | 65.0% | 62.9% | -2.1% |
| Gemini-2.5-Flash | 60.1% | 20.0% | -40.1% |
Across the board, the MDP-optimal workflows (62.1% avg) significantly outperformed baseline (51.4%) and CoT (50.8%) prompts, proving that providing agents with "probabilistically aware" plans is a major performance booster.
Limitations and Future Work
The authors acknowledge that their simulation uses a simplified failure model. Real-world API failures are often correlated (e.g., if one service in a cluster is down, others likely are too), whereas ResiliBench treats them as largely independent events.
Furthermore, the current benchmark doesn't evaluate complex recovery strategies like exponential backoff or dynamic multi-agent negotiation. Future iterations could move beyond single-agent environments to multi-agent coordination in these same high-uncertainty settings.
Summary updated