Using Task Cost to Draw LLM Efficiency Frontiers
A practical framework for model selection: replace token list prices and leaderboard scores with qualified task cost, production pass rates, and a log-scale Pareto frontier so you can see which high-cost, low-gain setups lose economic sense under real workloads.
The so-called “kill line” in model selection should not mean that one model ends every other approach. It is an observable efficiency frontier: at similar task success rates, if one class of solution has systematically lower cost per qualified task, higher-cost, low-gain options above and to the right lose economic rationale for most routine load. The frontier moves with task mix, latency SLOs, and fault-tolerance needs, but it is a more stable decision language than leaderboard rank.
Unit price is not task cost
Public pricing is usually per input and output token, sometimes with cache hits or batch inference. That answers “how much per token,” not “how much to get this job right.” Smaller models often have lower unit prices yet may emit longer intermediate reasoning, extra useless tool calls, or retries and human rework after a failure. Larger models cost more per token; if they finish in a shorter path on the first try, cost per task need not be higher.
A more informative metric is cost per qualified task: under a shared success criterion, count all tokens and related calls used to complete the task, multiply by the matching unit prices, and add monetizable retries, queueing, and human review. That pulls “cheap” from the price list back to delivery. At minimum split four items: prompt tokens, generated tokens, tool or retrieval round-trips, and post-failure retries. Comparing list prices alone systematically favors schemes that look small but ramble or fail often, and penalizes high unit price with short paths.
A sketch:
qualified task cost ≈ (input tokens + output tokens + tool-side tokens) × corresponding unit prices × attempts + human review cost
Attempts come from the retry policy. If the business bills on final acceptance, sunk cost of failing samples must be included—not only successes.
Capability scores should serve the task, not replace it
Composite “intelligence” scores usually mix public math, code, reading, and multi-step reasoning sets. They answer “who is more stable on these exams,” not production success. Three reasons: (1) exam mix ≠ business mix—tickets, schema rewrites, policy excerpts, and long-doc extraction share only some reasoning habits with contest math; (2) averages hide weak spots the business actually hits; (3) eval protocol (length, tools, temperature, stop) can reshuffle ranks.
Use composites as a first filter to drop candidates below a quality bar; finish with a self-built task basket. Cover high-frequency, long-tail, adversarial, and regression samples, with written pass criteria (all unit tests green, complete parseable fields, citations traceable, zero policy violations). “Feels better” without a pass line cannot convert to cost.
Why a log view of efficiency
Capability and cost often span orders of magnitude: cost from a fraction of one call to many times that with long context, multi-tool loops, and review; head-of-pack capability gaps may be only a few success-rate points. Linear axes crush cheap models near the origin and isolate expensive ones, hiding how much extra success extra spend buys.
Log cost on one axis and success rate or composite score on the other makes the Pareto frontier visible: no other point is both cheaper and more accurate. Points on the frontier are rational at different budgets; interior points that are both dearer and worse are what the efficiency boundary dominates. The “kill” is those dominated combinations, not every high-capability model. Zero-tolerance of error can still justify the right end of the frontier; rollback-friendly, sampleable work often prefers the left.
Scale, knowledge capacity, and post-training
Other things equal, parameter count roughly tracks stored patterns and world-knowledge breadth, and also training and inference cost. Larger models have a better chance at rare facts and complex instructions, but it is not monotonic: data quality, mix, alignment, and inference-time compute all rewrite outcomes.
Under a fixed parameter budget, optimizations cluster in two families. One compresses inference: better attention and cache, lower activation precision, speculative decoding, batch and prefix reuse—same capability with less effective compute. The other compresses post-training quality: SFT, preference alignment, and tool-use training that kill error modes so the model takes fewer detours, cutting tokens and retries. Both can proceed together; both are bounded by data, compute, and an eval loop. There is no slogan path to extreme knowledge width and extreme unit cost at once.
“Bigger params always know more and always cost more” is a coarse line. If knowledge is thin, a cheap model pays it back with wrong answers or repeated retrieval on factual and long-tail work; if knowledge is enough but decoding is verbose, a large model wastes output on simple jobs. The frontier compares delivery cost at a given quality, not marketing param counts.
A reproducible evaluation flow
Do this in order; do not rank first and rationalize later.
- Define tasks and pass lines. For each task: inputs, allowed tools, latency cap, acceptance rules. Rules should be automatic or dual human sample to cut subjectivity.
- Fix prompts and decoding. System prompt, few-shots, temperature, max length, stop tokens unified. Limited prompt adaptation per model is allowed if adaptation cost is logged so hidden prompt engineering is not off-book.
- Record full consumption. Failed attempts, cache misses, tool returns fed back as tokens, timeout retries. Logging only the successful call undercounts fragile models.
- Report quality and cost separately. At least: first-pass rate, final pass rate, P50/P95 latency, median task cost, cost on passing samples. Scatter pass rate vs. cost and see who sits on the frontier.
- Stress and drift. Longer context, unseen tickets, format noise. If it is only cheap on the tuning set, do not extrapolate.
- Total cost of ownership. Gateway, logs and audit storage, human sampling, business loss from errors, prompt and eval maintenance when switching models. Lower call fees with higher sampling rates may not improve the books.
Common misreads
Treat the frontier as one model for all tasks. Short classification, structured extraction, multi-step coding, and high-stakes decisions do not share a kill line. Route simple requests to a cheap path and low-confidence or high-risk ones to a stronger path, with confidence or rules for fallback. Routing’s own decision cost counts.
Treat position on a log plot as causation. The chart shows correlation, not “cut price and scores rise” or “add params and accuracy follows.” Change context length, tool rights, or items and points move. Any cited multiple or dollar figure needs task definition, time window, and billing convention; span comparisons without those have no decision value.
Ignore compliance and explainability. Cite-the-source, audit-the-chain-of-thought, or cap output length raises everyone’s task cost, unevenly. Compare only under the same constraints.
Engineering notes for production
Structure prompts and outputs so the model spends fewer tokens “explaining itself.” Prefer schema constraints and automatic checks over another model round. Cache or batch repeated prefixes. Cap tool steps and circuit-break so low-success models cannot loop the bill. Version the eval basket and put it in the same regression as production samples; when price or model version changes, recompute the frontier.
If you already have a unified model gateway, logs, and monitoring, persist task IDs, attempt index, token classes, and final pass so you can roll up cost by business line rather than by model ads. Object storage fits de-identified task samples; alerts fit jumps in per-task cost percentiles and retry rates. These are generic engineering capabilities, not brand stories.
Conclusion
The efficiency frontier holds if you replace raw unit price with qualified task cost, non-transferable composites with business pass rates, and look for undominated options on a log scale. Parameter scale shapes knowledge width and cost structure; post-training and inference optimization decide how short a path the same params can take. The boundary moves, so keep retesting on the task basket. For most acceptable, retryable workloads, high-cost interior points will be replaced by better cost–quality mixes; for zero-tolerance load, the right end of the frontier remains rational. Professional selection is computing that line clearly, not treating a moment’s rank as the end of the story.
