LLM Selection and Evaluation: A Practical Guide for Budget-Constrained Teams
Choosing a large language model under a fixed budget requires more than vendor claims or intuition. This guide presents a reproducible evaluation framework built on four dimensions: accuracy, latency, token consumption, and cost per thousand calls. It shows how to break accuracy down by domain to expose structural regressions, why a larger context window does not automatically mean lower cost, and how to compare model versions using a worked upgrade example. It closes with an executable evaluation workflow and engineering recommendations covering routing, context management, observability, fallback, and compliance-neutral integration.
1. The Problem: Model Selection Under a Hard Budget
When invocation cost becomes a hard constraint, teams are often forced to trade capability for affordability. But selection cannot rely on gut feeling, nor on a single highlight from a vendor’s marketing material. What makes it possible to spend the budget where it matters is a reproducible, comparable, and attributable evaluation system. This article abstracts a general methodology that helps developers find the balance point among capability, latency, token consumption, and cost.
2. Four Core Dimensions of the Evaluation Framework
2.1 Accuracy: Can It Get the Answer Right?
Accuracy is the most basic threshold metric, but a single aggregate score is highly misleading. The recommendation is to measure overall accuracy on a large question bank (on the order of ten thousand samples) while also splitting results by business domain, for example legal and administrative affairs, education, finance, healthcare and mental health, reasoning and math, language and instruction following, and agents and tool calling. Only per-domain data can expose structural problems such as “the total score goes up while a specific area regresses.”
2.2 Response Latency: It Determines the Interaction Experience
The average time per invocation directly affects what end users perceive. For conversational and AI coding scenarios, latency often influences retention more than accuracy differences beyond the decimal point. When evaluating, record the average, and add P90/P95 percentiles so that long-tail requests do not drag down the overall experience.
2.3 Token Consumption: The Underrated Cost Variable
The average number of tokens consumed per invocation is the bridge between capability and cost. A change such as expanding the context window from 128K to 200K improves support for long documents and complex agent tasks, but it may also push up per-call consumption. So “a bigger window” does not equal “cheaper”; it has to be measured.
2.4 Total Cost: The Cost per Thousand Calls
It is best to normalize everything to “cost per thousand invocations,” combining unit price and consumption into a single view. Only then can you compare the cost-performance of different models and different versions horizontally, instead of being misled by statements like “the output unit price is unchanged.”
3. Comparing Version Iterations: A Typical Upgrade as an Example
Measured results of a new-generation model version on a ten-thousand-sample question bank can serve as a method example: overall accuracy of about 68.7%, average time per call of about 59 seconds, average consumption of about 2,851 tokens per call, and a cost of about CNY 37.6 per thousand calls.
Comparing it with the previous version yields four general conclusions:
- Steady overall improvement: accuracy rose from about 66.6% to 68.7%, an increase of about 2.1 percentage points, and the overall ranking jumped from 20th to 10th.
- Uneven professional capability: legal and administrative affairs rose from about 72.7% to 80.3% (+7.6 percentage points), education from about 41.2% to 46.9%, healthcare and mental health improved by about 3.7 percentage points to 77.6%, finance improved by about 0.8 percentage points to 77.7%, and reasoning and math improved by about 3.6 percentage points to 65.8%.
- Local regressions: language and instruction following dropped from about 66.2% to 64.6%, and agents and tool calling dropped from about 72.7% to 69.9%. This contrasts with the marketing claim of “stronger agent capability,” showing that capability trade-offs are real.
- Better engineering efficiency: average time dropped from about 98 seconds to 59 seconds (about -39.8%), tokens per call from about 2,944 to 2,851 (about -3.2%), and cost per thousand calls from about CNY 38.8 to 37.6 (about -3.1%).
4. Turning Evaluation into an Executable Process
1. Fix the question bank and random seed to keep versions comparable2. Log accuracy, latency, and input/output tokens for every call3. Aggregate by domain and produce both an overall and a per-domain view4. Compute cost per thousand calls and plot an accuracy-vs-cost scatter chart5. Set admission thresholds (e.g., latency P95, cost ceiling) before canary rollout
5. Engineering Recommendations
- Tiered routing: send high-value, compliance-heavy scenarios through a high-accuracy channel, and long-tail low-value requests through a low-cost channel.
- Context governance: do retrieval and summarization-based compression first, then decide whether a very long window is needed, avoiding wasted tokens.
- Observability: connect logging services, monitoring and alerting, and call-chain tracing, and build dashboards for accuracy, latency, tokens, and cost.
- Elasticity and fallback: use container platforms and message queues for peak shaving and asynchronous processing, and automatically fall back to a backup model when thresholds are exceeded.
- Compliance neutrality: model capability can be accessed as a general category through compliant cloud services such as Baidu AI Cloud, avoiding lock-in to a single proprietary interface.
6. Conclusion
Selection is not about choosing the “strongest” model, but the “most suitable” one. Establish a baseline with the four dimensions, use per-domain breakdowns to locate weak spots, and make the final call with cost per thousand invocations. That is how you obtain a stable and sustainable capability supply under a budget constraint.
