mlsanityData to 14 Oct 2026

Mechanistic Insights into Grokking from the Embedding Layer

arXiv 2505.15624 ↗First posted 21 May 2025cs.LG cs.CLcited by 6

Not on the map. Why?

Abstract (arXiv)

Grokking, a delayed generalization in neural networks after perfect training performance, has been observed in Transformers and MLPs, but the components driving it remain underexplored. We show that embeddings are central to grokking: introducing them into MLPs induces delayed generalization in modular arithmetic tasks, whereas MLPs without embeddings can generalize immediately. Our analysis identifies two key mechanisms: (1) Embedding update dynamics, where rare tokens stagnate due to sparse gradient updates and weight decay, and (2) Bilinear coupling, where the interaction between embeddings and downstream weights introduces saddle points and increases sensitivity to initialization. To confirm these mechanisms, we investigate frequency-aware sampling, which balances token updates by minimizing gradient variance, and embedding-specific learning rates, derived from the asymmetric curvature of the bilinear loss landscape. We prove that an adaptive learning rate ratio, (fracηEηW propto fracσmax(E)σmax(W) · fracfWfE), mitigates bilinear coupling effects, accelerating convergence. Our methods not only improve grokking dynamics but also extend to broader challenges in Transformer optimization, where bilinear interactions hinder efficient training.

Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 23 of its 26 references that are in the map. First posted on arXiv 21 May 2025.

Builds on

23 of 26 references.

References · 23

  1. 2017Attention Is All You Needcited by 60,361
  2. 2023Progress measures for grokking via mechanistic interpretabilitycited by 839
  3. 2019Deep Double Descent: Where Bigger Models and More Data Hurtcited by 672
  4. 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 629
  5. 2022Towards Understanding Grokking: An Effective Theory of Representation Learningcited by 230
  6. 2022Omnigrok: Grokking Beyond Algorithmic Datacited by 146
  7. 2024Why Transformers Need Adam: A Hessian Perspectivecited by 124
  8. 2023Noise Is Not the Main Factor Behind the Gap Between SGD and Adam on Transformers, but Sign Descent Might Becited by 114
  9. 2023Explaining grokking through circuit efficiencycited by 111
  10. 2023Grokking as the Transition from Lazy to Rich Training Dynamicscited by 108
  11. 2023Grokking modular arithmeticcited by 83
  12. 2023Dichotomy of Early and Late Phase Implicit Biases Can Provably Induce Grokkingcited by 80
11 more
  1. 2023Toward Understanding Why Adam Converges Faster Than SGD for Transformerscited by 53
  2. 2024Deep Networks Always Grok and Here is Whycited by 51
  3. 2023Unifying Grokking and Double Descentcited by 50
  4. 2025Grokking at the Edge of Numerical Stabilitycited by 46
  5. 2024Grokfast: Accelerated Grokking by Amplifying Slow Gradientscited by 41
  6. 2024Why Do You Grok? A Theoretical Analysis of Grokking Modular Additioncited by 36
  7. 2024Weight decay induces low-rank attention layerscited by 27
  8. 2024Grokking Modular Polynomialscited by 18
  9. 2024Deep Grokking: Would Deep Neural Networks Generalize Better?cited by 15
  10. 2025Let Me Grok for You: Accelerating Grokking via Embedding Transfer from a Weaker Modelcited by 13
  11. 2024Deep Learning Through A Telescoping Lens: A Simple Model Provides Empirical Insights On Grokking, Gradient Boosting & Beyondcited by 9

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 5.

6 papers.