When Tools Fail: Benchmarking Dynamic Replanning and Anomaly Recovery in LLM Agents

Dongsheng Zhu, Xuchen Ma, Yucheng Shen, Xiang Li, Yukun Zhao +3 more
6/4/2026
32 citations
cs.AI
benchmark-dataset

Official code: Zhudongsheng75/ToolMaze (14 stars, last commit 2026-10-20).

Abstract

Existing benchmarks evaluate Tool-Integrated Reasoning (TIR) in LLMs on idealized ''happy paths'', largely overlooking real-world tool failures. We introduce ToolMaze, a benchmark for dynamic path discovery and error recovery in TIR agents.

Show full abstract

To separate systematic replanning from blind trial-and-error, ToolMaze adopts a two-dimensional design: DAG-based topological complexity and a $2 \times 2$ taxonomy of tool perturbations (explicit/implicit, transient/permanent). Evaluations show that perturbations degrade performance across nearly all models, with the sharpest drops under implicit semantic failures. Driven by systemic over-trust in corrupted outputs, Perturbation Recovery Rate (PRR) plummets by around 37\% in these scenarios, while complex topologies trap agents in futile trial-and-error loops. Crucially, agentic fault-tolerance improves with model scale $3.66\times$ slower than basic task execution, highlighting dynamic replanning as a distinct bottleneck unaddressed by model scaling or prompting. Data and code are available at https://github.com/Zhudongsheng75/ToolMaze.

View on arXivView PDF

Code Implementations(1)

When Tools Fail: Benchmarking Dynamic Replanning and Anomaly Recovery in LLM Agents

141May 31, 20261 months ago

Similar Papers

Cite this paper

@article{zhu2026when,
  title  = {When Tools Fail: Benchmarking Dynamic Replanning and Anomaly Recovery in LLM Agents},
  author = {Dongsheng Zhu and Xuchen Ma and Yucheng Shen and Xiang Li and Yukun Zhao and Shuaiqiang Wang and Lingyong Yan and Dawei Yin},
  year   = {2026},
  eprint = {2606.05806},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.05806v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.05806.svg)](https://codeofpaper.com/paper/2606.05806)

Discussion