Multi-Model Agent Benchmark: The Efficiency Gap Is All About Retries

    This article compares four LLM agents built on models with similar parameter counts but different specializations, using a single complex front-end build task and a strictly controlled test harness. It shows that final UI quality was comparable across all four, while total completion time differed by roughly five times, and traces that gap to action rounds, tool-call volume, retry semantics (full rerun versus local replay), backoff configuration, and context budget management. It also outlines a reusable evaluation method with fixed variables, mandatory deliverables, and a metrics file schema, plus practical recommendations for model selection and retry design.

    1. Experimental Design: Narrowing the Variables to the Model Alone

    When evaluating the real productivity of an AI agent, the most common mistake is to conflate “model capability” with “the capability of the entire execution framework.” For the conclusions to be credible, every variable other than the model must be fixed first: the same task orchestration and tool-calling framework, the same batch of input assets, the same context window and budget ceiling, the same browser automation channel, and the same acceptance scripts. Only then can differences in elapsed time and success rate be attributed to the behavioral characteristics of the model itself.

    This comparison selected four models with comparable parameter counts, covering four positioning categories: vision-understanding, general-purpose high-speed, engineering-density, and long-context. The task was a complex product build: a creative studio collaboration system with five states — project overview, inspiration board, asset location and commenting, version approval, and publish preview — plus permission differences across three roles (creative director, designer, client). Drag-and-drop, comment anchoring, version switching, approval, and rejection all had to be interactive, and state had to survive a page refresh.

    The shared constraints were:

    1. Context window: 262K
    2. Task budget: 200K tokens
    3. Browser channel: unified automation protocol
    4. Acceptance viewports: desktop 1440x1000 / mobile 390x844
    5. Repair rounds: 1 round only
    6. Deliverables: code + first-pass screenshots + run logs + review notes + metrics file

    The only inputs were six publicly available, openly licensed museum images, seed data for members and assets, and seed data for versions and comments. There was no existing page to copy. This meant each model had to handle information architecture, state modeling, and the visual system on its own rather than producing a static replica.

    2. Process Data Is More Informative Than Final Screenshots

    All four models delivered a runnable result, but their paths differed dramatically:

    • Model A (vision-understanding positioning): finished in 17 minutes, passed on the first attempt, almost no retries.
    • Model B (general-purpose high-speed positioning): failed the first round; 1 hour 12 minutes in total including a rerun.
    • Model C (engineering-density positioning): no full rerun, but 3 internal automatic retries triggered, 88 minutes cumulative.
    • Model D (long-context positioning): failed twice in a row under the default retry policy, then completed after backoff parameters were relaxed; 1 hour 4 minutes cumulative to first success.

    Placing all four in the same frame of reference yields a counterintuitive but important conclusion: final interface quality was similar, yet efficiency differed by about five times. Visually, the four solutions landed on “light editorial style,” “black-gold and off-white museum editorial style,” “dark professional workbench,” and “art museum archive system style” respectively — all at a deliverable level, and all passing acceptance for mobile consistency. The real dividing line appeared at the process layer.

    3. Four Real Sources of the Efficiency Gap

    3.1 Action Rounds and Tool-Call Volume

    Elapsed time is not primarily determined by single-round generation speed, but by “total rounds × per-round round-trip latency.” A model that establishes a clear state machine and component boundaries in the first round needs only a few patches afterward. Conversely, a model that writes the pages first and adds state management later tends to trigger multiple rounds of large-scale rewriting, and each round requires re-reading files, re-rendering, and re-comparing screenshots, multiplying the cost.

    3.2 Service Stability and Retry Semantics

    “Retry” means two very different things in different frameworks: a full rerun (discarding all intermediate artifacts) and a local automatic retry (replaying only the failed tool call). The former is extremely costly; the latter is manageable. Model B was the former and Model C the latter, which explains why 88 minutes was actually a better deal than 72 minutes — it did not throw away work already completed.

    3.3 Backoff Strategy and Failure Convergence

    Long-context models under default retry parameters easily spin in a “timeout — retry — timeout again” loop. Moderately relaxing the backoff interval and maximum attempt count, giving the tool side a chance to complete cold starts and resource loading, is often more effective than applying more pressure. In engineering terms, treat the retry policy as a tunable parameter rather than a fixed constant:

    1. retry_policy = {
    2. "max_attempts": 5, # the default of 2 is easily exhausted in cold-start scenarios
    3. "backoff_base": 2.0, # exponential backoff base
    4. "backoff_jitter": 0.3, # jitter to avoid synchronized retries
    5. "retryable": ["timeout", "rate_limit", "conn_reset"],
    6. "non_retryable": ["schema_invalid", "permission_denied"],
    7. }

    The key principle is to distinguish retryable from non-retryable errors. Including parameter validation failures and insufficient permissions in retries only turns deterministic errors into time sinks.

    3.4 How the Context Budget Is Managed

    The 200K task budget was the same threshold for all four models, but the consumption curves differed. A model that stuffs all seed data, all image descriptions, and all acceptance rules into the first-round context tends to trigger compression and forgetting in the middle and later stages, causing state-loss defects. A model that loads asset metadata on demand and summarizes history can reserve budget for the actual implementation and self-testing phases.

    4. A Reusable Evaluation Method

    If you want to run a similar comparison in your own stack, fix the following five items and vary only the model: the task and acceptance scripts, the input assets, the context and budget ceiling, the tool channel, and the number of repair rounds. Also mandate five categories of deliverables — missing any one counts as incomplete:

    1. Runnable code and a dependency manifest;
    2. First-pass screenshots (the original state before any repair);
    3. Complete run logs, including error codes for every tool call;
    4. Review notes attributing each deduction to the model, the framework, or the environment;
    5. A metrics file recording rounds, token consumption, retry counts, and wall-clock time.

    The metrics file should contain at least:

    1. {
    2. "wall_clock_sec": 1020,
    3. "action_rounds": 14,
    4. "tool_calls": 63,
    5. "retries": {"total": 2, "whole_run": 0},
    6. "tokens": {"input": 187000, "output": 41000},
    7. "viewport_pass": {"desktop": true, "mobile": true}
    8. }

    With this data, “the model is slow” can be broken down into “the model wrote three extra rounds” or “the environment retried twice,” avoiding the use of a vague “poor cost-performance” to mask the real bottleneck.

    5. Conclusions and Recommendations

    A low-cost or high-speed model positioning describes only one facet of capability. Real agent efficiency is the product of model behavior, tool-chain stability, retry semantics, and context governance; a shortcoming in any one of them pulls the whole thing back to the level of the weakest link. Three practical recommendations: prefer models with strong first-round structuring ability that require few global rewrites; make the retry policy an explicit parameter and distinguish error types; and treat the context budget as a scarce resource with layered loading.

    In related practice at Baidu AI Cloud, this kind of evaluation typically also relies on log services, monitoring and alerting, and object storage to accumulate deliverables and metrics, turning model selection from a subjective experience into a continuously trackable engineering metric.