How to Read Log-Perplexity Curves Correctly

    Log-perplexity is a common metric for language models, but comparing values across different setups is error-prone. This article explains what log-perplexity measures, why numbers are not comparable across tokenizers and evaluation conditions, how to interpret a sample set of generational values, how the metric relates to downstream capabilities, and how to place it within a three-layer evaluation framework for model selection.

    1. What Log-Perplexity Is

    Perplexity measures how difficult it is for a language model to predict a piece of text. It is computed by averaging the negative log probability of each token and then exponentiating the result. Log-perplexity is that average itself—in other words, the cross-entropy. The lower the value, the more probability mass the model assigns to what actually appears in the text.

    The value is usually expressed in nats (natural logarithm, base e) or bits (base 2). The conversion between them is fixed: bits equal nats divided by ln 2, roughly 1.4427 times larger. You must confirm the unit before reading a number, otherwise you cannot compare it with other data.

    If the unit is nats, perplexity equals e raised to the log-perplexity. For example, a decrease of 0.073 in log-perplexity means perplexity becomes about 0.93 times its original value—a drop of roughly 7%. This conversion turns abstract differences into intuitive ratios.

    2. Why Values Cannot Be Compared Directly Across Setups

    Log-perplexity is averaged per token. The same text is split into a different number of tokens by different tokenizers, so the denominator changes and the values are not comparable. A tokenizer that splits more finely may yield a lower per-token value, but that does not mean the model is better. When comparing across tokenizers, use metrics normalized per byte or per character instead.

    Beyond that, the following conditions all affect results:

    Factor Why it affects results What to record when comparing
    Evaluation text Difficulty varies across domains, languages, and styles Dataset name, version, domain composition
    Data contamination If test text appeared in training data, the metric will be biased low Deduplication method, whether contamination checks were done
    Context length Longer context provides more information and usually lowers the metric Window length used during evaluation
    Sample size Small samples produce large variance Number of samples, total token count of the text
    Aggregation method Mean and median can differ noticeably Aggregation method, whether confidence intervals are reported
    Model snapshot Different checkpoints of the same model generation produce different values Exact version number and evaluation date

    Two values can only be compared directly when all of the above are identical.

    3. Interpreting a Sample Set of Values

    The original text provides a set of generational values but does not state their source, release dates, or measurement conditions. The numbers below are treated purely as an example to demonstrate the interpretation method, not as verified facts.

    Sample values (assuming nats):

    • Generation 3.5: 0.986
    • Generation 4: 0.913
    • Generation 5.2: 0.888
    • Generation 5.4: 0.871
    • Generation 5.5: 0.848
    • Generation 5.6: 0.828
    • Generation 6: 0.783
    • Generation 6.2: 0.761
    • Internal model from the same period: 0.732

    Differences between adjacent or more distant versions can be computed directly. From Generation 3.5 to Generation 4, the drop of 0.073 corresponds to perplexity becoming about 0.93 times the original. From Generation 4 to Generation 5.2, a drop of 0.025 corresponds to about 0.975 times. From Generation 5.2 to Generation 6.2, a drop of 0.127 corresponds to about 0.88 times.

    The arithmetic itself is sound, but interpretation is constrained by the following limitations.

    First, the size of a difference says nothing about the rate of change. The original text claims a drop of 0.127 from Generation 5.2 to Generation 6.2 in “less than a year,” but generation numbers have no defined mapping to dates. Without a timeline, you cannot tell whether this represents acceleration or simply a different version span.

    Second, “diminishing marginal returns” requires corresponding compute or data figures. Smaller absolute numbers do not automatically mean returns per unit of investment are shrinking. To draw that conclusion, you would need training compute and data scale for each generation.

    Third, “a shift in training paradigm” is only speculation. Data mixture, training objectives, and reinforcement learning are all plausible causes listed in the original text, but the curve alone cannot distinguish among them. Verification requires comparing the training configurations of each generation.

    Fourth, a lower value for an internal model does not directly prove the research frontier is ahead. The internal model may have been evaluated on a different subset, or may not yet have undergone alignment training—either way, the two are not directly comparable.

    4. How Log-Perplexity Relates to Downstream Capabilities

    Log-perplexity reflects how well a model predicts the next token. Downstream capabilities such as code generation, mathematical reasoning, tool use, and multi-step agent tasks also depend on post-training alignment, instruction-following training, tool-use training, and sampling and search strategies at inference time.

    A positive correlation between the two is possible. Models with stronger base modeling often have a better starting point on many tasks—this is a common empirical judgment. But the relationship depends on the specific model family and task, and should not be treated as a universal law. The following situations can decouple the two:

    • Large differences in post-training intensity. Two models built on the same base can perform very differently on instruction tasks.
    • A task depends on knowledge or output formats that have little to do with the probability distribution of general text.
    • The metric improves on general corpora but stays flat or even worsens in the target domain.

    Therefore, neither an impressive demo nor a low log-perplexity can by itself prove a model suits a specific business need. To assess the relationship, record both log-perplexity and target-task scores across multiple versions of the same model family, and check whether the correlation is stable. With few samples, such a correlation can easily be coincidental.

    5. Placing the Metric in an Evaluation Framework

    Evaluation can be split into three layers, each answering a different question.

    1. Bottom layer: probabilistic metrics (perplexity, log-perplexity). Used to judge whether base modeling is stable; well suited for version regression monitoring.
    2. Middle layer: standard benchmarks (reasoning, code, math, etc.). Used for horizontal comparison; you need to check whether benchmark items are covered by training data.
    3. Top layer: end-to-end success rate on real business tasks. This is the final decision basis and should use your own datasets, updated regularly.

    The three layers cannot substitute for one another. A lower bottom-layer metric only indicates better base modeling—it does not guarantee synchronous improvement in the middle and top layers.

    6. Model Selection and Evaluation