All courses

Emergent abilities vs smooth improvement

Explain how a capability can look like it switches on suddenly at some scale while per-token loss improves smoothly. Show how discontinuous metrics such as exact match create apparent jumps.

Builds on: Scaling laws: loss vs parameters, data, compute, Evaluating LLMs: loss, logprob scoring, benchmarks

▶ Watch this lesson Start the whole course

What the animation says

Abilities that seem to switch on

Scaling laws say the loss falls smoothly as models grow. But many benchmark plots look different: accuracy sits near zero for several sizes, then shoots up. People call these emergent abilities. Did something new suddenly switch on? Or is a smooth change hidden by the way we score? Start with the scoring. Exact match gives credit only if every token is right. A model gets nine of ten digits right. What does it score?

Progress gets multiplied

Zero. Nine right digits score exactly the same as none. So think per token. Say each digit comes out right with chance nine in ten. The whole answer needs all ten right, so the chances multiply: point nine, ten times over. That leaves only about thirty-five percent. Steady per-token gains get squeezed by the product. Multiple choice scored by argmax behaves alike: stuck at chance until the right option overtakes the others. Now each digit is right seven times in ten. What's the chance all ten are right?

Exact match is exponential in loss

About three percent. In loss terms, each token's chance of being right is e to the minus its loss. Over k tokens the losses add, so the whole answer's chance is e to the minus k times the loss. That exponent is the answer's log-probability. It moves smoothly, in step with the loss. The score doesn't: it stays under one percent while k times loss is above five, and reaches thirty-seven percent when it hits one. Longer answers need lower loss, so their jump arrives at bigger models.

Five sizes, one ten-digit answer

Take ten-digit answers and five models, each ten times bigger. The loss halves at every step. Point six nine, point three five, point one seven, point oh nine, point oh four nats. Multiply by ten for k times loss: six point nine, three point five, one point seven, point nine, point four. Remember the rule: above five, exact match stays under one percent. Tap the first model whose exact match clears one percent.

Smooth in, sharp out

Model two clears one percent, barely. The full exact-match column reads point oh oh one, point oh three, point one eight, point four one, point six seven. Plotted, it looks dead for two sizes, then seems to emerge. Now plot the log-probability instead. It halves toward zero at every step: a steady trend you can extrapolate. In code: this line computes the smooth log-prob, and the exp on the next line turns it sharp. So before claiming a jump, check the metric. To forecast, track log-prob or per-token accuracy. Some real jumps may remain, but rule out the metric first.

Why do some abilities seem to switch on?

Scaling laws say loss falls smoothly, as a power law in $N$. Yet many benchmark plots show accuracy stuck near zero, or near chance, across several model sizes and then shooting up at one size. People call these **emergent abilities**. Did the model suddenly gain something new, or is a smooth change being viewed through a metric that hides it until the end? And could you have predicted the jump?

All-or-nothing grading hides progress

**Exact match** gives credit only if every token of the answer is right. A model that gets 9 of 10 digits right scores 0, the same as one that gets none. Steady per-token gains get *multiplied* across the answer. Far from 100%, the product stays near zero. Near 100%, it rises fast. Multiple-choice **argmax** scoring works the same way: accuracy sits at chance until the correct option's log-prob overtakes the distractors, then it flips.

Exact match is exponential in loss

For an answer $y=(y_1,\dots,y_k)$ to prompt $x$, the per-token answer loss is $$\bar\ell = -\tfrac{1}{k}\textstyle\sum_{i=1}^{k}\log p_\theta(y_i\mid x, y_{<i})$$ The chance that sampling from the model's distribution produces exactly $y$ is $$p_\theta(y\mid x)=e^{-k\bar\ell}$$ Greedy decoding differs in detail, but the same multiplying across tokens applies. $\log p_\theta(y\mid x)=-k\bar\ell$ is linear in the loss, so it moves smoothly. Exact match is below 1% while $k\bar\ell>5$ nats. It reaches $e^{-1}\approx0.37$ only at $k\bar\ell=1$. A larger $k$ needs a lower $\bar\ell$ for the same score, which pushes the rise to larger models.

A 10-digit answer across five sizes

Take $k=10$ and five models, each 10× larger than the last. Their loss halves with each 10×, a power law: $\bar\ell$ = 0.69, 0.35, 0.17, 0.09, 0.04 nats. Per-token $p=e^{-\bar\ell}$: 0.50, 0.70, 0.84, 0.91, 0.96. Exact match $=e^{-10\bar\ell}$: **0.001, 0.030, 0.18, 0.41, 0.67**. The loss falls steadily. Exact match looks dead for two sizes and then appears to emerge. The log-prob of the answer ($-10\bar\ell$: −6.9, −3.5, −1.7, −0.9, −0.4) improves at every step.

Smooth loss in, sharp accuracy out

A smooth power-law loss goes in, with each printed step about 3.16× larger in $N$. Exact match comes out at 0.001, 0.02, 0.11 for the small models, then climbs past 0.5 by $N=10^{10}$. The log-prob column shrinks toward 0 by the same factor, about 1.8, at every step, which is about 3.2× per 10× in $N$. It is a smooth, predictable trend, so you can extrapolate it to larger sizes, as you would a scaling law.
import numpy as np
k = 10                                  # answer length in tokens
for N in np.logspace(8, 12, 9):         # model sizes
    loss = 0.69 * (N / 1e8) ** -0.5     # per-token answer loss, nats
    logp = -k * loss                    # log-prob of full answer: smooth
    exact = np.exp(logp)                # exact-match rate: sharp
    print(f"N={N:.0e} loss={loss:.3f} logp={logp:.2f} exact={exact:.3f}")

Check the metric before claiming a jump

Many apparent jumps are smooth per-token improvement seen through all-or-nothing or argmax metrics, since exact match ≈ $e^{-k\bar\ell}$. To forecast, track a continuous metric such as the log-prob of the correct answer or per-token accuracy. Some genuinely sharp changes may remain, but rule out the metric first.

On Bytewise this lesson comes in small steps with a check at the end, and the app brings it back right before you would forget it.