A Three-Dimensional Framework for Evaluating Large Language Models

    Choosing between large language models is difficult when vendor claims and hands-on experience disagree. This article presents a three-dimensional evaluation framework based on output quality, latency, and cost. It explains how to break quality into verifiable sub-scores, why single-pass output limits shape end-to-end latency, and how to price models per completed task including retries and cache hit rates. Readers will find a reusable selection workflow, sample weighting and cost code, and a practical way to decide where the budget should go when composite scores are close.

    1. The Real Problem Behind the Hype: What Are We Actually Comparing?

    When model capabilities iterate quickly, every channel is filled with promotional descriptions of the next generation. Yet the experience of frontline developers often falls short of the messaging: after switching to a new version, task success rates barely move, but the bill goes up first. This gap is not an illusion. It is the inevitable result of a missing evaluation standard.

    To explain where a model is actually stronger, start with one premise: model capability is not a single scalar but a vector made up of multiple dimensions. Any conclusion that reports a single overall score hides an undisclosed set of weightings and value judgments. So the first step in a professional evaluation is not running benchmarks, but decomposing a vague “stronger” into three questions that can be checked independently:

    • Is the delivered output good enough (quality)?
    • How long do you wait for a usable result (latency)?
    • What does it cost in total (cost)?

    In engineering practice, these three dimensions pull against each other. Higher-quality options usually cost more per token. Cheaper options often force multiple rounds of rework, and rework is itself a hidden cost. Options that produce longer, more verbose answers may “explain things clearly,” but they directly inflate token consumption on every call. Mix all of this together and you get an unfalsifiable conclusion: “it feels about the same.”

    2. Dimension One: Completion Quality Must Be Broken Down

    “Completion quality” has to be operationalized into verifiable metrics, otherwise it stays a subjective impression. Three layers are common in the industry:

    1. Shared benchmarks: the same prompts and the same grading scripts, comparing models head to head. A win/loss table carries more information than a total score.
    2. Sub-item indices: split tasks into capability items (instruction following, structured output, code runnability, long-context consistency, factuality, safety, and so on), score each one, then apply weights.
    3. Human spot checks: for open-ended tasks that automated grading handles poorly, use blind review to avoid brand bias.

    Under this standard, a typical and notable pattern appears: two flagship models may differ by only two or three percentage points on the composite index, trade wins and losses across sub-items, and on safety-related sub-items the cheaper option may actually rank first overall. The lesson: when composite scores are close, selection should return to the specific sub-item weights of your business rather than chasing the overall ranking.

    1. # Sub-item weighting: turn "stronger" into checkable numbers
    2. weights = {"instruction": 0.25, "structured": 0.20,
    3. "code": 0.20, "long_context": 0.15,
    4. "factuality": 0.10, "safety": 0.10}
    5. def composite(scores: dict) -> float:
    6. return round(sum(scores[k] * weights[k] for k in weights), 1)
    7. # When composite scores are close, re-rank by business weights; the conclusion may flip
    8. print(composite({"instruction": 60, "structured": 58, "code": 61,
    9. "long_context": 55, "factuality": 57, "safety": 27}))

    3. Dimension Two: The Latency Divide Is “How Much Fits in One Pass”

    Treating latency as simply “how fast the first token arrives” misses the most expensive wait in engineering. Real delivery time has three parts: queueing and time to first token, generation speed, and how many segments are needed to finish.

    The single-pass output limit is the most overlooked hard constraint. When the limit is on the order of a hundred thousand tokens, a 200,000-token deliverable can be written in one pass. When the limit is only an eighth of that, the same deliverable must be split into two or more segments, bringing context rebuilding, consistency checks between segments, and retries when concatenation fails. The time these steps consume usually dwarfs the difference created by generation speed.

    The second factor is answer length. If a model produces significantly more tokens per turn than the median, then even at the same generation speed, per-turn latency and billing both scale up. The engineering response is to make the output budget explicit:

    1. max_output_tokens = min(business_required_length, single_pass_limit - safety_margin)
    2. if business_required_length > single_pass_limit:
    3. enable segmented generation + structured concatenation + consistency checks
    4. else:
    5. generate in a single pass, reducing round trips

    4. Dimension Three: Price Per Completed Task

    When comparing list prices, input, output, and cached input must be read together. A common pricing structure differs across the three by equal multiples (for example, output priced several times higher than input, with cached input an order of magnitude lower again). Compare input prices alone and you will badly underestimate the real bill, because the generation stage is usually what consumes output tokens.

    A more rigorous cost standard is cost per task:

    1. cost_per_task = (in_tokens * p_in + out_tokens * p_out
    2. + cached_tokens * p_cached) * average_retry_rounds

    Here “average retry rounds” pulls the quality dimension back into the cost formula: a cheap option that needs two rounds of rework may end up costing more than the expensive one. The cache hit rate depends on whether the prompt prefix is stable. Putting the system prompt and fixed context first, and the variable parts last, is the most general way to raise the hit rate.

    5. Putting the Three Dimensions Back Together: A Reusable Selection Process

    1. Build an evaluation set of 50–200 items from real business samples, covering both high-frequency and long-tail cases.
    2. Define sub-item weights and output a composite index plus a sub-item win/loss table, not a single total score.
    3. Measure the single-pass output limit and average output length, then estimate the probability of segmentation and the end-to-end latency.
    4. Price by cost per task, plugging in retry rounds and cache hit rate.
    5. Run a small-traffic canary, observe success rate, latency percentiles, and the real bill through monitoring, alerting, and logging services, then decide whether to roll out fully.

    On platforms such as Baidu AI Cloud, this process can be implemented with general-purpose capabilities: model services, object storage for evaluation sets, message queues for peak shaving, container platforms for running evaluation and canary jobs, plus logging and monitoring with alerting. Together they form an evaluation pipeline that supports continuous regression testing.

    The final conclusion is not mysterious. When two options differ by only a few percentage points on the composite score, the choice is essentially not about “which is stronger” but about “whether the budget goes into quality or into the bill.” Breaking the three dimensions into checkable numbers and weighting them back into your business context is the most effective engineering defense against marketing claims.