Evaluating LLM Capabilities: From Task Decomposition to Engineering Selection
This article explores a pragmatic approach to evaluating Large Language Models (LLMs) for enterprise use. Rather than relying solely on public leaderboards and composite scores, it emphasizes decomposing business objectives into verifiable tasks, measuring capabilities under consistent conditions, and validating production reliability. It covers specific evaluation strategies for coding, web tasks, and scientific reasoning, along with cost assessment and building a reusable internal evaluation pipeline. Ultimately, it advocates for a task-based routing architecture to optimize both performance and operational costs.
1. Shift from “Which Model is Stronger” to “Which Model Fits the Task”
When facing continuously updating LLMs, developers often seek a definitive answer: Which model is closest to the state-of-the-art and can directly take over existing business workloads?
The challenge is that LLM capability is not a single metric. A model might excel at modifying code but struggle with complex scientific problems; it might quickly retrieve web information but fail to resolve conflicts between multiple sources; or it might have low per-call costs but incur higher overall costs due to frequent retries. Therefore, a reasonable selection approach is not to find a single winner across all dimensions, but to decompose business goals into verifiable tasks and then determine if candidate solutions meet the corresponding thresholds.
Model selection can be understood as three consecutive steps:
- Identify the capabilities required by the task;
- Measure these capabilities under consistent conditions;
- Verify that the capabilities can reliably translate into production benefits.
Public leaderboards are suitable for initial screening but cannot replace business validation. Even if a candidate solution scores near the top in comprehensive ratings, it does not directly imply the same reliability for a specific project.
2. Composite Scores Provide Direction, But Do Not Represent All Capabilities
Composite scores are usually aggregated from multiple evaluation sets. Their value lies in observing a model’s overall performance in a relatively uniform way, reducing the bias of judging capabilities based on a few demos. However, when reading composite scores, three conditions should be checked first.
1. Consistent Evaluation Criteria
The same model may perform differently under different conditions. Influencing factors include model version, prompt content, context length, output budget, tool permissions, and whether multi-round retries are allowed. If one solution can invoke search and code execution tools while another can only generate text, the final scores are comparing two complete systems, not just the models themselves.
Therefore, before comparing, you should record:
- Model version and test date;
- Input materials and prompt templates;
- Available tools and data scope;
- Maximum execution time and retry limits;
- Result evaluation method;
- Handling rules for invalid outputs and timeouts.
Without this information, scores lack sufficient explanatory power even if precise to decimal points.
2. Score Difference Does Not Equal Capability Percentage Difference
Composite indices are usually weighted or normalized. A difference of a few points only indicates a gap within that specific metric system and cannot be simply interpreted as a proportional lag in overall capability. Similarly, a leading score in a specific task does not mean all similar business operations will gain the same advantage. Test sets may focus on specific languages, question types, or workflows, while real business data distributions differ. A safer judgment method is to simultaneously review overall performance, sub-item scores, failure types, and business sample test results.
3. Weights Must Align With Your Business
For code maintenance teams, patch correctness and regression risk may be more important than general knowledge Q&A; for research assistance scenarios, the validity of the reasoning process and source traceability may be more important than output speed. The weights in composite leaderboards are general designs and may not fit enterprise needs. Enterprises can set internal weights, but these must be determined before testing, not adjusted post-hoc to achieve expected rankings. Meanwhile, critical requirements should not all be folded into weighted averages. For example, unauthorized operations or severe data leakage risks cannot be offset by lower costs. Such requirements should act as independent pass/fail thresholds.
3. Coding Capabilities: From “Can Write Code” to “Can Deliver Modifications”
The most common pitfall in coding evaluation is treating the generation of a seemingly reasonable code snippet as completing a development task. Real engineering tasks usually involve understanding requirements, reading existing code, locating issues, modifying implementations, running tests, and checking side effects. The model must maintain consistency across multiple steps to deliver usable results.
1. Task Design Should Cover the Complete Development Process
It is recommended to set up at least four types of samples:
- Bug fixes: Provide the problem description, related code, and reproducible conditions to check if the modification truly eliminates the bug.
- Feature extensions: Require adding new features to an existing structure, examining interface compatibility and exception handling.
- Code refactoring: Check behavioral preservation, readability, and test coverage.
- Cross-file modifications: Verify if the model understands call relationships, avoiding breaking the whole by only fixing a part.
Evaluation materials should ideally come from desensitized real-world projects. Oversimplified standalone function questions can test basic capabilities but struggle to reflect the context understanding required for maintaining large projects.
2. Success Criteria Cannot Rely Solely on Test Pass Rates
Passing tests is important evidence, provided the tests themselves cover requirements and risks. Models might achieve superficial success by deleting assertions, bypassing exception branches, or hardcoding results. Therefore, it is necessary to check whether the modification scope is reasonable, if unnecessary dependencies are introduced, if permission checks are weakened, or if the original interface semantics are altered.
It is recommended to track the following metrics:
- Final task completion rate;
- First-time modification pass rate;
- Number of regression bugs;
- Manual review time;
- Average rounds of modification and execution;
- Proportion of timeouts or failures.
Among these, manual review time is particularly worth noting. A solution might complete more tasks, but if the generated modifications are hard to understand, it may increase maintenance burden.
3. Tool Environment is Also Part of the Capability
Actual coding systems usually need to read files, execute tests, and view error messages. Whether a model can correctly utilize feedback is often closer to engineering value than one-shot generation capability. The test environment should use isolated execution, restricting network access, file permissions, and execution time. Commands and code generated by the model should be treated as untrusted content to be verified, not trusted instructions.
4. Web Task Execution: Focus on Evidence Chains and Constraint Maintenance
Web task execution is not just searching and summarizing. Complex tasks may require multi-round queries, comparing different sources, identifying publication times, extracting structured information, and executing subsequent operations once conditions are met. During this process, information acquisition, evidence judgment, and operation control should be evaluated separately.
1. Finding Information Does Not Equal Finding the Right Answer
Search results may contain syndicated content, outdated documentation, out-of-context summaries, or contradictory statements. The model needs to judge whether sources are reliable, content is still valid, and information supports the final conclusion. During evaluation, explicit requirements can be set: conclusions must be accompanied by supporting materials, numbers must specify their scope of application, and unconfirmed content must explicitly state uncertainty. Compared to only checking the answer text, checking the correspondence between evidence and conclusion better identifies the problem of “plausible answers but insufficient basis.”
2. Multi-step Tasks Require Continuous Constraint Maintenance
If a task requires finding information within a specific timeframe, the model cannot quietly relax time conditions in subsequent retrievals. If it requires read-only data access, the model cannot autonomously submit forms or modify records. Each step should be recorded to verify compliance with original limits, observing whether goal drift occurs more frequently as the task lengthens.
3. Prevent External Content Interference
Text in web pages and documents is external data and should not be treated as system instructions. Malicious content might instruct the model to ignore tasks, leak context, or call irrelevant tools. Therefore, production systems must clearly distinguish between instructions and data, perform permission checks on tool calls, and set confirmation mechanisms for sensitive operations. Security controls cannot rely solely on the model “self-identifying risks.”
5. Scientific Reasoning: Distinguish Knowledge Coverage from Derivation Reliability
Scientific questions usually involve multiple premises, formalized relationships, and long derivation chains. Even if a model is fluent in professional terminology, it might make mistakes in unit conversions, boundary conditions, or logical connections. When evaluating, do not equate fluent explanations with correct reasoning.
1. Clarify Assumptions and Scope of Application
High-quality answers should state known conditions, necessary assumptions, and the scope of the conclusion. For example, whether a calculation relies on idealized conditions or whether an approximation holds only within a specific range can affect the answer. If input conditions are insufficient, the model should point out missing information rather than silently making assumptions and giving definitive conclusions.
2. Check Intermediate Steps, Not Just Final Results
A correct final result might come from coincidentally canceling errors; a different final result might stem from an ambiguous problem statement. Therefore, evaluation must check key formulas, unit consistency, derivation logic, and numerical verification. For computable problems, independent calculation programs can be used for cross-checking; for open-ended problems, domain experts are needed to review whether the evidence, method, and conclusion match.
3. Set Human Review for High-Risk Conclusions
When dealing with research decisions, engineering safety, or other high-impact matters, models are better suited as components for organizing materials and assisting derivations, rather than final arbiters. The ability to “provide an answer” and the ability to “act directly upon it” should be managed separately. Models can propose candidate explanations, but critical conclusions must undergo independent verification.
6. Cost Evaluation: Calculate the Total Cost of Completing a Task
A low unit price does not necessarily mean low cost. Tasks may involve long contexts, multi-round calls, tool execution, failed retries, and manual review. A more meaningful metric is the cost per successful task:
Cost per successful task = Total investment during testing / Number of tasks meeting acceptance criteria
Total investment can include model API costs, tool execution fees, retrieval and storage overhead, and manual review costs. If all tasks fail, this metric cannot provide a normal comparative result and should be directly marked as failing availability requirements.
Attention should also be paid to end-to-end latency, not just generation speed. A model with fast output but requiring more rework may ultimately take longer to complete. For batch tasks, focus on average cost and throughput; for interactive tasks, pay attention to the latency distribution of slower requests, as a few long waits can significantly impact user experience.
7. Establish a Reusable Internal Evaluation Process
To transition selection from subjective experience to engineering decision-making, a phased evaluation mechanism can be established.
Phase 1: Define Acceptance Criteria
Clarify which errors are unacceptable, where human intervention is allowed, and the upper limits for cost and latency. Acceptance criteria should stem from business goals, not adjusted after seeing scores.
Phase 2: Build Representative Samples
Samples need to cover common tasks, complex tasks, and abnormal inputs, retaining an independent validation set. Samples used to develop prompt templates should not double as the sole basis for final acceptance. Materials involving personal information, trade secrets, or internal code must be desensitized and their usage boundaries confirmed.
Phase 3: Conduct Controlled Comparisons
Test candidate solutions under consistent inputs, permissions, and budgets. Repeat executions if necessary to observe randomness-induced fluctuations. Results should not only record success or failure but also categorize failure reasons, such as comprehension errors, tool usage errors, insufficient evidence, output format errors, or permission overreach. Different failure types require different remediation.
Phase 4: Conduct Small-Scale Production Validation
After passing offline tests, first conduct small-scale trials or shadow evaluations. Continuously record completion rates, manual takeover rates, costs, and anomalies in real tasks to confirm whether offline conclusions transfer to the production environment. When model versions or prompt strategies change, key samples should be re-validated to avoid unnoticed behavioral shifts.
8. Routing by Task is More Pragmatic Than Using a Single Model
When business involves diverse tasks, tiered routing can be adopted: simple classification and formatting use low-cost solutions meeting quality requirements, while complex code modifications or high-difficulty reasoning route to higher-capability paths. Routing should not rely solely on the model’s self-reported confidence. Judgment can be combined with task type, input length, data sensitivity level, verification results, and historical failures.
Concurrently, clear escalation and exit conditions must be designed. For example, transferring to human processing after consecutive fix failures, stopping definitive conclusions when key evidence is missing, or requiring user confirmation for sensitive operations. Multi-model architectures also increase maintenance complexity, so they are only worth introducing if the benefits justify the costs of routing, monitoring, and regression testing.
Conclusion
The capability gap of LLMs cannot be explained by a single composite score, and individual task scores cannot directly translate into production promises. Truly reliable selection requires placing tasks, quality, cost, latency, and security within the same evaluation framework. For developers, the most valuable question is not “who is closest to the top of the leaderboard,” but “who can reliably complete my tasks under clear constraints, and can be verified, maintained, and cost-controlled.” Starting from this question, model comparison can move from score discussions to executable engineering practices.
