A Data-Driven Method for Evaluating and Selecting Large Language Models

    Most model roundups are hard to trust because they skip comparable metrics. This article breaks LLM selection into three checkable dimensions—output quality, time to complete a task, and total cost—and outlines a practical workflow: a shared task set, a composite index, unit cost, routing, and periodic retesting.

    Why most evaluation write-ups are not trustworthy

    Whenever a new generation of large language models ships, social feeds tend to split into two extremes: uncritical claims that it is far ahead, or a throwaway line that nothing has changed. For developers, neither is useful—both lack a reviewable definition of “better.”

    Judging whether a model is strong is really three constraints that pull against each other:

    1. Is the delivered artifact good enough—can it produce usable code, documents, or plans in one pass?
    2. How long do you wait—can a long job finish in one stretch, or do you need multiple rounds of stitching?
    3. What does it cost in total—for the same workload, how far apart are the bills?

    These three fight in every evaluation: higher scores often cost more; cheaper models often need extra edits. The core job of evaluation is to split them into independently verifiable numbers, then put them back into a sentence people can act on.

    Dimension 1: Completeness of the artifact—speak with a shared index

    2.1 Build a comparable composite index

    Quality cannot rest on “it feels good.” A workable approach is to freeze a set of test tasks (for example code generation, long-document summarization, multi-turn instruction following, safety and compliance, and other slices), score them with one rubric, normalize, then weight them into a composite index.

    A typical pattern: two models land close on the composite (for example 57.8 vs 56.4, about a 2.5% gap) but win different slices—one leads on several code and long-form items, the other overtakes on safety and compliance. “Who is stronger” only makes sense at the slice level.

    2.2 Slice win/loss ratio and why safety is special

    A common supporting metric is the win/loss count on a shared benchmark, for example 4 slices ahead and 1 behind. Treat safety separately: it is often measured with independent suites such as red-team tests, refusal rates, and content filters, and it does not track generation-quality rank. For enterprise selection, set the safety weight from the business scenario instead of folding it into a single total.

    1. # Sketch: a simplified weighted multi-dimension score
    2. def composite_score(detail_scores: dict, weights: dict) -> float:
    3. # detail_scores: {"code": 62, "safety": 30, ...}
    4. # weights: per-slice weights; raise safety independently for the business
    5. return sum(detail_scores[k] * weights[k] for k in weights)

    Dimension 2: Latency—the real split is not “who types faster”

    Many people equate speed with token generation rate. In production, two easier-to-miss parameters often decide delivery time:

    • Single-response output cap: If a model can emit a very long context in one shot (for example on the order of a million tokens), a 200,000-word document can be written in one pass. If the cap is only on the order of a hundred thousand tokens, you must split the job, stitch rounds, and keep context consistent. A several-fold gap in the cap is an order-of-magnitude gap in engineering complexity.
    • Length per turn: Some models talk much longer on the same job; tokens per turn can be several times the median. Verbosity is not always a plus: it raises cost per turn and lengthens human review.

    The right measure of “speed” is therefore rounds to finish a standard task × time per round × cost per round, not first-token latency alone.

    Dimension 3: Cost—list price is only the start of the multiplication

    Official list prices (input, output, cached input) are unit prices. The real bill also depends on:

    1. Total tokens for the task (verbose models are expensive by nature);
    2. Cache hits and discount tiers;
    3. Retries and rework (a slightly weaker model that needs two extra passes can double cost).

    A common market pattern: list prices across tiers may differ by an integer multiple (for example input, output, and cache all 4×), while composite quality differs only 2%–3%. Selection then becomes a clear business question: do you spend the budget on quality or on the invoice?

    For high-volume, high-tolerance work (batch summarization, log classification), a 4× cheaper option almost always wins. For one-shot, high-stakes work (core code generation, customer-facing documents), rework savings from the quality leader can cover the price gap.

    A selection process you can run

    Putting the three dimensions together, a practical sequence is:

    1. Define a task set: Pull 20–50 representative jobs from real work, covering long form, code, multi-turn dialogue, and safety-sensitive cases.
    2. Unify the protocol: Run every candidate with the same prompts and the same scoring rubric; record quality scores, rounds, wall time, and token use.
    3. Compute unit cost: Unit cost = bill per task ÷ quality score for that task. That ratio is more decision-relevant than the raw bill.
    4. Route by scenario: Do not force one model for everything. Route simple jobs to cheaper models and critical jobs to the quality leader.
    5. Retest on a cadence: Versions move fast; last round’s conclusion may not hold. Quarterly regression is a reasonable default.

    Closing

    Marketing copy will not tell you where a new generation is actually stronger, and emotional one-off tests will not either. The answer sits in checkable numbers: how large the quality-index gap is, how many times the output cap differs, and how many times unit cost differs. Put those three on the table and selection stops being a matter of belief and becomes arithmetic—the way an engineering team should decide.