AI Agent Benchmark: Why Retries Decide Efficiency
A controlled benchmark that fixes the harness and swaps only the underlying model shows that four models can all pass acceptance while taking anywhere from 17 minutes to 88 minutes. The gap comes from action steps, tool call quality, service stability, and context management rather than raw model speed, and this article explains the experiment design, the four runtime curves, and a reusable tuning checklist.
1. Background: Why Model Benchmarks Fail to Predict Agent Efficiency
Once AI agents move into real engineering work, a recurring puzzle appears: models that look strong on single-turn generation speed, parameter count, or cost per token can take several times longer end to end once they are connected to a real toolchain and an acceptance process. The reason is not complicated. An agent’s output is not a single text completion but a closed loop of perceive, decide, call a tool, observe the result, and revise the plan. Any jitter in one link of that loop gets amplified by the rounds that follow.
A typical controlled experiment makes the point. The execution harness was fixed completely, and the task description, input materials, context window, browser environment, and acceptance rules were all held constant. Only the underlying model was swapped, and four models with different positioning were observed on the same complex creative collaboration system. The final results were highly consistent: all four models completed the task, and all four deliverables passed acceptance. The process data, however, differed enormously. The fastest model converged in 17 minutes. One model failed its first round and took about 1 hour 12 minutes in total once the rerun was counted. One model never triggered a full rerun but performed 3 internal automatic retries, accumulating 88 minutes of execution. The last model failed twice in a row under the default retry policy and only succeeded after switching to a longer backoff interval, reaching its first success at roughly 1 hour 4 minutes.
The real value of this data is not the ranking. It is that the data reveals where efficiency comes from: a low-cost or high-speed product positioning describes only one facet of capability, while real efficiency is determined jointly by the number of action steps, tool call quality, service stability, and context management.
2. Experiment Design: Why Controlled Variables Matter in Agent Evaluation
The biggest trap in agent evaluation is uncontrolled variables. If the framework, model, prompt, and acceptance criteria all change at once, the resulting conclusion cannot be attributed to anything. The reliable approach is to fix things in layers:
- Fixed layer: the execution harness, task instructions, materials and dependencies, the available tool set, the browser and runtime environment, and the acceptance script with its decision thresholds.
- Variable layer: only the inference model is replaced; everything else stays the same.
- Observation layer: total wall-clock time, number of action steps, number of tool calls, failures and retries, human interventions, and peak context usage.
One point deserves emphasis: the acceptance rules must be automatically decidable, for example whether a page element is interactive, whether an API response structure matches the agreed contract, or whether the build passes. If acceptance depends on subjective scoring, wall-clock time stops being comparable.
The instrumentation for observation can be very lightweight:
record = {"model": model_id, # the only variable"wall_clock_sec": 0, # end-to-end duration"steps": 0, # number of action steps"tool_calls": 0, # number of tool calls"retries": 0, # number of automatic retries"reruns": 0, # number of full reruns"context_peak": 0, # peak context usage"accepted": False # whether acceptance passed}
3. Reading the Results: Four Runtime Curves with Different Causes
Finishing in 17 minutes means the model formed a correct task decomposition in the first round, hit the right tool call on the first attempt, and produced no wasted exploration. This kind of result usually comes from strong instruction following and stable structured output.
Failing the first round and finishing in 1 hour 12 minutes after a rerun is usually not about “writing slowly.” The problem is that a flaw in the first plan required the whole round to be overturned. A full rerun is extremely expensive because most of the intermediate artifacts already produced have to be discarded.
Three internal automatic retries and 88 minutes in total is a typical case of fixing local failures locally. The overall plan was not overturned, but every retry had to re-observe the environment and repeat some tool calls, so the time was sliced into segments and accumulated segment by segment.
Two consecutive failures under the default policy, followed by success after adjusting the backoff, points to fluctuation on the service side rather than a model capability problem. This kind of failure has nothing to do with reasoning quality, yet it is the most likely to be misread as “the model is not good enough.”
4. Four Key Efficiency Variables
4.1 Number of Action Steps
End-to-end duration is roughly proportional to the number of action steps multiplied by per-step latency. Cutting wasted steps is more effective than compressing per-step latency, and the methods include a more explicit goal description, earlier failure detection, and fewer exploratory operations.
4.2 Tool Call Quality
Tool calls are the only channel through which an agent interacts with the real world. Three things decide whether a retry is needed: parameters that are correct on the first attempt, a response structure that can be parsed, and error messages that are actionable. In engineering terms, tools should expose a stable schema for their returns, and errors should be converted into prompts the model can understand.
4.3 Service Stability
Rate limiting, timeouts, and transient unavailability translate directly into retries. A sound backoff strategy should include exponential intervals and jitter, and should treat idempotent and non-idempotent operations differently:
delay = min(base * (2 ** attempt) + random.uniform(0, 0.5), cap)
4.4 Context Management
Context is both a capability and a cost. The longer the history, the higher the per-step latency and the more easily key constraints get diluted. A workable approach is layered memory: keep the current subtask in short-term context, keep a structured summary in mid-term context, and persist the long term to external storage, retrieving and backfilling only when needed.
5. A Reusable Tuning Checklist
- Replace manual visual inspection with an automatically decidable acceptance script so that duration stays comparable.
- Set an upper limit on full reruns to keep a single task from expanding indefinitely.
- Distinguish failure types: planning failures, tool failures, and service failures, and respond with replanning, parameter changes, and backoff retries respectively.
- Record the number of action steps and tool calls; they locate bottlenecks better than total duration does.
- Split large tasks into subtasks that can be accepted independently, shortening the feedback loop.
- Summarize and retrieve context to control the size of each step’s input.
6. Conclusion
A controlled experiment that swaps only the model under the same harness shows that converging deliverables do not mean equivalent processes. Evaluating agents means abandoning a single speed or cost perspective and moving to a multi-dimensional system centered on action steps, tool calls, service stability, and context management. On the engineering side, a container platform can carry the runtime environment, logging services with monitoring and alerting can accumulate process data, and object storage can hold intermediate artifacts, turning “fast by luck” into “fast reliably.”
