LLM Model Selection and Evaluation: A Practical Guide for Cost-Constrained Teams

    Choosing the right large language model under a fixed budget is not about picking the cheapest option, but about finding which model delivers the most correct output per unit of cost. This guide walks through a reproducible evaluation framework built on four metrics—accuracy, average latency, average token consumption, and cost per thousand calls—and shows how to collect them consistently. Using a real model version comparison, it explains how to read overall gains alongside domain-level regressions, why cost reductions often come from efficiency rather than price cuts, and how to turn evaluation results into architecture decisions such as scenario-based routing, semantic caching, canary regression gates, and a decoupled model gateway.

    1. The Problem: Model Selection Under a Hard Budget Constraint

    When call cost becomes a hard constraint, teams are often forced to compromise between capability and budget. But compromise does not mean choosing blindly. The real question is not “which model is cheaper,” but “under a fixed budget, which model produces more correct output per unit of cost.” Answering that requires a reproducible, comparable, and attributable evaluation system rather than scattered subjective impressions.

    A typical general-capability evaluation contains roughly 15,000 questions, covering sub-areas such as legal and administrative affairs, education, finance, healthcare and mental health, reasoning and math, language and instruction following, and agents and tool calling. The evaluation outputs four core metrics: accuracy, average latency, average token consumption, and cost per thousand calls. Together these form a three-dimensional “capability–efficiency–cost” coordinate system that supports horizontal comparison.

    2. The Metric System: How the Four Dimensions Are Defined and Collected

    Accuracy measures the proportion of correct answers. It is the most intuitive capability signal, but it must be broken down by domain; otherwise the overall score gets diluted by high-frequency, easy-to-score items.

    Average latency is the end-to-end delay of a single call. It directly affects interaction experience and concurrent throughput. A drop in latency is often more noticeable to users than a gain in accuracy.

    Average token consumption includes both input and output, reflecting a model’s “expression economy.” Given the same correct answer, fewer tokens mean less context pressure and lower pipeline cost.

    Cost per thousand calls is determined jointly by token consumption and output unit price, and is the number that finally lands on the bill.

    When collecting data, keep the question set fixed, keep parameters fixed (such as temperature and max output length), keep concurrency fixed, and repeat multiple rounds and take averages so that single-run fluctuations do not pollute the conclusions.

    3. Comparing Old and New Versions: How to Read a Set of Evaluation Data

    Take a new-generation general model version as an example. Its accuracy rose from 66.6% to 68.7%, an improvement of 2.1 percentage points, and its overall ranking jumped from 20th to 10th. Average latency dropped from 98 seconds to 59 seconds, an improvement of about 39.8%. Average token consumption fell from 2944 to 2851, a decrease of about 3.2%. Cost per thousand calls declined from 38.8 CNY to 37.6 CNY, a drop of about 3.1%.

    Three signals in this data deserve developers’ attention.

    First, a higher overall score does not mean across-the-board progress. Among the sub-domains, legal and administrative affairs rose from 72.7% to 80.3% (+7.6 percentage points), education from 41.2% to 46.9%, healthcare and mental health improved by 3.7 percentage points to 77.6%, reasoning and math improved by 3.6 percentage points to 65.8%, and finance improved by 0.8 percentage points to 77.7%.

    Second, there are capability regressions. Language and instruction following fell from 66.2% to 64.6%, and agents and tool calling fell from 72.7% to 69.9%. This contrasts with the marketing narrative of “stronger agent capabilities,” showing that version iteration often comes with capability reallocation. When selecting a model, you must check whether your core scenarios fall in the regression zone.

    Third, the cost reduction comes mainly from efficiency, not from a price cut. With the output unit price unchanged, fewer tokens and shorter latency together deliver about 3% cost optimization. This means the lever for cost governance is prompt and context management, not simply waiting for prices to drop.

    4. A Reproducible Evaluation Scaffold

    It is advisable to turn evaluation into a code asset rather than a one-off script:

    1. # Minimal reproducible evaluation loop (illustrative)
    2. cases = load_cases("bench_15k.jsonl") # fixed question set
    3. params = {"temperature": 0.0, "max_tokens": 2048}
    4. def run(model_client, cases, params, repeat=3):
    5. records = []
    6. for c in cases:
    7. for _ in range(repeat):
    8. r = model_client.call(c.prompt, **params)
    9. records.append({
    10. "domain": c.domain,
    11. "correct": judge(c.answer, r.text),
    12. "latency": r.latency_ms,
    13. "tokens": r.usage.total_tokens,
    14. })
    15. return summarize(records) # output accuracy/latency/tokens/cost by domain

    From an engineering standpoint, write evaluation results into logging and monitoring/alerting systems, and archive question sets and raw responses in object storage so that conclusions remain traceable and regression-testable.

    5. Implementation Advice: Turning Evaluation Conclusions into Architecture Decisions

    First, route by scenario. Keep domains with accuracy regressions (such as instruction following and tool calling) on the more stable existing version or with rule-based fallbacks, and migrate domains with clear gains (legal, education, healthcare, math reasoning) to the new version.

    Second, cut cost with semantic caching and context compression. Pushing average tokens down further from 2851 is a more controllable optimization path than waiting for price cuts.

    Third, establish canary and regression mechanisms. Before a new version goes live, run the fixed question set and set admission thresholds such as accuracy not below baseline and latency not above 1.2x baseline.

    Fourth, keep the abstraction layer decoupled. Add a unified call gateway between business logic and models so that models are replaceable and metrics are comparable, avoiding lock-in to a single vendor. If you need elastic capacity for evaluation and batch inference, you can make it asynchronous based on container platforms and message queues, with monitoring and alerting to cap costs.

    6. Conclusion

    The value of evaluation is not in producing a ranking, but in translating “is it expensive” into “how much accuracy can a unit of cost buy.” Once a team masters the four-metric collection, per-domain attribution, and canary regression methods, budget pressure stops being a selection obstacle and becomes an optimizable engineering parameter.