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
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.
All-or-nothing grading hides progress
Exact match is exponential in loss
A 10-digit answer across five sizes
Smooth loss in, sharp accuracy out
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
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.
Bytewise
All courses