LLM Selection in Practice: From Capability Evaluation to Cost of Success
This article explains how to choose large language models for production by defining task success, building business evaluation sets, measuring end-to-end cost of success, testing reasoning budgets, and using layered routing with ongoing monitoring.
Start with fit, not a leaderboard
Large models change quickly; enterprise requirements usually do not. The real problem is delivering stable business results under quality, cost, latency, and safety constraints.
Benchmark gaps between models can be small while resource use differs a lot. More inference spend does not always raise final success rates. Specific release dates, capability claims, and test numbers in source material often cannot be verified, so treat them as hypotheses to validate on your own workloads.
Selection should start with three questions: What counts as success? How much time and money can the system spend to get it? Is there a reliable fallback after failure?
For code, success may mean a change that passes full tests and meets security rules. For document Q&A, it may mean an accurate answer with traceable evidence. For document review, it may mean extracting key fields, flagging uncertainty, and handing off to humans. Different goals need different capabilities and acceptance tests.
Profile the task before comparing models
Programming: evaluate the full delivery chain
Code completion, bug fixes, and cross-file refactors are different tasks. Short-function generation tests local logic; real project changes require dependencies, interface constraints, existing tests, and the runtime.
In multi-stage work, a model may produce correct code first and later break existing behavior. Evaluation should cover understand requirements, change implementation, run checks, and fix from feedback.
Check at least: functional requirements; unexpected behavior change; edge cases and error paths; unnecessary dependencies or large diffs; maintainability, reviewability, and rollback. Do not treat plausible-looking code or the model’s self-assessment as success.
Knowledge work: capacity, retrieval, and reasoning are separate
A larger context window can accept more material. It does not guarantee finding key evidence, resolving conflicts, or long-range consistency.
Evaluate whether materials are parsed, evidence is found, and conclusions are supported. If the first two fail, swapping models often only improves wording, not facts.
For changing enterprise knowledge you typically still need versioning, retrieval, access control, and citation checks. Context size is one parameter, not a substitute for those mechanisms.
Multimodal: input support is not production readiness
Accepting images, audio, or video only means the input type is allowed. Results still depend on resolution, noise, layout, jargon, and time span.
Scanned documents need table alignment and OCR error handling; audio needs speaker separation and locating key phrases; video needs event order and cross-clip links. Keep both standard and hard samples so clean, uniform inputs do not hide post-launch drop-off.
Build a business evaluation set that is reproducible
Sample from real work
Public benchmarks map capability bounds; they do not replace acceptance. Draw representative, de-identified samples from tickets, code changes, Q&A, and review tasks.
Cover common, high-value, complex, and high-failure-risk work. Match mix to real load, and keep a separate high-risk set so averages do not hide critical defects.
Keep prompt-tuning samples apart from final acceptance samples so the team does not overfit a fixed exam.
Define strict success
Strict success means all mandatory criteria, not most steps. A code fix that runs but breaks an interface is a failure. A correct Q&A answer with missing citations should not pass.
Keep partial metrics to locate failures (for example, requirements understood but execution failed). Use strict success for delivery capability and item scores for diagnosis. State the denominator: checkpoint pass rate is not full-task success rate.
Control environment and randomness
When comparing configs, freeze prompts, inputs, tool permissions, runtime, output budget, and timeouts. If retries are allowed, give each option the same retry budget.
For stochastic generation, run multiple times and record variance. With small samples, do not declare a winner from a few lucky tasks.
Keep config version, run time, task IDs, outcomes, and failure types so others can audit results.
Compare cost of success, not unit price
A cheap call is not a cheap completed task. Frequent failures add retries, tool runs, and human repair. A more expensive call that finishes once can cost less to deliver.
Use two metrics:
Model cost per success = total model-call spend during evaluation ÷ number of successfully delivered tasks
End-to-end cost per success = full-pipeline cost during evaluation ÷ number of successfully delivered tasks
Full-pipeline cost can include model calls, retrieval, execution, retries, human review, and failure repair. All failed attempts belong in the numerator. If successes are zero, mark the option as not deliverable rather than inventing a cost.
Split by difficulty so easy tasks do not hide hard-task failure. For planning you may weight by real traffic mix, but publish the weights.
Also track end-to-end latency, tail latency, and concurrent stability. Fast averages do not mean users never hit slow requests; a few test calls are not high load.
More reasoning budget is not always better
Extra reasoning budget can mean more analysis and checking; it does not guarantee better outcomes. Simple tasks may pick up extra assumptions; code tasks may over-refactor; multi-step tool use can inject new errors. On small samples, a drop in success may be noise.
Run controlled experiments instead of defaulting to the highest tier: group by difficulty; freeze other conditions; compare success, cost, and latency; check whether extra spend yields stable gains; diagnose capability gaps, missing input, or process design.
If facts are missing, more reasoning rarely fills the gap. Prefer more evidence, better tool feedback, or user clarification. Choose the lowest spend that meets the quality bar.
Layered routing
Not every request needs the same configuration. Route by risk, complexity, and input.
Layer 1 — deterministic tasks: format checks, field completeness, and exact computation should use rules or programs, not a generative model.
Layer 2 — low-risk, structured work: classification, simple extraction, and standardized rewrite can use cheaper configs plus schema checks and sampled review.
Layer 3 — complex, multi-step work: cross-document analysis, multi-file edits, or tool loops need more context, verification, and budget, plus max steps and stop conditions.
Layer 4 — high risk: production changes, sensitive data, or critical judgments need independent verification and human approval. Fluent model output is evidence or advice, not automatic execution rights.
Escalate on observable signals (test failure, missing evidence, constraint violations, timeout), not on self-reported confidence.
Monitor after launch
Offline pass is not enough. Use limited traffic and gradual rollout. New formats, lengths, permissions, and knowledge updates can change results.
Record success rate, failure types, cost per success, latency distribution, and human-intervention rate. Keep roll-backable config versions. Re-run key regressions after prompt, tool-permission, or model changes.
Apply least privilege, separate untrusted input from system rules, treat instructions in external material with caution, and bound write, delete, and production actions. Logs and evaluation data need de-identification and access control.
Decide: constraints first, then cost
A reliable process: define tasks and acceptance, build a representative set, control variables and repeat tests, compute full cost of success, add layered routing, then validate with gradual rollout.
Drop options that miss quality, safety, or latency bars, then compare cost among the rest. The goal is not a forever-best model, but an engineering system that can change with tasks, data, and runtime so every unit of inference spend is justified under controlled risk.
