Multi-Model AI Agent Evaluation: Why Stability Matters More Than Speed
Evaluating AI agents requires looking beyond simple response speed. This article explores a horizontal evaluation of multiple LLMs within a fixed agent framework, highlighting the importance of task stability, context management, retry strategies, and comprehensive metrics for enterprise-level model selection.
In complex AI agent tasks, a model’s answer quality is only one dimension of evaluation. For tasks that require continuous web browsing, material understanding, multi-round operations, file modifications, and final delivery, production efficiency often depends on the model’s ability to reliably complete the entire closed loop.
In one experiment, researchers fixed the agent execution framework, keeping the task description, input materials, context information, browser environment, and acceptance rules completely consistent, only swapping the underlying large language model. Four general-purpose models designed for high-concurrency or low-cost scenarios were tested. All four eventually completed the task, but the execution processes showed significant differences: one model finished in about 17 minutes; another failed on the first attempt and took about 1 hour and 12 minutes after a re-run; the third triggered 3 automatic retries within a single task run, ultimately taking about 88 minutes; the fourth completed the task by extending the backoff time after two consecutive failures under the default retry strategy, with a first successful completion taking about 1 hour and 4 minutes.
This result indicates that in agent scenarios, model parameter size, single-response speed, or API pricing cannot independently represent true operational efficiency. For enterprise applications, more attention should be paid to the complete pipeline from “receiving a task” to “reliable delivery.”
1. Why Fix the Agent Framework for Testing?
If you simultaneously change the model, agent framework, browser environment, and task materials, it is impossible to determine which factor caused the final result. For instance, a shorter completion time for one model might be because the agent framework reduced tool calls, while a higher failure rate for another model could be due to inconsistent browser environment or context configuration.
Therefore, a rigorous horizontal test should follow the single-variable principle:
- Consistent Agent Framework: Includes task scheduling, tool calling, state saving, retry mechanisms, and result submission logic.
- Consistent Task Description: Do not modify prompts or lower acceptance criteria for different models.
- Consistent Input Materials: Includes images, documents, web content, and structured data.
- Consistent Runtime Environment: Standardize browser version, network conditions, file permissions, and system resources.
- Consistent Acceptance Criteria: Do not just check if a page is generated; also verify functionality, content completeness, and interaction results.
- Log the Entire Process: Save model outputs, tool calls, failure reasons, retry times, and final status.
Only under these conditions will the test results be comparable.
2. Execution Pipeline of Complex Agent Tasks
Such tasks are usually not a single text generation but a multi-step workflow:
Task Understanding↓Execution Plan Decomposition↓Material & Context Reading↓Browser or Tool Calling↓Generation, Modification & Validation↓Exception Handling & Retry↓Final Submission
Any issue in any of these stages can significantly increase the overall time.
For example, a model might correctly understand the task goal but fail to read key materials in time; it might successfully generate an initial result but fail to identify its own errors during validation; or it might repeatedly execute the same operation due to incomplete tool calling parameters. To users, these issues ultimately manifest as “the model is slow” or “the task is unstable,” but their underlying causes differ.
Therefore, evaluation should not only record the final completion time but also break down the time spent and failure sources in each stage.
3. Single-Response Speed Does Not Equal True Efficiency
In standard Q&A scenarios, response speed directly reflects user experience. In agent tasks, actual time consumption is closer to the following formula:
Total Time =Effective Execution Time+ Model Wait Time+ Tool Call Time+ Retry Time+ Failure Recovery Time+ Human Intervention Time
A model might have a fast single response, but if it frequently generates invalid operations, the final completion time will still be long. Conversely, another model might have a slightly slower single response but can reduce tool calls and rework, resulting in a faster overall delivery.
Retry frequency deserves special attention. Assuming an average tool call takes 30 seconds, 20 consecutive retries will consume an extra 10 minutes; if each failure requires reloading a page, restoring context, or regenerating a file, the actual loss is even greater.
Therefore, when evaluating models, enterprises should record the following metrics:
- First-attempt success rate;
- Final success rate;
- Average completion time;
- P50, P90, and P95 latency;
- Average number of tool calls;
- Average number of retries;
- Invalid operation ratio;
- Context recovery count;
- Human intervention count;
- Resource consumption per task.
Among these, P95 latency better reflects the user experience in extreme cases than the average. For batch automation tasks, a stable completion rate is usually more important than the fastest performance among a few samples.
4. Retry Mechanisms Amplify Model Differences
Different models may recover from the same error in entirely different ways.
Some models identify the error cause and adjust parameters or execution paths; others repeatedly submit the same operation; others can continue completing the task after the agent framework triggers an automatic retry, without actually knowing the specific reason for the previous failure.
Therefore, more retries are not always better. A reasonable retry strategy should distinguish between error types:
1. Temporary Errors
Examples include network jitter, page load timeouts, or brief service unavailability. These can use exponential backoff with a maximum retry limit.
2. Parameter Errors
Examples include missing fields, incorrect formats, or non-existent target elements. In these cases, the error context should be returned so the model can correct the calling parameters, rather than simply repeating the request.
3. Logic Errors
Examples include the model misjudging the page state or choosing the wrong operation path. These require rolling back to the previous stable state and replanning the steps.
4. Irrecoverable Errors
Examples include insufficient permissions, corrupted input materials, or inherently conflicting task goals. Continuing to retry only wastes resources; the task should be terminated promptly with a clear reason output.
A practical retry flow can be represented as:
Execute Tool Call↓Determine Result Type├─ Success: Proceed to next step├─ Temporary Error: Backoff and retry├─ Parameter Error: Add error context and correct├─ Logic Error: Rollback state and replan└─ Irrecoverable: Terminate and request human intervention
5. Context Management Defines Long-Task Limits
Complex tasks often last for tens of minutes and may require opening multiple pages and modifying files. If the agent framework lacks robust state management, the model can easily forget completed work and repeat early steps.
It is recommended to divide the task state into three categories:
- Goal State: The final result the task needs to achieve.
- Process State: Which steps have been completed and what the current stage is.
- Evidence State: What content has been validated and what the validation results are.
For example, instead of only keeping “page completed” in the context, record:
Page Structure: CompletedCore Content: WrittenInteraction: 2 out of 3 verifiedVisual Check: CompletedSubmission: Pending
This structured state reduces redundant operations and helps the model recover quickly after a failure.
Furthermore, avoid indiscriminately dumping all historical outputs into the context. Overly long history records increase input costs and reduce the model’s focus on the current task. A more reasonable approach is to retain summaries, key decisions, error information, and to-do items, while placing low-value process logs into separate storage.
6. How to Design More Reliable Enterprise-Level Evaluations
For a one-off model experience, you can observe completion time and final results; but for production environments, it is recommended to conduct multiple rounds of repeated experiments covering different difficulty levels.
Test tasks can be divided into three categories:
- Short-flow tasks: Verify the model’s basic tool calling capabilities.
- Medium-complex tasks: Verify context maintenance and error recovery capabilities.
- Long-chain tasks: Verify continuous execution, state management, and final validation capabilities.
Each type of task should be run multiple times, recording success rates and time distributions. If run only once, random network conditions or service loads may skew the conclusions.
At the same time, acceptance should adopt a comprehensive approach of “Functional Correctness + Process Reliability + Resource Efficiency”:
- Functional Correctness: Does the final result meet the requirements?
- Process Reliability: Are there repeated operations, lost states, or abnormal interruptions?
- Resource Efficiency: Are the time, call counts, and retry costs acceptable?
7. Practical Implications for Model Selection
The most important conclusion from this experiment is not that a certain model is “absolutely the best,” but that different models’ advantages may manifest in different areas.
For real-time interaction scenarios, priority should be given to first-response speed and short-task success rates; for batch automation scenarios, focus on long-task completion rates, P95 latency, and failure recovery capabilities; for high-value tasks, emphasize result accuracy, auditability, and human handoff mechanisms.
In actual deployment, a tiered routing strategy can be adopted:
- Assign simple tasks to low-cost, low-latency models.
- Use more stable models for tasks requiring multi-step tool calls.
- Automatically upgrade to a stronger model after failures.
- Add human confirmation for high-risk operations.
- Save successful trajectories for repetitive tasks to reduce subsequent exploration costs.
This approach provides more engineering value than simply selecting a model with the “best average performance.”
Conclusion
The core competitiveness of an AI agent is not just whether the model can generate correct answers, but whether it can continuously act, handle exceptions, maintain context, and stably deliver results in real environments.
Horizontal evaluation should upgrade from “who responds faster” to “who can stably complete full tasks with fewer invalid operations, fewer retries, and less human intervention.” Only by observing model capabilities, agent frameworks, tool systems, and validation mechanisms within the same closed loop can we draw conclusions truly valuable for R&D and enterprise deployment.
