LLM Model Selection Methodology: Balancing Accuracy and Cost
Choosing the right large language model has become harder as release cycles accelerate. Using a newly launched lightweight model as a case study, this article breaks down a practical evaluation framework across accuracy, latency, token consumption, and cost per 1,000 calls. It explains why headline benchmarks can hide domain-specific weaknesses, how to attribute latency and cost changes correctly, and how to run a controlled, staged selection process before rolling out to production.
1. The Problem: Faster Releases, Harder Choices
Over the past year, large language model release cycles have clearly accelerated. A cloud vendor recently released a preview of a lightweight model, describing it as delivering “near-usable performance at less than a quarter of the cost of the flagship version,” and claiming it surpasses the previous generation of the same product line on several public benchmarks. This kind of messaging is common in the industry, but it creates a direct problem for developers: there is often a gap between the marketing claims and real business performance that you have to close yourself.
The original evaluation data is representative. The new version achieved 71.5% accuracy on roughly 15,000 questions, compared with 60.6% for the previous-generation lightweight version, and jumped from 64th place to 5th. That leap puts it in the top tier of recent model releases and shows that the vendor has indeed invested heavily in optimizing the lightweight line. But the same dataset contains two signals that are easy to overlook: average latency per call rose from 40 seconds to 72 seconds, and cost per 1,000 calls increased from CNY 43.2 to CNY 53.5 (about 23.8%).
In other words, “cheaper” is a conclusion relative to the flagship model, not relative to the previous lightweight model. The right approach to model selection is to weigh capability, latency, and cost in a single table, rather than accepting a single-dimension marketing claim.
2. Evaluation Metric Framework: Four Dimensions, None Optional
A usable model evaluation system should cover at least the following four categories of metrics.
- Accuracy (capability): the pass rate on a fixed question set, which sets the lower bound for business viability.
- Response latency: average time per call, plus P95/P99 tails, which determine user experience and timeout strategy.
- Token consumption: average tokens consumed per call, a product of both cost and context design.
- Total cost: cost per 1,000 calls, determined jointly by output price and token consumption.
It is worth stressing that token consumption is often treated as a “model property,” when in practice it depends heavily on prompt design, context length, and output length constraints. In the original text, tokens rose from 2,586 to 2,731 (+5.6%). That increase could come from a more verbose model, or from stronger reasoning-chain output in the new version. Distinguishing the two requires controlled experiments with fixed prompts.
A sample evaluation record can be structured like this:
{"model_alias": "lightweight-preview","sample_size": 15000,"accuracy": 0.715,"avg_latency_s": 72,"p95_latency_s": 180,"avg_tokens": 2731,"cost_per_1k_calls_cny": 53.5,"breakdown": {"education": 0.635,"reasoning_math": 0.834,"finance": 0.71}}
3. Breaking Down Domain Capabilities: Aggregate Scores Hide Weak Spots
The overall score is only the entry point. What really determines whether a model can go live is its per-domain performance. The original data shows the biggest gain was in education, rising from 36.0% to 63.5%, an increase of 27.5 percentage points and nearly a doubling. This was precisely a clear weakness of the previous generation. Reasoning and math rose from 67.5% to 83.4% (+15.9 points), healthcare and mental health improved by 15.1 percentage points, and finance by 13.7 percentage points.
The value of this breakdown is straightforward: if your business is in education, closing a 27.5-point gap means moving from “unusable” to “usable.” But if your business is long-document extraction, a large gain in education delivers almost no benefit. When selecting a model, first define two or three core scenarios, look only at the per-domain scores for those scenarios, and then use the overall score as a reference.
4. The Real Attribution of Latency and Cost
The 72-second average latency needs careful interpretation. The original explanation is that the new version had been live for only two days and a surge in traffic drove up server load. That is a reasonable hypothesis, but capacity planning cannot rely on guesswork. The recommended approach is:
- Run load tests across different time windows, covering peak and off-peak periods, and take multi-day averages.
- Record P95/P99 alongside the average so the tail is not hidden.
- Set up a fallback path for timeouts, for example reverting to the previous-generation lightweight model after a failure.
The cost side also needs to be separated. The output price rose from CNY 18.125 per million tokens to CNY 21.3 per million tokens, which is a unit-price increase. Token consumption rose 5.6%, which is a usage increase. Together they produce the 23.8% increase in cost per 1,000 calls. The optimization path is therefore clear: compressing output length, trimming context, and caching results for high-frequency requests can all directly offset the cost from higher usage.
5. A Practical Selection Process
- Step 1: Define core scenarios and quality thresholds, and fix the minimum acceptable accuracy for the business.
- Step 2: Run controlled evaluations with a fixed question set and fixed prompts to ensure comparability.
- Step 3: Record the latency distribution rather than a single average, and assess whether a fallback strategy is needed.
- Step 4: Model monthly cost based on unit price and token usage, and validate it against the budget.
- Step 5: Roll out gradually, and use real traffic to recheck the evaluation conclusions.
On the engineering side, you can close the loop with general-purpose cloud capabilities: use object storage to archive evaluation datasets and results, use a message queue to smooth out load-test traffic, use a container platform to run evaluation jobs, and use logging and monitoring with alerting to track latency and failure rates. Baidu AI Cloud offers a complete set of such general-purpose components that can be combined as needed.
6. Conclusion
The capability leap of the new lightweight model is real, with clear gains in education, reasoning, and finance. But “lower cost” holds only when compared with the flagship model; relative to the previous generation, cost still rose. The practical advice for developers is to use per-scenario scores as the primary basis, use the latency distribution and monthly cost model as constraints, roll out gradually before scaling up, and avoid being misled by early-release load fluctuations and single-dimension marketing claims.
