Cross-Model Efficiency Analysis for AI Agents Under a Fixed Execution Framework

    A controlled comparison of four model categories shows why AI agent performance cannot be evaluated by final output or response speed alone. By keeping the task, tools, environment, and acceptance criteria unchanged while replacing only the underlying model, the experiment examines planning, tool use, error recovery, context management, execution time, retries, and delivery stability in a multi-state creative collaboration workflow.

    1. Why Run a Cross-Model Experiment?

    In agent development, model performance is often summarized using a single metric, such as response speed, parameter count, price, or final visual quality. In real software development and design collaboration tasks, however, a model does not simply generate a piece of text. It must continuously observe its environment, plan steps, call tools, modify results, and validate its work based on feedback.

    An agent’s practical productivity therefore includes at least the following dimensions:

    1. Task understanding: Can it correctly understand the objective, constraints, and acceptance criteria?
    2. Planning: Can it break a complex objective into reasonable stages and sequence operations appropriately?
    3. Tool use: Can it correctly operate browsers, file systems, editors, and other external tools?
    4. Error recovery: Can it quickly correct failed tool calls, page anomalies, or results that do not meet expectations?
    5. Context management: Can it retain task status, previous decisions, and unfinished work throughout a long workflow?
    6. Delivery stability: Can it consistently complete the task under the same conditions rather than relying on an accidental successful path?

    Comparing only the final screenshot often hides how many failures occurred along the way or whether the result was achieved through inefficient repetition. This experiment therefore focuses on the complete execution process, not just the final artifact.

    2. Experimental Design: Changing Only the Model

    To minimize environmental differences, the agent framework was kept unchanged while the following conditions remained consistent:

    • The task objective was identical.
    • The input materials were identical.
    • Project members, version information, and comment data were identical.
    • The browser environment and page access conditions were identical.
    • Context content and acceptance rules were identical.
    • The operations available to the agent were identical.
    • Only the underlying model was replaced.

    Four representative model categories were tested and labeled Model A, Model B, Model C, and Model D. This approach avoids turning the experiment into product promotion and makes it more suitable for analyzing model capabilities themselves.

    The task was to build a multi-state workspace for creative collaboration. The only visual inputs were six city-themed images from an open image library, along with seed data for project members, assets, versions, and comments. No existing page was available for the models to imitate. Each model had to understand the requirements, plan the interface structure, and implement the interaction flow independently.

    The final system needed to cover five primary states:

    1. Project overview: Display basic project information, members, current progress, and key activities.
    2. Inspiration board: Present image assets in a centralized workspace and organize them by creative direction.
    3. Asset location and comments: Locate a specific asset and view or add related comments.
    4. Version approval: Display different version states and support actions such as approval or rejection.
    5. Publish preview: Review the page content and state completeness in a format close to the final deliverable.

    The challenge was not generating a single page. The five states had to form a coherent user journey. The model needed to handle visual layout, data organization, interaction logic, and acceptance requirements at the same time.

    3. Results: Completion Does Not Mean Efficiency

    All four models eventually completed the task, but their execution processes differed significantly.

    Model A completed the task in approximately 17 minutes, making it the fastest in this test. It built the pages, switched between states, and checked the results in relatively few action rounds, without any obvious periods of stagnation. Its advantage was not simply faster output. It also established a complete execution plan early and reduced unnecessary tool calls.

    Model B failed during its first run and was then executed again, taking approximately 1 hour and 12 minutes in total. The first run had already built part of the interface, but the connections between key states were incomplete, so the result did not pass acceptance. The second run produced a deliverable result, but the initial failure created a substantial time cost. This shows that single-run generation quality does not directly translate into stable delivery capability.

    Model C did not perform a complete rerun. Instead, it triggered three internal automatic retries during one long workflow and ultimately took approximately 88 minutes. Automatic retries can prevent an immediate task interruption, but if they are not supported by clear failure analysis, they may repeat similar operations without making meaningful progress. The agent can appear to be working continuously while making little actual progress.

    Model D failed twice under the default retry policy. It then increased the backoff interval and continued execution, achieving its first successful completion after approximately 1 hour and 4 minutes. This process shows that service response stability, tool-call success rates, and retry strategies can directly affect total agent execution time.

    On the surface, all four models delivered a result. From a process perspective, however, they differed substantially in action count, failure frequency, recovery paths, and context maintenance. This is why agent evaluation cannot focus only on the final page.

    4. Key Factors Affecting Agent Efficiency

    4.1 Planning Quality Determines the Number of Ineffective Actions

    Complex tasks usually contain multiple interdependent steps. A high-quality agent will first create a task list—for example, confirming the page structure, preparing the data, implementing the core states, and then performing acceptance checks. If the model starts operating on the page immediately, it is more likely to perform repeated edits, redo layouts, or omit a state later.

    A complete execution can be abstracted as follows:

    1. Requirement analysis
    2. ↓
    3. Task decomposition
    4. ↓
    5. Data and page structure design
    6. ↓
    7. Core state implementation
    8. ↓
    9. Interaction flow integration
    10. ↓
    11. Acceptance testing and fixes

    Without sufficient early planning, the model may switch repeatedly between pages. This expands the context, increases the risk of tool-call failures, and creates additional rework.

    4.2 Tool-Call Quality Matters More Than Textual Fluency

    In an agent workflow, natural-language output is not the final product. Delivery depends on whether the model can call tools correctly and adjust its next action according to the returned results.

    An effective tool call should generally include:

    • A clear operational objective;
    • Parameters that match the current state;
    • An inspection of the returned result;
    • An alternative plan for failure;
    • Control over possible side effects.

    For example, after modifying a page, the model should not assume that the change has taken effect. It should reread the page state and confirm that the relevant elements exist, interactions work, and the visual layout has not been damaged. An operation without verification can carry an error into later stages and eventually create substantial rework.

    4.3 Retry Mechanisms Must Distinguish Failure Types

    Retrying is not always effective. Based on the cause, failures can be divided into three categories:

    • Transient failures: Service timeouts or temporary network issues, which are suitable for quick retries;
    • Parameter failures: Incorrect call formats or target objects, which require parameter correction before retrying;
    • Logical failures: Misunderstood requirements or an unsuitable page design, which require replanning rather than simple repetition.

    If every error uses the same retry policy, the model may continue wasting time on logical failures. A more effective mechanism first classifies the failure and then determines whether to retry immediately, retry after a delay, or return to an earlier task stage.

    4.4 Context Management Affects Long-Workflow Stability

    A task involving five states typically requires a long context. As the number of operations increases, the model must continue to remember:

    • Which pages have been completed;
    • Which state it is currently in;
    • Which data objects have been created;
    • Which acceptance items remain unresolved;
    • The causes of previous failures;
    • Which operations must not be repeated.

    If the context contains large amounts of irrelevant logs, duplicated page content, or repeated failed calls, the model’s effective attention may decline. In practice, the history can be compressed into a structured state summary, for example:

    1. {
    2. "completed": ["Project overview", "Inspiration board"],
    3. "current": "Version approval",
    4. "pending": ["Publish preview", "End-to-end acceptance"],
    5. "known_issues": ["Refresh the list after changing the approval state"],
    6. "next_action": "Check the approval result and open the publish preview"
    7. }

    This type of state record reduces context noise and makes it easier to recover from a failure at the most recent stable checkpoint.

    5. Metrics to Record Beyond the Final Page

    For a more objective evaluation, teams should establish process metrics instead of saving only the final screenshot.

    Basic Efficiency Metrics

    • Total execution time;
    • Time to first successful completion;
    • Number of effective action rounds;
    • Total number of tool calls;
    • Number of automatic retries;
    • Number of complete reruns.

    Stability Metrics

    • First-pass success rate;
    • Failure rate for critical steps;
    • Tool-call success rate;
    • Number of task interruptions;
    • Time required to recover from a failed state.

    Quality Metrics

    • Completeness of page states;
    • Usability of core interactions;
    • Data consistency;
    • Quality of the visual structure;
    • Acceptance-rule pass rate.

    Cost Metrics

    • Size of input and output context;
    • Proportion of ineffective calls;
    • Proportion of repeated operations;
    • Number of manual interventions;
    • Additional resource consumption caused by rework.

    Together, these metrics provide a more meaningful answer to the question, “Which model is more suitable for production?” A fast model that fails frequently may be less valuable than a slightly slower model that passes consistently. Likewise, a low-cost option that requires extensive retries may create a higher overall cost.

    6. Implications for Enterprise Adoption

    Enterprise users should not select an agent model based only on the results of a single demonstration. A more reliable approach is to create a fixed test suite based on the organization’s own business scenarios. The suite should cover page generation, data processing, browser operations, code modification, long-context collaboration, and exception recovery.

    At the deployment level, tasks can be divided into two stages: a planning model and an execution model. The planning model analyzes the objective, decomposes the task, and generates an acceptance checklist, while the execution model performs the actual tool operations. For high-risk steps, teams can also add human confirmation or automatic rollback mechanisms.

    When using general-purpose computing, logging, monitoring, object storage, or message-processing capabilities provided by cloud platforms such as Baidu AI Cloud, teams should pay particular attention to task tracing, anomaly alerts, execution record retention, and permission isolation. Once an agent enters production, process observability is often as important as the model itself.

    7. Conclusion

    This experiment kept the framework and task fixed while replacing only the model. The results show that the real efficiency of a complex agent cannot be determined by the final result or a single speed metric. All four models completed the task, but their performance ranged from rapid execution to prolonged retry-driven workflows.

    A more complete evaluation should examine planning ability, action efficiency, tool-call quality, error recovery, context management, and service stability at the same time. For development teams, the most valuable investment is not a one-time model ranking, but a repeatable, measurable, and traceable agent evaluation system.

    Only by breaking “Was the task completed?” into more specific questions—How many steps were required? How many failures occurred? How was recovery handled? Did the task pass consistently?—can teams determine whether a model is suitable for complex software development and creative collaboration scenarios.