A Three-Dimensional Framework for Evaluating Large Language Models

    Choosing a large language model (LLM) for coding tools or cloud AI services is rarely a contest of "which one is stronger." This article breaks model selection into three measurable dimensions—output completeness, end-to-end latency, and total cost—and shows how to score each one independently instead of collapsing them into a single leaderboard number. You will find formulas for a weighted completeness index, a segment-count latency model, and a total-cost calculation that includes retries, verbosity, and cache hit rate, plus a reproducible evaluation method and the most common selection mistakes. The core takeaway: a ~2.5% quality gap rarely justifies paying several times more, unless the leading sub-metric happens to match your critical constraint.

    1. Why “Which Model Is Stronger” Is the Wrong Question

    When a team evaluates a new AI coding tool or LLM service, the most common argument is about which model is stronger. In engineering practice, however, the question resolves into three interdependent factors: whether the delivered output is good enough, how long you have to wait for it, and what the total bill looks like. These three factors conflict in every benchmark—higher quality scores usually cost more, cheaper models usually need another round of edits, and faster output usually cannot deliver as much content in a single pass.

    So this article does not declare a winner. Instead, it separates the three dimensions into numbers you can verify independently, then puts them back together in plain language: this is not a contest of strength, it is a choice between spending your budget on quality or on the bill.

    2. Dimension One: Measuring Output Completeness

    Output completeness is often reduced to a single composite score, but one number hides structural differences. A more rigorous approach uses two layers:

    1. Composite index: normalize several sub-metrics under the same benchmark conditions, apply weights, and produce a comparable total. In the example, the two sets of data are 57.8 and 56.4—a relative gap of about 2.5%, which counts as “leading, but only slightly.”
    2. Sub-metric win/loss table: compare sub-metrics one by one to see whether the leader is consistent. In the example, one side leads on 4 of 6 sub-metrics, a win/loss ratio of roughly 3:1 on the shared benchmark; the only sub-metric where it is overtaken is a safety metric (30.7 vs. 26.6).

    The engineering implication is critical: a 2.5% total-score gap usually does not offset a several-fold cost difference. If the lead is concentrated in a few dimensions while your business depends on the sub-metric where the model loses—security and compliance, for instance—the higher total score means nothing for you.

    A practical scoring convention:

    1. Completeness index = Σ(sub-metric score_i × business weight_i)
    2. Business weights come from sampled annotation of real production tasks, not default public leaderboard weights

    3. Dimension Two: Latency Is Not “Typing Speed”

    Latency is most often mistaken for response speed, but real delivery time is determined by two more structural factors.

    First, how much can be delivered in one pass. The single-response output limit determines how many segments a long deliverable needs. If the limits are 1.05M and 128K respectively—a gap of about 8.2x—then a 200,000-token deliverable is written in one segment by one model and requires two segments with the other. The extra segment is not just waiting time; it also includes re-aligning context, correcting style drift, and manual review.

    Second, how long each turn is. If one side produces 6–11x the median number of tokens per turn, it says more for the same task. That may look “more thorough,” but in batch workloads it linearly amplifies queueing time and rate-limit probability.

    A rough model for estimating end-to-end time:

    1. T_total ≈ segments × (time to first token + output length / generation rate) + inter-segment manual/program handoff cost
    2. segments = ceil(deliverable length / single-response output limit)

    Conclusion: the dividing line in the latency dimension is one-pass completion ability and verbosity, not the advertised tokens per second.

    4. Dimension Three: Cost Is a Total-Bill Calculation

    List price is only the starting point. In the example, the three price types (input, output, cached input) happen to be exact 4x multiples, a clean structure for conversion, but a real bill adds three multipliers:

    • Retry multiplier: the side with slightly lower completeness often needs an extra run or manual rework;
    • Turn multiplier: a more verbose model consumes more tokens per turn;
    • Cache hit rate: cached input is cheaper, and the hit rate depends on whether your calls share a stable prefix.
    1. Cost per task ≈ (input tokens × input price + output tokens × output price) × retry count
    2. Cache savings = hit tokens × (input price − cached input price)

    Put the 4x list-price gap next to the 2.5% completeness gap and you get the core judgment of this article: in most routine development scenarios, paying several times more for a marginal quality gain is not worth it; the premium is only justified when the leading sub-metrics happen to match your critical constraints.

    5. A Reproducible Evaluation Method

    1. Fix the task set: sample 50–100 real production tasks covering four categories—generation, refactoring, debugging, and documentation.
    2. Run under identical conditions: unify temperature, context length, and retry policy; record segment counts and tokens per turn.
    3. Score on three dimensions: produce three separate tables for completeness, latency, and cost; never merge them into a single “total score” that hides structure.
    4. Sensitivity analysis: perturb business weights within ±30% and check whether the ranking flips; if it does, selection is extremely sensitive to weights and you should prioritize better annotation data.
    5. Canary validation: roll out to 5%–10% of traffic and use the production pass rate and manual rework rate to verify the offline conclusions.

    6. Common Mistakes

    • Reading only the leaderboard total: ignoring sub-metric structure lets a critical constraint be broken by the metric where the model loses.
    • Treating long answers as high quality: verbose output drives up both cost and queueing time.
    • Ignoring inter-segment cost: handoff and style-consistency fixes across segments are usually left out of the calculation.
    • Using list price instead of the total bill: retries, turn counts, and cache hit rate go uncounted.

    7. Conclusion

    The value of the three-dimensional framework is not producing a “correct answer” but bringing the selection debate back to verifiable numbers: first use the sub-metric win/loss table to confirm whether the quality difference hits your critical constraints, then use the segment and turn models to estimate real latency, and finally use the total-cost formula to account for the bill. If you also need supporting capabilities such as batch generation, log retention, and monitoring alerts, you can build the evaluation pipeline on general-purpose product categories from Baidu AI Cloud, such as object storage, container platforms, and monitoring and alerting, so the conclusions stay reproducible and can be rolled forward as business weights change.