A Three-Dimensional Framework for Evaluating Large Language Models

    This article presents a three-dimensional framework for large language model selection, covering output quality, latency, and cost. It explains why switching to a newer model often produces no noticeable difference in everyday tasks, then shows how to measure each dimension with layered task sets, end-to-end timing that includes output length and rounds, and per-round cost calculations that account for prompt caching. It also includes reusable evaluation code snippets, a practical workflow, and decision rules for matching a model to specific workloads.

    1. Why “It Feels the Same” Is a Real Conclusion

    In developer communities, the debate over “what exactly is stronger about the new model” resurfaces every few months. Some of that discussion is driven by marketing language. The rest is plain feedback from actual users: after switching to a newer version, the output quality of everyday tasks shows no perceptible change.

    These two views do not contradict each other. Most everyday tasks—completing a function, explaining an error message, rewriting a script—sit in the middle of the difficulty range, and differences in model capability within that range are masked by the low complexity of the task itself. What actually separates models are high-difficulty scenarios such as long-context delivery, complex refactoring, and cross-file consistency, and those scenarios do not come up often in daily work.

    So the first step in model selection is not to ask “which one is stronger,” but to break the question into three things that can be checked independently:

    • Is the delivered result good enough (the quality dimension)?
    • How long do you wait before a usable result is available (the latency dimension)?
    • What is the total cost (the cost dimension)?

    These three dimensions always pull against each other in any evaluation: higher scores usually cost more, and cheaper options usually require another two rounds of edits. Discussing them together produces the vague impression that “they’re all about the same.”

    2. Dimension One: Measuring Output Completeness

    “Completeness” cannot be equated with a leaderboard score. A workable approach is to layer the task set and measure each layer separately.

    The first layer is shared benchmark tasks. These have publicly verifiable answers and are suitable for side-by-side comparison. The measurement is simple: a win/loss count.

    1. Shared benchmark win/loss tally (illustrative)
    2. Task ID Passed by Option A Passed by Option B
    3. T-001 Yes Yes
    4. T-002 Yes No
    5. T-003 No Yes
    6. ...
    7. Win/loss ratio = A-only wins / B-only wins

    The second layer is fine-grained capabilities, such as code correctness, instruction following, structured output stability, long-document consistency, and safety. A common pitfall needs attention here: leading on the composite score does not mean leading on every item. In practice, it is common to see a small composite lead while the opponent overtakes on safety. Such reversals often carry more decision value than the total score, because they correspond to unacceptable risk rather than a detail that can be polished.

    The third layer is real business samples. A practical suggestion is to pull 30–50 historical tickets from your own code repository, construct input/output pairs, and form a private evaluation set. The value of a private set is that it contains your tech stack, naming conventions, and domain terminology—exactly the parts that public benchmarks cannot cover.

    It is worth stressing that any specific index, multiplier, or price figure must come from your own reproducible measurements under the same conditions, or from official public documentation; unverifiable third-party conclusions should not be cited. The first principle of an evaluation report is reproducibility: the same input, the same parameters, and the same scoring script should produce the same result when someone else runs them.

    3. Dimension Two: Where Latency Really Comes From

    Treating “latency” as “time to first token” is the most common misjudgment in model selection. For generative tasks, end-to-end time consists of three parts:

    1. Total time ≈ queue wait + time to first token + (output length / generation rate)

    The factor that is genuinely controllable and has a large impact is output length, which is determined by two things.

    The first is the single-response output limit. When one request can carry a longer output, a long-document task can be written in a single pass; when the limit is lower, the same task has to be split into multiple continuation passes. Splitting does not add a simple linear overhead: every pass must carry the context again, realign with the style of the preceding text, and may drop constraints along the way. In practice, tasks that require splitting have a noticeably higher rework rate than tasks completed in one pass.

    The second is verbosity. For the same task, different models can differ severalfold in output length. A longer answer means more generation time, more context consumption, and a higher bill. So in an evaluation script, “the output volume required to complete the same task” should be recorded as an independent metric:

    1. # Illustrative: record the actual cost of completing the same task
    2. record = {
    3. "task_id": task_id,
    4. "input_tokens": usage["prompt_tokens"],
    5. "output_tokens": usage["completion_tokens"],
    6. "rounds": rounds, # how many rounds it took to converge
    7. "wall_time_ms": elapsed_ms, # end-to-end wall-clock time
    8. "passed": check(task_id, answer),
    9. }

    Only by looking at rounds and output_tokens together can you tell whether an option “talks fast” or “delivers fast.”

    4. Dimension Three: Cost Per Round, Not Per Thousand Words

    The easiest mistake in cost evaluation is comparing only unit prices. Unit price is just one multiplier; the real cost formula should also include cache hits and rounds:

    1. Cost per task ≈ input price × uncached input volume
    2. + cached input price × cached input volume
    3. + output price × output volume
    4. Total cost = cost per task × rounds × number of calls

    This formula explains two counterintuitive phenomena. First, when unit prices differ severalfold, a solution that produces more verbose output and needs more rounds will see the total cost gap amplified. Second, solutions with cached-input pricing see costs drop significantly in scenarios with repeated input, such as long system prompts and fixed codebase context, because that content does not need to be billed again every time.

    The engineering recommendation is to instrument cost at the call layer rather than reading the bill at the end of the month.

    1. def estimate_cost(usage, price):
    2. fresh_in = usage["prompt_tokens"] - usage.get("cached_tokens", 0)
    3. return (
    4. fresh_in * price["input"]
    5. + usage.get("cached_tokens", 0) * price["cached_input"]
    6. + usage["completion_tokens"] * price["output"]
    7. )

    5. Putting the Three Dimensions Back into Plain Language

    The output of a three-dimensional evaluation should not be three tables, but one actionable decision rule:

    • If the work is mainly long documents and cross-file refactoring, look first at the single-response output limit and long-context consistency; here the time savings from completing a task in one pass usually outweigh unit price differences.
    • If the work is mainly high-frequency short requests (completion, explanation, formatting), output length differences are diluted, cost weight rises, and the cache hit rate becomes the key variable.
    • If the business has hard content safety requirements, the safety item must be a veto criterion, not a weighted one.
    • If the quality gap is itself only a single-digit percentage, spending a multiple of the budget to obtain it is usually less worthwhile than investing that budget in a private evaluation set and prompt engineering.

    6. A Reusable Implementation Workflow

    1. Build a layered task set: public benchmark tasks for side-by-side comparison, private tickets for business proximity.
    2. Fix the evaluation parameters: temperature, maximum output, and system prompt should all be written into a configuration file and placed under version control.
    3. Instrument all three dimensions at once: quality via pass rate, latency via wall-clock time and rounds, cost via tokens per round and cache hits.
    4. Set admission thresholds: safety and structured output stability act as hard gates, and anything that fails is eliminated outright.
    5. Retest on a schedule: model services keep iterating, evaluation conclusions have a shelf life, and regression runs at a fixed interval are recommended.

    In related practice at Baidu AI Cloud, this kind of evaluation generally follows the same generic method: a self-built evaluation set as the core, combined with logging services and monitoring alerts for continuous collection of token usage and latency, plus a container platform to run batch evaluation jobs—turning selection conclusions from a “feeling” into “data.”

    7. Conclusion

    “The new version isn’t any different” is often not an illusion, but the joint result of task difficulty and observation method. The professional approach is to accept that the quality gap may be small, then shift attention to the overlooked variables: delivery length, rounds, and caching. When the quality, latency, and cost columns can all be verified independently, model selection is no longer about taking sides, but a clear budget allocation decision.