Reading Log Perplexity Data: The Pace of LLM Capability Evolution
Log perplexity is one of the most direct metrics for tracking how large language models improve over time. This article explains what log perplexity measures, how to convert it into perplexity, how to read a real sequence of version-by-version data, and why the metric has important limitations. It also provides Python code and practical steps for teams that want to build their own comparable evaluation pipeline.
1. Why Log Perplexity Matters
The training objective of a large language model is to predict the next token. The most direct measure of prediction quality during training is cross-entropy loss, and log perplexity is simply its average over a fixed evaluation set. The lower the value, the more confident the model is about the true next token in real text.
The value of this metric lies in comparability. Benchmark scores shift as questions are updated and scoring rules change, but a loss computed on the same held-out data can be compared across model generations, as long as the tokenizer and data distribution stay constant. It is therefore commonly used to observe long-term capability trends rather than performance on any specific task.
2. Definition and Conversion
Given a text split into N tokens, where the model assigns conditional probability p_i to each true token:
- Log perplexity: L = -(1/N) × Σ ln(p_i)
- Perplexity: PPL = exp(L)
Two points require attention. First, L is usually computed with the natural logarithm. If a base-2 logarithm is used instead, then PPL = 2^L, and the same number leads to a completely different conclusion. Always confirm the log base before interpreting a value. Second, L is a per-token average, so it depends heavily on the tokenizer. The more finely a text is tokenized, the lower the average loss tends to be. Values from models with different tokenization schemes are not directly comparable.
The following code shows how to derive both values from per-token probabilities.
import mathdef log_perplexity(token_probs):"""token_probs: conditional probability p_i of each true token, in (0, 1]"""if not token_probs:raise ValueError("empty input")return -sum(math.log(p) for p in token_probs) / len(token_probs)def perplexity(log_ppl):return math.exp(log_ppl)probs = [0.5, 0.25, 0.8, 0.1]L = log_perplexity(probs)print(round(L, 3), round(perplexity(L), 3)) # outputs 1.151 3.162
3. Reading the Numbers: Converting Raw Data into Comparable Form
The table below lists the raw data in chronological order, converted to perplexity (rounded to two decimals). Version labels are descriptive only and do not correspond to any public naming.
| Version | Log perplexity L | Perplexity (approx.) | Change in L vs. previous |
|---|---|---|---|
| Version 1 | 0.986 | 2.68 | / |
| Version 2 | 0.913 | 2.49 | -0.073 |
| Version 3 | 0.888 | 2.43 | -0.025 |
| Version 4 | 0.871 | 2.39 | -0.017 |
| Version 5 | 0.848 | 2.33 | -0.023 |
| Version 6 | 0.828 | 2.29 | -0.020 |
| Version 7 | 0.783 | 2.19 | -0.045 |
| Version 8 | 0.761 | 2.14 | -0.022 |
| Unreleased internal version | 0.732 | 2.08 | -0.029 |
Several features of this data are worth noting.
First, from Version 3 to Version 8, L dropped by 0.127 in total, and perplexity fell to about 88% of its prior value — a reduction of roughly 12%. According to the source, this span covered less than a year.
Second, from Version 2 to Version 3, L dropped by 0.025, a perplexity reduction of about 2.5%. The source indicates this span covered several years. On an annualized basis, the first period improved much faster, but both periods have only approximate start and end points, so precise comparison would require the original timeline.
Third, the step-by-step changes are uneven. The largest single step occurred between Version 1 and Version 2 (down 0.073); the step from Version 6 to Version 7 (down 0.045) was also notable. Individual step fluctuations usually relate to changes in training data mixtures, training scale, and post-training methods. A fixed pattern cannot be inferred from one or two data points.
4. Interpreting Capability Evolution
4.1 The meaning of the log scale
Changes in L correspond to multiplicative changes in perplexity. When L decreases by Δ, perplexity is multiplied by e^(-Δ). A drop of 0.1 corresponds to a perplexity reduction of about 9.5%; a drop of 0.2 corresponds to about 18.1%. This conversion shows that seemingly small changes in L actually represent steady relative improvements.
4.2 The rate of improvement is not constant
As the table shows, improvements between adjacent versions vary in size. Capability gains do not follow a smooth straight line. For R&D teams, the more useful questions are: under a similar training budget, how much gain does each iteration deliver, and are those gains slowing down? A handful of data points cannot establish a long-term scaling law; more versions and more evaluation conditions are needed.
4.3 Prediction ability is not the same as task ability
Log perplexity measures how accurately a model predicts the next token. It is related to instruction following, reasoning quality, and tool use, but it is not equivalent to them. Post-training can shift the output distribution so that log perplexity changes little — or even rises — while practical usability improves significantly. Relying on this metric alone can underestimate or overestimate progress in specific capabilities.
4.4 The unreleased version’s data
The internal figure in the last row is lower than all listed versions, suggesting development may be ahead of public releases. However, this number only reflects prediction loss. It says nothing about when the version might ship, whether it passes safety evaluations, or how it performs in real-world scenarios.
5. Limitations of the Data
This dataset has three clear limitations that readers should keep in mind when citing it.
First, the source is single and hard to verify. External readers cannot see the composition of the evaluation set, sample counts, tokenizer version, computation details, or confidence intervals. If the data was selectively disclosed to show only favorable versions, the trend would appear smoother than it really is.
Second, the evaluation set may be contaminated. If evaluation text has entered the training data, the computed loss will be artificially low, and this bias is hard to detect from the numbers themselves. A reliable evaluation set must be strictly isolated during training.
Third, results across different evaluation sets are not comparable. Even if two datasets are both labeled “log perplexity,” differences in text domain, length distribution, or tokenization make the values incomparable.
6. How Teams Can Build Their Own Equivalent Metric
Teams that need to track model prediction ability can follow these steps to build an internal metric.
- Fix a held-out evaluation set and ensure its text never enters any training or fine-tuning data.
- Standardize the tokenizer and text normalization rules, and record version numbers in every report.
- Record the natural log probability of each token and aggregate per-sample log perplexity.
- When comparing two models, use paired per-sample differences and compute the standard error.
The following code implements the core logic of steps 3 and 4.
import mathimport statisticsdef sample_nll(per_sample_logprobs):"""Per-sample log perplexity. Input: a list of natural log-probabilitylists, one per sample. Each sample must have more than 0 tokens."""return [-sum(lp) / len(lp) for lp in per_sample_logprobs]def paired_gap(nll_a, nll_b):"""Paired differences between two models on the same samples; returnsthe mean difference and standard error. A positive value meansmodel A has higher loss."""if len(nll_a) != len(nll_b):raise ValueError("sample counts must match")diffs = [a - b for a, b in zip(nll_a, nll_b)]mean = statistics.mean(diffs)se = statistics.stdev(diffs) / math.sqrt(len(diffs))return mean, se
After obtaining the mean difference, compare its absolute value against the standard error. If the absolute mean difference is clearly larger than twice the standard error, the difference is reasonably stable on this sample set. This is only a rough check and cannot replace a full statistical test. Also note that averaging by sample and averaging by token can produce different results; teams should agree on the aggregation method in advance and keep it consistent across all reports.
7. Conclusions and Recommendations
Log perplexity is a useful window into a model’s prediction ability, but it answers only one question: how certain is the model about the next token of a fixed text? When reading such data, always check three things: whether the evaluation set is the same, whether tokenization is consistent, and whether the change exceeds statistical error.
Publicly released figures can serve as a reference for judging industry trends, but they should not directly drive procurement or R&D decisions. For long-term tracking of model progress, the more reliable approach is to build your own held-out evaluation set and use both task-level metrics and prediction-loss metrics together, so the two can corroborate each other.
