How to Evaluate a Cost-Effective Two-Tier LLM Setup
A practical engineering framework for choosing a mid-tier production model plus a cheap high-throughput tier: judge quality floors and cost per successful task, not leaderboard rank or list price.
When model capability is clearly stratified and prices form a steep gradient, teams often pick “one mid-tier workhorse plus one cheap high-throughput tier” using a single benchmark ranking or a single unit price. A better approach is engineering selection: under a given quality constraint, the more valuable option is the one with the lowest cost per successful task. A two-tier setup is not a substitute for the strongest models; it covers different workloads with capability tiers and cost tiers. This article outlines a reusable evaluation and rollout framework.
1. The real question: coverage that is good enough, not replacing the strongest model
The mid-tier workhorse usually handles most production traffic: quality close to a previous flagship at a much lower cost. It fits high-frequency calls, low-budget automation, content generation, information extraction, and simple tool use. The cheap high-throughput tier pushes unit price even lower and covers classification, routing, filtering, summarization, formatting, and simple Q&A—tasks with modest intelligence needs but huge volume.
Do not ask whether the pair can beat the top-capability tier. Ask three questions:
- Can it meet an acceptable quality floor on the target tasks?
- Is cost per successful task clearly better than the current stack?
- Are stability, latency, factuality, and tool-calling good enough for production?
If yes, two tiers are a valid cost optimization. If not, a low sticker price only shifts cost into retries, human review, and business risk.
2. Evaluation: from unit price to cost per successful task
List price is only the visible cost. Real cost also includes retries, sampling review, format repair, fallback to a stronger tier, rate-limit waits, and operations. Estimate:
Cost per successful task = (input token cost + output token cost + retry cost + human-review cost + fallback cost) / number of successful tasks
Pseudocode:
function estimate_unit_cost(sample, tier):input_tokens = count_input(sample)output_tokens = estimate_output(sample)token_cost = input_tokens * price_in[tier] + output_tokens * price_out[tier]retry_cost = token_cost * retry_rate[tier]review_cost = human_review_rate[tier] * review_unit_costfallback_cost = fallback_rate[tier] * high_tier_costtotal_cost = token_cost + retry_cost + review_cost + fallback_costreturn total_cost / success_rate[tier]
A cheap tier with high failure, frequent fallback, or heavy human correction can cost more per success. A mid-tier with stable quality and low fallback can be cheaper even if it is not the lowest list price. Caching, batching, and async calls usually cut visible spend, but they belong in end-to-end accounting, not sticker-price comparisons.
3. Capability: score by task, not by overall rank
Evaluate two-tier setups at the task layer. Cover at least:
| Task type | Mid-tier workhorse | Cheap high-throughput | High-capability |
|---|---|---|---|
| Classification, routing, filtering | Usable, may be overkill | Prefer first | Unnecessary |
| Extraction, formatting, summarization | Production-ready with sampling | Simple samples | Hard samples |
| Writing, rewriting, support assist | Pilot | Simple cases only | High-bar content |
| Retrieval QA, knowledge work | Strict eval; may lag top models | Not as sole owner | Prefer |
| Long-horizon large-scale coding | Weaker than top; local tasks | Comments, commit messages | Prefer |
| GUI operations, tool calling | Pilot with failure recovery | Simple fixed flows | Complex flows |
The mid-tier’s typical role is “good enough quality, controlled cost.” Public scores and hands-on use may look strong on writing or GUI tasks, but knowledge work may not beat a previous high-capability generation and can regress. Long, large coding jobs may also lag the top tier. The cheap tier has a lower intelligence ceiling but can be enough for high-frequency, fast-response work if the business accepts sampling and fallback.
Evaluate factuality separately. Build a gold set from real user corrections and track error rate, format compliance, refusal rate, and tool-call success. Some mid-tier models can approach high-capability reliability in a real correction loop, but still need sampling review and fallback.
4. Measurement: offline gold set + online canary + human feel
Do not rely on leaderboards alone. Validate in three steps:
- Offline gold set: stratified samples (easy, medium, hard). Define pass rate, human acceptance, retry rate, and average latency.
- Online canary: shadow or small live traffic versus the current stack. Record cost per successful task, fallback rate, and user feedback.
- Human feel: writing readability, GUI success, long-horizon coding context and recovery. For long coding, test multi-turn tools, repo-scale context, and error repair—not only single-file generation.
5. Selection: four workload patterns
First, low-budget automation: the mid-tier is often among the cheapest overall choices; the cheap tier handles pre-filter, routing, and simple generation—“cheap preprocess + mid-tier fallback.”
Second, high-frequency fast-response work: the cheap tier can own classification, intent, simple Q&A, and formatting, with a confidence threshold and fallback to the mid-tier.
Third, knowledge work: do not blindly replace the top tier with the mid-tier. Prefer the high-capability model, or “mid-tier draft + high-tier review + human check.”
Fourth, long-horizon large-scale coding: prefer the high-capability tier; mid-tier for unit tests, docs, simple refactors, and local completion; cheap tier for comments, commit messages, and templates.
6. Engineering: routing, cache, fallback, observability
Build a routing layer that picks a tier by task type, confidence, cost, and latency. Cache stable inputs. Batch and run async for non-real-time work. Auto-fallback on low confidence. Log cost, latency, success, and human-correction rates per call. For deployment, generic container platforms, function compute, object storage, logging, and monitoring/alerting—such as categories offered by Baidu AI Cloud—can host evaluation, canary, and fallback pipelines as ordinary infrastructure; they do not change the model-selection conclusion.
7. Common mistakes and takeaway
Typical mistakes: treating list price as total cost; treating benchmarks as user feel; treating long context as effective use; putting a cheap tier on high-risk decisions; ignoring regression risk on knowledge work.
The value of a two-tier setup is “the cheapest option that is good enough,” not “the strongest.” Layer tasks first, then run small-traffic tests on cost per successful task, quality floor, stability, and real hands-on quality, then expand with a canary so price advantage becomes durable engineering savings.
