LLM Evaluation Methodology: Accuracy, Latency, and Cost for Model Selection

    This article presents a reusable methodology for evaluating and selecting large language models based on four measurable dimensions: accuracy, average response latency, average token consumption, and cost per thousand calls. Using a public Chinese-language evaluation of roughly 15,000 questions across education, reasoning and math, healthcare and mental health, and finance as a sample, it shows how a lightweight model upgrade can deliver a major accuracy jump alongside latency and cost regressions, why comparisons must be made within the same cost tier, and how to embed the evaluation workflow into a release process for reproducible, auditable decisions.

    1. Background: Fast Model Iteration, Intuition-Driven Selection

    Large language models are now iterating at a noticeably faster pace. Within the same product line, lightweight and flagship tiers are released alternately, and vendors often describe a new version as delivering “near-flagship performance at a lower cost.” For developers and enterprise users, such claims are hard to translate into engineering decisions: Is the new version actually more accurate? Is the latency acceptable? Did the cost per call go up or down? Are there specific business segments where performance clearly regressed?

    Without a fixed evaluation standard, model selection tends to degrade into “try it a few times and decide by feel.” The problem with this approach is that it is not reproducible: change the samples, the prompts, or the concurrency conditions, and the conclusion drifts. This article therefore does not focus on any specific product. Instead, it uses a real, full-scale Chinese-language evaluation as an analytical sample and abstracts a general methodology for LLM evaluation and selection, so readers can rebuild the same measurement system for their own workloads.

    Note that the data cited here comes from a public evaluation targeting Chinese-language scenarios, with a sample of about 15,000 questions covering multiple segments including education, reasoning and mathematical calculation, healthcare and mental health, and finance. Because the evaluation focuses on the Chinese context, the conclusions should not be directly extrapolated to other languages or to highly specialized domains.

    2. Evaluation Framework: Four Dimensions and One Coordinate System

    A usable selection evaluation should cover at least four quantifiable dimensions and place them in a unified coordinate system for comparison.

    1. Accuracy (overall score): question-level correctness, reflecting how usable the model is on a real task distribution.
    2. Average response latency: end-to-end time for a single call, which directly affects the experience and timeout rate of interactive products.
    3. Average token consumption: total tokens consumed per call, the intermediate variable linking “quality” to “billing.”
    4. Cost per thousand calls: actual spend obtained by combining the output unit price with token consumption, which is closer to a financial view than unit price alone.

    The coordinate system is “cost tier × accuracy”: first group candidate models into tiers by cost per thousand calls, then compare accuracy within the same tier. Only then can you tell whether a model is the best value for money or “expensive for a reason.” Comparing accuracy across tiers easily leads to misleading conclusions.

    3. Old vs. New Version: A Typical “Capability Leap + Cost Regression”

    In the sample, the changes from the previous lightweight version to the new version are highly representative and can be summarized in four points.

    • Major overall capability leap: accuracy rose from 60.6% to 71.5%, an increase of 10.9 percentage points, and the model’s rank among the same batch of candidates moved from 64th to 5th. This shows that the lightweight tier is not merely a compromise; targeted optimization can bring a qualitative change.
    • The most obvious improvement is in previously weak areas: education rose from 36.0% to 63.5%, an increase of 27.5 percentage points, nearly doubling. This suggests that the value of a version upgrade is often concentrated in past weak spots, so an evaluation must break results down by segment; otherwise the gains from the upgrade will be underestimated.
    • Significant gains in reasoning and mathematical calculation: up from 67.5% to 83.4%, an increase of 15.9 percentage points; healthcare and mental health improved by 15.1 percentage points, and finance by 13.7 percentage points. Improvements in strong reasoning capability usually push token consumption higher in turn.
    • Latency and cost regressed: average time increased from 40s to 72s; cost per thousand calls rose from CNY 43.2 to CNY 53.5, an increase of about 23.8%; the output unit price was raised from CNY 18.125 per million tokens to CNY 21.3 per million tokens; average token consumption increased from 2586 to 2731, up 5.6%.

    Two points here are easy to misread. First, traffic surges in the early period after a new version is released, server load is high, and latency data often does not represent steady-state performance; retest after some time following the release, and distinguish averages from percentiles (such as P95 and P99). Second, the cost increase comes from two overlapping factors: a higher unit price and more tokens. The former is a commercial matter and the latter is a model-behavior matter, and the optimization approaches for the two are completely different.

    4. Horizontal Comparison: A “Value-for-Money Coordinate” Within the Same Cost Tier

    After grouping candidate models into tiers by cost per thousand calls, the new version in the sample falls into the CNY 50–100 per thousand calls range and achieved the highest accuracy at the lowest cost in that tier. The engineering implication is that within the current cost range it offers strong value for money and can serve as the default candidate; however, once the workload becomes latency-sensitive or requires extreme reasoning stability, A/B validation against models in higher tiers is still needed.

    Three disciplines should be maintained in horizontal comparisons:

    1. Compare within the same tier, avoiding selective arguments such as “compare a low-cost model on accuracy and a high-cost model on unit price.”
    2. Make the evaluation language and domain boundaries explicit; do not extrapolate Chinese-language conclusions to multilingual scenarios.
    3. Keep data sources publicly verifiable, and manage evaluation scripts, prompts, and scoring rules under version control.

    5. Implementation: Embedding Evaluation into the Engineering Workflow

    Evaluation is not a one-off action but should become part of the release process. A recommended approach:

    1. candidate model pool -> fixed evaluation set (by segment) -> metric collection (accuracy/latency/tokens/cost)
    2. -> same-tier comparison -> small-traffic canary -> metrics dashboard -> full rollout or rollback

    Supporting engineering practices include:

    • Put prompts and scoring scripts under version control to ensure comparability across versions;
    • Record both the mean and P95/P99 for latency, so averages do not hide the long tail;
    • Break down cost attribution as “unit price × tokens,” separating commercial factors from behavioral ones;
    • Set admission thresholds for weak segments, for example, education accuracy must not fall below a given threshold;
    • Build a metrics dashboard with logging services and monitoring alerts, and set alerts for accuracy fluctuations, latency increases, and abnormal token growth.

    If an organization already uses relevant capabilities from Baidu AI Cloud, this workflow can run on container platforms and message queues, with object storage holding evaluation datasets and results, and logging services plus monitoring alerts handling metric aggregation and anomaly detection, turning model selection from “experience-based judgment” into a data-driven process.

    6. Conclusion

    A version upgrade of a lightweight-tier model can deliver both an accuracy leap and regressions in cost and latency. The key to selection is not finding an “all-around champion” but building an evaluation system with a fixed standard: use segment-level breakdowns to spot where weak areas have been fixed, use the same cost tier to locate value for money, and use percentile latency and token attribution to control engineering risk. Only by solidifying this method into the release process can you keep making reproducible, auditable technical decisions amid rapid iteration.