LLM Evaluation Guide: Capabilities, Performance, and Cost for Model Selection
This guide explains how to evaluate large language models beyond simple price comparisons. It covers input and output token billing, building a task-oriented capability test set, measuring performance across the full request chain, comparing options by cost per effective task, and using system design and governance to control cost and reliability. Readers will learn how to turn pricing clues into reproducible, business-relevant evaluation criteria.
1. From Price Comparison to Business Value Evaluation
LLM evaluation easily falls into two traps: treating a higher price as proof of stronger capability, and treating a cheaper single call as proof of lower business cost. In reality, a model call is only one part of a business workflow. A solution with a low per-call cost can still end up more expensive overall if it frequently needs retries, manual correction, or multiple rounds of additional information.
Evaluation should therefore answer three core questions:
- Can the model complete the task correctly under real constraints?
- Under the target concurrency and context length, can the system meet response requirements?
- Once retries, human review, and surrounding systems are included, what is the cost per effective completed task?
The source material provides only a set of input/output billing figures and price-multiple relationships. That is not enough to support conclusions about functionality, performance, or service quality. A professional evaluation should turn pricing clues into a general cost-analysis problem, rather than inferring that a specific model has stronger reasoning, a longer context, or higher generation speed.
2. Understanding the Input and Output Billing Structure
2.1 Tokens Are Not Characters
A token is the discrete unit a model uses to process text. A word, a Chinese character, or a run of symbols may map to different numbers of tokens, depending on the tokenizer and the content. You therefore cannot precisely estimate every request with a fixed “characters-to-tokens” ratio.
Input typically includes task instructions, the user’s question, conversation history, retrieved material, and any other text submitted to the model. Output is the content the model generates. The actual billing boundaries should follow the service contract and billing documentation. In particular, verify whether cached content, additional computation, multimodal input, and failed requests are billed separately.
Under the simplified condition of only two charges (input and output), the cost of a single call can be expressed as:
C = (input tokens × price per million input tokens + output tokens × price per million output tokens) ÷ 1,000,000
This formula is suitable for building an initial budget, but it cannot replace a full billing reconciliation.
2.2 Analyzing Cost Structure with Hypothetical Prices
To demonstrate the calculation, assume a solution charges $10 per million input tokens and $50 per million output tokens. These numbers are only an example and do not represent any verified current pricing.
If a task involves 8,000 input tokens and generates 2,000 output tokens, then:
- Input cost is $0.08;
- Output cost is $0.10;
- Total cost is $0.18.
This example shows that even when the output is clearly shorter than the input, the output can still account for the larger share of cost. Cost optimization therefore cannot focus only on shortening prompts; it must also control unnecessarily long answers, repeated explanations, and ineffective generation.
But shorter output is not always better. If key conclusions, constraints, or steps are omitted and the user has to ask again, the overall cost may rise. The reasonable goal is the “minimum output sufficient to complete the task,” not mechanically compressing answer length.
2.3 Price Multiples Require a Clear Basis of Comparison
A statement that a price is “several times higher” is meaningful only when the compared objects, time, currency, and billing scope are consistent. If two solutions have different input-to-output price ratios, the actual cost multiple for a task will change with the input/output structure and cannot be summarized by a single multiple.
You should also account for differences in how solutions count tokens for the same text, as well as the context length, number of call rounds, and output volume needed to complete the same task. The comparison unit with real business meaning is the total cost of completing the same task.
3. Building a Task-Oriented Capability Evaluation System
3.1 Define the Task First, Then Choose Metrics
Model capability is not a single score. Enterprises should first map out typical tasks and then set test criteria.
For example:
- Information extraction: field accuracy, omission rate, and format compliance;
- Document Q&A: factual correctness, degree of evidence support, and unsupported statements;
- Coding assistance: whether code runs, whether tests pass, and how boundary conditions are handled;
- Workflow planning: step completeness, constraint satisfaction, and execution feasibility;
- Text generation: information coverage, expression quality, and consistency with business standards.
These tasks require different evaluation methods. You cannot substitute “the answer looks more fluent” for actual correctness. In high-risk business scenarios especially, natural language is only a necessary condition and does not prove a conclusion is reliable.
3.2 Construct a Representative Test Set
The test set should include everyday tasks, complex tasks, and exception tasks, rather than a few easy examples chosen to succeed.
It is advisable to stratify by business frequency and risk level, covering common inputs, long text, ambiguous instructions, missing information, conflicting material, and cases that require refusal or a request for clarification. Test data should come, where possible, from desensitized real business samples, and a portion of independent samples should be reserved for final validation. This avoids the situation where, after repeatedly tuning prompts, the model performs well only on questions it has already seen.
For tasks with reasonable variation in answers, use rating scales and human review. For tasks that can be verified objectively, prefer field comparison, rule checks, program tests, or constraint validation.
3.3 Define the Boundary Between Success and Failure
A correctly formatted answer does not mean the task succeeded. For example, a number in a structured result may be wrong, cited material may not support the conclusion, and generated code may run only under normal inputs.
It is therefore recommended to check the following together:
- Whether the result matches facts or the reference answer;
- Whether it satisfies business constraints;
- Whether it follows the output format;
- Whether it omits key content;
- Whether it handles uncertainty correctly;
- Whether it discloses information that should not be disclosed.
Evaluation results should also distinguish three categories: directly usable, needing minor edits, and requiring rework. This maps quality metrics to actual manual cost.
4. Performance Testing Should Cover the Full Request Chain
4.1 Distinguish First-Token Response from Full Completion Time
The time a user sees the first part of the content and the time the task fully finishes are two different metrics. Interactive Q&A usually cares more about first-token response, while batch processing, structured extraction, and automated workflows usually care more about full completion time.
You should also record generation throughput, concurrency capacity, request error rate, and timeout ratio. Averages easily hide a few severe delays, so observe distribution metrics such as the median and the 95th percentile alongside them.
4.2 Test Under Near-Production Conditions
Performance is affected by input length, output length, request concurrency, retrieval time, and external execution steps. Serial testing with only short questions cannot represent real production load.
The test matrix should at least cover different context lengths, typical output sizes, and multiple concurrency levels, while recording time spent on request queuing, retrieval, model generation, and post-processing. Only by breaking down the chain can you identify whether the bottleneck comes from the model service or from surrounding systems.
When comparing solutions, keep the task set, test time window, and call configuration fixed, and use repeated runs to reduce the impact of random fluctuation. If conditions cannot be kept consistent, disclose the differences clearly rather than presenting a precise-looking but non-reproducible ranking.
5. Compare Solutions by Cost per Effective Task
5.1 Extend from Call Cost to Full Cost
Full cost typically includes model calls, retrieval and storage, compute resources, human review, retries and rework, and necessary operations effort.
You can use the following metric:
Cost per effective task = total relevant cost in the evaluation period ÷ number of tasks passing acceptance
This metric is closer to business value than per-call cost. When calculating it, you must unify the cost scope and acceptance criteria, and avoid double-counting retries that are already included in total call cost.
5.2 When Does a Higher Success Rate Offset a Premium
Under very simplified assumptions—fixed cost per call, fixed success probability, and the ability to retry independently after failure—the expected call cost to obtain one successful result is approximately:
Cost per call ÷ success probability per call
Assume solution A costs 2.5 times as much per call as solution B. To offset the price difference through fewer retries alone, A’s success probability must be at least 2.5 times B’s. Since success probability cannot exceed 100%, this condition may be impossible when B’s success rate is already high.
However, the benefits in real business are not limited to fewer retries. If a solution clearly reduces human review time, avoids costly errors, or completes tasks another solution cannot, it may still offer better overall value. The price multiple is only a starting point and cannot directly become a procurement conclusion.
6. Optimize Cost and Reliability Through System Design
6.1 Route Tasks by Difficulty
For tasks with clear rules and low risk, prioritize deterministic rules or a lower-cost processing path. Reserve higher-capability paths for complex reasoning, high-risk decisions, and multi-constraint tasks.
Routing should be based on input features, business type, and validation results. Do not treat a model’s self-reported “confidence” as a reliable probability. The escalation mechanism should also account for additional call cost, and real data should confirm whether it improves overall cost.
6.2 Control Context Rather Than Blindly Adding It
Submitting more material does not necessarily produce better answers. Repeated, outdated, or contradictory information increases cost and may interfere with judgment.
General methods include retrieval filtering, deduplication, conversation-history compression, and evidence ranking. For key facts such as dates, amounts, and contract terms, the compression process should preserve the original evidence, avoiding summaries that drop details or change meaning.
6.3 Use Validation to Reduce Ineffective Retries
Structured output can be checked for fields, types, and ranges; coding tasks can run tests; computed results can be verified by deterministic logic; and Q&A over material can check whether conclusions have corresponding evidence.
Retries should have an upper limit and clear trigger conditions. Repeatedly sending the same request not only increases cost but may repeat the same error. A more reasonable approach is to locate the cause of failure, then supply missing information, adjust task scope, or hand off to a human.
7. Establish Governance and a Continuous Evaluation Loop Before Launch
Before formal deployment, define data access boundaries, sensitive-information handling requirements, log retention policies, and access controls. For systems with external execution capability, separate the model’s action suggestions from actual authorization; important operations require independent verification or human confirmation.
During operation, continuously monitor task success rate, cost distribution, response latency, abnormal requests, and the human-takeover ratio. After any change to the model version, prompts, retrieval content, or workflow, run regression tests to avoid local optimization degrading other tasks.
The final selection report should present capability results, performance distributions, cost basis, and applicability boundaries together, rather than giving a single composite score. For capabilities with insufficient samples or that have not been validated, clearly note the limits of the evidence.
The core of LLM selection is not finding an abstract “strongest solution,” but achieving a reasonable cost per effective task under verifiable quality, safety, and latency constraints. Building on real tasks, relying on reproducible tests, and correcting judgments through continuous monitoring is what turns technology investment into stable business returns.
