LLM Evaluation and Model Selection Methodology: Balancing Accuracy and Cost
This article presents a vendor-neutral framework for evaluating and selecting large language models, based on a benchmark of roughly 15,000 questions scored by sub-domain. It explains why "which model is stronger" is an ill-defined question, breaks evaluation into four metrics that must be read together—accuracy, latency, token consumption, and cost per 1,000 calls—and shows why a lower unit price does not mean lower total cost. Using a sample generational upgrade as a case study, it walks through how to interpret uneven gains, time-sensitive latency data, and cost increases, then turns the findings into engineering decisions such as tiered routing, semantic caching, batching, canary releases, and observability. A practical evaluation checklist is included.
1. Background: Why “Which Model Is Stronger” Is the Wrong Question
In model selection review meetings, the most common question is “which of these two models is actually stronger?” But once you get to engineering implementation, that question is nearly impossible to answer, because “stronger” is never defined. A model that leads on knowledge Q&A is not necessarily as reliable at long-context extraction. A model that is two percentage points ahead on accuracy may double average latency and raise per-call cost by 20%, which for a high-concurrency online service can actually be a regression.
A cloud vendor recently released a preview of a lightweight model generation, described with keywords like “delivering capabilities close to the flagship at a fraction of the flagship’s cost,” and claimed to outperform the previous generation’s mid-tier model on several public benchmarks. The value of this kind of release note for developers is not the conclusion itself, but that it provides a natural controlled experiment: two versions from the same vendor, the same product family, adjacent generations, and similar positioning. You can directly observe what a generational upgrade changed and what it cost.
This article uses a side-by-side evaluation of roughly 15,000 questions, scored by sub-domain, as a sample, and abstracts from it a vendor-neutral methodology for LLM evaluation and selection. It focuses on three questions: how to break down the metrics, how to read the trade-offs, and how to translate conclusions into engineering.
2. Evaluation Framework: Four Metrics and One Trap
A reliable model evaluation must cover at least four dimensions, and it must look at all of them at once rather than only one.
- Accuracy (effectiveness): the correctness rate weighted by sub-domain, which sets the floor for business usability.
- Response latency (experience): end-to-end time for a single call, which determines user perception and timeout rates.
- Token consumption (cost factor one): the average input and output tokens consumed per call, reflecting how verbose the model is and how efficiently it uses context.
- Unit cost (cost factor two): the amortized cost per 1,000 calls, determined jointly by unit price and token volume.
There is a common trap here: treating “cheaper unit price” as equivalent to “lower total cost.” Real cost equals unit price multiplied by token usage, multiplied by the number of calls. If a new version lowers unit price but produces longer outputs and longer chains of thought, total cost may actually rise. Conversely, a model with a higher unit price that answers correctly on the first try, reducing retries and manual review, may have a lower end-to-end cost. So an evaluation report must present both the unit price and the measured average token count; neither can be omitted.
A schematic aggregation of the metrics can be written as:
@dataclassclass ModelStat:name: straccuracy: float # weighted accuracylatency_ms: int # average end-to-end latencytokens_avg: int # average token consumptioncost_per_1k: float # amortized cost per 1,000 callsdef score(s: ModelStat, w=(0.5, 0.2, 0.1, 0.2)) -> float:# normalize before weighting to avoid inconsistent unitsreturn sum(wi * vi for wi, vi in zip(w, normalize(s)))
3. Reading the Sample Data: A Typical Generational Leap
In the sample, the new preview version’s results were: about 15,000 test questions, a weighted accuracy of 71.5%, an average single-call time of 72 seconds, an average token consumption of 2,731, and an amortized cost of RMB 53.5 per 1,000 calls. The previous generation’s mid-tier version from the same series had an accuracy of 60.6%, a latency of 40 seconds, a token consumption of 2,586, and a cost of RMB 43.2 per 1,000 calls; its output unit price worked out to RMB 18.125 per million tokens, which the new version raised to RMB 21.3 per million tokens.
Four conclusions can be drawn.
First, the leap in effectiveness is real and substantial. Accuracy rose by 10.9 percentage points, and the overall ranking moved from 64th to 5th. A ten-percentage-point jump on a model in the lightweight tier usually means the training data mix, post-training alignment, and inference strategy were all optimized together, rather than a single-point parameter tweak.
Second, the improvement is uneven, with a clear pattern of shoring up weak spots. Education capability rose from 36.0% to 63.5%, a gain of 27.5 percentage points, nearly doubling; reasoning and math computation rose from 67.5% to 83.4%, up 15.9 percentage points; healthcare and mental health improved by 15.1%, and finance by 13.7%. This shows the new version’s main gains came from “the board that was previously weakest,” which contributes most to the total score. The engineering implication: if your business happens to fall in one of these previously weak areas, the benefit will be far higher than the average score suggests; conversely, if your business is concentrated in areas that were already strong, the marginal benefit of upgrading may be limited.
Third, latency rose significantly. Average time increased from 40 seconds to 72 seconds, an 80% jump. The evaluator’s explanation was that the new version had been released only two days earlier and a surge in traffic pushed server load high, which should improve once things stabilize. That explanation is reasonable, but it also points to an evaluation discipline: performance data for newly released models is time-sensitive and must be re-measured after load stabilizes, or capacity planning will be distorted.
Fourth, cost rose by about 23.8%. Of that, the unit price increase accounted for about 17.5% and the token consumption increase for 5.6%, and the two stacked to produce the total cost increase. This again confirms the judgment that “unit price does not equal total cost.”
4. Turning Conclusions into Decisions: Tiered Routing and Cost Control
The endpoint of evaluation is not a leaderboard but architecture. Facing a new version that is “stronger but slower and more expensive,” four engineering approaches are recommended.
1) Tiered routing. Use a lightweight model for high-frequency simple requests and a high-capability model for complex requests, with a rule-based or small-classifier pre-check in front.
def route(q: str) -> str:if len(q) < 200 and not has_multi_hop(q):return "light" # low cost, low latencyreturn "strong" # high accuracy, high cost
2) Semantic caching. Cache results for high-frequency repeated questions and return on a hit, directly cutting call volume and cost; set a similarity threshold and an expiration policy to avoid stale answers.
3) Batching and asynchrony. Move offline tasks to batch submission, trading latency tolerance for throughput; for online paths, set timeouts, retries, and fallback degradation so long-tail requests do not drag down the overall timeout rate.
4) Canary release and rollback. Roll out the new version to 5% of traffic first, compare accuracy, latency, and cost against the live baseline, then ramp up once it meets the bar, and keep a switch to revert to the old version in one step.
Supporting observability matters just as much: record latency and token usage bucketed by model version, business scenario, and request length, so you can pinpoint whether a cost anomaly comes from unit price or from longer outputs.
5. Evaluation Checklist
- The question set must reflect the real distribution of your business and be weighted by sub-domain, so the total score does not mask weak spots.
- Collect at least four metrics for each version—accuracy, latency, average tokens, and unit cost; none can be skipped.
- Re-measure newly released models once after load stabilizes, producing two timestamp-comparable sets of data.
- Account for cost as “unit price × token volume × number of calls,” and include the hidden costs of retries and manual review.
- Use canary release plus rollback on launch; do not ramp traffic if core metrics miss the bar.
6. Conclusion
There is no single answer to “which is stronger.” What is reusable is the evaluation framework and the decision process: look at sub-domains rather than the total score first, then examine effectiveness, latency, and real cost together, and finally use tiered routing, caching, and canary releases to land conclusions safely in production. With this method, any model generation update can be quickly converted into an executable architecture adjustment, rather than staying a change in leaderboard rank.
