A Three-Dimensional Framework for Evaluating Large Language Models
This article presents a reusable framework for selecting large language models along three independent, verifiable dimensions: output completeness, end-to-end latency, and total cost. It explains why casual testing often makes new models feel similar to previous generations, then shows how to measure each dimension under identical conditions using a composite quality index with a breakdown by category, a latency formula that accounts for queueing, output limits, and rework, and a three-tier cost model covering per-turn, per-task, and per-feature expenses. A weighted decision table and a reproducible checklist turn the measurements into practical selection decisions.
1. Why “It Feels About the Same” Is the Norm
Many developers try a new generation of LLM services and come away feeling that it is not much different from the previous one. That impression is not an illusion; it is the result of missing evaluation. Conversational testing covers only a small slice of a model’s capability distribution, and it lacks matched conditions, a fixed task set, and reproducible metrics. Turning a “feeling” into a “conclusion” requires breaking selection into three independent questions that can be checked separately: Is the delivered artifact good enough? How long do you have to wait? What does it cost in total?
These three questions always pull against each other in any technical evaluation: higher-scoring options tend to cost more, and cheaper options tend to require another round of edits. So the goal here is not to declare which model is stronger, but to provide a reusable measurement method that reduces the three questions to numbers and then reassembles them into a plain statement you can use for a decision.
2. Dimension One: Measuring Output Completeness
Output completeness means how far a one-shot deliverable is from being ready to ship. A two-layer structure works well: a composite index plus a breakdown by category.
The composite index is a weighted pass rate across shared benchmarks, with categories such as code generation, defect fixing, refactoring readability, test coverage, documentation completeness, and security compliance. The key is matched conditions: the same prompts, the same context budget, the same acceptance scripts, and the same retry limit. Only under matched conditions does a 2%–3% gap between two options mean anything; otherwise the difference is drowned out by random variation in how prompts are written.
The value of the category breakdown is that it exposes structural differences. A common pattern is one option leading slightly on most categories while clearly lagging on security. Security categories typically include checks for injection risk, unauthorized access, hard-coded sensitive information, and dependency vulnerabilities, and their weight should not be diluted by averaging.
An illustrative scoring skeleton:
WEIGHTS = {"correctness": 0.30, # functional correctness"maintainability": 0.20, # maintainability"test_coverage": 0.15, # test coverage"docs": 0.10, # documentation completeness"security": 0.25, # security compliance}def composite_index(scores: dict) -> float:return sum(scores[k] * WEIGHTS[k] for k in WEIGHTS)
3. Dimension Two: Where the Time Actually Goes
Latency is often misunderstood as “generation speed.” The actual delivery cycle has three parts: queueing and time to first token, the maximum output length per call, and the redundant length of each response.
The first part determines how the interaction feels; the second determines how many segments a long deliverable must be stitched from. A gap between a 1.05M single-call output limit and 128K means that for a 200,000-token deliverable, writing it in one segment versus two adds engineering work on the context handoff and on checking for repetition and omissions; the third determines “how much you have to read to hear the same thing.” If one option’s token count per turn is significantly above the median, human review and post-processing time rise accordingly.
A more reasonable latency metric is therefore:
end-to-end cycle ≈ queueing and time to first token+ ceil(deliverable length / max output per call) × generation time per segment+ human review and rework time (positively correlated with redundant length)
4. Dimension Three: Counting the Total Cost
Cost cannot be judged from the list price alone. A three-tier accounting model is recommended: cost per turn, cost per task, and cost per shipped feature. The ratio among input, output, and cached-input unit prices determines the real bill in long-context and multi-turn iteration scenarios; cache-hit strategy, context trimming, and batching or asynchronous processing can all change the total significantly.
def turn_cost(in_tok, out_tok, cached_in_tok, price):return (in_tok - cached_in_tok) * price["in"] \+ cached_in_tok * price["cache_in"] \+ out_tok * price["out"]
If the unit prices of two options happen to be a fixed multiple of each other (for example, 4× across all four items), then the cost difference is driven entirely by usage, and optimizing usage is more effective than switching options.
5. Combining the Three Dimensions into a Decision
Put it into practice with a weighted decision table: first set weights by business type (raise the security weight for security-sensitive work, raise the max-output-per-call weight for long-document work, raise the per-turn cost weight for high-frequency lightweight work), then plug in the measurements taken under matched conditions. A reproducible checklist includes the task set version, prompt templates, context budget, retry limit, acceptance scripts, and billing basis.
6. Common Pitfalls and Engineering Recommendations
The pitfalls are: looking only at leaderboard scores while ignoring the category structure; substituting chat experience for benchmark testing; ignoring the segmentation cost of long deliverables; and treating unit price as total cost. Engineering recommendations: build an internal fixed task set and add it to continuous integration; run automated acceptance and security scanning on generated output; segment and summarize long contexts; add caching and batching for high-frequency calls; and put model calls behind a unified gateway to make replacement and canary rollout easier.
7. Conclusion
When a new generation of models feels only slightly different from the previous one, the cause is usually insufficient evaluation granularity. Breaking completeness, latency, and cost into numbers that can be checked independently, then combining them with business weights, turns selection from “listening to marketing” into “looking at data.” In general engineering practice on cloud platforms such as Baidu AI Cloud, placing model capabilities behind a unified gateway, monitoring and alerting, and logging services, while continuously building up your own task set, is the reliable path to spending every unit of budget on quality rather than on the bill.
