Skip to content

The Retry Tax: Why Static Same-Task Retries Can Cost More per Completion

Wei-Jung Huang

cs.AI

Abstract

Retrying an agent after failure can complete more tasks while increasing the cost per completion. We study a static policy that stops at verified success or an attempt cap and otherwise resets the original prompt and workspace without passing feedback to the next request. Under stationary task success probabilities, independent attempts conditional on the task, and a common attempt cost, easier tasks tend to succeed earlier. When task success probabilities differ, the unresolved mix shifts toward harder tasks. Specializing classical survivor selection, we show that cost per completion is at least as high as in one-shot serving and that marginal cost per additional completion is nondecreasing wherever the completion increments are positive. These are different quantities: one averages spending over all completions, while the other prices the completions added by another attempt. We then arrange each task's existing benchmark runs in different orders, stop each sequence at verified success or the attempt cap, and average the resulting completion and spending at each supported cap. For one OpenHands configuration, replay estimates completion of 59.7 percent with one attempt and 70.0 percent with four, while cost per completion rises from about USD 0.70 to USD 1.32. The recorded trade-off describes fixed configurations on the available tasks. Choosing a cap requires comparing the additional spending with the application's value for the additional completions.

Create a lesson