Reading LLM Pretraining Loss: BPB and the Limits of Linear Interpolation
This article explains how to read LLM pretraining metrics such as log-perplexity and bits per byte (BPB). It covers why BPB allows comparisons across tokenizers and why it depends on the evaluation dataset. It also explains why a single loss value cannot show task performance, what linear interpolation between anchor models can and cannot show, and common evaluation pitfalls. Finally, it outlines a six-step process for evaluating candidate models on private data during enterprise model selection.
Recent reports say a large model provider has published some log-perplexity data from its pretraining stage. Such data can show how a model’s abilities change over the course of training, which has drawn attention from developers. However, the specific values and metric definitions in these reports have not been independently verified, so this article does not use those numbers as a basis for its conclusions. Instead, it focuses on the basic concepts needed to read these metrics and the common mistakes people make when using them.
1. What Log-Perplexity and BPB Measure
Log-perplexity is the average training loss of a language model. It is usually expressed as cross-entropy per token, in nats (natural logarithm units). A lower value means the model predicts the next token in the training data more accurately. On the training curve of a single model, this metric is useful. The tokenization stays fixed, so comparing two stages of the same training run is reliable.
The problem appears when comparing different models. Each model may use a different tokenizer, so the same text is split into a different number of tokens. A model with a larger vocabulary covers more bytes per token on average. For this reason, per-token losses cannot be compared directly between models with different vocabulary sizes.
BPB (bits per byte) solves this problem. It converts the loss to the byte level of the original text:
BPB = (loss per token / ln 2) × (total tokens / total bytes)
The per-token loss in nats is divided by ln 2 to convert it to bits. It is then multiplied by the ratio of tokens to bytes, which changes the unit from “per token” to “per byte”. As long as the evaluation text is the same, models with different tokenizers can be compared on the same scale.
BPB depends on the evaluation text. The same model can produce very different BPB values on code, Chinese text, or dialogue corpora. Any reported BPB must therefore state both the dataset and the byte-counting method.
2. Why a Single Number Is Not Enough
Pretraining loss is an average over the whole training distribution. It shows how well the model fits that distribution, but it does not show performance on specific tasks such as reasoning, math, or long-tail knowledge. Two models can have the same average loss and still have very different capability profiles.
For this reason, evaluations often pair an aggregate metric with task-level scores. Common public benchmarks include MMLU (multi-subject knowledge) and GSM8K (grade-school math word problems). Long-tail knowledge test sets need to be built in-house or selected from verifiable data sources. When choosing a benchmark, check three things: whether its questions may already appear in the training data, whether its scoring rules are public, and whether the sample size is large enough.
3. Anchor Models and Linear Interpolation: What It Can and Cannot Do
A common approach is to choose several published anchor models whose loss and evaluation results are public. For a model under test, find the two anchors whose evaluation scores bracket its score, then estimate its position proportionally. This is linear interpolation.
Interpolation helps explain relative position. For example, if a model’s score on an evaluation falls between the scores of two known versions, we can say it sits roughly between those two versions on that metric.
Interpolation has clear limits:
- Results only hold for the chosen metric and evaluation set. With a different set of metrics, the position can change completely.
- The anchors have their own errors. If the anchor scores have no confidence intervals, the error of the interpolated result cannot be estimated.
- The linear assumption may not hold. Common scaling relationships often follow power laws, so a straight line between two points is only a rough approximation.
- An interpolated result is not the true pretraining loss. It also cannot directly show which generation a model belongs to.
Therefore, interpolated results work as a starting point for discussion. They should not be the only basis for procurement or architecture decisions.
4. Common Evaluation Pitfalls
First, a small gap in scores does not mean there is no real difference. Two models that differ by only a few points on the same evaluation may be separated only by random variation. To judge whether a difference is real, run repeated experiments, report the standard deviation or confidence interval, and compare the results with a significance test. If the difference falls within the margin of error, do not use it to rank capability.
Second, a single evaluation set introduces bias. Different datasets have different distributions, and the BPB of the same model can change noticeably from one dataset to another. Looking at only one dataset can easily lead to a one-sided conclusion. A safer approach is to test on at least two or three datasets from different sources and check whether the conclusions agree.
Third, the baseline setup often differs from real applications. Many anchor results reflect models evaluated without chain-of-thought prompting, without instruction tuning or alignment, and without tool access. Production models usually go through post-training and work with retrieval, tool calls, and multi-step agent workflows. Interpolated base-loss results cannot directly represent the experience of end users.
Fourth, different versions of the same base model do not necessarily mean a capability leap. If the official documentation states that two versions share a base model, small gaps in evaluation scores most likely come from sampling or evaluation settings rather than from changes in the model itself.
5. Evaluation Steps for Enterprise Model Selection
Teams choosing a model service on a cloud platform can follow these steps.
- Break down the business scenario. Define the task type, such as code generation, logical reasoning, customer support Q&A, or document summarization. Different tasks place very different demands on reasoning ability and knowledge coverage.
- Choose metrics. For each task type, select two or three metrics that directly reflect business outcomes, such as task accuracy, output format compliance rate, and response latency. Do not rely on average loss alone.
- Build a private evaluation set. Sample real business data, anonymize it, and confirm that the evaluation set does not overlap with the training data.
- Run repeated experiments and comparisons. Use the same prompts and parameters for each candidate model, run each test multiple times, and report the mean and range of variation.
- Roll out gradually. Route a small share of real traffic to the new model first, and record its results, costs, and failure cases.
- Set up monitoring and alerts. Track accuracy, user feedback, and abnormal outputs over time. Set thresholds, and roll back automatically or notify the owner when a threshold is exceeded.
Most cloud platforms provide model evaluation, log services, and monitoring and alerting features that can support this process. Whichever platform a team chooses, the decision should rest on its own data and metrics.
Conclusion
Pretraining loss and BPB offer a low-level view, but they answer only one question: how well a model fits the training distribution. To judge whether a model can handle a specific business use case, you still need to break down the task, choose reliable metrics, and run repeated experiments on private data. When you see any public figure, first confirm the data source, the evaluation method, and the margin of error, then decide whether to rely on it.
