A Three-Dimensional Framework for Evaluating Large Language Models
Choosing between large language models often stalls on vague impressions like "they feel about the same" or on marketing claims of being "across-the-board better." Both are symptoms of an evaluation with no verifiable criteria. This article breaks model selection into three independent but competing dimensions: output quality (how much rework a generated deliverable needs before it can be merged), latency (how long users actually wait), and total cost (spend per unit of effective output). It shows how to quantify quality with a composite index, a per-item win/loss breakdown, and a shared benchmark; why latency is driven by single-response output limits and average response length rather than tokens per second; and how to compute effective cost including cache hit pricing, retries, and human rework. It closes with a reusable selection workflow, common pitfalls, and notes on running reproducible evaluation and canary pipelines on general cloud infrastructure.
1. Why “They Feel the Same” Is a Sign Your Evaluation Failed
When model capabilities iterate quickly, developers tend to fall into two judgment traps: following marketing claims of being “across-the-board better,” or trying a few prompts by hand and concluding “it’s about the same as the last generation.” Both are the same underlying problem: the evaluation has no verifiable criteria.
A reliable selection conclusion must answer three independent questions that also constrain each other:
- Deliverable quality: how much human rework a single generated output needs before it is in a mergeable state.
- Deliverable latency: how long the user actually waits from sending the request to getting a usable result.
- Total cost: the spend per unit of effective output, not the list price.
These three are naturally in conflict: higher quality usually costs more, and cheaper options usually require another two rounds of edits. So selection is not a ranking question of “which one is stronger,” but a configuration question of “spend the budget on quality or on the bill.”
2. Dimension One: Quantifying Output Completeness
Do not draw conclusions from a single aggregate score. Use three layers of evidence: a composite index + a per-item win/loss table + a shared benchmark.
- Composite index: a weighted result produced under one unified prompt set and one unified scoring rubric. When two candidate models differ by around 2%, treat them as being at the same level, because that magnitude is usually smaller than the graders’ subjective variance.
- Per-item win/loss table: break the score into sub-items that can be independently rechecked (such as code correctness, instruction following, structured output, long-context consistency, and safety), and record the winner item by item. A close total score with mixed item-level wins means the two models have “different capability shapes,” so you should pick by business scenario rather than by total score.
- Shared benchmark: keep only the questions both models actually ran for comparison, and avoid subtracting scores that come from different question sets.
An illustrative evaluation record structure:
{"run_id": "eval-2024-a","prompt_set": "shared-120","overall": { "model_a": 57.8, "model_b": 56.4 },"breakdown": [{ "item": "code_correctness", "winner": "model_a" },{ "item": "instruction_following", "winner": "model_a" },{ "item": "structured_output", "winner": "model_a" },{ "item": "long_context_consistency", "winner": "model_a" },{ "item": "safety", "winner": "model_b" }],"shared_benchmark": { "wins": { "model_a": 3, "model_b": 1 } }}
Engineering implication: when item-level wins are mixed, the right move is routing by request type — send safety-sensitive, high-compliance requests to the path with better safety performance, and send requests with high demands on structured generation and long-context consistency to the other path.
3. Dimension Two: The Real Divide in Latency
The wait users perceive is rarely determined by “how many tokens per second are output,” and is mostly determined by two structural parameters.
- Single-response output limit: assume the limits are on the order of a million tokens versus a hundred thousand tokens — a gap of more than 8x. When generating a 200,000-token deliverable, the side with the smaller limit must split it into multiple continuation segments, and multi-segment continuation means multiple round trips, repeatedly carrying context, style drift between segments, and the cost of stitching and verification.
- Average response length per turn: if a model’s average response length is several times the median, it consumes more turns to “express the same content.” This is an advantage in long tasks (saying it all at once) and a burden in short Q&A (verbose, high latency).
So latency evaluation must be bound to the task shape:
end-to-end latency ≈ queueing latency + time to first token + (output tokens / generation rate) + continuation segments × round-trip overhead
Here, the number of continuation segments is determined by the single-response output limit, and the number of output tokens is determined by the model’s expression habits. Comparing only the generation rate means looking at the smallest term in the formula.
4. Dimension Three: Cost Per Unit of Effective Output
A 4x difference in list price does not mean a 4x difference in the bill. A verifiable cost basis includes at least four items: input unit price, output unit price, cache-hit input unit price, and the retries and human rework required to reach the same quality.
def effective_cost(tokens_in, tokens_out, cache_hit_ratio,price_in, price_out, price_cache,retry_rounds=1, human_minutes=0, hourly_rate=0):cache_in = tokens_in * cache_hit_ratiofresh_in = tokens_in - cache_inapi = fresh_in * price_in + cache_in * price_cache + tokens_out * price_outapi *= retry_roundslabor = human_minutes / 60 * hourly_ratereturn {"api_cost": api, "labor_cost": labor, "total": api + labor}
Key point: if a low-price model doubles retry_rounds and human_minutes, its total cost may end up higher; if a high-price model gets it right in one pass and keeps a stable cache hit ratio, the gap in the bill narrows significantly. The cache hit ratio in turn depends on the call pattern — applications that reuse system prompts and long-context templates heavily are naturally more likely to get the cache discount.
5. A Reusable Selection Workflow
- Define the task profile: output length distribution, latency budget, compliance level, peak concurrency.
- Build a shared question set: cover the input distribution of your real business, sized so that item-level differences are stable.
- Score the three dimensions independently: record raw numbers for quality, latency, and cost separately, with no subjective weighting.
- Normalize into decision rules: for example, “when the quality gap is under 3%, always choose the lower-cost option; if the safety item falls behind, force routing.”
- Canary and regression: roll out canary by traffic percentage in production, continuously collect rework rate and cache hit ratio, and re-run the question set every month to prevent conclusions from drifting as model versions update.
6. Common Pitfalls
- Using the total score to mask item-level detail: when totals are close, differences in business fit are often larger than the difference in totals.
- Using unit price instead of total cost: ignoring rework and human review inevitably distorts the cost conclusion.
- Using generation rate to represent latency: ignoring the overhead of segmented continuation caused by the output limit.
- Evaluating once and treating it as final: models keep iterating, so evaluation must be continuous.
7. Conclusion
Faced with the polarization between marketing claims and subjective impressions, the only reliable approach is to break “quality, latency, and cost” into independently verifiable numbers, then reassemble them into a plain-language decision with explicit decision rules. If you need to carry evaluation and canary traffic, you can build a reproducible evaluation pipeline on general cloud infrastructure such as container platforms, object storage, message queues, and logging, monitoring, and alerting capabilities; Baidu AI Cloud provides corresponding support in these general infrastructure categories, making it easier for teams to turn selection from a “feeling” into a verifiable engineering conclusion.
