A Three-Dimensional Framework for Evaluating Large Language Models

    Choosing between large language models is less about which one is "strongest" and more about where your budget goes: quality or the bill. This article breaks model selection into three measurable dimensions—output completeness, delivery time, and total cost—and shows how to score quality across six subcategories with business-owned weights, why latency depends on single-pass output length and per-turn token usage rather than typing speed, and how to calculate cost using real input/output usage instead of list prices. It also outlines a reproducible evaluation workflow with fixed tasks, fixed parameters, three samples, blind review, cost accounting, and archiving, plus common pitfalls and the case for keeping model calls behind a unified abstraction layer.

    1. The Real Problem Hidden Behind Marketing Hype

    Every time a new generation of large language models ships, social platforms fill with emotional claims: one camp says it “crushes everything,” another says “there’s no difference at all.” For engineering users, neither judgment comes with verifiable evidence. When you put two models from different generations and different technical approaches on the same table, only three questions actually need answering:

    1. Is the delivered output good enough—how much manual rework is needed after a single generation?
    2. How long do you wait—the time cost from issuing a request to getting a usable result?
    3. What is the total bill for completing a task of the same scale?

    These three factors always fight each other in any evaluation: higher scores usually cost more, cheaper models usually require two extra rounds of edits, and faster output usually means less content per pass. So the essence of selection is not “who is stronger,” but whether the budget goes into quality or into the bill.

    2. Dimension One: Quantifying Output Completeness

    “Completeness” should not be equated with a leaderboard total score. The more sound engineering approach is to break the total into subcategories and to separate shared benchmarks from a private test set. Shared benchmarks are for cross-model alignment; the private test set validates relevance to your own business.

    Cover at least these six subcategories: code correctness and runnability, cross-file refactoring, long-context understanding, instruction following, safety and compliance, and maintainability of the generated result. Note that capability distributions are uneven across models: a model with a small lead on a composite index may be overtaken on a subcategory such as safety and compliance. If your business is compliance-sensitive, the weight of that item should be significantly higher than the composite score.

    A practical way to aggregate scores:

    1. weights = {
    2. "correctness": 0.30,
    3. "refactor": 0.20,
    4. "long_context": 0.15,
    5. "instruction": 0.15,
    6. "safety": 0.15,
    7. "maintainability": 0.05,
    8. }
    9. def score(candidate, weights):
    10. return sum(weights[k] * candidate[k] for k in weights)

    The key point: weights must be confirmed and documented by the business side, not decided on the fly by whoever runs the evaluation. Otherwise conclusions drift with the weights and lose comparability.

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

    Most people read time cost as response speed, which is a misreading. Two structural metrics actually determine the delivery cycle.

    The first is single-pass output length—the maximum content a single request can produce. Suppose a deliverable requires 200,000 tokens of continuous output. The side with a lower per-request ceiling must split generation into multiple segments, and segmentation brings repeated context, style drift, and stitching errors, so actual time can be more than twice the theoretical value.

    The second is per-turn expression length—the average number of tokens a model uses to complete the same task. If a model uses significantly more tokens per turn than the industry median, then even with a lower per-token price, the per-turn bill is not necessarily cheaper, and queueing and transfer time also stretch.

    Time evaluation should therefore record three quantities: end-to-end latency, total token consumption per task, and number of segments. The first quantity alone is not enough.

    4. Dimension Three: Cost Must Be a Total Bill

    Cost comparison requires a unified basis: at least input price, output price, and cached-input price, multiplied by the real usage structure. The practical approach is to measure the input/output ratio of real requests over a week and plug it into the calculation, rather than comparing vendor list prices directly.

    1. cost per task = input tokens × input price
    2. + output tokens × output price
    3. + cache-hit tokens × cache price
    4. + repeated context cost from segmentation

    The last item is the most easily overlooked. When output is forced into multiple segments, every segment must carry the context again, input tokens multiply, and the real bill can be far higher than a list-price estimate. This also explains why a “four times cheaper” sticker price can have its advantage compressed on specific tasks.

    5. A Reproducible Evaluation Workflow

    1. Fix the task set: draw 20 to 50 tasks from real requirements, covering new features, bug fixes, refactoring, and script writing.
    2. Fix the parameters: unify temperature, max output, and system prompt to avoid variable contamination.
    3. Sample three times: run each task three times and take the mean completeness and latency percentiles, not a single result.
    4. Blind review by two people: two engineers score without knowing the model identity; disputed items go to review.
    5. Cost accounting: recompute the bill using the real usage structure to produce a cost per task.
    6. Archive and review: keep weights, raw outputs, and scoring rationale together for quarterly re-evaluation.

    A skeletal batch runner:

    1. for task in tasks:
    2. for model in candidates:
    3. for _ in range(3):
    4. t0 = time.time()
    5. out = model.generate(task.prompt, max_tokens=task.budget)
    6. record(model, task, out, latency=time.time() - t0)

    6. Common Pitfalls

    • Looking only at the total score: ignoring the subcategory distribution leads to rework on compliance or maintainability after launch.
    • Comparing only list prices: ignoring output length and repeated context from segmentation distorts the bill.
    • Single sampling: model output variance is large, and one result cannot support a procurement decision.
    • Ignoring replaceability: wrap model calls behind a unified abstraction layer and keep the ability to switch.
    1. class ModelAdapter:
    2. def generate(self, prompt, max_tokens): ...

    Isolating concrete implementations behind a common interface allows low-cost migration when quality or price changes, and avoids lock-in to a single vendor.

    7. Conclusion

    Break delivery quality, delivery cycle, and the total bill into numbers that can be checked independently, then put them back together in plain language: a new generation’s advantage is often “a small lead with an uneven distribution,” while the cost gap can be an order of magnitude. The rational approach is to first settle the business weights for quality and compliance, then measure with a unified basis, and finally keep negotiating and migration room through an abstraction layer. If you also need elastic compute, object storage, log services, and monitoring and alerting, general-purpose products from platforms such as Baidu AI Cloud can be combined to put the evaluation conclusions into practice, turning them into sustainable engineering returns.