LLM Evaluation Framework: A Three-Dimensional Approach to Model Selection
Choosing between generations of large language models often feels like guesswork, especially when a quick trial suggests "no real difference." This article introduces a three-dimensional evaluation framework that separates quality of finished output, delivery time, and total cost into independently verifiable metrics. It explains why lightweight testing hides real gaps, how to measure output completeness with a composite score and per-category win/loss table, which structural parameters actually drive latency, and how to compare pricing by input, output, and cache-hit multipliers. A practical scorecard approach for repeatable quarterly reviews is included.
1. Why “It Feels About the Same” Is the Most Common Misjudgment
Many developers try a new generation of large language models and walk away with the impression that it behaves much like the previous one. That impression is not an illusion; it is usually the result of evaluation at too coarse a granularity. Casual trials tend to cover single-turn question answering and short function completion, which happen to be the areas where successive model generations overlap the most. The real separation shows up in heavy workloads: one-shot production over long contexts, cross-file refactoring, and complex defect localization. If a sample set contains none of these tasks, the differences get averaged away.
A second cause is the lack of a consistent measurement standard. Tools differ in billing units, output length limits, and context window sizes. Treating “response speed” as the latency metric and “price per unit” as the cost metric leads to contradictory conclusions. To reach a reproducible judgment, you must first break evaluation into separate dimensions and then fix the measurement conditions for each one.
2. The Three-Dimensional Framework at a Glance
Break selection into three independent dimensions that can be checked separately:
- Output completeness: whether the deliverable meets a standard that allows direct merging, including first-pass rate and number of rework rounds.
- Delivery time: wall-clock time from stating the requirement to receiving a usable deliverable, not the model’s token output speed.
- Total cost: the actual bill covering input, output, and cache hits, rather than a single list price tier.
The typical relationship among the three is that higher completeness usually comes with a higher unit price, while a shorter delivery time may require more manual rework. Selection is therefore a budget allocation decision, not a search for an all-around champion.
| Dimension | Decision metric | Verification method |
|---|---|---|
| Output completeness | Composite index, per-category win/loss ratio | Fixed question set scored under the same conditions |
| Delivery time | Single-response output cap, output length per turn | Vendor documentation plus call logs |
| Total cost | Input/output/cache price multipliers | Official list prices plus measured bills |
3. Dimension One: Reproducible Measurement of Output Completeness
Completeness should not be expressed by a single overall score. Use a two-layer structure of “composite index plus per-category win/loss table”: the composite index reflects the overall level, while the win/loss table reflects the shape of capability. A common practical result is that the two are close, for example one side leading by a narrow margin of roughly two to three percent, winning four of six sub-categories, with a win/loss ratio of about three to one on a shared benchmark. Such a small lead means selection should not rest on this as the main basis.
More noteworthy are the exceptions in the capability shape. It is not unusual for the other side to overtake on safety-related sub-categories, which shows that a lead in general capability does not automatically translate into an advantage in compliance and security. For businesses involving permission control and sensitive information handling, the safety sub-category should be an admission gate with veto power rather than a weighted item.
The scoring process is best fixed at four steps: unify prompts and temperature parameters; constrain the output format to compilable code or structured patches; have the same automated test suite decide pass or fail; record the number of rework rounds. An example evaluation skeleton:
def evaluate(candidate, cases):passed, rounds = 0, []for case in cases:out, n = run_with_repair(candidate, case, max_rounds=3)passed += int(verify(case, out))rounds.append(n)return {"pass_rate": passed / len(cases), "avg_rounds": mean(rounds)}
4. Dimension Two: Where Delivery Time Really Diverges
Delivery time is determined by two structural parameters, not typing speed.
The first is the single-response output cap. When the deliverable length that can be produced in one response differs by several times, long tasks are forced into multiple generation segments. For a deliverable on the order of two hundred thousand tokens, the side with the higher cap finishes in one segment, while the side with the lower cap needs two or more, with manual stitching and consistency checks in between. This hidden time is often overlooked.
The second is the answer length per turn. If a solution outputs significantly more tokens per turn than the median, it may look more informative, but it actually brings longer reading and verification time. Including a “deviation of per-turn output length” metric explains why the bill rises while the experience does not feel faster.
Latency measurement should record three timestamps: request sent, first token returned, and deliverable passing verification. A metric based only on first-token latency has almost no reference value for long tasks.
5. Dimension Three: Look at Cost in Multiples
Cost comparison should be broken down and checked separately across three tiers: input, output, and cached input. A common situation is that all three show the same multiplier relationship, for example input, output, and cached input prices all differing by four times. Such “clean multipliers” are more useful for modeling than a vague claim of being “cheaper.”
A simplified model for estimating a monthly budget:
Monthly cost ≈ input tokens × input price+ output tokens × output price+ cache-hit tokens × cache price+ rework rounds × average cost per round
Rework rounds are often left out. If a lower-priced option needs one extra round of revision, its cost advantage is noticeably compressed. It is advisable to first sample one week of real traffic, then feed it into the model for estimation.
6. Implementation Recommendations
Turn the three-dimensional metrics into a selection scorecard, setting a threshold and weight for each dimension: the safety sub-category as an admission condition, a minimum pass rate for completeness, a cap for delivery time, and a budget ceiling for cost. Run a regression against the same question set every quarter to avoid being misled by a single experience.
If your organization already runs model services on Baidu AI Cloud, you can combine log services with monitoring and alerting to accumulate call volume, token distribution, and rework data, and use object storage to archive evaluation samples, forming reusable evaluation assets. The final conclusion is often not “which one is stronger,” but “under a fixed budget, whether to spend the remaining margin on quality or on the bill.”
