How to Read LLM Loss Curves: Cross-Generation Comparisons and Interpolation Pitfalls

    This article explains how to interpret pretraining loss curves for large language models, convert between log-perplexity, perplexity, and BPB, use anchor interpolation with its assumptions, account for metric choice and uncertainty, bridge evaluation sets, and document reproducible comparisons.

    During pretraining, a model’s average negative log-likelihood on held-out data is the most direct proxy for capability. A lower value means the model predicts unseen text more accurately. Two common expressions are used in practice:

    • Log-perplexity: average cross-entropy per token, usually with the natural logarithm as the base.
    • Perplexity: the result of exponentiating log-perplexity. It can be understood as the average number of equally likely candidates the model faces at each step.

    Loss trends can reflect two things. First, under the same training data and evaluation set, they show the cumulative effect of model scale, data quality, and training method. Second, they show whether overall capability is continuing to advance across models released at different times. The problem is that this metric is sensitive to the evaluation set, tokenizer, and text distribution. Comparing two numbers without these premises often leads to incorrect conclusions.

    2. Converting Log-Perplexity, Perplexity, and BPB

    For the same model under different tokenization schemes, per-token loss is not comparable. One tokenization method may split a piece of text into more tokens, which naturally lowers per-token loss. For cross-tokenizer comparisons, BPB (bits per byte) is often used as a unified unit. It is normalized by byte count and is independent of the tokenizer.

    The conversion relationships are as follows:

    • Per-token natural-log loss L to bits: L / ln 2.
    • Let r be the average number of tokens per byte. Then BPB is L × r / ln 2.

    Example code (parameters are for demonstration only, not measured data):

    1. import math
    2. def perplexity(loss_nats_per_token: float) -> float:
    3. """Compute perplexity from natural-log loss."""
    4. return math.exp(loss_nats_per_token)
    5. def loss_to_bpb(loss_nats_per_token: float, tokens_per_byte: float) -> float:
    6. """Convert per-token natural-log loss to BPB.
    7. tokens_per_byte is the average number of tokens per byte on the evaluation set.
    8. """
    9. return loss_nats_per_token * tokens_per_byte / math.log(2)
    10. # Demonstration parameters: loss 0.90 nats/token, 0.25 tokens per byte
    11. print(round(perplexity(0.90), 3)) # about 2.460
    12. print(round(loss_to_bpb(0.90, 0.25), 4)) # about 0.3246

    Three points matter in practice. First, the conversion depends on tokens_per_byte on the evaluation set. This value varies widely across corpora and must be recorded together with the results. Second, if two models use different tokenizers, only BPB can be compared; raw log-perplexity cannot. Third, perplexity is an exponential transform, so the same absolute gap represents different multiplicative relationships in different ranges. A loss drop from 0.90 to 0.88 and a drop from 2.0 to 1.98 do not produce the same relative change in perplexity.

    3. Anchor Interpolation: Method and Preconditions

    When a complete evaluation for a model is unavailable, a common approach is to use known models as anchors and map the unknown model’s metric to a position between the anchors. This method is called linear interpolation.

    Let the losses of two adjacent anchors be a0 and a1, and let the target model’s value on a given metric be x. If x falls between them, its relative position in the interval is:

    t = (x - a0) / (a1 - a0)

    Example code:

    1. def locate_between_anchors(x: float, a0: float, a1: float) -> float:
    2. """Return the relative position t of x in [a0, a1], usually between 0 and 1."""
    3. if a0 == a1:
    4. raise ValueError("The two anchors have the same value, so x cannot be located")
    5. return (x - a0) / (a1 - a0)
    6. # Demonstration: anchor losses 0.95 and 0.85, target model loss 0.90
    7. print(round(locate_between_anchors(0.90, 0.95, 0.85), 2)) # 0.5, midpoint between the two anchors

    For a linear interpolation conclusion to hold, the following preconditions must be met:

    1. Same evaluation set and same metric definition. The anchors and the target model must be measured on the same data, with the same truncation length and the same calculation convention.
    2. Approximately monotonic and approximately linear within the interval. If there is a capability jump between anchors, the linear assumption will underestimate or overestimate the intermediate position.
    3. Anchor measurements must be sufficiently stable. Errors in the anchors propagate directly into the interpolation result.
    4. The conclusion only indicates similarity at the metric level, not similarity in architecture or training process. Two models with close losses may come from completely different training recipes.

    Therefore, an interpolation result should be understood as “which segment of this metric the model falls into,” not as “exactly equivalent to which version.”

    4. How Metric Choice Changes Conclusions

    For the same set of models, changing the metric can noticeably change their positions. The reason is that different metrics correspond to different facets of capability.

    • Reasoning-oriented metrics rely more on logical composition, context association, and prediction of structured text.
    • Long-tail knowledge metrics rely more on memory of low-frequency entities, technical terms, and obscure facts.

    The growth rates of the two metric types are often inconsistent. One model generation may improve clearly on reasoning-related text while improving only marginally on long-tail knowledge. If only a single metric is used, judgments about “overall capability” can easily rest on partial evidence.

    Practical recommendations:

    • Report results from at least two slices at the same time;
    • Perform interpolation separately for each slice and check whether the conclusions agree;
    • If the two conclusions point in opposite directions, state this in the report rather than selecting only the one that is favorable.

    5. Overlapping Intervals and “False Precision”

    When the metric gap between adjacent models is very small, for example only one-thousandth, that gap often falls within the range of sampling error. If models are still ranked by numerical value and generation-level judgments are made, the result is “false precision.”

    Uncertainty in evaluation metrics can be estimated with bootstrap:

    1. import random
    2. def bootstrap_ci(values, n_iter=1000, alpha=0.05, seed=0):
    3. """Bootstrap resample per-sample metrics and return a confidence interval for the mean."""
    4. rng = random.Random(seed)
    5. n = len(values)
    6. means = []
    7. for _ in range(n_iter):
    8. sample = [values[rng.randrange(n)] for _ in range(n)]
    9. means.append(sum(sample) / n)
    10. means.sort()
    11. lo = means[int(n_iter * alpha / 2)]
    12. hi = means[int(n_iter * (1 - alpha / 2)) - 1]
    13. return lo, hi

    When using this type of method, note the following:

    • The input should be per-document or per-segment losses, not a single aggregate number;
    • If the confidence intervals of two models overlap substantially, report “cannot distinguish” rather than giving an ordering;
    • For different post-training versions of the same base model, metric differences may mainly come from sampling and decoding settings and cannot be directly interpreted as differences in base-model capability.

    6. Bridging Estimates Across Evaluation Sets

    Sometimes the same model has data only on one evaluation set and is missing on another. One approach is to use reference models that were tested on both sets to bridge the gap: first estimate the coefficient relationship between the two evaluation sets on the reference models, then project the target model’s result according to that relationship.

    This method can only provide scenario estimates. Its reliability depends on three things: whether the reference models and the target model are structurally similar, whether the text distributions of the two evaluation sets are related, and whether there is sufficient data for the reference models. Estimates should be given as intervals and clearly marked as “estimated values.” Treating an estimate as a measured value is a common misuse.

    7. Reproducible Comparison Workflow

    To make comparison results stand up to review, it is advisable to record each evaluation as a controlled experiment. The following checklist can be used directly in a team’s internal evaluation template:

    • Evaluation set name, version, acquisition date, and preprocessing method;
    • Tokenizer version and statistics for tokens_per_byte;
    • Truncation length, context window, and whether thinking or reasoning mode is enabled;
    • Metric definition: log-perplexity, perplexity, or BPB;
    • Number of samples, confidence interval, and random seed for each metric;
    • Basis for selecting anchor models and the error range of anchor measurements;
    • Interpolation method, results of precondition checks, and risk notes on failure of the linear assumption;
    • Level of the conclusion: measured, interpolation estimate, or scenario projection.

    Storing this information in a structured way makes it possible to quickly locate the source of differences during later review. For example, when two evaluation results differ greatly, checking the evaluation set version and tokenizer first is usually more effective than immediately suspecting the model itself.

    8. How to Use Loss Curves Well

    Loss curves are suitable for answering “is overall capability advancing” and “roughly how fast is it advancing.” They are not suitable for answering “whether a particular version is better on all tasks.” When interpreting them, prioritize three things: whether the metric definitions are consistent, whether the gap exceeds the error range, and whether interpolation conclusions are corroborated by results from other slices. Only after these checks can loss numbers serve as a reliable basis for cross-generation comparison.