LLM Selection: Don't Just Look at the Leaderboard, Look at the Bill
A practical guide to choosing a large language model based on cost per passing result instead of benchmark rankings. It explains what benchmark scores actually measure, how to calculate unit task cost from token usage, retries, and fallback rates, and how to run a reproducible four-step evaluation with tiered routing to keep both quality and spending under control.
1. One Report, Two “First Places”
Open any general-purpose LLM benchmark report and the first thing you see is the overall score ranking: the most capable models sit at the top, leading domestic and international products follow in order, and the ordering matches popular perception so closely that it seems beyond dispute. But keep scrolling and you reach a second table, this one grouped by “price-performance tier,” and the conclusion becomes immediately uncomfortable. The domestic model that led the overall ranking is placed in the low price-performance tier; two models with unremarkable overall scores occupy the high price-performance tier; and the middle tier is crowded with most of the candidates that “look decent enough.”
The report is not contradicting itself. The two tables answer two completely different questions. The overall ranking answers “who has the higher capability ceiling.” The price-performance table answers “under a given budget, who can reliably deliver more acceptable results.” In engineering practice, the second question is the one that actually constrains the project.
2. What Benchmark Scores Actually Measure
A general benchmark uses a fixed question set, fixed scoring method, fixed prompt templates, and fixed sampling parameters. It measures a model’s average performance under standardized inputs. That design has three inherent limitations.
First, it is unrelated to your data distribution. Benchmark questions are cleaned and balanced, while real business traffic is often extremely long-tailed: many repeated template requests and a small number of high-difficulty tail requests. A good average does not mean the tail is usable.
Second, it is usually decoupled from inference configuration. The same model can behave very differently and cost very differently under different sampling temperatures, maximum output lengths, context window occupancy, and batching strategies, yet the benchmark reports a single number.
Third, it measures capability, not cost. The benchmark does not distinguish how many input and output tokens a successful answer consumed, how many retries were needed, or how much post-processing and human fallback were required.
Treating a benchmark score directly as the selection criterion is therefore like choosing a commuter vehicle by its top speed.
3. The Bill Is the Source of the Real Ranking
Real cost is not the unit price. It is the “price per acceptable result,” which can be broken into a computable formula:
unit task cost = (input tokens × input price + output tokens × output price) × average calls÷ pass rateaverage calls = 1 + retry rate + fallback rate (downgrade to a stronger model or human)
This formula explains the whole story of “first place overall, last place on price-performance”: a higher unit price, longer outputs, and more retries and fallbacks needed to reach the same pass rate. Multiply the four factors together and the unit task cost is inflated several times over. Conversely, the middle tier is crowded because those models strike a compromise between unit price and pass rate: neither extremely cheap nor extremely capable.
Two hidden costs also need to be added in engineering: first, the experience loss from latency and the retries caused by timeouts; second, the queuing and scaling overhead caused by insufficient concurrency. They do not appear on the model bill, but they do appear on the business bill.
4. A Reproducible Four-Step Evaluation
Step 1: sample real traffic. Draw requests stratified by scenario, label difficulty and business value, and form a fixed evaluation set. It does not need to be large, but it must be versioned.
Step 2: define pass/fail rather than scores. Write automatically verifiable acceptance rules for each task type, such as structure validation, required fields, numeric ranges, and citation consistency.
Step 3: run a multi-configuration comparison. On the same evaluation set, compare different models and different inference parameters, recording token consumption, call counts, latency, and pass rate.
Step 4: calculate unit task cost and rank. The ranking usually differs markedly from the leaderboard, and this ranking is the “real ranking” you can take into a report.
A sketch of the implementation:
def unit_cost(records, in_price, out_price):total, ok = 0.0, 0for r in records:total += r.in_tokens * in_price + r.out_tokens * out_pricetotal *= 1 # placeholder; accumulate per record in practiceif r.passed: # determined automatically by acceptance rulesok += 1total += r.retry_cost # extra consumption from retries and downgradesreturn total / max(ok, 1)# Evaluation set after stratified sampling; compute per scenario# so that averages do not hide the long tailfor scene, recs in dataset.by_scene().items():print(scene, unit_cost(recs, 0.0, 0.0))
5. Tiered Routing: The Key Lever for Cutting the Bill
Serving all traffic with a single model forces a choice between “too expensive” and “not good enough.” The workable approach is tiered routing: send high-frequency simple requests to a low-cost model, escalate long-tail complex requests to a stronger model, and validate structured output up front, retrying or falling back on failure.
request -> rules / lightweight classifier -> simple: low-cost model -> structure validation -> return if passed|fail-> escalate to stronger model / human fallback
Combined with general cloud capabilities, this keeps cost in a cage: use a message queue to smooth peaks and fill valleys so concurrency stays stable, use object storage to accumulate evaluation sets and call logs, use a container platform for elastic scaling, and use log and monitoring services with threshold alerts on token consumption, pass rate, and timeout rate, forming a closed loop of “observable, attributable, optimizable.” When deploying on Baidu AI Cloud, the same recommendation applies: build with these general categories of services rather than binding to a single model API.
6. Common Pitfalls and a Deployment Checklist
Pitfall 1: looking only at unit price. A low unit price with a high retry rate can produce a higher total cost. Pitfall 2: looking only at average scores. Failures in tail scenarios break the experience outright. Pitfall 3: treating selection as one-time. Both business traffic and model capabilities change, so the evaluation set must be refreshed quarterly.
Deployment checklist: build a versioned evaluation set; automate pass/fail determination; output a unit task cost comparison on every change; set alerts on all three curves at once (cost, pass rate, latency); and keep a downgrade path and a human fallback channel.
The conclusion is straightforward: the leaderboard decides what you can do, the bill decides how much you can do. Switch the evaluation criterion from “score” to “price per acceptable result,” and model selection turns from a subjective argument into a reproducible engineering decision.
