LLM Evaluation: From Task Quality to Deployment Costs
A practical evaluation of large language models must go beyond impressive answers and subscription prices. This article presents a six-dimensional framework covering correctness, instruction following, reliability, efficiency, controllability, and cost. It explains how to apply task-specific acceptance criteria to coding, reasoning, translation, writing, and multimodal workflows, design reproducible evaluations, and deploy models with validation and risk-based task routing.
1. Start with the Task, Not the Model Ranking
Common mistakes in evaluating large language models include treating one impressive response as evidence of overall capability, equating detailed and earnest writing with reliability, and assuming a lower subscription price means better value. These observations can inform an initial impression, but they are not enough to support technical selection.
Model performance is highly task-dependent. A model may excel at designing code structure but struggle with precise technical translation. It may handle complex reasoning while omitting important qualifications when organizing long documents. Even within the same task, source material, prompts, context length, and output format can change the result.
A comprehensive evaluation should therefore begin with three questions rather than “Which model is best?”
- What tasks must the model perform?
- What constitutes an acceptable result?
- How much time, money, and human effort can be spent obtaining that result?
For coding assistance, acceptance criteria might include passing tests, respecting interface constraints, and producing maintainable code. For technical translation, they might include consistent terminology, accurate qualifications, and an appropriate register. These tasks cannot be judged by a shared criterion such as linguistic fluency alone.
There is no universally optimal model independent of context. What matters is the combination of capabilities that best fits a particular workflow under clearly defined constraints.
2. Use a Six-Dimensional Evaluation Framework
Correctness: Can the Answer Be Verified?
Correctness is a baseline requirement for technical applications, but verification must match the task.
Code can be checked by running tests. Mathematical results can be validated through independent calculations, counterexamples, or boundary checks. Document summaries can be compared with their sources. Open-ended writing requires checks for factual accuracy, logical consistency, and compliance with requirements.
It is important to distinguish a correct answer from a valid justification. A model may produce the right numerical result through invalid reasoning. It may also generate runnable code that fails to implement the actual business rules. Evaluation should examine both the result and the critical steps supporting it.
When a task cannot be verified quickly, require the model to distinguish established facts, reasonable inferences, and information that still needs confirmation. A confident tone is not a substitute for evidence.
Instruction Following: Were All Requirements Met?
Rework often results from missed constraints rather than missing knowledge. A model may omit fields that must be preserved, add lengthy explanations when only a result was requested, or rename terminology that should remain unchanged.
Break instructions into a checkable list:
- What information must be included?
- Which fields or qualifications must be preserved?
- What content is prohibited?
- What output structure is required?
- When should the model stop and request clarification?
Hard constraints should not be represented only by a vague overall score. Requirements involving safety boundaries, critical fields, or business rules should be recorded explicitly as met or violated. A well-written response that omits an essential condition is not deliverable.
Reliability: Can Similar Tasks Be Completed Consistently?
One successful response does not demonstrate long-term reliability. Reliability has at least two distinct aspects.
The first is output consistency: whether repeated runs of the same task, or reasonable variations in the input, continue to meet requirements.
The second is service reliability: whether requests complete successfully, response times remain acceptable, interrupted tasks can be recovered, and historical materials are retained appropriately.
Record these separately. Insufficient model capability and application failures are different problems with different remedies. Capability issues may require changes to task design or a different processing approach. Service failures call for retries, fallback handling, backups, and recovery mechanisms.
Efficiency: How Long Does an Acceptable Result Take?
Response speed is only one component of efficiency. The relevant measure is the total time from starting a task to obtaining a usable result:
Time to acceptable delivery = waiting time + reading and review time + editing time + retry time.
A model that responds quickly but requires several rounds of correction may be less efficient than one that is slower but meets the requirements on its first attempt. For long technical documents, redundant explanations also increase reading and review effort.
Track first-response time, first-pass acceptance rate, and total delivery time. Generation speed alone does not establish productivity.
Controllability: Can the Output Fit into an Engineering Workflow?
Engineering workflows typically require stable fields, explicit failure states, traceable inputs and outputs, and reproducible processing.
Key questions include:
- Does structured output pass validation?
- Does the system disclose when information is insufficient?
- Can important source material be traced?
- Could retries cause duplicate operations?
- Can downstream software process the output reliably?
Controllability is not simply a language capability. It depends on the interaction between the model, external validation, permission controls, and workflow orchestration.
Cost: Measure Accepted Results, Not Individual Calls
The listed price does not establish value for money. Actual costs also include input preparation, unusable output, repeated requests, human review, and error-related rework.
A more useful metric is:
Cost per accepted result = total relevant cost during the evaluation period ÷ number of results that pass acceptance checks.
Total cost should include usage charges and human effort. For high-risk tasks, assess the consequences of errors separately. A cheap option that frequently fails may not be economical, while an expensive option used for simple tasks may be unnecessary.
3. Code Generation: Evaluate Executability and Maintainability
Code evaluation must go beyond syntax and style. The harder problems are usually understanding requirements, handling edge cases, maintaining consistency across modules, and respecting existing engineering constraints.
Set acceptance criteria at four levels.
Functional correctness. Tests should cover normal execution as well as empty inputs, repeated requests, exceptional states, and insufficient permissions. Model-generated tests can also miss defects, so the test suite should not depend entirely on the same generation run.
Constraint compliance. Check whether the code follows existing interfaces, data structures, and directory organization. Also check for unnecessary dependencies and changes to modules outside the task’s scope.
Maintenance cost. Excessive complexity, over-abstraction, or comments that contradict the implementation can increase future maintenance effort even when tests pass.
Security. Code involving files, data access, authentication, or external input requires checks for path boundaries, sensitive information exposure, input validation, and access control.
For more complex development tasks, use a staged workflow:
Requirements clarification → design review → scoped implementation → test validation → diff review
Asking a model to generate an entire system in one attempt can spread errors across multiple modules and make them harder to locate.
4. Mathematics and Logical Reasoning: Favor Validation over Length
In mathematical tasks, longer derivations do not necessarily mean greater accuracy. Apparently complete solutions can contain unproven leaps, misused notation, or omitted conditions.
Evaluation should cover several problem types:
- Basic calculations: Check arithmetic and symbolic manipulation.
- Multi-step reasoning: Check how conditions carry through the solution and whether intermediate conclusions are valid.
- Proof tasks: Check whether the argument establishes the claim.
- Open-ended modeling: Check whether assumptions fit the real-world problem.
In practice, request essential steps, assumptions, and verification methods rather than an unnecessarily long explanation. Formula derivations can be checked for dimensional consistency and limiting cases. Optimization results can be checked against their constraints. Probability calculations can be checked for normalization and valid independence assumptions.
Independent verification is more useful than asking the model to repeat that it has checked its work. Verification may use deterministic computation, another solution method, or human review. However, agreement among several generated answers does not guarantee correctness: they may share the same error.
5. Translation, Writing, and Conceptual Discussion: Separate Fluency from Accuracy
Technical translation has at least four separate objectives: accurate meaning, consistent terminology, clear logical relationships, and natural expression in the target language. A fluent translation may still turn “may” into “must” or silently broaden the conditions under which a statement applies.
Evaluate meaning before style. Establish a glossary for technical terms, abbreviations, units, and fixed expressions. Require the translation to preserve negation, conditions, probability, and scope.
For important materials, use a staged process:
- Extract terminology and key facts.
- Produce a draft faithful to the source.
- Check for omissions, additions, and changes in logic.
- Improve the wording without changing the meaning.
- Have a human review high-risk passages.
Creative writing and conceptual discussion require different criteria. Creative tasks should be assessed for originality, structural completeness, and audience fit. Conceptual discussion should be assessed for clear definitions, reasonable boundaries, and a distinction between factual claims and value judgments.
Prompts can explicitly require the removal of repetitive explanations, avoidance of unnecessary rhetorical punctuation, and preservation of key qualifications. However, not every text should be forced into the same length. Technical communication aims for clarity, not brevity alone.
6. Multimodal and Document Processing: Evaluate Capabilities and Workflows Separately
Text, image, audio, and video processing expand the range of possible applications. Strong performance in one modality, however, does not establish that the entire workflow is mature.
Image generation should be assessed for instruction alignment, local detail, and controllability of edits. Video processing requires attention to temporal continuity and event understanding. Document question answering should be checked for citation locations, relationships across passages, and factual traceability.
For document-intensive tasks, separate three stages:
- Can the materials enter the processing workflow in full?
- Can the system locate information relevant to the question?
- Does the final answer faithfully represent the retrieved material?
A failure at any stage can appear to be a wrong model answer. Troubleshooting should therefore inspect source quality, retrieval results, and generated content separately rather than attributing every problem to model capability.
Keep independent copies of long-term reference materials and important outputs. Define access and retention rules according to data sensitivity, and do not treat a single chat interface as the sole knowledge archive.
7. Design Reproducible Evaluation Experiments
Personal experience can reveal problems, but organizational model selection requires repeatable evidence.
First, sample tasks from real workflows, covering frequent, difficult, and high-risk scenarios. Avoid a test set composed only of easy questions, or only of deliberately tricky tasks unrelated to actual work.
Second, hold source materials, prompt templates, and acceptance criteria constant. Record the model version, runtime configuration, and whether external retrieval is allowed as clearly as possible. Otherwise, configuration differences may be mistaken for capability differences.
Third, repeat tasks where repeated testing is appropriate and record variation. Human reviewers can evaluate outputs without knowing their source to reduce bias from brand reputation or presentation style. For open-ended tasks, use multiple independent reviewers and revisit examples with substantial disagreement.
Finally, separate aggregate scores from mandatory thresholds. Sensitive data exposure or violations of critical business rules should not be offset by high scores in other categories.
For each test case, retain at least:
- Task category
- Constraint checklist
- First-pass acceptance status
- Number of rework cycles
- Total delivery time
- Cost
- Error type
Evaluation conclusions should specify the tasks and test conditions to which they apply. They should not be generalized without limits.
8. Deployment: Route Tasks, Validate Results, and Reevaluate
A practical deployment usually does not assign every task to one model. Instead, it selects processing paths according to task risk and complexity.
Low-risk tasks with fixed formats can prioritize lower cost and faster processing. Complex reasoning, analysis across multiple sources, and critical code changes need stricter validation. Tasks involving production operations, sensitive information, or major decisions should retain human confirmation.
Task routing should not rely on input length alone. A short question may require a complex decision, while a long document may only require field extraction. Better criteria include the number of constraints, reasoning depth, ease of verification, and consequences of error.
Engineering controls should include structural validation, permission restrictions, timeout handling, retries, logging, monitoring, and alerts. For actions with external side effects, confirm execution status before retrying to avoid duplicate writes or submissions.
Evaluation results also need regular updates. Model versions, service configurations, and the distribution of real tasks can change. Whenever the processing workflow changes substantially, rerun a retained test set to determine whether previous strengths and risks still apply.
Conclusion: Evaluate Delivery Capability, Not Just Answers
A large language model’s practical value depends on correctness, instruction following, reliability, efficiency, controllability, and total cost in real tasks. Coding, mathematics, translation, writing, and multimodal processing each need their own acceptance criteria. A single conversation cannot establish overall performance.
For developers and organizations, the more reliable approach is to build representative test sets, define hard constraints, record rework costs, and improve delivery through task routing and external validation. Only by evaluating model output within a complete workflow can you determine whether it reduces work—or merely shifts that work to downstream review and correction.
