The Cost of Failure: Quantifying the Downstream Impact of Error Histories in LLM Agents

Impact 7 arXiv cs.AI

Summary

  • Researchers examine the downstream impact of retained execution failures in LLM agent interaction histories, terming it the Cost of Failure.
  • Error Token Density (ETD) measures the fraction of interaction history occupied by execution-failure content, with high ETD significantly degrading success rates.
  • Controlled experiments show that inserting failure turns lowers success more than token-matched neutral insertions, while deleting failure turns yields gains.
  • To address this, the authors introduce Tool-Feedback Advantage Shaping (TFAS), which improves overall accuracy and lowers ETD compared to outcome-only RL.

Why it matters

Understanding how historical errors degrade LLM agent performance helps developers design better training methods and reinforcement learning strategies that minimize execution failures in production workflows.

Who should care