A Three-Dimensional Framework for Evaluating Large Language Models

    This article presents a three-dimensional framework for large language model selection, replacing subjective impressions with measurable numbers across output completeness (quality), delivery time (latency and throughput), and invocation cost (billing). It explains how to quantify each dimension under identical evaluation conditions, why single-output limits and per-round verbosity drive both latency and repeated-context costs, and how to compare costs by usage structure rather than list price. A decision matrix, a regression-ready evaluation set, and engineering practices for context budgets, cache-friendly design, segmentation, observability, and quality gates are included to make model selection a repeatable engineering process.

    1. The Problem: Why “It Feels About the Same” Is the Usual Conclusion

    When a team adopts a new model, the most common feedback is that after a trial it feels roughly the same as the previous generation. That impression is not an illusion; it is the inevitable result of a missing evaluation standard. Users typically run a handful of familiar prompts, judge subjective fluency, and never break deliverable quality, waiting time, and cost into numbers that can be checked. Once those three things are measured separately, differences usually appear immediately — though not necessarily in the dimension you originally cared about.

    So this article does not argue about which model is stronger. Instead, it offers a three-dimensional evaluation framework: deliverable completeness (quality), delivery time (latency and throughput), and invocation cost (the bill). The three constrain each other: higher-quality options tend to cost more, and cheaper options tend to require two extra rounds of revision. The goal of the framework is to make the destination of every unit of budget explainable and auditable.

    2. Dimension One: Quantifying Deliverable Completeness

    Completeness is not the same as “looks good.” A practical approach is to decompose the deliverable into items that can be judged automatically, for example: functional requirement coverage, edge-case handling, API contract consistency, test pass rate, code style conformance, and security defect density. Score each item as binary or as a ratio, then aggregate them with weights into a composite index.

    The key constraint is the same measurement standard: identical prompts, identical context budget, identical judging scripts, identical retry counts. If one side is allowed three retries with the best result kept while the other runs once, the conclusion is invalid. Fix the randomness parameters and temperature settings, and repeat each item multiple times to take the mean and variance, so that single-run fluctuation is not mistaken for a generational difference.

    Security needs to be listed separately. A pattern seen in practice is that the option with a slight overall quality lead actually falls behind on security items. This shows that “better overall” and “better in your high-risk scenario” are two different propositions. If the business involves permission checks, input validation, or sensitive data handling, security items should carry higher weight, or even act as a veto threshold.

    3. Dimension Two: Where Latency Really Diverges

    Reading latency as “typing speed” is the most common misjudgment. End-to-end waiting time consists of three parts: time to first token, generation rate, and the maximum output length allowed per call. When the deliverable exceeds that single-call limit, it must be produced in segments, and every continuation reloads the context, adding latency and consistency risk.

    An illustrative capacity estimate:

    1. def estimate_rounds(deliverable_tokens, single_output_cap, overhead_ratio=0.15):
    2. effective_cap = int(single_output_cap * (1 - overhead_ratio))
    3. rounds = (deliverable_tokens + effective_cap - 1) // effective_cap
    4. return max(1, rounds)
    5. # A 200K-token deliverable needs two segments under a 128K cap; one segment with a higher cap
    6. print(estimate_rounds(200_000, 128_000)) # -> 2
    7. print(estimate_rounds(200_000, 1_000_000)) # -> 1

    The second frequently overlooked variable is per-round verbosity. If an option emits significantly more tokens per round than the median of its peers, it will “say more” on the same task, which increases both cost and the time you spend reading and verifying. Adding a “per-round token deviation” metric makes this hidden cost explicit.

    4. Dimension Three: Break Cost Down by Structure, Not Unit Price

    Cost comparison should be split into four parts: input unit price, output unit price, cached-input unit price, and the token structure actually consumed per round. Comparing unit prices alone leads to wrong conclusions, because the real bill is determined by “unit price × usage structure.” Verbose output, frequent segmented continuation, and a low cache hit rate can all let a cheaper list price overtake on the total bill.

    A useful approximation:

    1. cost per task ≈ input unit price × input tokens + output unit price × output tokens
    2. + cached-input unit price × hit tokens + repeated context from segmentation

    When the input-to-output ratio is a fixed multiple, bill differences are often dominated by that multiple; when segmented continuation happens, repeated context multiplies input-side spending. So “fewer segments” is both a latency optimization and a cost optimization.

    5. Putting the Three Dimensions Together: A Decision Matrix

    Scenario Priority dimension Recommended strategy
    One-shot delivery of long documents or large files Single-call output cap Prefer a higher cap to reduce continuation
    High security and compliance requirements Security items Set a threshold; filter first, then compare prices
    High-frequency, batch workloads Unit cost Reduce verbosity, raise cache hit rate
    Interactive completion Time to first token Small context, short output, streaming responses

    In practice, build a regression-ready evaluation set: fix 30–50 real business samples covering typical and edge cases, run them on every model or parameter change, and produce three reports — quality, latency, and cost. Only with a baseline in place will the “feels about the same” of a generational upgrade be replaced by explicit numbers.

    6. Supporting Engineering Practices

    • Context budget governance: set hard limits for prompts, retrieved snippets, and conversation history so uncontrolled growth does not push up input cost.
    • Cache-friendly design: put stable, unchanging preamble first and volatile content last to improve cache hit rate.
    • Segmentation and continuation orchestration: when segmentation is unavoidable, pass a structured summary explicitly instead of the full text to reduce repeated context.
    • Observability: collect time to first token, total duration, token usage, and failure rate through logging services and monitoring alerts, and build a dashboard.
    • Elasticity and managed services: stateless inference services can run on a container platform and scale on demand, with object storage holding evaluation samples and artifacts and a message queue smoothing traffic peaks.
    • Quality gates: wire test pass rate and security scanning into the pipeline, and block releases that miss the thresholds.

    In related practice at Baidu AI Cloud, these capabilities are typically combined as general-purpose categories: a container platform hosts inference services, object storage archives evaluation data, and the logging and monitoring system provides observability — turning “selection” from a one-off subjective judgment into an engineering process that can be regression-tested continuously.

    7. Conclusion

    The value of a generational upgrade must be verified with the three-dimensional standard: quality by item scores and variance, latency by single-call cap and verbosity, cost by usage structure rather than list price. When you can independently verify these three sets of numbers, model selection is no longer a camp dispute but a clear budget allocation decision — whether to spend the budget on quality or on the bill is determined by your scenario, not by marketing volume.