LLM Selection and Evaluation: Balancing Accuracy and Cost
Choosing the right large language model is no longer just about picking the strongest one. This article presents a practical evaluation framework that measures accuracy, latency, token consumption, and cost per 1,000 calls in a single table. Using a comparison between an older and a newer model version on a roughly 15,000-question Chinese benchmark, it shows how double-digit accuracy gains can come with higher latency and unit cost, and why cross-tier comparisons are misleading. Readers will find a reusable five-step selection workflow, a weighted scoring example, and engineering practices for controlling token usage and latency.
1. Background: Selection Pressure in an Era of Rapid Model Releases
The capability boundary of large language models is being redrawn almost every quarter. When vendors release a new version, they often highlight that it delivers capabilities close to the previous flagship generation at a significantly lower cost. Such claims are attractive to developers, but they also create new uncertainty: Is the improvement real? Does it cover my business scenarios? Are slower responses and higher costs acceptable?
The core question behind an original evaluation is actually a general engineering problem: how to make a quantitative trade-off among accuracy, latency, token consumption, and cost. This article strips away specific product attributes and keeps only the methodology and verifiable data structures, offering a practical evaluation and selection process.
2. A Four-Dimension Framework: Turning “Stronger” into Measurable Metrics
“Which model is stronger” is a vague question that must be broken down into four measurable dimensions:
- Accuracy (overall score): The pass rate on a fixed question set, reflecting general language capability.
- Average response time: End-to-end latency per call, which directly affects interaction experience and timeout rates.
- Average token consumption: The total number of input and output tokens per call, a leading indicator of cost.
- Cost per 1,000 calls: Determined jointly by output unit price and token consumption, and the final basis for budget accounting.
An illustrative evaluation result structure (the data only demonstrates the method and does not represent any specific product):
{"sample_size": 15000,"accuracy": 0.715,"avg_latency_sec": 72,"avg_tokens": 2731,"cost_per_1k_calls_cny": 53.5}
The key point is that all four metrics must be presented in the same table. Looking only at accuracy ignores the budget; looking only at cost sacrifices experience. Only a side-by-side comparison exposes the real trade-offs.
3. Old vs. New Version: A Leap Forward, Closed Gaps, and the Price Paid
In a Chinese evaluation of roughly 15,000 questions, the new version showed three clear trends compared with the previous generation.
1) A substantial overall leap. Accuracy rose from 60.6% to 71.5%, an increase of 10.9 percentage points, and the overall ranking jumped from 64th to 5th. This magnitude is outstanding among recent iterations, indicating that the vendor invested in substantive optimization for the lightweight tier rather than simply stacking parameters.
2) The most obvious improvement came in previously weak areas. Among the sub-dimensions, “Education” rose from 36.0% to 63.5%, an increase of 27.5 percentage points and close to a doubling; this had been a clear weakness in the previous generation. “Reasoning and math” rose from 67.5% to 83.4% (+15.9), “Healthcare and mental health” improved by 15.1 percentage points, and “Finance” improved by 13.7 percentage points. The engineering implication is that if your business falls precisely into these previously weak areas, the benefit of the new version is far greater than the average score suggests.
3) Latency and cost rose at the same time. Average response time increased from 40s to 72s, and the cost per 1,000 calls rose from 43.2 CNY to 53.5 CNY (+23.8%). The output unit price was raised from 18.125 CNY per million tokens to 21.3 CNY per million tokens, and average token consumption increased from 2,586 to 2,731 (+5.6%).
Here it is important to stay engineering-rational: in the early period after a new version is released, traffic surges and server load is high, so latency data usually does not represent steady-state performance; the rise in token consumption is often related to longer reasoning chains and more complete output structures, which is a normal cost of “trading capability for cost.”
4. Horizontal Comparison: Judging Value Within the Same Cost Tier
The second perspective of the evaluation is a horizontal comparison within the same cost tier. In the 50–100 CNY per 1,000 calls range, the new version achieved the highest accuracy at the lowest cost in that tier, forming a clear cost-performance advantage.
This points to a general rule: model selection should not compare across tiers; you should first determine the budget tier and then rank within it. Cross-tier comparisons (for example, comparing the accuracy of a lightweight tier with a flagship tier) almost inevitably lead to the invalid conclusion that “the flagship is stronger,” because the cost difference is ignored.
At the same time, the evaluation boundary must be stated: such evaluations usually focus on Chinese-language scenarios, and a model’s performance in other languages, ultra-long contexts, multimodal tasks, or strongly specialized domains may differ significantly. A conclusion from a single leaderboard must not be extrapolated into a universal one.
5. A Reusable Selection Decision Workflow
Teams are advised to formalize selection into a five-step process:
- Build a business question set: Sample 500–2,000 items from real traffic, covering high-frequency intents and long-tail edge cases, and avoid replacing the business question set with a public leaderboard.
- Determine the budget tier: First calculate the acceptable upper limit for cost per 1,000 calls, then lock down the candidate range.
- Run the four metrics in one table: Accuracy, P50/P95 latency, average tokens, and cost per 1,000 calls.
- Apply weighted scoring: Score according to business weights, for example
score = 0.5*accuracy + 0.2*(1 - latency_norm) + 0.3*(1 - cost_norm). - Canary release and regression: Run a canary with a small traffic share, establish a regression baseline, and automatically rerun the question set when versions are upgraded.
def score(acc, latency_p95, cost, w=(0.5, 0.2, 0.3)):# Normalize to 0~1 before weighting to avoid inconsistent unitsreturn w[0]*acc + w[1]*(1-latency_p95) + w[2]*(1-cost)
6. Engineering Practices for Cost Control and Latency Management
A cost increase of around 23.8% can usually be absorbed at the application layer:
- Token governance: Compress system prompts, trim redundant context, and retrieve before concatenating long documents to directly reduce input tokens.
- Structured output constraints: Limit output fields and maximum length to reduce ineffective generation.
- Caching and reuse: Apply semantic caching to high-frequency repeated requests, skipping the call on a cache hit.
- Tiered routing: Send simple requests to the lightweight tier and escalate complex requests to the stronger tier, controlling cost through routing rather than a global upgrade.
- Asynchronous and streaming: Change 72s-level latency from “synchronous waiting” to streaming responses or asynchronous tasks, combined with monitoring, alerting, and logging services to locate slow requests.
- Capacity and elasticity: Use container platforms and message queues to smooth traffic peaks and avoid timeouts caused by traffic surges in the early release period.
7. Conclusion
There is no single answer to “which model is stronger”; there is only “which one is more suitable given your question set, your budget tier, and your latency constraints.” The transferable conclusion from this comparison is that the new version achieved a double-digit percentage-point leap in accuracy and closed gaps in areas such as education and reasoning, at the cost of higher latency and unit cost; within the same cost tier, it has a clear cost-performance advantage. For developers, the capability that truly needs to be built is not chasing the newest release, but a sustainable, repeatable evaluation baseline — putting accuracy, latency, tokens, and cost in the same table so that every version iteration becomes a verifiable decision rather than a bet based on intuition.
