A Three-Dimensional Framework for Evaluating Large Language Models

    This article presents a three-dimensional framework for large language model selection, replacing vague impressions with verifiable numbers across deliverable completeness, time to delivery, and cost. It explains how to measure each dimension with consistent methodology, why output speed alone is misleading, how billing structure drives real cost, and how to run a reproducible evaluation. A decision checklist helps teams choose the right model mix under a given budget and deadline.

    1. The Problem: Turning “They Feel About the Same” into Verifiable Numbers

    When teams evaluate large language models, they often fall into one of two extremes. Some follow the marketing narrative and assume every new-generation model leads across the board. Others try a model a few times and conclude there is “no real difference.” Both share the same flaw: no consistent basis for comparison. To make a conclusion hold up, vague impressions must be broken into three quantities that can be checked independently: the completeness of the deliverable, the time required to obtain it, and the cost paid for that delivery.

    These three naturally pull against each other. Higher-completeness options usually cost more per call; lower-priced options often force multiple rounds of rework; and “types fast” does not mean “delivers the finished product faster.” So the goal of evaluation is not to crown the “strongest” model, but to answer an engineering question: under a given budget and deadline, which combination is the best fit.

    2. Dimension One: Measuring Deliverable Completeness

    Completeness should not be expressed by a single leaderboard score. Split it into two layers.

    The first layer is a composite index under a consistent methodology. “Consistent methodology” means the metric definitions, sample set, scoring rules, temperature parameter, and retry count are all identical, with only the model under test changing. If any one of these differs, the scores lose comparability.

    The second layer is a per-item win/loss table. A composite index hides structural differences, so it must be broken down into individual items such as code correctness, refactoring quality, documentation completeness, instruction following, long-context consistency, and safety. A common result is that one side leads slightly on most items while the other clearly overtakes it on a specific item (for example, safety). The correct reading here is “slightly better overall, weaker in places,” not “dominates across the board.”

    It is worth stressing that when the two composite indexes differ by only a few percent and the per-item results are split, engineering practice should treat them as the same tier. The decision weight should then shift to time and cost.

    3. Dimension Two: Time Is More Than Output Speed

    Time is the most easily misread dimension. Real delivery time is made up of three parts:

    1. total time ≈ queueing and time-to-first-token + generation time + manual rework time
    2. generation time ≈ total tokens to produce / effective throughput

    This yields two key conclusions.

    First, the single-response output limit determines how many segments are needed. If one response can produce a clearly larger number of tokens, a long deliverable can be written in a single pass. An option with a smaller limit requires segmented continuation, and each segment must re-align the context, which adds rounds and introduces semantic drift at the seams.

    Second, the “verbosity” of each response affects the total token count. If an option produces significantly longer output per turn, the same task consumes more generation time. This can be captured with a deviation measure:

    1. deviation = model_avg_tokens_per_turn / median_avg_tokens_per_turn

    A deviation greater than 1 means more verbose. It affects both time and cost, making it an underrated metric.

    Engineering recommendation: track the “first-pass completion rate” (the proportion completed without continuation) and the “average rework rounds” in your instrumentation. These two metrics are closer to the real experience than throughput numbers.

    4. Dimension Three: Calculate Cost by Billing Structure

    Cost evaluation should cover four price types: input, output, cached input, and the extra consumption from retries. A practical formula:

    1. cost = in_tokens * p_in + out_tokens * p_out \
    2. + cached_in_tokens * p_cached + retry_tokens * p_out

    When two options happen to form a fixed multiple relationship across input, output, and cached input, the cost gap scales linearly with usage. In that case, “several times more expensive” is a stable conclusion, not sampling noise.

    A more practical approach is to introduce cost per accepted deliverable:

    1. cost_per_accept = total_cost / accepted_deliverables

    The denominator counts only deliverables that pass acceptance. An option with heavy rework may overtake on this metric even if its unit price is lower.

    5. A Reproducible Evaluation Process

    1. Fix the task set: cover four categories: short Q&A, single-file changes, cross-file refactoring, and long-document generation.
    2. Fix the parameters: lock temperature, max output, system prompt, and retry policy.
    3. Sample three times and take the median, recording the variance; large variance means the conclusion is unstable.
    4. Record at the same time: composite index, per-item win/loss, first-pass completion rate, tokens per turn, and the actual bill.
    5. Produce a three-dimensional table in which any cell can be traced back to the raw logs.

    6. Decision Checklist

    • Long deliverables that must be completed in one pass: look first at the single-response output limit.
    • Budget-sensitive with high call volume: compute cost per accepted deliverable first.
    • High security and compliance requirements: examine the safety item separately, without letting the composite score mask it.
    • Gap within a few percent: treat as the same tier and let cost and latency decide.

    7. Conclusion

    The mark of maturity in model selection is the shift from “which is stronger” to “which is more suitable under which constraints.” Break completeness, time, and cost into reviewable numbers, then assemble them back into a plain sentence under a consistent methodology, and you avoid being misled by marketing narratives and single impressions. If you need to carry this evaluation and business traffic, you can build a reproducible evaluation pipeline on top of general capabilities such as the container platform, object storage, logging service, and monitoring and alerting offered by Baidu AI Cloud, so that every selection decision is backed by data.