LLM Selection: A Three-Dimensional Evaluation of Quality, Latency, and Cost

    Choosing between large language models often comes down to three practical questions: is the output good enough, how long do you wait, and what does it cost in total. This article breaks those questions into quality, latency, and cost dimensions, explains why hands-on impressions frequently mislead, and offers a reusable evaluation method based on business samples, first-pass rate, rework rounds, and cached input pricing.

    1. Why “It Feels the Same” Is a Common Misjudgment

    As model release cycles accelerate, developers often run into a gap: the announcements promise a major capability jump, but trying the new model yourself feels no different from the previous generation. This gap is usually neither an illusion nor false marketing. It comes from a mismatch between how models are evaluated and what real workloads actually demand.

    There are roughly three causes. The first is a task-difficulty ceiling effect: casual testing tends to concentrate on low-discrimination tasks such as Q&A, rewriting, and simple scripts. Newer models saturated these tasks long ago, so the differences are compressed below what the eye can see. The second is insufficient prompt and context supply: more capable models are more sensitive to context quality. When the information is vague, the model spends its saved “capability budget” elsewhere, which shows up as unremarkable output. The third is an observation window that is too short: the perceived difference in a single interaction is far smaller than the difference in success rate and rework rate across batch tasks.

    So selection cannot rely on feel. It has to return to verifiable numbers. This article keeps the three questions above — is the deliverable good enough, how long is the wait, and what is the total bill — maps them to quality, latency, and cost, and then reassembles them into plain guidance you can act on.

    2. The Three-Dimensional Framework: Untangling Entangled Metrics

    2.1 Quality: Separate the Composite Index from Per-Item Wins

    Quality cannot be judged by a single overall score. The reasonable approach records two kinds of information at once: a composite index measured under the same conditions, and a per-item win/loss table. The former reflects the overall level; the latter reveals the shape of capability — some models score slightly higher on general tasks but clearly lag on safety-related items.

    An illustrative record structure looks like this (the values are format examples only and do not represent any real product):

    1. {
    2. "composite_index": {"model_a": 57.8, "model_b": 56.4},
    3. "shared_benchmarks": {"wins": [3, 1]},
    4. "breakdown": [
    5. {"item": "instruction_following", "winner": "model_a"},
    6. {"item": "code_correctness", "winner": "model_a"},
    7. {"item": "long_context", "winner": "model_a"},
    8. {"item": "safety", "winner": "model_b"}
    9. ]
    10. }

    Key reading rule: when the composite index gap is within 3%, treat the two as being at the same level and hand the decision to latency and cost. For any item that is reversed, if it happens to sit in a high-risk area of the business (content safety, permission-related judgments, for example), set a separate threshold for it and do not let the overall score hide it.

    2.2 Latency: The Real Dividing Line Is How Much You Can Write in One Pass

    Treating latency as simply “typing speed” is the most common mistake. End-to-end wait time is made up of three parts: time to first token, generation rate, and how many rounds must run serially. The last two are the dividing line.

    • Single-response output ceiling: if one option outputs about 128K tokens at most while another can output about 1M tokens in one pass, the gap is more than 8x. For a 200K-token deliverable, the former must be split into two serial segments, which doubles the wait and adds the cost of stitching the two segments together consistently.
    • Tokens per turn: some models produce several times the median token count per reply. They say more completely, but the same job takes longer and costs more. That is a burden in “give me the conclusion” scenarios and an advantage in “give me the finished draft” scenarios.

    Latency evaluation must therefore be bound to task shape: for one-shot long-form generation, look at the output ceiling; for interactive Q&A, look at tokens per turn and time to first token.

    2.3 Cost: List Price, Caching, and the “Rework Tax”

    Cost cannot be judged by unit price alone. At minimum, split it into four parts: input price, output price, cached input price, and the repeated consumption caused by rework. A common pricing structure in the industry keeps three prices at fixed ratios (input, output, and cached input differing by exactly 4x, for example). This means reusing a long context through caching can significantly dilute cost, while use patterns that change prompts frequently and never hit the cache keep billing at the high rate.

    Then add rework: if option A gets it right in one pass while option B needs two extra revisions on average, B’s real cost must be multiplied by a factor greater than 1. A claimed “4x cheaper” is erased once the rework factor reaches 4 or more.

    3. A Reusable Evaluation Method

    3.1 Use Business Samples, Not Public Leaderboards

    Sample 100–200 cases from real tickets, covering high-frequency, long-tail, and high-risk categories. Fix the prompts and context, score blind on both sides, and record the “first-pass rate” and “average rework rounds.” These two numbers sit closer to the bill than any composite index.

    3.2 A Unified Measure of Latency and Cost

    1. def evaluate(case, model):
    2. out = model.run(case.prompt, case.context)
    3. rounds = ceil(len(out) / model.max_output_tokens)
    4. tokens = model.in_tokens + model.out_tokens
    5. cost = (model.price_in * model.in_tokens
    6. + model.price_out * model.out_tokens
    7. + model.price_cache * case.cached_tokens)
    8. return {
    9. "wall_time": rounds * model.per_round_latency,
    10. "rounds": rounds,
    11. "cost": cost * case.rework_factor,
    12. "pass": grade(out) >= case.threshold,
    13. }

    The point of this pseudocode is to model rounds, the rework factor, and cache hits explicitly instead of guessing after the fact.

    4. Decision Guidance

    • When the gap is within 3%, prioritize cost and spend the budget on context length and cache hit rate.
    • When the deliverable is an extra-long finished draft, look at the single-response output ceiling first to avoid serial stitching.
    • For high-risk scenarios, set safety thresholds separately and keep them out of the overall average.
    • If you use model services on Baidu AI Cloud, you can combine log services, monitoring and alerting, and object storage to accumulate evaluation samples and billing data, forming a selection baseline that can be recomputed over time.

    The conclusion is not mysterious: this is not a contest of “who is stronger” but a choice between spending the budget on quality or on the bill. Break the three dimensions into numbers you can check, and the marketing claims and the felt differences stop fighting each other.