Evaluating Multi-Model Agent Efficiency Under a Fixed Execution Framework
In AI agent engineering, task efficiency is often judged by model inference speed, single response cost, or final completion status. However, production-level tasks involve complex multi-turn processes. By fixing the execution framework, task parameters, context, and acceptance criteria, we tested four similarly sized models (under ~300B parameters) on a complex creative collaboration task. Although all models completed the task, their execution processes varied significantly. This article analyzes five key process dimensions affecting agent efficiency and recommends treating retries, idempotency, and context management as infrastructure to improve execution reliability.
Evaluating Multi-Model Agent Efficiency Under a Fixed Execution Framework
In AI agent engineering, teams often evaluate a task execution based on “model speed,” “single response cost,” or “whether it finally completed.” However, real production-level tasks typically involve multi-turn planning, tool calling, browser interaction, file I/O, exception recovery, and result verification. The total duration is not determined solely by the model itself. This article discusses a controlled variable experiment: we fixed the agent execution framework and kept the task, materials, context injection, browser environment, and acceptance rules identical, only swapping four candidate models of similar parameter sizes to observe their completion processes in the same complex creative collaboration system. To avoid product bias, the four candidate models are anonymized as A, B, C, and D, focusing purely on general engineering principles.
1. Experiment Design: Why Fix the Execution Framework
A common pitfall in evaluating agent efficiency is conflating “model capability” with “execution framework capability.” If a model performs well in a specific framework, it might be because the framework provides better task decomposition, tool descriptions, context pruning, failure retries, and checkpoint mechanisms. Conversely, if a model slows down in another framework, the issue might not be slow inference, but rather a lack of recovery strategies after tool call failures.
Therefore, this experiment used a “reverse control variable” approach: the execution framework was fixed to a single agent execution framework, and the task was fixed to a complex creative collaboration system. Materials, context injection, browser environment, and acceptance rules were all kept consistent, with only the candidate models being replaced. The four models fall within the same parameter scale range (under ~300B parameters), allowing us to observe process differences at a similar cost level. The goal was not to rank specific products, but to answer a general question: when the execution framework is consistent, what process factors significantly impact the total duration and success rate of agent tasks?
Acceptance rules also needed to be unified. For example: Is the output complete? Are key features runnable? Do page interactions meet expectations? Are there unrecoverable errors in the logs? Does the final output satisfy structured assertions? Only with consistent acceptance rules can the final results be comparable. It is worth noting that all four candidate models ultimately completed the task, so “whether it completed” was not the main differentiator in this experiment—the process differences proved to be the more valuable information.
2. Results Overview: All Completed, but Processes Diverged Significantly
Looking at total duration and recovery behaviors, the four candidate models exhibited distinctly different execution profiles:
| Candidate Model | Total Duration / First Success Duration | Process Characteristics |
|---|---|---|
| Candidate A | ~17 minutes | No full reruns, shorter action path, smoother tool calls |
| Candidate B | ~1 hour 12 minutes | First execution failed, included a full rerun |
| Candidate C | ~88 minutes | No full rerun, but triggered 3 internal auto-retries |
| Candidate D | First success cumulative ~1 hour 4 minutes | Default retry strategy failed twice consecutively, completed after extended backoff; logs showed about 85 retry records |
This data illustrates a key fact: similar final screenshots do not mean similar execution processes. Candidate A completed the task in 17 minutes, indicating fewer action rounds, a lower tool call failure rate, and more stable context management under the current framework. Candidate B took over an hour, with the main cost coming from a full rerun after the first failure. Although Candidate C did not have a full rerun, 3 internal auto-retries stretched the total duration to 88 minutes. Candidate D’s default retry strategy failed twice consecutively, and it only completed after switching to a longer backoff strategy, generating numerous retry records (around 85) with a first success cumulative time of about 1 hour 4 minutes.
Therefore, evaluating agent efficiency cannot rely solely on “how fast a model responds in a single turn.” In long-chain tasks, retry counts, failure recovery methods, tool call stability, and context length management can determine total duration much more than single inference speed.
3. Sources of Differences: Five Process Dimensions
1. Action Rounds and Plan Quality
Agents typically complete tasks through an “observe–plan–act–verify” loop. More action rounds mean higher costs for tool calls, context concatenation, and state maintenance. Candidate A’s shortest duration might be related to tighter planning and fewer backtracks. Candidate B’s full rerun equates to re-executing previously completed steps, naturally raising costs. Plan quality affects not only the number of rounds but also the sequence of tool calls: reading necessary context before executing versus repeatedly probing for information before adding it results in vastly different total durations.
2. Tool Call Density and Failure Rate
Tool calls are the most uncertainty-prone part of agent execution. Parameter format errors, target elements not ready, API timeouts, or unexpected return structures can all trigger retries. Candidate C’s internal 3 auto-retries extending execution to 88 minutes show that while retries prevent a full rerun, each retry consumes time, context window space, and state synchronization costs. In engineering, tool call failures should be categorized into “retryable errors” and “non-retryable errors”: timeouts, rate limiting, and temporary network jitter can be retried; illegal parameters, insufficient permissions, and non-existent targets should not be blindly retried.
3. Retry Strategy and Backoff Mechanism
Candidate D’s process particularly highlights the importance of retry strategy. After the default retry strategy failed twice consecutively, continuing to retry at fixed intervals might keep hitting the same transient failure; it only succeeded after switching to an extended backoff strategy, which provided a recovery window. The ~85 retry records in the logs also suggest that more retries are not better—there must be budgets, limits, and error classification. Otherwise, retries can amplify a normal failure into prolonged resource occupation or even cause duplicate side effects.
4. Service Stability and Rate Limiting
Even with the same execution framework and model, server-side stability, rate limiting strategies, and response jitter can alter total duration. In long-chain tasks, a brief unavailability of any tool service or model service can trigger cascading retries. Therefore, when evaluating agent efficiency, record the proportion of “effective execution time” versus “waiting/retry time” rather than just wall-clock time.
5. Context Management and Checkpoints
Complex tasks generate large amounts of intermediate artifacts, tool returns, and page states. If context management is inadequate, the model might lose critical constraints within a long context, leading to repeated execution or wrong decisions. Candidate B’s full rerun, Candidate C’s internal retries, and Candidate D’s numerous retries may all relate to context state recovery. In engineering, task states should be externalized as checkpoints (e.g., current step, completed artifacts, failure reasons, parameters needed for the next retry). The model’s context should only retain summaries relevant to the current decision, preventing invalid information from crowding the window.
4. Engineering Practice: Make Retries and Context Infrastructure
To ensure stable execution of multiple models within a unified framework, it is recommended to build retries, idempotency, and checkpoints as infrastructure rather than scattering them in prompts. Below is a neutral pseudocode example:
function run_agent_task(task, model, framework):checkpoint = load_checkpoint(task.id)retry_budget = init_budget(max_attempts=8, base_delay=2s, max_delay=60s)while not task.is_done():state = framework.observe(checkpoint, task)action = model.decide(state)result = framework.execute(action)if result.ok:checkpoint = framework.commit(checkpoint, action, result)reset_retry_budget_if_progress()else:error_class = classify_error(result.error)if error_class == "non_retryable":return fail_with_diagnosis(result.error)if not retry_budget.allow(error_class):return escalate_or_fallback(checkpoint)delay = retry_budget.next_delay(error_class)sleep_with_jitter(delay)checkpoint = framework.record_failure(checkpoint, action, result.error)return framework.verify(task, checkpoint)
This pseudocode emphasizes four points: error classification, retry budget, checkpoint commit, and unified final verification. The retry budget should include maximum attempts, maximum wait time, and total duration limits. Checkpoints must ensure idempotency to avoid duplicate writes or submissions caused by retries. Final verification should be executed uniformly by the framework, rather than relying on the model self-reporting “task completed.”
5. Evaluation Method: Shift from Single-Point Duration to Process Metrics
A more reasonable evaluation of agent efficiency should include at least the following metrics: total duration, first success duration, full rerun count, internal retry count, effective action rounds, tool call success rate, peak context length, failure recovery time, and final acceptance pass rate. For enterprise scenarios, metrics like cost per task, manual intervention count, and observability completeness can also be added.
The conclusion of this experiment can be summarized as follows: a low-cost or high-speed model profile only describes part of the capability. Real agent efficiency also depends on action rounds, tool calls, service stability, and context management. Fixing the execution framework, unifying acceptance rules, and recording process metrics allow us to decouple “model differences” from “framework differences” for analysis. For engineering teams, prioritizing the construction of a retryable, recoverable, and observable execution infrastructure often yields more deterministic returns than simply pursuing faster single inferences.
