mlsanityData to 14 Oct 2026

Is Grokking a Computational Glass Relaxation?

arXiv 2505.11411 ↗First posted 16 May 2025cs.LG cond-mat.dis-nncited by 8

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,417
  5. 2016On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minimacited by 1,352
  6. 2023Progress measures for grokking via mechanistic interpretabilitycited by 839
  7. 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 629
  8. 2017Exploring Generalization in Deep Learningcited by 600
  9. 2017Computing Nonvacuous Generalization Bounds for Deep (Stochastic) Neural Networks with Many More Parameters than Training Datacited by 533
  10. 2019Fantastic Generalization Measures and Where to Find Themcited by 513
  11. 2017Sharp Minima Can Generalize For Deep Netscited by 466
  12. 2016Entropy-SGD: Biasing Gradient Descent Into Wide Valleyscited by 359
13 more
  1. 2018Essentially No Barriers in Neural Network Energy Landscapecited by 330
  2. 2022Towards Understanding Grokking: An Effective Theory of Representation Learningcited by 230
  3. 2022Omnigrok: Grokking Beyond Algorithmic Datacited by 146
  4. 2020Towards Theoretically Understanding Why SGD Generalizes Better Than ADAM in Deep Learningcited by 126
  5. 2023Explaining grokking through circuit efficiencycited by 111
  6. 2023Grokking as the Transition from Lazy to Rich Training Dynamicscited by 108
  7. 2022The Slingshot Mechanism: An Empirical Study of Adaptive Optimizers and the Grokking Phenomenoncited by 94
  8. 2023A Tale of Two Circuits: Grokking as Competition of Sparse and Dense Subnetworkscited by 83
  9. 2023Grokking as a First Order Phase Transition in Two Layer Networkscited by 48
  10. 2024Get rich quick: exact solutions reveal how unbalanced initializations promote rapid feature learningcited by 42
  11. 2019Landscape Connectivity and Dropout Stability of SGD Solutions for Over-parameterized Neural Networkscited by 35
  12. 2022The activity-weight duality in feed forward neural networks: The geometric determinants of generalizationcited by 12
  13. 2025High-entropy Advantage in Neural Networks' Generalizabilitycited by 4

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 8.

8 papers.