Open Interpretability Models Contributors Research Posts About

Progress measures for grokking via mechanistic interpretability

Source

Citation. Neel Nanda (independent researcher, corresponding author), Lawrence Chan (University of California, Berkeley), Tom Lieberum, Jess Smith and Jacob Steinhardt. The text doesn't give the last three authors' affiliations in a form we could read. "Progress measures for grokking via mechanistic interpretability". arXiv:2301.05217, version 3 of 19 October 2023. Versions 1 and 2 are of 12 and 13 January 2023. The arXiv page gives no venue, so we report it as a preprint. The interactive figures, a Colab notebook and the checkpoints are linked from neelnanda.io/grokking-paper. The text gives no funding statement. It says Nanda's mentorship came from the Anthropic interpretability team "during his time there."

Mismatch. The introduction says that ablating the key frequencies "reduces performance to chance." Table 4 gives losses of 6.5 to 11, which are worse than the uniform loss, ln 113 ≈ 4.7. Section 4.2 writes "55 key frequencies" where it means 5. Appendix C.2.2 says a model on 20% of the data "generalized immediately". Figure 20's caption says 20% "doesn't lead to grokking even after 40k epochs."

Status. Planned. #5220 names it as the reference for a complete arithmetic explanation in its compiled-module phase. The fix campaign is the maintainer's, so this page reports evidence and records questions only.

Read. On 2026-11-20 a web-fetch subagent read the abstract page and the HTML of version 3 for this page's author, a model (Claude Opus 5.5). It read the source's own text in full, in four fetches: Sections 1 to 6, the references and Appendices A to F. We didn't see any figure as an image. The progress measures over training appear only in Figure 7, so this page gives the phases as the text describes them.

Summary

Claim. A small transformer that groks modular addition runs a Fourier algorithm, which the authors reverse-engineer fully. Measures built from that algorithm show that the generalising circuit forms gradually, long before the test loss falls.

Method.

Findings, as the source reports them.

Setting Result
Key frequencies, main run (Section 4) k = 14, 35, 41, 42 and 52, five of the 56
Neurons (Section 4.3) 433 of 512 neurons (84.6%) have over 85% of their variance explained by one key frequency
Logits (Section 4.2) 95% explained by the five terms cos(w(a + b − c))
Replace the 433 neurons by their fits (Section 4.4) loss 2.41e-7 → 2.48e-7, with accuracy unchanged
Keep only the key frequencies (Section 4.4) loss falls 70%, to 7.24e-8
Project the MLP onto the 10 key directions, or onto their complement (Section 4.4) loss 1.19e-7, or 5.27, which is worse than uniform
Other seeds (Table 4) 3 or 4 key frequencies each. Removing them gives loss 6.5 to 11
Phases (Section 5.2) memorisation to epoch 1.4k. Circuit formation 1.4k–9.4k, with train and test loss flat. Cleanup 9.4k–14k, when the test loss drops
Regularisation (Appendix D.1) no weight decay, no grokking (one seed). Dropout groks. L1 never does

Where the claims go beyond the evidence

The authors state limits themselves. The analysis took a large manual effort. No theory predicts when the phase change happens.

Use in this repo