Multi-Model Agent Benchmark: Root Causes of Efficiency Gaps
This article presents a controlled benchmark comparing four lightweight AI agents on a complex creative-studio collaboration build. By fixing the framework, task, inputs, and acceptance rules, it isolates execution efficiency from model size. All four models passed, but end-to-end time ranged from 17 minutes to 88 minutes. The analysis traces these gaps to action turns, serial versus parallel tool calls, retry and backoff strategy, and context management, then offers reusable engineering practices for evaluating agents on end-to-end efficiency rather than single-turn speed.
1. Experiment Design: Isolating the Model as the Only Variable
When evaluating how well an AI agent handles complex engineering tasks, the most common approach is to drop different models into different toolchains and compare the results. The problem is that the conclusions end up mixing framework capability, prompt engineering, and tool-adaptation quality. A more rigorous approach is to control the variables: fix the execution framework, task description, input assets, context-window strategy, browser environment, and acceptance rules, and swap only the underlying large model.
This benchmark followed that principle. All four participating models were lightweight models below 300B parameters. Three were positioned for low-latency, low-cost scenarios, and one served as a long-context control group. The task was to build a creative-studio collaboration system. The only inputs were a few openly licensed images, member information, asset metadata, version records, and seed comment data—with no existing pages to reference.
The models had to independently implement five stateful pages: project overview, inspiration board, asset location and comments, version approval, and publish preview. The system also had to support permission and view differences across three roles (creative director, designer, client), handle asset drag-and-drop, comment anchor positioning, version switching, and approve/return actions, and preserve state after a refresh.
The acceptance rules were fixed as well: every interaction must be clickable, state must persist, all three role views must be switchable, and pages must be free of blocking errors. The key point of this design is that acceptance does not rely on subjective human aesthetics; it uses repeatable, rule-based checks.
2. Results Overview: All Passed, but the Process Differed Widely
All four models eventually passed acceptance, but end-to-end time differed significantly:
- Model A: finished in 17 minutes, with no full rerun;
- Model B: failed on the first run, then completed after a rerun, for a cumulative 1 hour 12 minutes;
- Model C: no full rerun, but 3 internal automatic retries, for a cumulative 88 minutes;
- Model D: failed twice in a row under the default retry policy, then completed after adjusting backoff parameters, for a cumulative 1 hour 04 minutes on the first success.
These numbers show that “whether it finishes” and “how fast it finishes” are two different questions. A low-cost or high-speed product positioning only describes single-turn inference performance. Real agent efficiency is determined jointly by the number of action turns, tool calls, service stability, and context management.
3. Four Technical Root Causes of the Efficiency Gap
3.1 Action Turns: Ineffective Loops Are the Biggest Hidden Cost
Agents typically complete tasks through an “observe–plan–act–verify” loop. More action turns mean higher cumulative latency. Some models tend to generate a large amount of code at once, with little intermediate verification, so errors surface in a concentrated way later. Others advance in small, fast steps, changing and immediately verifying one module per turn. Their per-turn cost is slightly higher, but overall convergence is faster.
3.2 Tool Calls: Serial vs. Parallel
Complex front-end tasks involve multiple tool types: file reads and writes, dependency installation, browser screenshots, and log reading. If a model calls tools strictly serially, time grows linearly. If it can issue calls in parallel when there are no dependencies, total time can be compressed significantly. In addition, the size of tool return values affects context usage, which in turn affects the quality of subsequent reasoning.
3.3 Service Stability and Retry Strategy
The full reruns and repeated automatic retries in the experiment mainly came from transient server unavailability or timeouts. Default retry policies often use a fixed interval, which easily leads to consecutive failures within a failure window. Switching to exponential backoff with random jitter clearly improved the success rate. In engineering practice, it is advisable to decouple retry logic from business logic and let the framework manage it centrally:
attempt = 0delay = basewhile attempt < max_attempts:result = call_model()if result.ok:return resultsleep(delay + random_jitter())delay = min(delay * 2, cap)attempt += 1
3.4 Context Management: Segmentation and Compression for Long Tasks
Multi-page stateful tasks generate a large amount of intermediate output. Stuffing all of it into the context easily triggers truncation or attention dilution. A more reliable approach is to proceed in segments: first build the skeleton and routing, then fill in interactions page by page, and finally do persistence and role-view verification together. For completed modules, a summary can replace the full code, keeping only the interface contract.
4. Reusable Engineering Recommendations
- When evaluating agents, record end-to-end time, action turns, tool calls, retry counts, and the distribution of failure causes—not just the final screenshot.
- For latency-sensitive scenarios, prefer execution strategies with small-step verification and parallel tool calls over simply pursuing single-turn generation speed.
- Retry mechanisms must be backoff-based and observable, and work with idempotent design to avoid state pollution from duplicate writes.
- Complex tasks should be split into independently verifiable sub-goals, each with a rule-based check script.
- Context management should be designed up front: define what information must stay resident, what can be summarized, and what should be written to external storage.
5. Conclusion
The core conclusion of this benchmark is not that one model is “the strongest.” It is that, under a fixed framework, fixed task, and fixed acceptance rules, efficiency differences between models come mainly from execution strategy and stability—not from parameter size or nominal speed alone. For enterprise-grade agent applications, it is advisable to shift the evaluation focus from “single-turn capability” to “end-to-end engineering efficiency,” and to bring retries, context, and tool orchestration into a unified observability system. Building the evaluation and runtime environment on general-purpose capabilities such as the container platform, object storage, log service, and monitoring and alerting offered by Baidu AI Cloud can help reproduce the controlled experiment more reliably and continuously improve the real output efficiency of agents.
