How to Evaluate Large Language Models: From Task Cost to Agent Compatibility
This article explains how to evaluate large language models for production use. It covers why parameter counts and leaderboard scores do not fully show practical value, how to measure the cost of a qualified task, how post-training and tool design affect results, and how to build reproducible evaluations and layered deployment strategies for AI agents.
1. Define the Evaluation Target First
Each time a new generation of large models is released, discussion tends to center on three questions: How much have the scores improved? How much have the parameters grown? Is the price lower? These figures describe only some characteristics of a model. They cannot directly answer the question enterprises care about most: Can the model complete business tasks reliably, and how many resources does that take?
Real-world performance depends on more than the model. Prompts, context organization, knowledge retrieval, tool interfaces, permission boundaries, retry mechanisms, and result validation all change the final outcome.
A model that performs well on simple Q&A does not necessarily handle business workflows that require many tool calls reliably. A model that scores poorly in a complex evaluation environment does not necessarily lack basic reasoning ability. The problem may lie in unclear tool descriptions, mismatched interaction protocols, or an insufficient task budget.
Evaluation should therefore distinguish three layers:
- Foundational capability layer: Assesses language understanding, reasoning, code generation, and knowledge application.
- Interaction and execution layer: Assesses whether the model follows formats, selects tools, fills in parameters, and handles execution feedback.
- Business system layer: Assesses end-to-end success rate, latency, cost, security, and maintainability.
These layers affect one another, but one cannot replace another. Production selection ultimately compares model and system combinations, not isolated models.
2. Why Parameter Counts and Leaderboard Scores Do Not Directly Indicate Practical Value
2.1 More parameters do not mean proportionally greater business benefit
Parameter count is one important factor affecting model capability, but it is not the only one. Training data quality, model architecture, training objectives, compute allocation, and post-training strategy also affect final performance.
Two models may differ by only a few points on a comprehensive benchmark, yet that gap may correspond to very different business value.
For information extraction tasks with fixed formats and clear rules, a smaller model may already be reliable enough. Scaling up may not yield noticeable gains. For tasks with complex constraints and high error costs, a small increase in success rate can significantly reduce manual review.
So one cannot conclude that “large models offer limited improvement, so they are not worth using,” and one cannot assume that “bigger models suit every scenario.”
A more useful question is whether the new capability covers the key failure types in the business, and whether its benefits outweigh its added cost.
2.2 Composite scores can hide capability distribution
Composite metrics are typically aggregated from multiple tasks. Their results depend on task mix, scoring methods, and weights. Two models with similar total scores may excel in different areas.
For example, one model may understand short texts more consistently, while another may perform better at multi-step reasoning under complex constraints. If the business mainly processes structured field extraction, the advantage in complex reasoning may not translate into real gains.
Selection should therefore build a capability matrix rather than rely on a single total score:
| Task dimension | What to observe |
|---|---|
| Text understanding | Whether conditions are missed, and whether object relationships are identified accurately |
| Structured output | Whether fields are complete, types are correct, and content meets constraints |
| Multi-step reasoning | Whether intermediate steps are consistent, and whether there are unsupported leaps |
| Tool calling | Whether tool selection, parameter filling, and execution order are correct |
| Long-context processing | Whether the model can locate evidence, and whether irrelevant content interferes |
| Exception handling | Whether the model recognizes failures, stops erroneous processes, and requests help when needed |
The business should set the weights of the matrix. Do not copy the task proportions of external evaluations.
3. Measure Cost per Qualified Task, Not the Unit Price per Call
A model that is cheap per call does not make the business process cheap. If a low-cost model needs more interaction rounds, more failed retries, and more manual correction, its total cost may be higher.
A useful measure is:
Average cost per qualified task = total investment during evaluation ÷ number of tasks completed successfully
The total investment should include at least:
- Inference cost: Input, output, and costs from repeated generation.
- Tool execution cost: Retrieval, database queries, computation, and other resource consumption.
- Failure and retry cost: Replanning, parameter correction, and switching models.
- Manual processing cost: Review, supplementary entry, correction, and exception handling.
- System maintenance cost: Process debugging, monitoring, version upgrades, and regression testing.
If the business is sensitive to response time, record end-to-end latency separately. Latency cannot always be converted into cost, but it should not be ignored for that reason.
Comparisons require a consistent definition of “qualified.” A field extraction task may require all key fields to be correct at once. A business workflow task may require successful tool execution, validated results, and no unauthorized operations. A plausible-looking answer alone should not count as task success.
When one option is not better than another on quality, cost, and latency, it offers no clear selection advantage. When different options win on different dimensions, the choice depends on business constraints. Do not force a single universal winner.
4. Post-Training Matters, but It Does Not Explain All Capabilities
Pretraining lets a model learn broad language patterns, knowledge associations, and some reasoning ability. Post-training shapes how the model follows instructions, organizes answers, uses tools, and meets behavioral constraints.
Post-training can strongly influence how a model behaves, but it does not fully determine model performance. Foundational capability, context quality, reasoning budget, and external tools are equally important.
The idea that knowledge is completely fixed after pretraining also needs careful interpretation. Knowledge held in model parameters is mainly formed during training. Application systems can still provide new information through context, retrieval, and tools. Whether the model uses that information reliably depends on its understanding and execution ability.
Adaptation to specific interaction patterns may affect cross-environment performance
If a model frequently encounters certain tool descriptions, operation steps, and feedback formats during training, it may become better at that interaction pattern. When moved to a different environment, its performance may drop even if the task goal stays the same.
Do not immediately conclude that the model is overfitted. Also check:
- Whether tool descriptions are ambiguous;
- Whether returned data is too long or lacks necessary fields;
- Whether the prompt contains conflicting instructions;
- Whether the new environment requires a different error recovery strategy;
- Whether limits on output length, number of calls, or total time are too strict.
Only controlled experiments can show whether the problem comes mainly from the model, from training adaptation, or from system design.
5. Does Adding More Tools Always Make an Agent Stronger?
An agent typically plans around a goal, calls tools to get information or perform actions, and then continues based on the feedback. Its value depends not only on whether the model can reason, but also on whether the system gives it a clear, controlled action space.
Adding tools extends the capability boundary, but it also increases decision complexity.
5.1 Many tools may introduce extra interference
When several tools have similar functions, vague names, or complex parameter structures, the model must first decide which tool to use before it can advance the task.
Tool descriptions also take up context space. If returned results are not filtered, they further reduce the space available for task evidence and historical state.
As the number of tools grows, the system may show:
- Wrong tool selection or repeated calls;
- Repeated switching between similar interfaces;
- Ignoring existing results and running unnecessary retrieval;
- Treating an incomplete tool return as a final conclusion;
- Expanding the scope of operations to recover from a local error.
These symptoms point to insufficient tool design. They do not, by themselves, prove that the model’s foundational capability
