Is Grokking a Computational Glass Relaxation?
Not on the map. Why?
Abstract (arXiv)
Understanding neural network's (NN) generalizability remains a central question in deep learning research. The special phenomenon of grokking, where NNs abruptly generalize long after the training performance reaches a near-perfect level, offers a unique window to investigate the underlying mechanisms of NNs' generalizability. Here we propose an interpretation for grokking by framing it as a computational glass relaxation: viewing NNs as a physical system where parameters are the degrees of freedom and train loss is the system energy, we find memorization process resembles a rapid cooling of liquid into non-equilibrium glassy state at low temperature and the later generalization is like a slow relaxation towards a more stable configuration. This mapping enables us to sample NNs' Boltzmann entropy (states of density) landscape as a function of training loss and test accuracy. Our experiments in transformers on arithmetic tasks suggests that there is NO entropy barrier in the memorization-to-generalization transition of grokking, challenging previous theory that defines grokking as a first-order phase transition. We identify a high-entropy advantage under grokking, an extension of prior work linking entropy to generalizability but much more significant. Inspired by grokking's far-from-equilibrium nature, we develop a toy optimizer WanD based on Wang-landau molecular dynamics, which can eliminate grokking without any constraints and find high-norm generalizing solutions. This provides strictly-defined counterexamples to theory attributing grokking solely to weight norm evolution towards the Goldilocks zone and also suggests new potential ways for optimizer design.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 25 of its 37 references that are in the map. First posted on arXiv 16 May 2025.
Builds on
25 of 37 references.
References · 25
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,417
- 2016On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minimacited by 1,352
- 2023Progress measures for grokking via mechanistic interpretabilitycited by 839
- 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 629
- 2017Exploring Generalization in Deep Learningcited by 600
- 2017Computing Nonvacuous Generalization Bounds for Deep (Stochastic) Neural Networks with Many More Parameters than Training Datacited by 533
- 2019Fantastic Generalization Measures and Where to Find Themcited by 513
- 2017Sharp Minima Can Generalize For Deep Netscited by 466
- 2016Entropy-SGD: Biasing Gradient Descent Into Wide Valleyscited by 359
13 more
- 2018Essentially No Barriers in Neural Network Energy Landscapecited by 330
- 2022Towards Understanding Grokking: An Effective Theory of Representation Learningcited by 230
- 2022Omnigrok: Grokking Beyond Algorithmic Datacited by 146
- 2020Towards Theoretically Understanding Why SGD Generalizes Better Than ADAM in Deep Learningcited by 126
- 2023Explaining grokking through circuit efficiencycited by 111
- 2023Grokking as the Transition from Lazy to Rich Training Dynamicscited by 108
- 2022The Slingshot Mechanism: An Empirical Study of Adaptive Optimizers and the Grokking Phenomenoncited by 94
- 2023A Tale of Two Circuits: Grokking as Competition of Sparse and Dense Subnetworkscited by 83
- 2023Grokking as a First Order Phase Transition in Two Layer Networkscited by 48
- 2024Get rich quick: exact solutions reveal how unbalanced initializations promote rapid feature learningcited by 42
- 2019Landscape Connectivity and Dropout Stability of SGD Solutions for Over-parameterized Neural Networkscited by 35
- 2022The activity-weight duality in feed forward neural networks: The geometric determinants of generalizationcited by 12
- 2025High-entropy Advantage in Neural Networks' Generalizabilitycited by 4
Built on by
Citing papers per year: 2026: 8.
8 papers.
- 2026Noise-Driven Escape from Metastable Phases explains Grokking in Deep Neural Networkscited by 5
- 2026Grokking as a Falsifiable Finite-Size Transitioncited by 3
- 2026Weight Decay Regimes in Grokking Transformers: Cheap Online Diagnosticscited by 2
- 2026Revisiting the Volume Hypothesiscited by 1
- 2026Tunneling the Loss Landscape: Bypassing Memorization with Monte Carlo Parameter Swappingcited by 1
- 2026The Grokked Illusion: True Equilibrium Mitigates Catastrophic Forgettingcited by 0
- 2026An Exploratory Replica-Overlap Probe of the Grokking Transitioncited by 0
- 2026Generalization in Neural Networks Through the Lens of Magnitude Potentialcited by 0
- 2026Generalization in Neural Networks Through the Lens of Magnitude Potential1 Oct 2026
- 2026An Exploratory Replica-Overlap Probe of the Grokking Transition22 Sep 2026
- 2026Tunneling the Loss Landscape: Bypassing Memorization with Monte Carlo Parameter Swapping3 Aug 2026
- 2026The Grokked Illusion: True Equilibrium Mitigates Catastrophic Forgetting31 Jul 2026
- 2026Revisiting the Volume Hypothesis30 Jun 2026
- 2026Noise-Driven Escape from Metastable Phases explains Grokking in Deep Neural Networks15 Jun 2026
- 2026Weight Decay Regimes in Grokking Transformers: Cheap Online Diagnostics19 May 2026
- 2026Grokking as a Falsifiable Finite-Size Transition25 Mar 2026