Grokking modular arithmetic
Not on the map. Why?
Abstract (arXiv)
We present a simple neural network that can learn modular arithmetic tasks and exhibits a sudden jump in generalization known as ``grokking''. Concretely, we present (i) fully-connected two-layer networks that exhibit grokking on various modular arithmetic tasks under vanilla gradient descent with the MSE loss function in the absence of any regularization; (ii) evidence that grokking modular arithmetic corresponds to learning specific feature maps whose structure is determined by the task; (iii) analytic expressions for the weights -- and thus for the feature maps -- that solve a large class of modular arithmetic tasks; and (iv) evidence that these feature maps are also found by vanilla gradient descent as well as AdamW, thereby establishing complete interpretability of the representations learnt by the network.
Key facts. Cited by 77 papers in the map (data through 7 Oct 2026). Builds on 14 of its 16 references that are in the map. First posted on arXiv 6 Jan 2023.
Builds on
14 of 16 references.
References · 14
- 2018Neural Tangent Kernel: Convergence and Generalization in Neural Networkscited by 2,597
- 2019Wide Neural Networks of Any Depth Evolve as Linear Models Under Gradient Descentcited by 732
- 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 599
- 2018A Mean Field View of the Landscape of Two-Layers Neural Networkscited by 463
- 2022Towards Understanding Grokking: An Effective Theory of Representation Learningcited by 229
- 2020The large learning rate phase of deep learning: the catapult mechanismcited by 206
- 2022Hidden Progress in Deep Learning: SGD Learns Parities Near the Computational Limitcited by 184
- 2020Feature Learning in Infinite-Width Neural Networkscited by 182
- 2021The Principles of Deep Learning Theorycited by 169
- 2022Omnigrok: Grokking Beyond Algorithmic Datacited by 142
- 2022The Slingshot Mechanism: An Empirical Study of Adaptive Optimizers and the Grokking Phenomenoncited by 90
- 2022Grokking phase transitions in learning local rules with gradient descentcited by 28
2 more
Built on by
Citing papers per year: 2023: 14; 2024: 15; 2025: 23; 2026: 25.
77 papers.
Sort:
By area:
- 2023Large Language Modelscited by 774
- 2023Are Emergent Abilities of Large Language Models a Mirage?cited by 515
- 2023Grokking as the Transition from Lazy to Rich Training Dynamicscited by 102
- 2023Dichotomy of Early and Late Phase Implicit Biases Can Provably Induce Grokkingcited by 76
- 2023Grokking as a First Order Phase Transition in Two Layer Networkscited by 48
- 2025Grokking at the Edge of Numerical Stabilitycited by 41
- 2024Learning to grok: Emergence of in-context learning and skill composition in modular arithmetic taskscited by 40
- 2024Grokfast: Accelerated Grokking by Amplifying Slow Gradientscited by 38
- 2024Why Do You Grok? A Theoretical Analysis of Grokking Modular Additioncited by 34
- 2023Pretraining on the Test Set Is All You Needcited by 33
- 2023Feature emergence via margin maximization: case studies in algebraic taskscited by 33
- 2023Benign Overfitting and Grokking in ReLU Networks for XOR Cluster Datacited by 32
38 more
- 2024Approaching Deep Learning through the Spectral Dynamics of Weightscited by 29
- 2024Emergence in non-neural models: grokking modular arithmetic via average gradient outer productcited by 26
- 2023Grokking Group Multiplication with Cosetscited by 22
- 2026There Will Be a Scientific Theory of Deep Learningcited by 21
- 2024Algorithmic Capabilities of Random Transformerscited by 17
- 2023Grokking as Compression: A Nonlinear Complexity Perspectivecited by 14
- 2024Towards Empirical Interpretation of Internal Circuits and Properties in Grokked Transformers on Modular Polynomialscited by 14
- 2025Provable Scaling Laws of Feature Emergence from Learning Dynamics of Grokkingcited by 14
- 2025Do We Always Need the Simplicity Bias? Looking for Optimal Inductive Biases in the Wildcited by 13
- 2025Let Me Grok for You: Accelerating Grokking via Embedding Transfer from a Weaker Modelcited by 13
- 2024Regress, Don't Guess -- A Regression-like Loss on Number Tokens for Language Modelscited by 12
- 2024Grokking at the Edge of Linear Separabilitycited by 11
- 2025A Theoretical Framework for Grokking: Interpolation followed by Riemannian Norm Minimisationcited by 11
- 2025Alternating Gradient Flows: A Theory of Feature Learning in Two-layer Neural Networkscited by 11
- 2023Understanding Grokking Through A Robustness Viewpointcited by 10
- 2024Bayesian RG Flow in Neural Network Field Theoriescited by 9
- 2025Position: Solve Layerwise Linear Models First to Understand Neural Dynamical Phenomena (Neural Collapse, Emergence, Lazy/Rich Regime, and Grokking)cited by 8
- 2025Flatness is Necessary, Neural Collapse is Not: Rethinking Generalization via Grokkingcited by 8
- 2025The Geometry of Grokking: Norm Minimization on the Zero-Loss Manifoldcited by 8
- 2023Learning to Compute Gr"obner Basescited by 7
- 2024Salsa Fresca: Angular Embeddings and Pre-Training for ML Attacks on Learning With Errorscited by 7
- 2026Sequential Group Composition: A Window into the Mechanics of Deep Learningcited by 7
- 2025Mechanistic Insights into Grokking from the Embedding Layercited by 6
- 2026To Grok Grokking: Provable Grokking in Ridge Regressioncited by 6
- 2023Bridging Lottery Ticket and Grokking: Understanding Grokking from Inner Structure of Networkscited by 5
- 2024Clustering and Alignment: Understanding the Training Dynamics in Modular Additioncited by 5
- 2024Composing Global Solutions to Reasoning Tasks via Algebraic Objects in Neural Netscited by 5
- 2026Convergent Evolution: How Different Language Models Learn Similar Number Representationscited by 5
- 2024Making Hard Problems Easier with Custom Data Distributions and Loss Regularization: A Case Study in Modular Arithmeticcited by 4
- 2025Feature Identification via the Empirical NTKcited by 4
- 2026Grokking or Glitching? How Low-Precision Drives Slingshot Loss Spikescited by 4
- 2025Learning words in groups: fusion algebras, tensor ranks and grokkingcited by 3
- 2025On the Emergence of Induction Heads for In-Context Learningcited by 3
- 2025On the geometry and topology of representations: the manifolds of modular additioncited by 3
- 2026Structure-Specific Representational Priors Causally Control the Grokking Delaycited by 3
- 2023Gradient Descent Fails to Learn High-frequency Functions and Modular Arithmeticcited by 2
- 2024Machine learning for modular multiplicationcited by 2
- 2025The Features at Convergence Theorem: a first-principles alternative to the Neural Feature Ansatz for how networks learn representationscited by 2
50 most cited of 77 All 77 (JSON)
- 2026Beyond Embedding Transfer: Component Roles in Grokking Transfer and Stability16 Sep 2026
- 2026Symmetry without a manifold: intrinsic dimension on orbits15 Sep 2026
- 2026From Symmetry to Invariance: Learning Galois Equivalent Representations in Finite Fields23 Aug 2026
- 2026Algebraic Representability as the Limiting Regime of Grokking: An Exactly Solvable Model with Holomorphic Activations15 Jul 2026
- 2026Multiplication Beyond Groups: Stratified Fourier Mechanisms in Transformer Circuits8 Jul 2026
- 2026Rating the Pitch, Not the Product: User Evaluations of LLMs Reflect Expectations More Than Performance6 Jul 2026
- 2026Structure-Specific Representational Priors Causally Control the Grokking Delay5 Jul 2026
- 2026Prime Fourier Embeddings: A Principled Basis for Modular Arithmetic22 Jun 2026
- 2026Circuit Synchronization Precedes Generalization: A Causal Precursor to Grokking11 Jun 2026
- 2026Beyond Neural Collapse: Task-Intrinsic Geometry Governs Neural Representations in Modular Arithmetic8 Jun 2026
- 2026Deciphering Two Training Clocks in Grokking via Deep Linear Network Theory with Conditional ReLU Reduction4 Jun 2026
- 2026Unveiling Memorization-Generalization Coexistence: A Case Study on Arithmetic Tasks with Label Noise18 May 2026
38 more
- 2026Grokking or Glitching? How Low-Precision Drives Slingshot Loss Spikes7 May 2026
- 2026Universal Quantum Transformer29 Apr 2026
- 2026There Will Be a Scientific Theory of Deep Learning23 Apr 2026
- 2026Convergent Evolution: How Different Language Models Learn Similar Number Representations22 Apr 2026
- 2026Spectral Entropy Collapse as a Phase Transition in Delayed Generalisation: An Interventional and Predictive Framework for Grokkin13 Apr 2026
- 2026Breaking Data Symmetry is Needed For Generalization in Feature Learning Kernels31 Mar 2026
- 2026Grokking Finite-Dimensional Algebra23 Feb 2026
- 2026Improved state mixing in higher-order and block diagonal linear recurrent networks12 Feb 2026
- 2026Explaining Grokking in Transformers through the Lens of Inductive Bias6 Feb 2026
- 2026Structural Disentanglement in Bilinear MLPs via Architectural Inductive Bias5 Feb 2026
- 2026Gradient Flow Through Diagram Expansions: Learning Regimes and Explicit Solutions4 Feb 2026
- 2026Sequential Group Composition: A Window into the Mechanics of Deep Learning3 Feb 2026
- 2026To Grok Grokking: Provable Grokking in Ridge Regression27 Jan 2026
- 2025On the geometry and topology of representations: the manifolds of modular addition31 Dec 2025
- 2025Grokked Models are Better Unlearners3 Dec 2025
- 2025The Geometry of Grokking: Norm Minimization on the Zero-Loss Manifold2 Nov 2025
- 2025On the Emergence of Induction Heads for In-Context Learning2 Nov 2025
- 2025Layer Specialization Underlying Compositional Reasoning in Transformers20 Oct 2025
- 2025Egalitarian Gradient Descent: A Simple Approach to Accelerated Grokking6 Oct 2025
- 2025Feature Identification via the Empirical NTK1 Oct 2025
- 2025Provable Scaling Laws of Feature Emergence from Learning Dynamics of Grokking25 Sep 2025
- 2025Flatness is Necessary, Neural Collapse is Not: Rethinking Generalization via Grokking22 Sep 2025
- 2025Learning words in groups: fusion algebras, tensor ranks and grokking8 Sep 2025
- 2025Tracing the Path to Grokking: Embeddings, Dropout, and Network Activation15 Jul 2025
- 2025The Features at Convergence Theorem: a first-principles alternative to the Neural Feature Ansatz for how networks learn representations8 Jul 2025
- 2025Decomposing Prediction Mechanisms for In-Context Recall2 Jul 2025
- 2025Why Neural Network Can Discover Symbolic Structures with Gradient-based Training: An Algebraic and Geometric Foundation for Neurosymbolic Reasoning26 Jun 2025
- 2025Alternating Gradient Flows: A Theory of Feature Learning in Two-layer Neural Networks6 Jun 2025
- 2025A Theoretical Framework for Grokking: Interpolation followed by Riemannian Norm Minimisation26 May 2025
- 2025Mechanistic Insights into Grokking from the Embedding Layer21 May 2025
- 2025Let Me Grok for You: Accelerating Grokking via Embedding Transfer from a Weaker Model17 Apr 2025
- 2025Beyond Progress Measures: Theoretical Insights into the Mechanism of Grokking4 Apr 2025
- 2025Low Rank and Sparse Fourier Structure in Recurrent Networks Trained on Modular Addition28 Mar 2025
- 2025Do We Always Need the Simplicity Bias? Looking for Optimal Inductive Biases in the Wild13 Mar 2025
- 2025Position: Solve Layerwise Linear Models First to Understand Neural Dynamical Phenomena (Neural Collapse, Emergence, Lazy/Rich Regime, and Grokking)28 Feb 2025
- 2025Grokking at the Edge of Numerical Stability8 Jan 2025
- 2024Regress, Don't Guess -- A Regression-like Loss on Number Tokens for Language Models4 Nov 2024
- 2024Grokking at the Edge of Linear Separability6 Oct 2024
50 newest of 77 All 77 (JSON)
- 2025Grokked Models are Better Unlearnerscited by 0
- 2026Structural Disentanglement in Bilinear MLPs via Architectural Inductive Biascited by 0
- 2026Structural Disentanglement in Bilinear MLPs via Architectural Inductive Bias5 Feb 2026
- 2025Grokked Models are Better Unlearners3 Dec 2025
- 2023Large Language Modelscited by 774
- 2023Are Emergent Abilities of Large Language Models a Mirage?cited by 515
- 2023Grokking as the Transition from Lazy to Rich Training Dynamicscited by 102
- 2023Dichotomy of Early and Late Phase Implicit Biases Can Provably Induce Grokkingcited by 76
- 2023Grokking as a First Order Phase Transition in Two Layer Networkscited by 48
- 2025Grokking at the Edge of Numerical Stabilitycited by 41
- 2024Learning to grok: Emergence of in-context learning and skill composition in modular arithmetic taskscited by 40
- 2024Grokfast: Accelerated Grokking by Amplifying Slow Gradientscited by 38
- 2024Why Do You Grok? A Theoretical Analysis of Grokking Modular Additioncited by 34
- 2023Pretraining on the Test Set Is All You Needcited by 33
- 2023Feature emergence via margin maximization: case studies in algebraic taskscited by 33
- 2023Benign Overfitting and Grokking in ReLU Networks for XOR Cluster Datacited by 32
12 most cited of 74 All 74 (JSON)
- 2026Beyond Embedding Transfer: Component Roles in Grokking Transfer and Stability16 Sep 2026
- 2026Symmetry without a manifold: intrinsic dimension on orbits15 Sep 2026
- 2026From Symmetry to Invariance: Learning Galois Equivalent Representations in Finite Fields23 Aug 2026
- 2026Algebraic Representability as the Limiting Regime of Grokking: An Exactly Solvable Model with Holomorphic Activations15 Jul 2026
- 2026Multiplication Beyond Groups: Stratified Fourier Mechanisms in Transformer Circuits8 Jul 2026
- 2026Rating the Pitch, Not the Product: User Evaluations of LLMs Reflect Expectations More Than Performance6 Jul 2026
- 2026Structure-Specific Representational Priors Causally Control the Grokking Delay5 Jul 2026
- 2026Prime Fourier Embeddings: A Principled Basis for Modular Arithmetic22 Jun 2026
- 2026Circuit Synchronization Precedes Generalization: A Causal Precursor to Grokking11 Jun 2026
- 2026Beyond Neural Collapse: Task-Intrinsic Geometry Governs Neural Representations in Modular Arithmetic8 Jun 2026
- 2026Deciphering Two Training Clocks in Grokking via Deep Linear Network Theory with Conditional ReLU Reduction4 Jun 2026
- 2026Unveiling Memorization-Generalization Coexistence: A Case Study on Arithmetic Tasks with Label Noise18 May 2026
12 newest of 74 All 74 (JSON)