How to Evaluate LLMs: Intelligence Gains vs. Cost per Task
When a new general-purpose LLM launches its stable release, two metrics dominate the discussion: cost per task and overall intelligence score. This article turns that debate into a practical framework, showing why sitting on the Pareto frontier does not automatically justify an upgrade, how to quantify marginal intelligence gains, why cost per task must include retries and validation, and how tiered routing keeps total spend under control. You will get a step-by-step selection process, common pitfalls, and the engineering setup needed to make data-driven decisions between a flagship model and a lightweight variant.
1. The Scenario: Evaluating a Model the Moment It Ships
Whenever a general-purpose LLM reaches a stable release, the community tends to focus on two numbers first: cost per task and overall intelligence score. A common observation looks like this: the new version has pushed cost per task into a very low range (on the order of 0.06), and it still sits on the Pareto frontier in the cost-effectiveness plane. At the same time, the flagship version has several times more parameters than the lightweight one, yet the intelligence gain is only a single-digit percentage.
These two statements look contradictory, but they point to the same engineering fact: being on the frontier in the cost-effectiveness plane only means no alternative is simultaneously cheaper and stronger; it does not mean the upgrade is worth it. This article abstracts that discussion into a general methodology so developers can make a quantitative decision between a stable release and a lightweight variant.
2. Define the Evaluation Coordinate System First
2.1 Three core quantities
- Cost per task: the total cost of completing one end-to-end task, including usage on both the input and output sides, retries, and any validation overhead.
- Intelligence: composite performance on task success rate or quality score under a fixed evaluation set and fixed prompt templates.
- Pareto frontier: a candidate lies on the frontier if no other candidate is no worse on both metrics and better on at least one.
2.2 Why “on the frontier” does not mean “pick it”
The frontier is a set, not a point. The lightweight and flagship versions may well both sit on it: one wins on cost, the other on quality. The real selection question is not who is on the frontier, but whether, under your business constraints, the extra marginal cost buys enough marginal intelligence.
3. Quantifying Marginal Intelligence: What a Single-Digit Gain Means
Let the lightweight version have intelligence $I_1$ and cost $C_1$, and the flagship version $I_2$ and $C_2$. Define:
Marginal intelligence gain ΔI = (I2 - I1) / I1Marginal cost multiple k = C2 / C1Value-for-money change r = (1 + ΔI) / k
The rule is straightforward: when $r > 1$, the upgrade holds up on pure value for money; when $r \le 1$, the flagship version is just “a more expensive effect” and has to be justified by business value rather than cost-efficiency.
For example, several times more parameters usually comes with $k$ significantly greater than 1, and if $\Delta I$ is only a single-digit percentage, $r$ is likely below 1. That explains why “many times the parameters for a small intelligence gain” makes the lightweight version look like the better deal.
4. Count the Full Cost per Task, or the Conclusion Flips
Many arguments come from inconsistent cost definitions. It helps to break cost into four observable segments:
- Primary call cost: the weighted sum of input and output usage;
- Retry cost: extra consumption from failed attempts, strongly correlated with success rate;
- Validation cost: rule checks, secondary judgment, and recovery after structured parsing failures;
- Engineering amortization: the share of fixed investment in orchestration, caching, rate limiting, and monitoring.
An easily overlooked chain effect: if the flagship version raises task success rate from 90% to 93%, retries and manual fallbacks drop, and the end-to-end cost per task may actually be lower. So a flagship version beating the lightweight one is not impossible; it depends on whether failure cost is counted.
Illustrative calculation logic:
def cost_per_task(c_in, c_out, in_tok, out_tok, p_success, retry_cap=3):expected_attempts = 1.0 / max(p_success, 1e-6)expected_attempts = min(expected_attempts, retry_cap)return (c_in * in_tok + c_out * out_tok) * expected_attempts
5. A Selection Process You Can Actually Run
- Build a business evaluation set: cover the real distribution, including long-tail and adversarial samples, instead of relying only on public leaderboards.
- Fix prompts and decoding parameters: keep temperature, max output length, and structured output constraints identical so results are comparable.
- Measure both metrics: record success rate and end-to-end cost per task, plot the scatter, and mark the frontier.
- Run sensitivity analysis: perturb $k$ and $\Delta I$ by ±20% each and check whether the conclusion holds.
- Route by tier: send simple requests to the lightweight version and escalate complex ones to the flagship version, using rules or a lightweight classifier as the front gate.
request -> complexity check -> simple: lightweight version-> complex: flagship version + result validation -> fall back and retry on failure
6. Common Pitfalls
- Reading leaderboards instead of your distribution: a single-digit leaderboard gain may be double digits in your scenario, or the other way around.
- Ignoring output-side cost: output unit price carries more weight in long-text generation.
- Treating the frontier as a recommendation: the frontier only rules out dominated options; it expresses no preference.
- Switching everything at once: without gradual rollout and rollback, risk and cost both amplify.
7. Engineering Prerequisites
On a general cloud environment, you can use object storage to accumulate evaluation sets and call logs, a message queue to smooth retry spikes, a container platform to carry gradual rollouts and elastic scaling, and log services plus monitoring alerts to close the loop on success rate, latency, and cost. General cloud product categories from providers such as Baidu AI Cloud can serve as the foundation for these capabilities, but the actual choice should still rest on your own load-test results.
8. Conclusion
“Cost is already very low and still on the frontier” and “the upgrade brings only a single-digit intelligence gain” can both be true at the same time. The rational move is to turn the decision from a “version fight” into three things: marginal value for money, end-to-end cost, and tiered routing. First compute $r$ with a consistent definition, then use business value to decide whether the flagship version is worth paying for, and finally use routing to pull total cost back into an acceptable range. Done this way, both the stable release and the lightweight version end up where they belong in your system.
