LLM & Transformer Fundamentals·Question 60 of 109Advanced

What is grokking, and does it have any bearing on how you actually train models?

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

Grokking (Power et al., 2022) is delayed generalisation. On small algorithmic tasks like modular arithmetic, a network fits the training set perfectly early, sits at chance test accuracy for orders of magnitude more steps, then abruptly generalises. It is arresting because it violates the intuition that train and test curves move together and that prolonged overfitting is terminal.

Full worked answer

Grokking (Power et al., 2022) is delayed generalisation. On small algorithmic tasks like modular arithmetic, a network fits the training set perfectly early, sits at chance test accuracy for orders of magnitude more steps, then abruptly generalises. It is arresting because it violates the intuition that train and test curves move together and that prolonged overfitting is terminal.

The mechanism is now reasonably well understood. Two solutions compete: a memorising one, quick to reach and structureless, and a generalising one, a Fourier-like circuit for modular addition, slower to form but far more weight-efficient. Weight decay penalises the memorising solution harder, so given enough steps regularisation walks the network from memorisation to the circuit. Nanda et al.'s progress-measures work is the important part: they traced the circuit forming continuously during the plateau. Nothing sudden happened inside the model. The discontinuity was in the metric. Grokking largely vanishes without weight decay, or with enough data.

Bearing on real training: mostly negative, and saying so plainly is the point. You will not observe grokking while pretraining an LLM. It requires a tiny, fully-specified task and heavy overparameterisation relative to data, which is the exact opposite of the trillion-token regime, where you make roughly one pass and never memorise the training set to begin with.

Where it does inform practice:

  • A flat metric can conceal real internal progress. Do not kill a fine-tune or an ablation on an accuracy plateau; look at loss or a continuous proxy.
  • It is the same lesson as the emergent-abilities mirage argument, arrived at from a different direction: discrete metrics manufacture discontinuities that are not in the model.
  • It is evidence that weight decay does something structural, selecting among solutions, not merely numerical damping.
  • The memorise-versus-generalise tension is real in the regime you do hit: small fine-tunes on a few thousand examples, where regularisation and early stopping genuinely decide which solution you land on.

If someone tells you they are waiting for their 70B to grok, they have misread the setting.

What a good answer covers

  • Grokking (Power et al., 2022) is delayed generalisation
  • On small algorithmic tasks like modular arithmetic, a network fits the training set perfectly early,…
  • It is arresting because it violates the intuition that train and test curves move together and that…
  • The mechanism is now reasonably well understood
  • Two solutions compete: a memorising one, quick to reach and structureless, and a generalising one, a…

Interviewer follow-ups to expect

  1. What continuous proxy metric would you watch during a fine-tune that looks plateaued?

  2. How does the mirage critique of emergent abilities connect to this?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep