AI
LLM Tool-Using Agents Get Stuck in Expensive Loops, Study Finds
Researchers identify how language models can spiral into redundant tool-call cycles that wastefully consume 4–20x more computational resources.
Tool-using language model agents—systems that call external functions to solve problems—can get trapped in costly circular patterns that drain computational resources, even when each individual function call seems reasonable. A new study from arXiv reveals the mechanics behind this "structural overthinking" failure mode and shows it's a bigger risk than previously understood.
The Problem: Cycles Within the Tool Registry#
Researchers constructed three cycle-inducing patterns that agents can fall into: repetition (calling the same tool multiple times), iterative refinement (repeatedly improving outputs), and auxiliary subtasks (branching into verification loops). These patterns exploit metadata and feedback signals that tools naturally provide, creating re-entry points that keep agents cycling rather than progressing toward a solution.
When researchers tested this against production-grade coding agents, the results were striking. Mixed tool registries that included these cycle-triggering configurations caused token usage to balloon by 4.3–20.3x compared to normal tool-only setups. Critically, the problem isn't just mindless self-loops: interleaving normal tools with problematic ones creates unexpected pathways back into refinement and verification cycles.
Why It Matters#
Evaluating agents on final outputs or single function calls misses this risk entirely. The same tool registry that produces correct answers can consume vastly more resources depending on the composition and sequence of tools available. This means deployment cost and latency can spiral unexpectedly in production environments.
Attempted Safeguards Fall Short#
The team tested lightweight guard mechanisms designed to interrupt cycles, but these did not reliably restore a good compute-accuracy trade-off. The implication is clear: fixing this requires deeper rethinking of how agents plan tool use, not just adding simple brakes.
What's Next#
The findings argue for a shift in how tool-using agents are benchmarked: evaluation should focus on tool-call trajectories and registry composition, not merely on whether the right answer emerges. Code for reproducing the study is available on GitHub.

