Log-Perplexity, Interpolation Mapping, and Evaluating LLM Capability
Log-perplexity is the average negative log-likelihood a language model assigns over an evaluation corpus, and it measures how confidently the model predicts the true next token. This article explains what log-perplexity means, why lower values are better, and how to convert it into perplexity and bits-per-byte. It then shows why vendors can place different models on a shared curve, breaks the linear interpolation method down into its four core assumptions, and walks through four statistical pitfalls you must watch for: sample size, error amplification, score overlap, and single-metric bias. It closes with a practical checklist and an end-to-end workflow for building a trustworthy capability-evolution evaluation, so you can reason about large-model progress and make better technology-selection decisions.
1. Introduction: Reading a Capability Curve from a Log-Perplexity Sequence
Log-perplexity is the average negative log-probability a language model assigns over an evaluation corpus, and it measures how confidently the model predicts the true next token. When judging how a large model’s capabilities evolve, you should look at it inside a version sequence under one consistent evaluation setup, alongside interpolation mapping and confidence intervals. Pay particular attention to whether the evaluation set, tokenizer, sample size, shared base model, and time window are consistent.
A widely discussed sequence of internal log-perplexity values from one mainstream large-model family, ordered from oldest to newest, can be organized as follows:
| Model version code | log-perplexity |
|---|---|
| 3.5 | 0.986 |
| 4 | 0.913 |
| 5.2 | 0.888 |
| 5.4 | 0.871 |
| 5.5 | 0.848 |
| 5.6 | 0.828 |
| 6 | 0.783 |
| 6.2 | 0.761 |
Because the original public information may not fully disclose the evaluation set, tokenizer, sampling time, or release methodology, this article treats these numbers as a worked example for discussing method, not as formal proof of any vendor’s internal capabilities. Any “internal version” whose source cannot be verified or whose evaluation methodology cannot be explained should not be included in a formal comparison.
This sequence has two notable patterns:
- Recent drops are faster. From 5.2 to 6.2, the log loss falls from 0.888 to 0.761, a drop of about 0.127.
- Earlier drops are slower. From 4 to 5.2, the log loss falls from 0.913 to 0.888, a drop of only about 0.025.
This leads to a common comparison technique: using the public log loss of adjacent versions as anchors, take another model’s score on a reasoning or long-tail-knowledge benchmark and map it onto this curve via linear interpolation, in order to judge “roughly which generation tier it is equivalent to.” The method is intuitive but has strict prerequisites: different vendors cannot share the same pre-training loss curve and can only borrow public version nodes as a common reference frame. The interpolation result reflects only the chosen metric, cannot be equated with true pre-training loss, and should not be treated directly as a confidence interval.
2. What Log-Perplexity Is, Why Lower Is Better, and How to Convert It
2.1 Definition: How “Surprising” Is the Next Token
A language model’s task is to predict the next token given the preceding context. Log-perplexity can be written as:
L = -(1/N) * Σ log p(x_t | x_<t)
where N is the total number of tokens and p(x_t | x_<t) is the probability the model assigns to the true next token. If natural logarithms are used, L has units of “nats/token.” Its meaning is straightforward: on average, how “surprised” is the model when predicting the true next token. The more accurate the prediction, the smaller L is.
Going further, perplexity PPL = exp(L) can be understood intuitively as: on average, among how many candidate tokens is the model hesitating. A PPL of 10 means the model is, on average, choosing as if among 10 equally likely options.
| log-perplexity | Corresponding perplexity |
|---|---|
| 0.986 | ≈ 2.68 |
| 0.913 | ≈ 2.49 |
| 0.888 | ≈ 2.43 |
| 0.871 | ≈ 2.39 |
| 0.848 | ≈ 2.34 |
| 0.828 | ≈ 2.29 |
| 0.783 | ≈ 2.19 |
| 0.761 | ≈ 2.14 |
Going from 0.986 down to 0.761, the log loss falls by about 23%, while perplexity drops from about 2.68 to about 2.14, a relative reduction close to 20%. This shows that equal intervals in log space appear as varying steps in perplexity space. When reporting results, it is best to state the unit explicitly to avoid confusion.
2.2 The Compression View: A Model Is a Universal Compressor
From an information-theory perspective, a trained language model is equivalent to a lossless compressor. When arithmetic coding text with the model’s probabilities, the average code length can approach the model’s loss. The direct meaning of a lower loss is therefore a higher compression ratio: the more thoroughly a model understands the regularities of language structure, the fewer bits it needs to describe the same text.
When comparing across vocabularies, bits-per-byte is often used for normalization. Two related concepts require care:
- bytes/token: how many bytes each token represents on average.
- tokens/byte: how many tokens each byte corresponds to on average; it is the reciprocal of bytes/token.
A verifiable formulation is:
bits/byte = (L_nats × log2(e)) / (bytes/token)
where L_nats is the per-token loss in natural-log units and log2(e) ≈ 1.4427. If the tokenizer or evaluation tool reports tokens/byte instead of bytes/token, then:
bytes/token = 1 / (tokens/byte)
So:
bits/byte = L_nats × log2(e) × tokens/byte
For example, if a model has L = 0.850 nats/token and tokens/byte = 0.238, then:
bits/byte = 0.850 × 1.4427 × 0.238 ≈ 0.292
This is clearer than vaguely saying “divide by the number of tokens per byte,” and it avoids writing the formula in the wrong direction. Under different tokenizers, per-token loss cannot be compared directly; bits/byte is more suitable as a reference for cross-vocabulary normalization.
2.3 Average Loss Is Dominated by the High-Frequency Portion
Log loss is averaged over all tokens, but token frequencies in language vary greatly. High-frequency words, common collocations, and typical sentence patterns significantly lower the average loss. Capabilities such as reasoning, long-tail factual knowledge, code generation, and domain-specific terminology tend to concentrate in low-frequency, long-tail, or structurally specific fragments.
This yields two implications:
- Improvement in average loss does not mean long-tail capabilities improve in step. The latter may occupy only a small fraction of all tokens and can be diluted within the overall average.
- Long-tail loss is more sensitive to data mixture. Using the same set of anchors, different capability metrics may interpolate to different positions. This is not a contradiction, but a reflection of a different capability combination.
2.4 Patterns Within the Sequence: Diminishing Marginal Returns on the Same Ruler
Returning to this sequence, several patterns are worth noting:
- The smaller the version number, the more variable the per-upgrade gain. The drop from 3.5 to 4 is 0.073, while from 5.2 to 5.4 it is 0.017; from 5.4 to 5.5 it is 0.023, and from 5.5 to 5.6 it is 0.020. Locally, the per-step gain is not fully consistent across different stages and version intervals. Scaling curves are usually only approximately linear locally.
- Medium intervals can be approximately interpolated linearly; large spans cannot. The span from 4 to 5.2 is wide, while the nodes from 5.2 to 6.2 are denser. The wider the span, the less reliable the linearity assumption.
- The shape of the numbers hints at a consistent evaluation methodology. Only if multiple versions use the same evaluation set, the same tokenizer, and the same scoring rules is the sequence more comparable.
- A plateau does not imply stagnation. The slower decline from 4 to 5.2 could stem from data reorganization, architecture changes, evaluation-set changes, or training-objective changes during a generation transition. You cannot conclude “no progress” from loss alone.
- The recent slope is steeper, but extrapolate with caution. The total drop from 5.2 to 6.2 is about five times that of the previous segment. If release intervals are roughly comparable, converting to a time dimension might suggest a clearly higher recent annual rate of improvement; but because version naming spans generations, release intervals are unequal, and evaluation methodology may change, you cannot state a fixed conclusion such as “improvement accelerates by X times per year.”
3. Why Vendors Can Place Different Models on the Same Curve
3.1 “Equal Loss, Equal Value” from Scaling Laws
Early scaling-law research argued that, under the same training and evaluation methodology, models of different sizes and architectures can be compared on one loss curve; models with similar capabilities may also have similar training loss. Later work further fit language-model loss as a power-law function of parameter count and data volume, and extended it to multimodal models.
This provides the theoretical starting point for interpolation: if the evaluation methodology is consistent, training loss can serve as a common scale for capability. But it holds only under three conditions:
- the same evaluation set;
- the same tokenization scheme;
- the same objective function, ideally undisturbed by alignment training, reasoning-chain length, decoding configuration, and similar factors.
For this reason, some discussions emphasize using “no-thinking” performance or a fixed decoding configuration as a reference, to reduce the influence of post-training strategies on scores. Even when the scale is comparable, a cross-vendor caveat remains: loss can answer “how much loss is needed for an equivalent capability,” but not “how much loss a given capability is worth.”
3.2 Why Public Nodes Are Needed as Anchors
Internal losses at each vendor are usually not public, so observers can only use the model versions a vendor releases as nodes, mapping external models’ benchmark scores back onto them. This is a reasonable approximation, but its reliability depends entirely on anchor quality, metric selection, sample size, and interpolation method.
4. Deconstructing Interpolation: Four Assumptions Behind a Single Mapping
4.1 A Full Worked Example
Suppose two adjacent anchors on a capability curve have the following loss and score values:
- Anchor A: loss L_i = 0.888, metric score s_i = 72.0
- Anchor B: loss L_i+1 = 0.871, metric score s_i+1 = 80.0
An external model scores s = 76.0 on the same metric. First, compute its relative position within the score interval:
t = (s - s_i) / (s_i+1 - s_i) = (76.0 - 72.0) / (80.0 - 72.0) = 0.5
Then use linear interpolation to obtain the mapped loss:
L(s) = L_i + t * (L_i+1 - L_i)
Substituting the values:
L(s) = 0.888 + 0.5 * (0.871 - 0.888) = 0.888 - 0.0085 = 0.8795
So, under this assumption, the external model’s mapped loss is 0.8795 nats/token.
If the external model’s score changes to s = 78.0, then:
t = (78.0 - 72.0) / 8.0 = 0.75L(s) = 0.888 + 0.75 * (0.871 - 0.888) = 0.888 - 0.01275 = 0.87525
It must be emphasized: this result is only an interpolated mapping value based on two anchors and a single metric. It is not the external model’s true training loss, nor a generational confidence interval.
This approach contains four assumptions. If any one of them fails, the conclusion will be magnified or distorted:
| Assumption | Content | Main risk |
|---|---|---|
| Reliable anchors | Adjacent versions genuinely represent capability gains | A plateau gets mistaken for a generational marker; the actual segment is nonlinear |
| Metric as proxy | A single metric can reflect overall capability | When the metric is limited or saturated, the mapping shifts systematically |
| Comparable scores | The same metric score is comparable across evaluation systems | Differences in question composition, scoring rules, and decoding config make scores non-equivalent |
| Linear interpolation | Loss and score are approximately linear within the interval | A wide interval or an inflection point accumulates error |
4.2 Divergence Between Metrics Is Itself Information
If two models are close to one version on a reasoning metric but land near a different version on a long-tail-knowledge metric, the right response is not to pick the “better-looking” conclusion, but to recognize that this model’s capability combination does not fully match the models on the anchor curve.
If two versions share the same base model, their base-level pre-training loss may be identical. In that case, differences in post-training, prompting, or measurement noise may cause very small score differences; an extremely small interpolated gap should not be interpreted as a base-model generational difference.
5. Four Statistical Pitfalls to Watch For
5.1 Pitfall 1: Sample Size Determines Whether a Gap Is Even Visible
Benchmark scores are essentially proportion estimates. The standard error of a single model’s accuracy can be approximated as:
SE = sqrt(p * (1 - p) / n)
But the difference between two models’ accuracies cannot be judged simply with a single-model standard error. You need to distinguish the sample relationship.
If the two models use different questions or independent samples:
Δ = p1 - p2SE_ind = sqrt(p1*(1-p1)/n1 + p2*(1-p2)/n2)
The 95% confidence interval is approximately:
Δ ± 1.96 * SE_ind
If the two models use the same set of questions, you can use the mean and standard deviation of paired differences:
For each question i, define y_i = (whether model 1 is correct) − (whether model 2 is correct).
Δ = mean(y_i)SE_pair = std(y_i) / sqrt(n)
The 95% confidence interval is approximately:
Δ ± 1.96 * SE_pair
You can also use the McNemar test: let b be the number of questions where model 1 is correct and model 2 is wrong, and c the number where model 2 is correct and model 1 is wrong. The direction of the difference is determined by b − c, and the test statistic is approximately:
z = (b - c) / sqrt(b + c)
For two models with accuracies of 75% and 73% on independent samples, if each uses the same sample size n, the 95% confidence interval for the 2-percentage-point difference is approximately:
| Sample size | 95% CI for a 2% difference |
|---|---|
| 500 | ≈ −3.4% to 7.4% |
| 1000 | ≈ −1.8% to 5.8% |
| 3000 | ≈ −0.2% to 4.2% |
This shows that on a small benchmark of a few hundred questions, a 2- to 3-percentage-point gap is usually hard to judge reliably. If the two models use the same questions, a paired test is typically more sensitive; if the questions differ, you should use an independent-sample confidence interval rather than treating a single-model standard error as the standard error of the difference.
5.2 Pitfall 2: Sampling Error Gets Amplified by Interpolation
Interpolation essentially translates a benchmark score into a loss. If the loss span of the interval is ΔL = L_i+1 − L_i and the score span is Δs = s_i+1 − s_i, with a score fluctuation of δs, then the loss fluctuation is approximately:
δL ≈ (ΔL / Δs) * δs
For example:
- A given interval has a loss span of 0.05 nats and a score span of 20 percentage points;
- each 1-percentage-point score fluctuation brings about 0.0025 nats of loss fluctuation;
- if the benchmark score has a 2-percentage-point sampling error, that translates to about 0.005 nats of loss;
- if the two models’ mapped positions differ by only 0.001 nats, that gap is completely drowned out by sampling error.
This is why interpolation results should not be treated as precise confidence intervals.
5.3 Pitfall 3: Overlapping Scores Destroy Uniqueness of the Interpolation
When the score ranges of two candidate anchor intervals overlap, an external model may be mapped to different version intervals. In this case, any conclusion of “falling between two given versions” carries subjectivity and must state that it “depends on the anchor choice.”
A more robust approach is to give a range: for example, the external model may fall between versions A and B, or may be close to version C. If multiple metrics all point to an overlapping interval, then only a weak conclusion can be drawn.
5.4 Pitfall 4: A Single Metric Does Not Equal Overall Capability
Reasoning metrics and long-tail-knowledge metrics cover different capability dimensions. A model may be close to a given version on the reasoning dimension but lag further behind on the long-tail-knowledge dimension. When reporting, provide multiple metrics at once and explain their coverage, rather than picking a single “best-looking” column of numbers.
6. Back to Capability Evolution: A Checklist You Can Tick Through
When judging whether a log-perplexity sequence or an interpolation mapping is trustworthy, check the following items one by one:
- Are the anchor sources explicit: public versions, evaluation set, tokenizer, and sampling time?
- Is the evaluation methodology consistent: are questions, scoring rules, decoding configuration, and prompt templates fixed?
- Is the sample size sufficient: are confidence intervals provided, rather than only single-point scores?
- Are independent and paired samples distinguished: use a paired test for shared questions and an independent-sample interval for different questions?
- Is interval overlap checked: if anchor scores overlap, avoid giving a unique generational position?
- Is cross-metric consistency checked: do reasoning, knowledge, code, and multilingual metrics corroborate one another?
- Are base-model and post-training differences distinguished: tiny gaps between versions sharing a base model should not be explained as generational differences?
- Is the time dimension considered: are version intervals, release dates, and evaluation-set versions comparable, so as to avoid naive extrapolation?
7. Putting It into Practice: A Trustworthy Capability-Evolution Evaluation Workflow
For enterprise teams that need to evaluate and select models, the following workflow can help build your own “capability curve”:
- Build a business evaluation set. Sample from real business scenarios, covering reasoning, long-tail knowledge, code, multilingual, tool-calling, and other dimensions; avoid letting a few hundred questions decide the selection conclusion.
- Fix the evaluation protocol. This includes question composition, scoring rules, decoding configuration, temperature parameters, prompt templates, and retry-on-failure strategy. Only once the protocol is fixed does cross-version comparison become meaningful.
- Use paired statistical methods. If candidate models can share questions, prefer a paired test; if not, use an independent-sample confidence interval.
- Report multi-metric results. Cover at least the reasoning and long-tail-knowledge dimensions to avoid single-metric bias.
- Distinguish base-model from post-training differences. If two versions share a base model, state the source of their differences explicitly.
- Re-test periodically. Capability evolution is dynamic; evaluation results should be refreshed as model versions update.
- Integrate evaluation into model operations. Using general-purpose evaluation platforms, monitoring and alerting, and logging services, you can bring accuracy, loss, latency, cost, and the distribution of failure cases into everyday model management, continuously tracking capability changes in candidate models.
8. Conclusion
Log-perplexity provides a rare “common scale” that lets different models’ capabilities be compared on one curve under certain conditions; but this curve holds only under specific conditions. Interpolation is a valuable approximation tool, yet its reliability depends on anchor quality, metric selection, sample size, and statistical method.
The boundaries to remember in particular are these: values across vendors, across tokenizers, and across evaluation sets cannot be compared directly; interpolation results should not be treated as precise loss values or confidence intervals; and a single-point score should not replace an overall judgment about capability evolution. Only by combining multiple metrics, confidence intervals, paired tests, and a fixed evaluation protocol can you truly understand the capability evolution of large models and provide a reliable basis for technology selection.
