TRANSMISSION // 2611.29133v1

Why More AI Agent Retries Can Cost More

Source published

Retries can raise an AI agent’s completion rate while making each completed task more expensive. A benchmark reanalysis explores why, and what the estimates can—and cannot—tell us.

AI-generated conceptual illustration for Why More AI Agent Retries Can Cost More
AI-generated conceptual illustration; not documentary evidence.

When an AI agent fails, should it try again? More attempts may rescue some tasks, but they also consume resources. A preprint examines how retries affect completion and cost when the system repeats the original task without using feedback from earlier failures.

The question behind the retry

A retry seems straightforward: if an AI agent’s first attempt fails, run it again. But the tasks left after that first failure may not be a representative sample. Easier tasks are more likely to have succeeded already, leaving a greater share of difficult tasks for later attempts. If the agent spends similar resources on each try, that changing mix can make later successes increasingly costly.

Wei-Jung Huang’s preprint, “The Retry Tax,” studies a specific policy: retry the same task with the original prompt and a reset workspace, without passing feedback from the previous attempt. The system stops when a verifier reports success or when it reaches a set attempt limit. This is not a study of every kind of retry; feedback-guided revision, for example, follows a different process.

Two kinds of cost

The paper distinguishes average cost per completion from the cost of completions added by a further attempt. Average cost divides all spending under a chosen retry limit by the number of tasks completed. Marginal cost asks how much extra spending buys the additional completions gained by allowing one more attempt. The two can differ substantially: an attractive overall average may conceal an expensive final increment.

The paper’s mathematical results apply under stated assumptions: each task has a stable success probability, attempts are independent conditional on the task, and each attempt has the same cost. Under these conditions, tasks with lower success probabilities tend to remain unresolved longer. The analysis concludes that average cost per completion is no lower than with one attempt, and that the marginal cost of added completions does not decrease when the added completion increments are positive. If all tasks instead have the same success probability, the model predicts no increase in average cost per completion from retries alone. These are conditional results, not universal laws about AI systems.

Replaying benchmark runs

To examine recorded data, Huang reanalyzed repeated runs from three existing benchmark panels: coding-agent tasks on SWE-bench Verified, conversational-agent tasks on τ²-bench, and one OpenHands configuration on 500 SWE-bench Verified tasks. The analysis kept each task’s recorded outcomes—and, where available, costs—together. It arranged the available runs in different orders, applied the stop-at-success rule at each supported attempt limit, and averaged completion and spending across the resulting sequences.

For the OpenHands configuration, the replay estimated that completion rose from 59.7% with one attempt to 70.0% with up to four. Average cost per completion rose from about $0.70 to $1.32. The estimated marginal costs for attempts two, three, and four were about $3.02, $6.96, and $10.14 per additional completion, respectively. Those figures describe this configuration and replay; they are not a forecast for other agents or deployments.

Across the three panels, the paper reports higher average cost per completion at four attempts than at one: roughly 77% higher in the primary panel, 24% in τ²-bench, and 90% in OpenHands. The first two figures summarize multiple fixed configurations; OpenHands is a single configuration. The panels are not three independent task populations: the primary and OpenHands analyses use the same benchmark task frame.

What remains uncertain

Replay is not the same as running a new retry service. It averages possible orders of existing recorded attempts. Applying those estimates to future attempts requires the recorded runs to represent the relevant outcome-and-cost process. Provider changes, selective recording of runs, or other differences could break that link. The paper also notes that benchmark verification may not equal real-world correctness, and that recorded prices reflect the accounting conventions and prices at the time.

Uncertainty estimates have limits too. The reported bootstrap intervals describe resampling tasks within the evaluated task frames and fixed configurations, not variation across unseen agents or repositories. In a separate simulation exercise, two interval targets had coverage of 54 out of 64 datasets. The authors say the reasons for those shortfalls remain unresolved; the simulations do not establish how well the historical intervals capture uncertainty in real deployments.

The practical message is not simply “never retry.” A higher completion rate may be worth the additional expense, depending on the value of each completed task. The paper’s framework encourages operators to compare both the extra spending and the extra completions at each retry limit, rather than relying on a single average-cost figure. As an arXiv preprint, the work should also be read as research that may not yet have undergone peer review.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • Why AI agents should be measured by successful goals

    Supporting evidence: Both studies show why measuring only per-attempt resources can obscure the cost of retries: Huang estimates higher monetary cost per completion at a larger retry cap in a fixed OpenHands replay, while Panigrahy et al. report that failed attempts add about the energy of a successful first attempt and energy per call barely changes. These are compatible but distinct outcomes from different systems; the energy study does not establish the retry-cap effect, and the monetary replay does not measure energy.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2611.29133v1 — Original paper

      Excerpt reference: static/papers/2611.29133v1.md:13-97
      Basis: Paper text
      Source SHA-256: 07418f0f2aa2014e0a2d8f98ba1007ec1d5a8447bc80ac4170b41025d6b70399

    • 2605.22883v3 — Original paper

      Excerpt reference: static/papers/2605.22883v3.md:98-213
      Basis: Paper text
      Source SHA-256: b777f8b0791ef959a04f2b5b1664c3a22d5a153ea3fc323a883b22ba961d7aa8

    • 2605.22883v3 — Original paper

      Excerpt reference: static/papers/2605.22883v3.md:214-276
      Basis: Paper text
      Source SHA-256: b777f8b0791ef959a04f2b5b1664c3a22d5a153ea3fc323a883b22ba961d7aa8

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