LLM Model Selection Methodology: Balancing Accuracy and Cost

    This article presents a reproducible evaluation methodology for deciding whether a new model version is worth replacing an existing production LLM. It breaks evaluation metrics into four dimensions—accuracy by domain, latency (first-token vs. end-to-end), token consumption, and cost per 1,000 effective calls—and explains how to build a fixed, versioned test set. Using public Chinese benchmark comparisons as a template, it illustrates typical patterns after a version upgrade: overall accuracy jumps, weak domains improve, reasoning and math gains rise alongside output tokens, latency spikes at launch, and cost increases slightly. It also covers layered comparison by cost tier, a standardized result structure, and engineering practices such as regression pipelines, tiered routing, caching, observability, and canary rollback.

    1. Background: Faster Releases, Higher Selection Costs

    Over the past year, general-purpose LLMs have been iterating much faster. A single model family often ships a flagship tier, a lightweight tier, and several preview versions at the same time. For example, a recently released lightweight preview from a cloud vendor is positioned as delivering usable performance at a fraction of the flagship’s cost, and it surpasses the previous generation on some public benchmarks.

    Claims like these are attractive to developers, but they create a practical problem in production: there is often a gap between the marketing narrative and real business performance, and running a full evaluation from scratch is expensive in time.

    So this article does not focus on any specific product. Instead, it frames the topic as a general engineering problem: when a new version appears in the same model family, how do you use a stable, reproducible evaluation process to decide whether it is worth replacing your current production model?

    2. Evaluation Design: Define Metrics First, Then Choose the Test Set

    Most teams fail at model evaluation not because they lack tools, but because their metric definitions are vague. Start by splitting metrics into four dimensions and specifying how each one is collected.

    1. Accuracy (quality): Measure it per domain rather than relying on a single overall score. An aggregate score is easily inflated by high-frequency, easy question types and hides weak spots.
    2. Response time (latency): Distinguish first-token latency from end-to-end completion time. For chat applications, first-token latency matters most to perceived responsiveness; for batch jobs, end-to-end time determines throughput.
    3. Token consumption: Track input and output tokens separately. Output tokens are usually the main cost driver and directly affect latency.
    4. Total cost: Look beyond unit price to cost per 1,000 effective calls, since it captures both unit price and token consumption.

    For the test set, aim for three properties: it reflects your real business distribution, it includes enough hard samples, and the questions and answers are versioned so results can be compared across runs. Following the practice of public Chinese evaluation sets, a size of roughly 15,000 questions is enough for statistical significance, with at least a few hundred questions per domain.

    3. Reading Results: Typical Patterns in a Version Upgrade

    Take the public comparison between a lightweight preview version and its predecessor on a Chinese benchmark (data from the historical results of a public Chinese LLM evaluation project). Several typical patterns emerge, and they are general enough to serve as a reading template:

    • Overall score jump and ranking reshuffle: Accuracy rises from roughly the 60% range to the 70% range, an improvement of more than 10 percentage points, moving the model from outside the top dozens into the top ten. This shows the capability ceiling of lightweight tiers is rapidly approaching that of the previous generation’s flagship.
    • Weak domains filled in: Education-related capability climbs from about 36% to about 63%, nearly doubling. Domains that were clearly weak and then heavily optimized are often the most reusable capability gains in a new version.
    • Stronger reasoning and math: Reasoning and math computation improve from about 67% to about 83%, with double-digit gains in vertical domains such as healthcare and finance. Reasoning enhancements usually increase output tokens, so they must be read together with cost.
    • Higher latency: Average response time grows from about 40 seconds to about 72 seconds. A traffic surge and heavy server load right after launch are common causes; retest after one to two weeks and avoid using peak data for capacity planning.
    • Slight cost increase: Cost per 1,000 calls rises from about CNY 43 to about CNY 53, with both output unit price and token consumption climbing (token growth of about 5.6%). This is a reminder that capability gains often come from longer reasoning chains, so cost evaluation must account for changes in token structure.

    4. How to Compare Across Models: Layer by Cost Tier

    The most common mistake in cross-model comparison is comparing across tiers. A more sound approach is to first bucket models by cost per 1,000 calls (for example, CNY 0–50, CNY 50–100, and above CNY 100), then compare accuracy within the same tier to form a cost-performance frontier. When a model has both the lowest cost and the highest accuracy in its tier, it becomes the default baseline for that tier, and other models must prove a significant advantage in a specific domain to justify a switch.

    A schematic structure for a standardized evaluation summary:

    1. # Standardized evaluation result structure (illustrative)
    2. result = {
    3. "model_alias": "lightweight-preview", # neutral naming
    4. "accuracy_total": 0.715,
    5. "accuracy_by_domain": {"education": 0.635, "reasoning_math": 0.834},
    6. "avg_latency_sec": 72,
    7. "avg_tokens": 2731,
    8. "cost_per_1k_calls_cny": 53.5,
    9. }
    10. # Cost-performance rule: within a tier, the model with the highest accuracy and lowest cost is the baseline

    5. Engineering Recommendations

    1. Build a regression evaluation pipeline: Fix the test set, scoring scripts, and cost accounting, then run a round automatically on every model version change and output a comparable report.
    2. Tiered routing: Send high-value requests to the flagship tier and long-tail requests to the lightweight tier, using rules or a small model as a front-end classifier. This can cut costs significantly with almost no quality loss.
    3. Caching and trimming: Apply semantic caching to repeated Q&A, trim input context, and cap redundant output length. These three usually reduce cost more than switching models.
    4. Observability first: Wire up logging, monitoring and alerting, and tracing, and track latency percentiles (P50/P95) and failure rate per model so averages do not hide the long tail.
    5. Canary and rollback: Roll out a new version to a small traffic share first, set dual thresholds for accuracy and latency, and roll back automatically on anomalies. If you use relevant Baidu AI Cloud capabilities, you can build the canary and observability setup on top of general categories such as its model services, container platform, and monitoring and alerting.

    6. Conclusion

    Whether a new version is worth replacing depends on three things: whether weak domains have been filled in, whether the cost increase from reasoning enhancements is acceptable, and whether early-launch latency data has stabilized. Making evaluation a reproducible pipeline, comparing within cost tiers, and then controlling total cost with tiered routing and caching is the sustainable way to select models.