LLM Evaluation: A Three-Axis Framework for Quality, Latency, and Cost
Choosing a large language model is rarely a single-question decision. In practice, teams weigh three competing factors at once: whether the output is good enough to ship, how long it takes to produce, and what it costs. This article proposes a three-axis evaluation framework that puts output completeness (quality), latency (time), and cost (billing) in the same frame, explains how to measure each axis reproducibly with fixed tasks, fixed graders, and consistent collection conditions, and turns the resulting numbers into practical selection guidance for short high-quality tasks, long-document and large-scale refactoring work, high-frequency lightweight workloads, and security-sensitive scenarios.
1. Why “Which Model Is Stronger” Is the Wrong Question
When teams evaluate models for production use, three interdependent questions come up most often: is the output good enough to ship, how long do we have to wait, and what is the total bill. These three forces pull against each other in almost every benchmark. Higher scores usually cost more, cheaper models usually need another round of edits, and faster output usually means less content per response. Put all three on the same table and the conclusion is almost always “it depends.” The valuable deliverable is not a ranking but a set of independently verifiable numbers, plus a way to translate those numbers back into plain language.
The core argument of this article is that model evaluation should shift from a single leaderboard ranking to a three-axis view. The three axes are output completeness (quality), latency (time), and cost (billing). All three must appear together; dropping any one of them produces a misleading conclusion.
2. The Three-Axis Evaluation Framework
2.1 Output Completeness: Measure Rework, Not Scores
Output completeness is not the same as answer accuracy. It is closer to “how much human patching is still needed after the first delivery.” A practical breakdown uses six observable dimensions: instruction following, structural integrity, code runnability, long-context consistency, factual accuracy, and safety. Score every dimension with the same fixed task set and the same grading scripts, so data from different sources is never mixed.
The key lesson: when composite scores differ by only two or three percentage points, the models are practically tied. What actually separates them is the dimension-by-dimension win/loss table. If one model leads on four of six dimensions and the shared baseline is three wins to one loss, the advantage is “broad but shallow,” not a knockout in a single dimension.
# Pseudocode: reproducible calculation of the completeness indexdef quality_index(tasks, model):scores = {}for dim in ["instruction", "structure", "runnable","long_ctx", "factuality", "safety"]:scores[dim] = mean(run(tasks, model, dim)) # same tasks, same graderreturn weighted_sum(scores, weights=DEFAULT_WEIGHTS), scores
2.2 Latency: The Real Bottleneck Is Not Typing Speed
Most people read latency as “how fast tokens come out.” What actually determines delivery time is two ceilings: the maximum output length per response and the context capacity per turn. If the ceiling for a single complete output differs by several times between models, producing a long document or refactoring a large codebase may require stitching segments together, with extra consistency checks between segments. This hidden time is often ignored.
The second underestimated factor is “how long the model talks.” For the same task, different models may consume several times more tokens per turn. More verbose output means fewer task turns within the same budget, and higher human review and verification cost. A latency evaluation should therefore record at least three quantities: the maximum output per response, the number of turns needed to finish the task, and the per-turn token deviation.
2.3 Cost: List Price, Caching, and Hidden Bills
Cost cannot be judged by unit price alone. Break it into at least three components: input price, output price, and cached-input price, then multiply by the actual usage mix. In practice, the higher the share of long-context scenarios, the more cache hit rate affects the bill; the longer the output, the more weight the output price carries. Plug the three unit prices and the actual token distribution into the formula below to get a comparable cost per task.
cost per task = input tokens × input price + output tokens × output price+ cached tokens × cache price + retry and rework tokens × corresponding price
3. A Reproducible Measurement Method
- Fixed task set: cover four categories: generation, refactoring, review, and Q&A, with at least twenty items each, including edge cases and adversarial samples.
- Fixed grader: use test pass rate for runnable output; use rules plus manual spot checks for text output.
- Fixed conditions: collect on the same day, in the same region, under the same concurrency; use official list prices, and note the cutoff point for index-type data.
- Label assumptions: anything derived by inference must be marked separately and never mixed with measured data.
- Take the median of three runs to reduce misjudgment caused by variance.
4. Decision Guidance
- Quality first, sufficient budget, short tasks: pick the model whose dimension-level strengths match your scenario, and do not agonize over a fraction of a point in the composite score.
- Long documents and large-scale refactoring first: check the maximum output per response and long-context consistency before discussing price.
- High-frequency lightweight tasks first: put per-turn token deviation and cache price at the top, because cost differences are amplified by call volume.
- Security-sensitive scenarios: treat safety as a veto criterion, not a weighted term.
5. Common Pitfalls
The first is substituting a composite score for scenario fit. The second is ignoring rework tokens, which means only half the bill is counted. The third is treating “fast response” as “fast delivery.” The fourth is failing to record measurement conditions, which makes two evaluations impossible to compare. There is only one way to avoid all of them: archive the three-axis numbers together with their conditions, and build a baseline your own team can reuse.
6. Conclusion
The point of putting the three axes in one frame is to turn model selection from a contest of positions into a contest of data. When quality, latency, and cost all appear as verifiable numbers, “which model is stronger” automatically becomes “should this budget go to quality or to the bill.” In engineering practice on platforms such as Baidu AI Cloud, fixing this baseline into the pipeline is what makes every selection decision explainable, rollback-able, and reproducible.
