7/30
Part 2 of 6 · Loss checksLearn

Read the first loss three ways: healthy, too high or too low

Slide the loss you measured, or pick one of the three inits, and read it:

Read the step-0 loss, V = 65Interactive
below: a leak just above: healthy far above: logits too big
4.19 sits 0.02 above ln 65. That gap means logits with a spread of about √(2 × 0.02) = 0.18. Healthy: move on.
  • Within a few hundredths of ln⁡V+s2/2\ln V + s^2/2. Healthy. Move on.
  • Far above ln⁡V\ln V. The logits are too large, so the model starts confident and wrong. Follow the logit size back through the head and its init. This is usually worse, not wrong: the model still trains. It spends its first steps shrinking the logits, so the curve drops steeply and then runs flat, a shape Karpathy calls a hockey stick.
  • Well below ln⁡V\ln V. Before learning anything, the model already gives the right answers a high chance. A random model can't know them, so something is handing them over. That's a leak, and the next checks find it.