mlsanityData to 26 Nov 2026

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

arXiv 2611.35727 ↗Submitted 26 Nov 2026Announced 30 Nov 2026cs.AIcited by 0

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

When an action fails, an LLM agent retains the action text and its feedback in the context used for subsequent decisions. We study the downstream impact of this retained content as the Cost of Failure. We define Error Token Density (ETD) as the fraction of an interaction history occupied by execution-failure content. On natural ALFWorld rollouts from Qwen3-8B, success is 40.1% at zero ETD and 6.7% when ETD is at least 40%. Controlled continuations separate this association from the effect of retained failure content: with environment state and remaining action budget fixed, inserting failure turns lowers success by 1.9-3.8 percentage points more than token-matched neutral insertions. Deleting existing failure turns yields complementary gains. Failure-conditioned evaluations across planning, code execution, and visual tool use establish the broader relevance of the problem. These findings motivate training agents to reduce the introduction of execution failures. We test this principle with Tool-Feedback Advantage Shaping (TFAS), which combines separately normalized task-success and trajectory-level execution-validity advantages. Across all six model-environment settings, TFAS improves overall accuracy and achieves the lowest ETD among the compared policies, reducing ETD by 26.5-67.7% relative to outcome-only RL. These measurements connect the intervention to lower failure-context density.

Key facts. No citing papers in the map yet (data through 26 Nov 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Submitted 26 Nov 2026, announced 30 Nov 2026.

Builds on

No reference list yet.

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Where LLM Agents Fail and How They can Learn From Failures
  2. 2026Same Error, Different Recovery: How Delivery Changes LLM Agent Behavior
  3. 2026Accurate Failure Prediction in Agents Does Not Imply Effective Failure Prevention
  4. 2026Repair or Resample? Rethinking Failure Debugging in LLM Multi-Agent Systems
  5. 2025SABER: Small Actions, Big Errors -- Safeguarding Mutating Steps in LLM Agents
  6. 2026Agent Skills Can Be Harmful: An Empirical Study of Skill-Induced Failures in LLM Agents
  7. 2026Failure as a Process: An Anatomy of CLI Coding Agent Trajectories
  8. 2026More Memory, Worse Agents: Error Reproduction and Anti-Persistence in LLM Agents