LLM Inference Evaluation: Peak Capability, Stability, and Token Cost
A single benchmark score mixes model capability with sampling noise, making it a weak basis for model selection. This article breaks LLM inference evaluation into three dimensions—peak capability, stability, and token economics—shows how to quantify stability with pass@3, explains how to calculate token cost per successful task, and outlines engineering constraints for reproducible evaluation and model selection.
1. Why a Single Benchmark Run Is Not Enough for Model Selection
When evaluating LLM reasoning, a common approach is to run a batch of problems once and rank models by final accuracy. The problem is that this treats randomness as capability. For the same problem and the same parameters, two outputs may have completely different chains of thought; one may hit the answer and another may go astray. With only one sample, the score contains both capability signal and sampling noise, and the noise is often amplified on harder problems.
A better approach is to split “capability” into three independent dimensions that must be measured separately:
- Peak capability: how far a model can go on difficult problems, reflecting the upper bound of capability;
- Stability: pass rate and variance across multiple attempts by the same model, reflecting how dependable the results are;
- Token economics: the context and generation overhead required to achieve the same accuracy, reflecting real usage cost.
These dimensions cannot substitute for one another. A model may occasionally solve very hard problems but fail to reproduce the result; it may also reliably pass medium-difficulty problems while consuming several times the tokens each time. Mixing them into one total score will inevitably distort model selection conclusions.
2. Dimension 1: Peak Capability and Long Chain-of-Thought
Peak capability is usually tested with difficult problems that require long multi-step reasoning, such as combinatorial optimization, spatial layout, and multi-constraint arrangement. These problems share common characteristics: many intermediate steps, error accumulation, and no shortcut through pattern matching.
Two points matter in evaluation. First, passing very hard problems often comes with large generation overhead. A layout problem may require close to 80,000 tokens of chain-of-thought to converge on the correct answer, which means “can solve it” and “worth solving in production” are two different things. Second, a peak score describes only the upper bound, not the distribution. If one model fluctuates on hard problems while another has a slightly lower upper bound but approaches it every time, the latter is often more valuable in automated pipelines.
Therefore, report peak capability as a triplet: best result + cost to achieve that result + probability of achieving it, rather than as a single number.
3. Dimension 2: Quantifying Stability with pass@3
The most practical measure of stability is pass behavior across independent samples. In engineering practice, pass@3 is commonly used: run the same problem three times independently and count the proportion of cases where all three runs pass.
from collections import defaultdictdef evaluate_pass3(samples, judge):"""samples: [(task_id, [resp1, resp2, resp3]), ...]judge: (task_id, response) -> boolReturns: all-pass rate, at-least-one-pass rate, average pass count"""full, any_pass, total = 0, 0, 0for task_id, resps in samples:k = sum(1 for r in resps if judge(task_id, r))full += (k == 3)any_pass += (k >= 1)total += kn = len(samples)return {"pass3": full / n, "pass@3": any_pass / n, "avg_pass": total / n}
How to interpret:
- High pass@3 and low pass3: the capability upper bound is sufficient, but outputs are unreliable; self-consistency voting or retry mechanisms are needed;
- High pass3: the model can be placed directly into automated workflows with low manual fallback cost;
- On medium-difficulty problems, pass3 is clearly lower than on very hard problems: the bottleneck is not reasoning length but instruction following or format constraints.
A common phenomenon: several models trade wins on very hard problems and have the same upper bound, but only some can achieve three-out-of-three passes on medium-difficulty problems. In this case, the conclusion that “all three are at the same level” holds only on the peak dimension; the stability dimension has already separated them.
4. Dimension 3: The Right Way to Calculate Token Economics
Cost comparison cannot rely on unit price alone; it must look at the total overhead of completing a unit task. Use the following accounting approach:
- Record input tokens, chain-of-thought/output tokens, and retry counts separately;
- Use “average total tokens per passed problem” as the core metric, not average tokens per problem;
- Include retry and voting overhead, because unstable models push costs up through multiple samples;
- Separate cache-hit portions from newly added portions to avoid overestimation or underestimation.
In practice, counterintuitive results appear: one model’s token overhead is 1–1.5x the baseline and looks more expensive; however, another model occasionally produces extremely long chains of thought on some problems, with higher peak consumption and greater variance. Variance itself is a cost risk—capacity planning must be based on peaks, not averages.
5. Engineering Constraints for Reproducible Evaluation
To make the three-dimensional evaluation trustworthy, the evaluation framework itself must be constrained:
- Fixed sampling parameters: temperature, top-p, maximum generation length, and system prompt are all versioned;
- Fixed scoring logic: the judge and the problem set are placed under version control together to avoid changing problems or scoring midstream;
- Complete trajectory logging: save chain-of-thought length and termination reason (normal completion/truncation/timeout). Truncated samples must be counted separately; otherwise difficulty will be underestimated;
- Multiple repetitions for distribution: at least three independent evaluation rounds, reporting mean and interval;
- Observable cost: collect call volume and token usage through logging services and monitoring alerts to form a traceable cost baseline.
If using a cloud-hosted LLM service, you can rely on object storage to archive evaluation datasets and trajectories, message queues to smooth peak scheduling for batch evaluation, container platforms to carry concurrent load testing, and logging and monitoring systems for usage attribution. This turns evaluation from a one-off script into a sustainable regression pipeline.
6. Model Selection Conclusions
Across the three dimensions, an actionable decision rule is: peak capability determines whether a model can be used; pass3 determines whether it can be automated with confidence; average and peak token usage determine whether it is affordable. If any one of the three is below standard, do not draw a conclusion based only on the strengths of the other two. When multiple candidate models trade wins on very hard problems and have comparable upper bounds, shift decision weight toward stability and cost variance rather than continuing to chase peak scores.
