TRANSMISSION // 2611.35727v1

When AI Agents’ Errors Weigh on Later Tasks

Source published

A preprint finds that retained tool-error text reduced continuation success in controlled ALFWorld tests. Other benchmarks show associations, not causal effects.

AI-generated conceptual illustration for When AI Agents’ Errors Weigh on Later Tasks
AI-generated conceptual illustration; not documentary evidence.

When an AI agent makes an invalid tool call, the error message may stay in the conversation used for later decisions. A new preprint tests whether that history affects continuation success in one controlled setting, and whether training can reduce failures across several benchmarks.

A failed tool call does not necessarily disappear when the tool returns an error. The attempted action and its feedback may remain in an AI agent’s conversation history, alongside useful observations and the task itself. Does that retained text affect what happens next, or does it simply mark tasks that were difficult from the start?

In The Cost of Failure: Quantifying the Downstream Impact of Error Histories in LLM Agents, Jiahao Wang and colleagues investigate that question. They define Error Token Density (ETD) as the share of an interaction history occupied by failed actions and their associated feedback. They also test a training method, Tool-Feedback Advantage Shaping (TFAS), that combines signals for task success and executable tool use during policy optimization.

From association to a controlled test

The researchers first examined natural task runs in ALFWorld, a text-based environment for multi-step household tasks. In rollouts from Qwen3-8B, success was 40.1% when ETD was zero and 6.7% when ETD was at least 40%. This is an association, not proof that failure text caused lower success: difficult tasks may produce both more errors and fewer completions.

To test the history itself, the team compared continuations from matched points in ALFWorld, holding the environment state and remaining action budget fixed. They inserted failure turns in some histories and token-matched neutral turns in others. Failure insertions reduced success by an additional 1.9 to 3.8 percentage points compared with neutral insertions. Removing existing failure turns also improved success in the tested continuations. These interventions support a limited causal conclusion: in this ALFWorld setup, retained failure content affected continuation success beyond the general effect of adding text.

The authors also compared trajectories with and without execution errors in ALFWorld, ReTool (code-assisted mathematics), and OpenThinkImg (visual tool reasoning). Error-containing trajectories had lower success in the reported comparisons. Those results show that errors and lower success occurred together across the evaluated settings; they do not establish a causal effect of retained error text outside the controlled ALFWorld tests.

Training to reduce execution failures

TFAS does not simply add a tool-validity reward bonus to the task reward. Instead, it separately normalizes the task-success and trajectory-level execution-validity signals, then mixes the resulting advantages for policy optimization. The execution signal reflects the fraction of tool calls that are executable. Each trajectory’s combined advantage is shared across its response tokens, so TFAS does not assign separate credit to individual successful or failed actions.

Across six model-and-environment settings, TFAS achieved the highest overall accuracy among four strategies: the untrained base model, outcome-only reinforcement learning, a tool-valid-reward baseline, and TFAS. It also had the lowest measured ETD in all six settings. Compared with outcome-only reinforcement learning, ETD fell by 26.5% to 67.7%. For Qwen3-8B on ALFWorld, reported accuracy rose from 31.4% to 41.2%, while ETD fell from 8.7% to 2.8%.

These are results from the study’s benchmark evaluations, not evidence that TFAS will perform similarly in real-world deployments. The findings connect the training method with lower failure-context density in these settings, but do not by themselves establish that reduced ETD caused the accuracy gains.

What remains uncertain

Errors can provide useful feedback, helping an agent revise a plan. The paper focuses on observable execution failures, such as malformed calls, exceptions, and rejected actions; it does not show that every error is harmful. The authors also say their experiments do not identify the mechanism by which retained history affects behavior.

TFAS has a mixing parameter that may need adjustment for different models, environments, or feedback definitions. And although its training results span text, visual-tool, and household-task benchmarks, the controlled causal evidence about retained failure text is limited to continuation success in ALFWorld. The paper is an arXiv preprint and may not have undergone peer review. Its findings are best read as evidence from specific experiments, not as a general guarantee about how agents respond to errors.

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.