LLM Selection Benchmark: How to Trade Off Accuracy Against Cost
Choosing a large language model is rarely a question of which one is "strongest." This article uses a reproducible public benchmark of roughly 15,000 questions, comparing two generations of lightweight models, to show how accuracy, latency, token usage, and cost per thousand calls should be defined, measured, and turned into a shippable decision. It also outlines a reusable evaluation workflow with regression gates, engineering tactics for cost control, and scenario-based selection guidance.
1. Why “Which Model Is Stronger?” Is the Wrong Question
In real selection work, “which model is stronger” almost never produces a meaningful answer. The actual constraint is never a single dimension but a joint one: capability ceiling, latency budget, and unit cost. A model that is ten percentage points more accurate but takes twice as long per call and costs twenty percent more may be a net gain in offline batch processing, and may break the SLA outright in a high-concurrency online path.
A more rigorous question is therefore: given a task distribution and a cost ceiling, which model has the better cost-performance curve? This article uses a set of public, reproducible benchmark results as a sample to discuss how to turn “feels stronger” into a decision basis that is computable, regression-testable, and ready for production.
2. Aligning the Metrics First: Four Definitions and Their Traps
The measurement definitions must be fixed before reading any numbers; otherwise cross-version comparisons are meaningless.
- Accuracy (overall): weighted correctness across the full question set. It reflects the capability ceiling but is extremely sensitive to question distribution.
- Average latency: end-to-end time for a single call, including queueing, time to first token, and full generation. It is affected far more by server load than by the model itself.
- Average tokens: the sum of input and output tokens consumed per call. It is an intermediate variable for cost, influenced by prompt design and output length constraints.
- Cost per thousand calls: determined jointly by the output price and token consumption. This is the number that actually lands on the bill.
One methodological point deserves emphasis: latency and cost are not intrinsic properties of a model but composite results of “model + service load + prompt strategy.” Treating jitter data from the initial release period as a steady-state conclusion is the most common mistake in evaluation.
3. Reading the Sample Data: A Leap Across One Version
The sample evaluation covers about 15,000 questions. The comparison between the previous and new generations of lightweight-tier models is below (cost is the spend in RMB per thousand calls; output price is in RMB per million tokens):
| Metric | Previous-gen lightweight | New-gen preview | Change |
|---|---|---|---|
| Accuracy | 60.6% | 71.5% | +10.9pp |
| Overall rank | 64th | 5th | Major jump |
| Average latency | 40s | 72s | +80% |
| Average tokens | 2586 | 2731 | +5.6% |
| Output price | 18.125 | 21.3 | +17.5% |
| Cost per 1k calls | RMB 43.2 | RMB 53.5 | +23.8% |
Three conclusions can be drawn.
First, the capability leap happened in the lightweight tier, not the flagship tier. An eleven-point gain moved the model from the lower-middle of the leaderboard into the top five, which indicates that small-parameter tiers are now absorbing tasks that previously required expensive models. This directly changes the cost structure.
Second, closing weak spots is more valuable than reinforcing strong ones. In the sub-domains, education rose from 36.0% to 63.5% (+27.5pp), reasoning and math from 67.5% to 83.4% (+15.9pp), healthcare and mental health by +15.1%, and finance by +13.7%. The previously collapsed areas were filled in, which means the usable scenarios expand from “chat and summarization” to tasks with higher demands on logical chains, such as problem solving, diagnostic assistance, and financial analysis.
Third, the cost increase is driven mainly by unit price rather than tokens. Tokens rose only 5.6% while cost per thousand calls rose 23.8%, which shows the bill change is dominated by pricing policy. The implication for architects: the marginal gains from prompt optimization that compresses tokens are being offset by the price increase.
As for latency going from 40s to 72s, this is more likely queueing and resource contention caused by a surge in traffic right after release. It is a load characteristic rather than a capability characteristic, and should be re-measured in a steady-state window before being included in the decision.
4. A Reusable Evaluation Plan
The process above can be consolidated into an engineering workflow in five steps.
- Fix the question set and version numbers. The set must cover the real business distribution and retain domain labels for sub-domain attribution; the model version must be recorded precisely, and preview versions should be tagged with the snapshot time.
- Use stratified sampling instead of full reruns. Stratified sampling brings the regression cost of 15,000 questions into an acceptable range; run the full set only at version switches.
- Replace averages with latency percentiles. Averages hide the long tail, so collect P50/P90/P99 and separate time to first token from overall generation latency.
- Account for cost per “successful task unit.” Looking only at cost per thousand calls leads to misjudgment; convert it to cost per thousand successful deliveries.
- Establish regression gates. Write accuracy, P99 latency, and unit cost into pipeline thresholds; if any metric degrades beyond its threshold, block the release.
Illustrative evaluation and gating logic:
# Pseudocode: version regression gatedef gate(report, baseline, acc_drop=1.0, p99_ratio=1.3, cost_ratio=1.25):checks = {"accuracy": report.acc >= baseline.acc - acc_drop,"latency_p99": report.p99 <= baseline.p99 * p99_ratio,"cost": report.cost_per_1k <= baseline.cost_per_1k * cost_ratio,}return all(checks.values()), checks# Cost conversion: measured per thousand successful tasksdef unit_cost(cost_per_1k, success_rate):return cost_per_1k / max(success_rate, 1e-6)
5. Engineering Tactics for Cost Control
In a cycle of rising unit prices, cost governance should shift from “switch to a cheaper model” to “reduce ineffective calls.”
- Semantic caching: apply vector-recall caching to highly repetitive requests and skip generation on a hit. This is usually the highest-return measure.
- Tiered routing: classify intent and split traffic, sending simple tasks to the lightweight tier and escalating only complex reasoning to the high-capability tier, forming a cost gradient.
- Output length constraints: explicitly bound structured output and maximum length. Token consumption is often more controllable than unit price.
- Batching and asynchrony: run offline tasks off-peak, trading throughput for unit price and avoiding peak-hour queueing.
- Full-chain observability: connect tokens, latency, and failure rates to logging services and monitoring alerts, and attribute cost by business dimension.
The combination of routing and caching can be abstracted as:
def route(req, cache, light, strong):hit = cache.lookup(req.embed())if hit:return hitmodel = strong if req.complexity > THRESHOLD else lightresp = model.generate(req.prompt, max_tokens=req.max_tokens)cache.store(req.embed(), resp, ttl=3600)return resp
6. Scenario-Based Selection Guidance
- High-concurrency online customer service: prioritize P99 latency and unit cost, tolerate lower accuracy, and use the lightweight tier with caching.
- Education and problem solving: the direction with the largest gain this time; the lightweight tier can handle it, but keep human review sampling.
- Finance and healthcare assistance: prioritize accuracy; use the high-capability tier with rule-based validation and cross-validation by two models.
- Offline batch processing: low sensitivity to cost and latency; the capability ceiling can be opened up, using asynchronous queues to smooth peaks.
7. Conclusion
The real signal in this data set is not that a particular version is “stronger,” but that the capability density of the lightweight tier is rising quickly. Selection logic should shift from “accuracy above all” to “cost-performance optimization under constraints.” In practice, hold to three things: align the metric definitions first, look at percentiles rather than averages, and account for cost per successful task. If a unified model access layer and full-chain observability are already in place, for example building the evaluation and governance system with general-purpose category components on Baidu AI Cloud, the gains from version iteration can be absorbed steadily instead of being consumed by repeated regression costs.
