How to Evaluate LLM Agent Capabilities and Analyze Selection Costs
A practical guide to evaluating large language model (LLM) agents when benchmark scores are hard to compare. Learn how to filter comparable benchmarks, account for inconsistent evaluation conditions, replace simple averages with weighted scoring, and convert hardware requirements into cost per million tokens for better model selection.
1. Why Benchmark Comparisons Are Hard to Conclude From
The open-source community has been moving fast lately. One team planned to release weights and technical documentation late at night but went public two hours early; another team claimed and open-sourced its own model almost simultaneously. Domestic models occupy most of the leaderboard seats, and a significant share of them are derivative versions of the same model family at different parameter scales. Community preference is clearly concentrated on mid-sized (around 30B parameters) general-purpose and code-mixed models.
The direct problem with this dense release cadence is that any conclusion about “who is stronger” can go stale quickly. Worse, the benchmarks disclosed in each team’s technical documentation do not overlap. The evaluation items that appear in both documents are often just a few. So the professional approach is not to find an overall “score champion,” but to first establish comparability and then discuss strengths and weaknesses.
2. Filtering Comparable Benchmarks: Only Keep Items Both Sides Disclose
When the evaluation matrices in two technical documents do not match, the correct order is:
- Take the intersection: keep only benchmarks that both sides disclose with the same name and the same task definition;
- Verify the methodology: confirm whether the dataset version, sample size, and scoring method (pass rate / score / human review) are consistent;
- Annotate differences: explicitly record inconsistent evaluation conditions as a confidence discount on the conclusion.
By this principle, you can filter out four types of benchmarks that are mentioned by both sides and all point to the real working capability of agents:
- Real code repository understanding and repair: locating issues in an existing repository, making cross-file changes, and running verification, testing long-cycle software engineering ability;
- Natural language to a complete repository: generating a runnable project from a requirement description, testing directory design, multi-file collaboration, and engineering completeness;
- Continuous tool calling: selecting the correct item among multiple candidate tools and chaining execution, testing workflow continuity and self-correction after errors;
- Cross-industry professional tasks: long-range planning, graphical interface operation, and delivery reliability, close to “end-to-end delivery” acceptance standards.
These four items happen to cover the four key aspects of agent deployment: modifying existing code, building new code, using tools, and handling miscellaneous tasks. Compared with a single Q&A or single-turn code completion, they are more sensitive to context length, instruction following, and error recovery.
3. Inconsistent Evaluation Conditions: The “Disclaimer” That Must Go Into the Conclusion
The numbers for the same benchmark in different vendors’ documents are often affected by the following variables, which are usually not fully disclosed:
- Agent scaffold: different prompt templates, tool descriptions, and retry strategies can shift scores by several percentage points;
- Context window and truncation strategy: long-repository tasks are extremely sensitive to truncation;
- Reasoning intensity / thinking budget: whether high-intensity reasoning is enabled, and the thinking token limit;
- Sampling and repetition count: single-run pass rate and best-of-multiple (pass@k) are not the same thing;
- Anti-cheating and contamination control: whether training-set overlap samples are filtered, and whether test-set retrieval is disabled.
Therefore, any cross-document comparison should be treated as an “order-of-magnitude reference” rather than a precise ranking. The safe engineering practice is to re-run a small-scale evaluation on your own task distribution (even just 50–100 items) and calibrate with your own data.
4. Interpreting Results: Sweeping Wins, Mixed Results, and the “Average Score Trap”
Abstracting the performance of three model types (call them A, B, and C) across the four items above yields three typical conclusion shapes:
- One side sweeps all four: leading by about 5 points on a simple average, with the most prominent advantages in existing-repository repair (leading by about 9 points) and continuous tool calling (leading by about 8 points). This indicates better long-context stability and tool-protocol adherence.
- The other two are mixed: one is stronger in “existing engineering” and “tool calling,” while the other is stronger in “generating a repository from scratch” and “cross-industry operation,” with a simple four-item average differing by only around 0.1 points—noise-level.
- The average score trap: a simple average weights the four items equally, but in real business the weights are highly uneven. If 80% of your scenario is modifying existing code, then the weight of “existing repair” should be far higher than the others, and a lead on the average score is meaningless.
It is recommended to replace the simple average with a weighted score:
# Use business weights instead of an equal-weight average to avoid being misled by the "total score"weights = {"repo_fix": 0.45, # Existing repository repair"nl2repo": 0.20, # Generating a project from scratch"tool_use": 0.25, # Continuous tool calling"pro_task": 0.10, # Cross-industry professional tasks}def weighted_score(scores: dict) -> float:return sum(scores[k] * weights[k] for k in weights)# scores are self-test results normalized to 0–100print(weighted_score({"repo_fix": 62, "nl2repo": 55,"tool_use": 58, "pro_task": 49}))
5. The Cost Dimension: Converting “Can It Run” Into “How Much Per Hour”
Beyond benchmarks, what often determines whether something can be deployed is resource overhead. From a local deployment perspective, VRAM and memory requirements are roughly proportional to parameter count and quantization precision. Taking 4-bit quantization as an example, a mid-sized model (around 30B parameters) has a weight size of roughly around 100GB; if the parameter count doubles, it needs roughly on the order of 200GB. This is just the weights themselves; you also need to add KV cache, activations, and framework overhead.
Rough calculation:
Weight VRAM ≈ parameter count × bytes per parameter4bit → about 0.5 Byte/parameter8bit → about 1.0 Byte/parameterFP16 → about 2.0 Byte/parameterKV cache ≈ 2 × layers × hidden dimension × sequence length × batch × precision bytesUsable VRAM = total VRAM − weights − KV cache − framework reserve
Example: with 100GB of weights at 4-bit, if a single card’s VRAM is insufficient, you need multi-card tensor parallelism or switch to lower precision / a smaller model; the 200GB order of magnitude basically means starting with a single-machine multi-card setup, and the costs of operations complexity, fault recovery, and throughput tuning all step up a level. So “can it run locally” should be converted into “combined cost per million tokens” and then compared with cloud pay-as-you-go or annual plans. If you go with the cloud, you can focus on general-purpose category capabilities: container platforms hosting inference services, object storage holding models and datasets, logging services and monitoring alerts for observability, and message queues for task peak shaving.
6. Selection Decision Checklist
- Task profile first: first tally the real request distribution (modifying existing code / building new projects / calling tools / office automation), then set the weights;
- Small-sample self-test: re-run candidate models with 50–100 of your own samples to offset scaffold differences;
- Context testing: stress-test truncation behavior with the longest real input, rather than only looking at the nominal window;
- Tool protocol verification: check function-call format adherence, error retry, and rollback capability;
- Cost conversion: convert VRAM requirements into hourly / per-million-token cost, including operations labor;
- Replaceable architecture: abstract an interface at the model layer, keeping multi-model canary and fallback capability to avoid being locked to a single version;
- Version tracking: fix the evaluation set and scripts, incorporate them into continuous integration, and automatically regress on model upgrades.
7. Conclusion
During a dense release period, the leaderboard is more like a “daily quote,” and what is truly stable is the methodology: take the intersection, unify the methodology, use weighted scoring, convert costs, and calibrate with your own data. The more intense the competition, the more the engineering side should build “reproducible evaluation” and “replaceable architecture” as infrastructure—this is the dividend that teams can continuously capture beyond the noise.
