AI Agent Benchmark: The Real Efficiency Gap Hides in Retries

    This article presents a controlled benchmark of four LLMs running the same browser-based agent task, where the framework, prompts, tools, context window, and acceptance rules are fixed so that only the model varies. It breaks down why all four models delivered a working system yet differed sharply in wall-clock time, action turns, tool-call success, and retry counts, and it offers reusable practices for retry backoff, context budgeting, and automated acceptance testing.

    1. Experiment Design: Reducing the Variables to the Model Alone

    A common mistake in agent evaluation is letting several variables change at once: swapping the model while also changing the execution framework, prompts, tool set, and acceptance criteria. The resulting conclusions cannot be attributed to anything in particular. This experiment applies a reverse-control strategy — the execution framework, task description, input assets, context window, browser automation capability, and acceptance rules are all fixed, and only the underlying LLM is replaced.

    The candidate models are limited to the same parameter-size range: three lightweight models focused on low cost and high throughput, plus one long-context model as a control. All models share a 262K context window and a 200K task budget, and connect to the same browser automation tool set.

    Shared constraints:

    1. Context window: 262K
    2. Task budget: 200K tokens
    3. Tool set: browser automation (navigate/click/drag/screenshot/assert)
    4. Acceptance env: desktop 1440×1000, mobile 390×844
    5. Deliverables: source code + first-pass screenshots + fix-round screenshots + run logs + review notes + metrics file
    6. Fix policy: one repair round only

    The value of this design is that any difference in elapsed time can only be attributed to the model’s own behavioral characteristics, not to differences in the engineering environment.

    2. Task Difficulty: Why a Creative Collaboration System

    The evaluation task is a collaboration system for a creative studio. The input contains only six openly licensed images, a member roster, asset metadata, version records, and seed comment data — there is no existing page to imitate. The model must derive the information architecture itself and implement five core state views: project overview, inspiration board, asset location and comments, version approval, and publish preview.

    The system must also support differentiated permissions for three roles (creative director, designer, client), cover operations such as asset dragging, comment anchor positioning, version switching, approval and rejection, and preserve state across refreshes.

    This kind of task is discriminating for three reasons:

    1. Large state space. Multiple roles × multiple views × multiple operations require the model to maintain a consistent global state model.
    2. Long feedback delay. Completion counts only when all interactions work and state survives a refresh, so local correctness cannot be used to slip through.
    3. Deep tool dependency. Drag and positioning interactions must be verified repeatedly through browser automation, which naturally amplifies tool-call and retry costs.

    3. Results Overview: All Four Finished, at Very Different Costs

    All four runs eventually produced a working system; the real differences show up in process metrics:

    • Model A (vision-enhanced lightweight model): finished in 17 minutes, passed on the first attempt, almost no retries.
    • Model B (general-purpose lightweight model): failed the first acceptance round; 1 hour 12 minutes total including the rerun.
    • Model C (general-purpose lightweight model): no full rerun, but 3 internal automatic retries, 88 minutes cumulative.
    • Model D (long-context control model): failed twice in a row under the default retry policy, succeeded after adjusting backoff parameters; 1 hour 4 minutes to first success, with a retry count of 85.

    The conclusion is clear: “low cost” and “high speed” in a model’s positioning describe only the economics per token, while agent efficiency is determined jointly by the number of action turns, tool-call success rate, service stability, and context management.

    4. Four Observable Dimensions of Process Differences

    4.1 Action Turns and Tool-Call Efficiency

    Efficient models tend to build a complete state skeleton first and then fill in each view, concentrating tool calls in a few high-information operations. Inefficient models show “small-step probing,” changing only one style or one field per turn, which makes the turn count grow linearly. More turns not only stretch wall-clock time but also continuously consume the context budget.

    4.2 Retry Strategy and Backoff Design

    Under the default policy, the long-context model exposed a typical problem: it retried immediately after a failure, with no exponential backoff and no jitter, accumulating a large number of wasted calls in a short window. After switching to exponential backoff with random jitter, the success rate recovered significantly. Engineering recommendation:

    1. # Pseudocode: exponential backoff with jitter
    2. delay = base * (2 ** attempt) + random.uniform(0, jitter)
    3. if attempt > max_attempts:
    4. return FAIL_FAST

    It is also important to distinguish retryable errors (timeouts, rate limiting, transient unavailability) from non-retryable errors (assertion failures, insufficient permissions). The latter must fail fast and return context immediately; otherwise they only amplify noise.

    4.3 Context Management and Budget Allocation

    A bigger budget is not necessarily better. Context bloat dilutes the attention weight on critical instructions and makes the model forget the acceptance rules. A more robust practice is staged loading: keep system constraints resident, provide a structured summary of task state, and truncate tool results down to key points instead of feeding entire raw logs back in.

    4.4 The Leverage of Service Stability on Total Time

    The same model can perform several times differently at different times of day, with the variance coming mainly from server-side queuing and rate limiting. A benchmark must therefore record timestamp-level call logs; otherwise infrastructure jitter is easily misread as a difference in model capability.

    5. A Reusable Checklist for Evaluation and Engineering

    • Fix the framework and acceptance scripts, and vary a single factor to keep results attributable.
    • Record five metric classes: wall-clock time, action turns, tool-call count, retry count, and token consumption.
    • Always save first-pass screenshots, and use a “first version vs. fixed version” comparison to measure the first-attempt success rate.
    • Set a retry ceiling and a backoff curve, and output a categorized breakdown of failure reasons.
    • Write acceptance assertions as executable scripts to avoid subjective human judgment.
    • If cloud resources are used, archive artifacts in object storage, consolidate call chains with a logging service, and track failure rates with monitoring and alerting to form a sustainable regression evaluation pipeline.

    6. Conclusion

    The core lesson from this controlled comparison is that evaluating agents cannot rely on model price or nominal speed alone; the probability of getting it right on the first attempt should be treated as a first-class metric. For engineering teams, the levers that can actually be optimized are retry and backoff strategy, context budget allocation, the information density of tool calls, and the degree of automation in acceptance. Get these right, and even a lightweight model can deliver predictable efficiency.