How to Evaluate LLM Intelligence and Agent Capabilities: A Practical Framework
Recent model releases are often promoted with claims like "the smartest model" or "the most aligned model." For developers and enterprises, however, the real question is not "which model ranks first," but "which model can reliably complete my tasks under my task distribution, cost budget, security boundaries, and operational constraints." Evaluating large language models should therefore go beyond a single leaderboard or one-off demo, and instead build a multi-dimensional, task-based, reproducible, and sustainable evaluation system. This article covers five areas: evaluation methodology, a capability matrix, evaluation design, engineering implementation, and selection guidance.
Why “Smartest” Is Not a Single Scalar
Intelligence is inherently multi-dimensional. A model may not lead on general knowledge reasoning, yet perform better on coding agents, desktop operation, or long-horizon cross-domain tasks. Conversely, it may score highly on public benchmarks but fail frequently in real-world tool calling, permission-restricted environments, and exception recovery. General capability and task-specific agent capability do not always align, due to differences in task distribution, tool permissions, reasoning budget, and cost constraints.
Artificial general intelligence (AGI) is often defined as “matching or exceeding human performance on most cognitive tasks,” but “most,” “cognitive tasks,” and “human level” all lack a unified operational definition. Reducing evaluation to a single composite index obscures differences on critical dimensions such as repository-level code repair, browser operation, file system management, long-horizon memory, and suppression of dangerous actions. A more reasonable approach is to build a capability matrix and assign weights per business scenario, for example:
Composite score = Σ (dimension weight × normalized success rate) − λ × normalized per-task cost − μ × risk penalty
The risk penalty can include unauthorized operations, data leakage, unrecoverable failures, and human takeover costs. This formula is not meant to create a new “single ranking,” but to emphasize that model selection must explicitly express business preferences.
Public leaderboards also have several common pitfalls:
- Benchmark saturation: When top models approach the ceiling on older benchmarks, the leaderboard loses discriminative power.
- Data contamination: Training data may indirectly contain benchmark questions or near-duplicates, inflating scores.
- Unfair tool permissions: Some evaluations allow internet access, code execution, or external tools; others do not, making results incomparable.
- Inconsistent reasoning budgets: Maximum-compute modes differ greatly from default modes in cost, latency, and success rate.
- Randomness and variance: A single run is insufficient to represent stable capability, especially for long-horizon tasks.
- Ignored costs: Per-task cost, retry cost, and human takeover cost often matter more than the price of a single call.
A Six-Dimension Capability Matrix
1. General knowledge reasoning. Focus on multi-step reasoning, factual accuracy, contextual consistency, refusal behavior, and expression of uncertainty. Evaluations should include both closed-book and open-book modes, and distinguish whether the model admits when it does not know. For enterprise knowledge Q&A, also check citation accuracy after retrieval augmentation, handling of conflicting information, and knowledge freshness.
2. Coding agents. Look beyond code completion to repository-level fixes, test generation, dependency management, code review, and CI regression. Key metrics include task pass rate, regression introduction rate, human rework time, per-task cost, and end-to-end latency. A model that can write code snippets does not necessarily understand the constraints of a large repository and produce mergeable changes.
3. Computer use. This covers desktop GUIs, browsers, file systems, spreadsheets and documents, plus recognition of dangerous actions within permission boundaries. Evaluate end-to-end success rate, average number of steps, exception recovery, dangerous-action rate, and human takeover rate. Significant gains on public computer-use benchmarks indicate stronger tool use and visual grounding, but validation is still needed under real enterprise software and permission policies.
4. Long-horizon tasks and multi-tool orchestration. Real work often spans multiple systems and steps, requiring memory, planning, interruption recovery, and result verification. Metrics include task completion rate, human takeover rate, average latency, recoverability after failure, and whether the model proactively clarifies when information is missing.
5. Safety and alignment. Alignment cannot be judged by safety leaderboards alone; run red-team testing covering prompt injection, unauthorized tool calls, sensitive data exfiltration, malicious file operations, social engineering, and denial-of-service loops. Also assess auditability, including log integrity, operation replay, and least-privilege enforcement. The more capable an agent, the more it needs dangerous-action restrictions and human confirmation points.
6. Cost efficiency. Account for cost at the task level: model calls, tool calls, retries, parallel exploration, human takeover, and latency. High success rates at excessive cost may not scale; low cost with heavy human rework may also raise total cost. Calculate “total cost per successful task” rather than the price of a single call.
Evaluation Design: From Public Benchmarks to Private Test Sets
Public benchmarks are useful for coarse screening and tracking trends, but final decisions should rely on private test sets. Steps for building one:
- Stratified sampling from real tickets, code repositories, support records, and document workflows
- Redaction of personally identifiable information
- Verifiable gold standards defined for each task
- Coverage of easy, medium, hard, and long-tail edge cases
- Time-based splits between training and evaluation to reduce contamination risk
- Regular rotation of dynamic tasks to prevent overfitting to a fixed question set
Reproducible configurations must record: model version, reasoning budget, temperature and sampling parameters, tool permissions, network access, timeout and retry policies, random seeds, run counts, and cost caps. For long-horizon tasks, run multiple times and report confidence intervals rather than only the best result. Statistically, use paired comparisons: run the same task set on different models, compare success-rate and cost differences, and watch variance and extreme failure cases.
Illustrative pseudocode for aggregating success rate, cost, and latency by dimension:
Define TaskResult: task ID, dimension, success flag, latency, cost, tool call countFunction aggregate(results):Group by dimensionFor each dimension:sampleCount = number of results in groupsuccessRate = successes / sampleCountavgCost = total cost / sampleCountavgLatency = total latency / sampleCountRecord sampleCount, successRate, avgCost, avgLatencyReturn per-dimension summary
In practice, also add confidence intervals, dangerous-action counts, human takeover rates, and failure-cause classification. For high-risk tasks, set a “zero-tolerance” gate: any unauthorized write, sensitive data exfiltration, or unrecoverable deletion fails the version outright, rather than being offset by average scores.
Engineering Implementation: Evaluation Pipelines and Production Monitoring
Evaluation should be engineered as a pipeline, not a one-off script. Isolate the evaluation environment in containers, store test sets, model outputs, tool logs, and scoring results in object storage, and use logging services and monitoring alerts to track regressions. In a Baidu AI Cloud environment, generic services such as container platforms, object storage, logging, and monitoring alerts can be used to build the pipeline, but implementations should follow least-privilege and audit requirements.
After deployment, monitor continuously: task success rate, per-task cost, latency, human takeover rate, dangerous-action rate, failure-type distribution, and input distribution drift. Use staged rollouts and regression gates: run new versions on low-risk traffic first, compared pairwise against the baseline model; roll back automatically if success rate drops or risk metrics rise. For agent applications, retain operation replay and human confirmation points to prevent automated workflows from amplifying errors on anomalous inputs.
Selection Guidance and Conclusion
When selecting a model, do not trust “smartest” marketing; set weights according to your business scenario. If your core business is code generation and repository maintenance, focus on coding-agent task pass rate, regression introduction rate, and per-task cost. For desktop automation and RPA, prioritize computer-use end-to-end success rate, exception recovery, and dangerous-action rate. For knowledge Q&A, prioritize factual accuracy, citation accuracy, and refusal quality. For high-risk operations, safety alignment and auditability should outrank average scores.
The conclusion: judging whether a model is “the most intelligent” must come back to tasks, cost, constraints, and risk. General capability benchmarks indicate knowledge and reasoning level, but cannot replace evaluations of coding agents, computer use, long-horizon tasks, and safety red-teaming. Public leaderboards can screen candidates but cannot replace private test sets. A single best score shows the ceiling but does not represent reliable delivery. Only by building a multi-dimensional capability matrix, task-level cost accounting, statistically significant comparisons, and continuous production monitoring can developers and enterprises turn “smartest” marketing claims into verifiable selection criteria.
