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

    Choosing a large language model is not about picking the strongest one, but about allocating budget across three independent dimensions: output quality, latency, and total cost of ownership. This article explains how to build a reproducible evaluation instead of relying on benchmark averages or subjective impressions. It covers a quality scorecard with sub-items such as correctness, completeness, maintainability, security, and testability; why first-pass rate and rework rounds matter more than a composite score; how single-response output limits and per-turn verbosity drive end-to-end delivery time; and why cost should be measured per finished deliverable, including input, output, cached input, and rework. A practical checklist for building a private evaluation set and reviewing metrics is included.

    1. Why “It Feels About the Same” Means the Evaluation Design Failed

    After upgrading to a newer model version, many teams report that the experience feels roughly the same as the previous generation, while the vendor’s messaging emphasizes a major leap. When both conclusions hold at once, usually nobody is lying; the evaluation criteria simply differ. Marketing typically relies on average scores from general-purpose industry benchmarks, whereas everyday experience comes from a small number of tasks that are relatively simple and use short contexts. When the tasks never touch the new version’s capability boundaries, the difference is naturally drowned out by noise.

    So the first step in model selection is not running benchmarks, but defining what “reproducible” means. A practical approach is to split the evaluation into three mutually independent dimensions that can be checked separately: finished-output quality, delivery time (latency), and total cost of ownership (the bill). These three work against each other: higher scores usually cost more, and cheaper options usually require two extra rounds of edits. Mixing them into a single composite score produces a conclusion that cannot guide budgeting.

    2. Dimension One: Break Quality into Sub-Items Instead of Reading a Composite Score

    When a composite index differs by only two or three percentage points, the practical meaning is close to zero, because the confidence intervals of most public leaderboards are far wider than that margin. The meaningful approach is to look at the sub-item distribution: if models trade wins across several sub-items, their capability structures differ rather than their overall strength.

    A scorecard for finished-output quality that teams can actually apply (illustrative):

    1. # Each item is scored 0-5 by two reviewers independently, then averaged
    2. rubric = {
    3. "correctness": "Passes all test cases on the first attempt",
    4. "completeness": "Covers boundary conditions and exception branches",
    5. "maintainability": "Naming, layering, and code duplication",
    6. "security": "Input validation, permissions, and key handling compliance",
    7. "testability": "Includes runnable verification cases",
    8. "verbosity": "Contains redundant output unrelated to the task",
    9. }
    10. score = {k: mean(r1[k], r2[k]) for k in rubric}

    A more reliable engineering signal is the “first-pass rate” and the number of “rework rounds,” not subjective impressions. It is worth fixing a set of tasks drawn from real repositories and recording the proportion of first outputs that pass tests, the average number of rework rounds, and the occurrence rate of security issues (hard-coded credentials, string-concatenated queries, missing authentication). Security is often the only sub-item where one option clearly overtakes the others, so if your scenario involves production data, this item should carry significantly more weight than the rest.

    3. Dimension Two: The Latency Dividing Line Is “How Long a Single Response Can Be”

    Treating latency as “how many tokens per second” is a common mistake. Real delivery time consists of three parts: queueing and time to first token, the context length that can be delivered in a single response, and the redundant length of each turn.

    • The single-response output limit determines whether a long artifact must be split. If one option caps output at roughly a hundred-odd thousand tokens while another reaches the million-token range, a 200,000-token deliverable must be generated in two passes on the former. The extra stitching, consistency checks, and manual review often take longer than the model’s own generation time.
    • Per-turn redundant length determines total token consumption. If an option uses noticeably more tokens per turn than the median, it “says more” for the same task, and latency and cost rise together.

    Quantify it as follows rather than going by feel:

    1. elapsed = {}
    2. elapsed["queue"] = t_first_token - t_request
    3. elapsed["gen"] = t_last_token - t_first_token
    4. elapsed["stitch"] = manual_merge_minutes * 60 # Splitting, stitching, and review
    5. print("End-to-end delivery seconds =", sum(elapsed.values()))

    4. Dimension Three: Price Cost by “One Finished Deliverable”

    Comparing unit prices is meaningless; compare the total bill for completing the same batch of tasks. If input, output, and cached-input prices maintain a fixed multiple relationship overall, the cost difference is structural and will not reverse depending on the task. Estimation formula:

    1. Cost per task = input tokens x input price + output tokens x output price
    2. + cached input tokens x cache price + rework rounds x cost per round

    Rework rounds are the easiest part to overlook. An option with a lower unit price that needs two extra rounds of edits may end up with a higher total cost. It is worth adding cache hit rate and average rework rounds as first-class metrics in reporting, and reviewing them weekly.

    5. Putting the Three Dimensions Back into Plain Language

    Selection is not about “who is stronger,” but about budget allocation. When the quality lead is limited but the cost is several times higher, most businesses should put the budget into the process side (better test cases, stricter review, caching and batching) rather than chasing leaderboards. For latency-sensitive long-document generation, look first at the single-response output limit. For compliance-sensitive scenarios, make security a gating item rather than a bonus item.

    Implementation checklist:

    1. Build a private evaluation set of at least fifty tasks from real repositories, with versions and parameters frozen.
    2. Record the three metrics in separate tables; do not combine them into a single composite score.
    3. Define gating items (security, license compliance) and bonus items explicitly.
    4. Review unit prices and caching strategy monthly, since cost shifts with list prices and hit rates.

    If you need one place to hold evaluation data, logs, and alerts, general-purpose capabilities such as object storage, log service, and monitoring and alerting on Baidu AI Cloud can be used to build a reproducible evaluation pipeline, so every selection conclusion can be traced and re-run.