Skip to content

Loss vs. Benchmarks: Two Languages for Model Quality

The same answer, lower loss

Constructed example: the correct option stays the most likely in both checkpoints.

Checkpoint A
Correct-option probability 0.60; loss −ln(0.60) = 0.511 nats; answer marked correct.
Checkpoint B
Correct-option probability 0.80; loss −ln(0.80) = 0.223 nats; answer still marked correct.
What moved?
Loss records the probability improvement. Accuracy records no change on this question.

A model can improve its predictions without answering one more benchmark question correctly. It can also gain a point on a benchmark while getting worse at something the test never asks.

Validation loss measures the probabilities assigned to held-out tokens. A benchmark measures performance under a particular set of questions, prompts, and scoring rules.

What validation loss measures

In cross-entropy and loss, we treated a correct token’s negative log-probability as its surprise. Average that quantity over the scored tokens in a validation set:

L=−1N∑i=1Nlog⁡pθ(xi∣x<i).L = -\frac{1}{N}\sum_{i=1}^{N}\log p_\theta(x_i\mid x_{<i}).

Natural logarithms give nats per token. Perplexity is eLe^L. The model can improve this loss by putting more probability on observed tokens even if its most likely next token never changes.

For instance, moving the correct option’s probability from 0.60 to 0.80 reduces its loss from about 0.511 to 0.223 nats. If that option was already the most likely, a greedy answer stays the same. Conversely, a tiny probability change can swap the top two options and flip a correctness indicator.

top-1 prediction
Correct
unchanged — same class is picked
cross-entropy loss
0.01 bits
−log₂ P(correct class)
class 0
99.0%
class 1
0.4%
class 2
0.3%
class 3
0.3%
Target = class 0 (green). The argmax is correct throughout this one-example comparison.

Both states pick the correct class. Assigning it probability 0.99 gives about 0.01 bits of loss; probability 0.35 gives about 1.51 bits.

Sampling noise, optimization dynamics, distribution differences, and overfitting can move validation loss upward between checkpoints.

27455640382,9811022,026assumed floor H(p)01k2k3k4k5ktraining stepcross-entropy (nats)perplexity
step 0loss 10.50 natsppl 36315.5

A constructed training curve showing a declining trend and variation between checkpoints.

To compare two losses, hold the validation corpus, tokenizer, context handling, and scored positions constant. A token is not a fixed amount of text across tokenizers. Bits per byte can help compare likelihoods on the same underlying text, but the text, encoding, and evaluation protocol still need to match.

What benchmarks measure

A multiple-choice benchmark might score whether the highest-likelihood candidate matches the answer key. A code benchmark might execute tests. A conversational evaluation might collect preferences. These are different observations, each defined partly by the evaluator.

Prompt wording, few-shot examples, answer normalization, and decoding budget belong to that definition. A score obtained by ranking four supplied answers cannot be substituted for a score obtained by generating an answer without those choices. The next post follows those details through an evaluation harness.

A comparison needs a common measurement

Validation loss
Compare checkpoints on the same held-out text, tokenizer, context protocol, and token weighting.
Task score
Compare answers using the same prompts, examples, decoding budget, parser, and test items.
Use in practice
Measure completion quality, failure cost, latency, and the distribution of actual requests.

Evaluation uncertainty can come from item sampling, stochastic responses, few-shot selection, nondeterministic execution, or changes to the service. State which source an interval describes. Repeating a deterministic run on the same fixed items adds no observations of item-sampling variation.

For independent binary outcomes with common success probability pp, the standard error of an accuracy estimate is approximately p(1−p)/n\sqrt{p(1-p)/n}. Questions within a subject or several attempts on one task can be correlated, so that expression is not a universal uncertainty calculator. Comparing models on the same items also calls for a paired analysis, which uses the disagreements between their predictions.

How much data supports this accuracy?

An approximate 95% Wilson interval under independent Bernoulli sampling, not variation across random seeds on a fixed deterministic test.

Accuracy: 70.0%. Wilson interval: 60.4%–78.1%.

Comparing two models on the same questions needs a paired analysis. Correlated questions or repeated trials on the same task need a sampling model that accounts for those dependencies.

Change sample size while holding observed accuracy fixed to see how sampling uncertainty changes.

Assess a score difference using the sample size, dependence between items, comparison design, and practical effect. Near-perfect scores can still detect regressions, though a test with few remaining errors has limited room to distinguish improvements.

Loss, compute, and downstream performance

Scaling-law studies fit regularities in loss over specified model families and training regimes. A common illustrative form is

L(C)=L∞+aC−α.L(C)=L_\infty+aC^{-\alpha}.

Here CC is compute and L∞L_\infty is a fitted asymptote. Under this formula, log⁡(L−L∞)\log(L-L_\infty) is linear in log⁡C\log C, so the straight-line relationship applies to loss above the asymptote.

Kaplan et al. and Hoffmann et al. study how training resources relate to language-model loss and downstream results under their experimental conditions. Their fits are useful for planning within a regime; they do not give a universal conversion from nats to task competence.

Two possible checkpoint reports

Constructed cases; neither establishes a universal conversion from loss to accuracy.

Case A
Loss falls from 2.30 to 2.25 nats; all benchmark decisions stay unchanged. Probabilities improved without crossing decision boundaries.
Case B
Loss stays at 2.30 after rounding; two previously wrong answers become correct and two previously correct answers become wrong. Net accuracy hides the changed failures.
Next check
Keep per-example predictions. Inspect paired changes and estimate uncertainty for the population you want the score to describe.

Why a smooth improvement can look abrupt

The emergence debate concerns cases where a measured ability seems to appear suddenly with scale. Wei et al. documented such patterns. Schaeffer et al. showed that nonlinear metrics and limited test resolution can produce apparent discontinuities from smoothly changing underlying performance.

Consider a constructed task with kk independent parts, each solved with probability pp. Expected partial credit is pp, while the probability of getting the entire task right is pkp^k. With eight parts and p=0.5p=0.5, complete success is only 1/2561/256. A small test may observe no successes. At p=0.8p=0.8, complete success is about 16.8%. Nothing discontinuous happened to pp.

An all-or-nothing score amplifies difficulty

Constructed model: every part succeeds independently with the same probability p.

Expected fraction of parts correct: 70.0%

Probability every part is correct: p8 = 5.765%

Both change smoothly. A small test can record no complete successes even while partial performance improves.

A sampled single answer with correctness probability pp has expected accuracy pp, not a threshold at 50%. Greedy decoding does introduce decision boundaries when the top candidate changes, but with several options that boundary need not occur at 50% probability.

A small calculation you can check

If validation loss falls from 2.30 to 2.25 nats, perplexity falls from about 9.97 to 9.49. The geometric mean probability assigned to observed tokens rises from e−2.30≈0.1003e^{-2.30}\approx0.1003 to e−2.25≈0.1054e^{-2.25}\approx0.1054.

That is a roughly 5.1% relative increase in the geometric mean, not the arithmetic mean token probability and not a 5.1-point accuracy gain.

Run in evaluation mode, exclude padding and any unscored targets, sum losses over scored tokens, and divide by their total count rather than averaging unequal batch means. Respect the model’s context limit. Sliding-window evaluation can give later tokens more preceding context than disjoint chunks; record the window and stride so another run scores the same conditional predictions.

For task evaluations, save per-item outputs as well as summary scores. Those outputs let you inspect regressions, test the answer parser, and make paired comparisons. Keep a held-out test set for the final comparison after using development data to choose prompts or checkpoints.

What to carry into an evaluation report

Report the loss protocol, task protocol, and model revision. Show uncertainty appropriate to the sampling process. Distinguish a better probability model on the validation distribution from a better system on the task you care about. When the measurements disagree, inspect the examples before deciding which one to discard.

The eval harnesses post turns that report into a reproducible procedure.

Additional reading