Statistical Vignettes on the Grokking Phenomenon
Organizations: Concordia University · Mila – Quebec AI Institute
Abstract
In this work, we study grokking in a simple, analytically tractable setting whose rich phenomenology allows us to disentangle the effects of initialization, signal strength, weight decay, sample size, and input dimension. These factors can produce superficially similar learning curves through distinct mechanisms, complicating their interpretation. Our analysis distinguishes early fitting through nuisance features, core feature learning, and delayed generalization. We identify sharp conditions under which grokking provably occurs and derive analytic asymptotic expressions for the lengths of the generalization plateaus. Our results also characterize regimes of early generalization and failure to reach a prescribed test accuracy target. We show that the interpolation edge constitutes a distinct dynamical regime, where vanishing spectral gaps separate core learning from generalization, helping clarify the role of proximity to interpolation in existing accounts of grokking. The resulting picture is analogous to fast and slow phases in chemical kinetics and suggests that the lazy-to-rich transition discussed in the literature may reflect a similar separation of dynamical time scales. Our theoretical results are faithfully supported by extensive experiments.
Figures & tables
| Regime | Effective dynamics of core feature | Effective dynamics of nuisance | Conclusion |
|---|---|---|---|
| Under-parameterized, weak regularization ( , ) | Logistic ODE ( 13 ); limiting core trajectory converges to | Enters fixed vicinity of the slow sheet in constant time, then tracks the core feature | Grokking occurs on time scale of order (given in ( 16 )), which diverges with the sample size |
| Under-parameterized, strong regularization ( , ) | Logistic ODE ( 13 ); limiting core trajectory converges to | Enters fixed vicinity of in constant time, then tracks core | Target test accuracy is never reached |
| Interpolation edge, weak regularization ( , ) | Logistic ODE ( 13 ); limiting core trajectory converges to | Entry time diverges, but is of order and | Fixed core levels reached on scale (diverging with ); grokking occurs on time scale of order |
| Interpolation edge, strong regularization ( , ) | Logistic ODE ( 13 ); limiting core trajectory converges to | Same upper-bounds as above; stationary nuisance norm tends to | Fixed core levels reached on scale of order , but target test accuracy is never reached |
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
Grokking
Grokking is delayed generalization in which neural networks memorize training data before abruptly learning a rule that works on unseen examples.
See all 77 papers