Beyond Benchmark Scores: Choosing LLMs by Output per Unit Cost

    This article explains what public benchmark leaderboards can and cannot tell developers when selecting or budgeting for large language models. It then presents an evaluation method centered on output per unit cost. The method covers how to sample and structure a private evaluation set, how to calculate cost-effectiveness, and what to check for routing, stability, and compliance.

    1. Why Benchmark Rankings Can Mislead

    1.1 The Limits of Benchmarks

    Comprehensive and reasoning leaderboards are essentially static question banks. They show the capability ceiling of a model on certain closed tasks. They cannot answer three questions that matter more in engineering practice.

    • Task distribution fit: Does the benchmark follow the same distribution as your real tasks? A model that excels at abstract reasoning may not be good at understanding a large codebase with long context.
    • Missing cost dimension: Leaderboards usually show capability but not price. Two models with similar capability can differ several times in price per million tokens, and leaderboards do not reflect this.
    • Lagging updates: Model release cycles have shortened to quarters. Leaderboard updates often lag behind new releases, so the data you use for selection may already be out of date.

    1.2 “Extreme Reasoning Tasks” Are a Niche Scenario

    Recent flagship model announcements from several vendors repeatedly mention “extreme reasoning tasks.” These typically include multi-step mathematical derivation, complex algorithm design, long-chain logical reasoning, and cross-file refactoring of large codebases. They share common traits: deep reasoning per call, low tolerance for errors, low sensitivity to latency, and high requirements for correctness.

    If your workload falls into this category, such as scientific computing assistance or complex system design review, the capability gap between flagship and mid-tier models is usually real. If your scenario is customer service intent classification, copywriting, or simple information extraction, a mid-tier or even small model is often sufficient. In such scenarios, the extra capability of a flagship model goes largely unused, while the budget is noticeably consumed.

    2. Similar Capability, Different Prices

    After many model releases, a common pattern appears: sub-flagship models come close to flagship models on some core benchmarks, but their API prices can be noticeably lower. This price gap varies widely across vendors and over time, so this article does not give a uniform ratio. You need to calculate the real difference using the vendor’s published price list, combined with your own call structure: the input-to-output token ratio, concurrency, and cache hit rate.

    This divergence usually has a clear business logic.

    1. Flagship models serve as technical benchmarks, showing a brand’s capability ceiling.
    2. Sub-flagship models mainly handle high-volume workloads. They compete for real engineering traffic with close capability and lower prices.
    3. For developers, the difference between 3rd and 5th place on a leaderboard is hard to notice in most business scenarios. The price difference, however, appears directly on the monthly bill.

    Public benchmark scores go out of date quickly, so output per unit cost deserves more long-term attention. When selecting models, build your own evaluation set first, then choose candidates. Do not rely only on public leaderboards.

    3. Building Your Own Model Evaluation Framework

    3.1 A Three-Layer Evaluation Approach

    Split model evaluation into three layers. Each layer solves a different problem.

    Layer 1: Initial screening with public benchmarks. Use comprehensive leaderboards to quickly rule out candidates that clearly fail your requirements. Examples include models with insufficient context length, missing required features, or obvious weaknesses in the target language. This step usually takes about ten minutes.

    Layer 2: Testing on a private evaluation set. This is the core of the whole process. Sample 50 to 200 cases from real business workloads. Each case needs a reference answer or a clear manual scoring rubric. The evaluation set should include the following fields.

    Field Meaning Example
    id Unique case ID case_0132
    prompt Full input sent to the model Includes the system prompt and user question
    expected Expected output or scoring points A reference answer, or “must include fields A and B”
    difficulty Difficulty level easy / medium / hard
    tag Business category normal, boundary, adversarial

    When sampling, stratify by category. For example, normal cases make up about 60%, boundary cases about 25%, and adversarial cases about 15%. Within each category, cover different difficulty levels. This keeps the results from reflecting only performance on easy cases.

    The following is a skeleton of the evaluation workflow. You need to implement load_eval_set, call_llm, and score according to the SDK you use and your scoring rules. Check the field names of resp.usage against the documentation for your SDK.

    1. import itertools
    2. candidates = ["model_a", "model_b", "model_c"]
    3. eval_set = load_eval_set("business_cases.jsonl") # Includes id, prompt, expected, difficulty, and tag
    4. results = {}
    5. for model, case in itertools.product(candidates, eval_set):
    6. resp = call_llm(model, case.prompt)
    7. results[(model, case.id)] = {
    8. "score": score(resp, case.expected), # Rule-based or manual scoring, value from 0 to 1
    9. "tokens_in": resp.usage.input_tokens,
    10. "tokens_out": resp.usage.output_tokens,
    11. }

    After the run, aggregate the total score, total cost, and valid output rate for each model. Then compare the output per unit cost of the models.

    Layer 3: Canary rollout comparison. Use traffic splitting. For example, send 5% of traffic to a candidate model, and compare its task completion rate, user feedback, and manual correction rate against the current model. The canary period should cover both peak and off-peak times in the business. Otherwise the conclusion may reflect only one time window.

    3.2 Focus on Output per Unit Cost, Not Unit Price

    When evaluating, do not look only at unit price. Calculate the following factors together.

    • Valid output rate: The share of outputs that can be used directly, without retries or manual correction.
    • Retry cost: Low-quality outputs trigger retries, and the actual cost can multiply.
    • Context cost: A model that handles long context well and ignores irrelevant content reduces the engineering effort spent on manual context trimming. That labor time should also count as cost.

    The cost of a single call depends on the input and output token counts and their prices:

    1. Cost per call = input tokens × input price + output tokens × output price

    “Expected number of calls” means the average number of calls needed to get one usable result. If failed outputs are retried and each retry has the same success probability, the expected number of calls is approximately 1 / valid output rate.

    Cost-effectiveness can be calculated with this formula:

    1. Cost-effectiveness = task success rate / (cost per call × expected number of calls)

    The following is a hypothetical example. Model A costs 0.02 yuan per call, has a valid output rate of 0.9, and a task success rate of 0.95. Its expected number of calls is about 1.11, its cost per usable result is about 0.0222 yuan, and its cost-effectiveness is about 42.8. Model B costs 0.01 yuan per call, has a valid output rate of 0.6, and a task success rate of 0.8. Its expected number of calls is about 1.67, its cost per usable result is about 0.0167 yuan, and its cost-effectiveness is about 48.0.

    In this example, the lower-priced Model B performs better overall. These are hypothetical figures, though. The real conclusion depends on your own evaluation set. Cost-effectiveness values only support relative comparison under the same calculation basis. Do not compare them directly across projects.

    4. Other Engineering Considerations

    4.1 Vendor Lock-in and Multi-Model Routing

    A safer approach is to add a model routing abstraction at the application layer. Send simple requests to low-cost models and complex requests to flagship models. Many LLM services offer compatible API styles. Cloud providers’ model service platforms often also offer unified access and model switching, which can reduce the effort of changing routes and implementing fallback.

    The code below shows the basic routing idea. You need to define estimate_complexity for your workload, for example by scoring input length, task type, or keywords. Set the thresholds based on the results of the Lay