To grok or not to grok: Disentangling generalization and memorization on corrupted algorithmic datasets
Not on the map. Why?
Abstract (arXiv)
Robust generalization is a major challenge in deep learning, particularly when the number of trainable parameters is very large. In general, it is very difficult to know if the network has memorized a particular set of examples or understood the underlying rule (or both). Motivated by this challenge, we study an interpretable model where generalizing representations are understood analytically, and are easily distinguishable from the memorizing ones. Namely, we consider multi-layer perceptron (MLP) and Transformer architectures trained on modular arithmetic tasks, where (xi · 100%) of labels are corrupted (i.e. some results of the modular operations in the training set are incorrect). We show that (i) it is possible for the network to memorize the corrupted labels and achieve 100% generalization at the same time; (ii) the memorizing neurons can be identified and pruned, lowering the accuracy on corrupted data and improving the accuracy on uncorrupted data; (iii) regularization methods such as weight decay, dropout and BatchNorm force the network to ignore the corrupted data during optimization, and achieve 100% accuracy on the uncorrupted dataset; and (iv) the effect of these regularization methods is (``mechanistically'') interpretable: weight decay and dropout force all the neurons to learn generalizing representations, while BatchNorm de-amplifies the output of memorizing neurons and amplifies the output of the generalizing ones. Finally, we show that in the presence of regularization, the training dynamics involves two consecutive stages: first, the network undergoes grokking dynamics reaching high train and test accuracy; second, it unlearns the memorizing representations, where the train accuracy suddenly jumps from 100% to 100 (1-xi)%.
Key facts. Cited by 24 papers in the map (data through 14 Oct 2026). Builds on 26 of its 37 references that are in the map. First posted on arXiv 19 Oct 2023.
Builds on
26 of 37 references.
References · 26
- 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 7,005
- 2020Extracting Training Data from Large Language Modelscited by 2,189
- 2016Understanding deep learning requires rethinking generalizationcited by 1,674
- 2023Progress measures for grokking via mechanistic interpretabilitycited by 839
- 2022Quantifying Memorization Across Neural Language Modelscited by 763
- 2017Exploring Generalization in Deep Learningcited by 600
- 2020Learning from Noisy Labels with Deep Neural Networks: A Surveycited by 582
- 2021Deep Learning on a Data Diet: Finding Important Examples Early in Trainingcited by 533
- 2017Robust Loss Functions under Label Noise for Deep Neural Networkscited by 443
- 2020Are we done with ImageNet?cited by 333
- 2018Not All Samples Are Created Equal: Deep Learning with Importance Samplingcited by 328
- 2015Norm-Based Capacity Control in Neural Networkscited by 299
14 more
- 2022Towards Understanding Grokking: An Effective Theory of Representation Learningcited by 230
- 2022Memorization Without Overfitting: Analyzing the Training Dynamics of Large Language Modelscited by 220
- 2022Hidden Progress in Deep Learning: SGD Learns Parities Near the Computational Limitcited by 187
- 2023The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural Networkscited by 156
- 2022Scaling Laws and Interpretability of Learning from Repeated Datacited by 152
- 2022Omnigrok: Grokking Beyond Algorithmic Datacited by 146
- 2018On the importance of single directions for generalizationcited by 99
- 2013Dropout Training as Adaptive Regularizationcited by 93
- 2018Masking: A New Perspective of Noisy Supervisioncited by 93
- 2023A Tale of Two Circuits: Grokking as Competition of Sparse and Dense Subnetworkscited by 83
- 2017Deep Learning from Noisy Image Labels with Quality Embeddingcited by 46
- 2023Predicting Grokking Long Before it Happens: A look into the loss landscape of models which grokcited by 35
- 2022Grokking phase transitions in learning local rules with gradient descentcited by 28
- 2015Distinct types of eigenvector localization in networkscited by 4
Built on by
Citing papers per year: 2024: 5; 2025: 10; 2026: 9.
24 papers.
Sort:
By area:
- 2024Learning to grok: Emergence of in-context learning and skill composition in modular arithmetic taskscited by 40
- 2024Critical Data Size of Language Models from a Grokking Perspectivecited by 24
- 2024Towards Uncovering How Large Language Model Works: An Explainability Perspectivecited by 22
- 2024Information-Theoretic Progress Measures reveal Grokking is an Emergent Phase Transitioncited by 17
- 2026FIRE-Bench: Evaluating AI Agents on the Rediscovery of Scientific Insightscited by 16
- 2025Provable Scaling Laws of Feature Emergence from Learning Dynamics of Grokkingcited by 15
- 2024Towards Empirical Interpretation of Internal Circuits and Properties in Grokked Transformers on Modular Polynomialscited by 14
- 2025Can Interpretation Predict Behavior on Unseen Data?cited by 8
- 2025Learning words in groups: fusion algebras, tensor ranks and grokkingcited by 4
- 2025On the geometry and topology of representations: the manifolds of modular additioncited by 3
- 2025Grokking vs. Learning: Same Features, Different Encodingscited by 2
- 2025TRACES: Temporal Recall with Contextual Embeddings for Real-Time Video Anomaly Detectioncited by 1
12 more
- 2025When Data Falls Short: Grokking Below the Critical Thresholdcited by 1
- 2026On the Dynamics of Delayed Generalization in Linear Modelscited by 1
- 2026Unveiling Memorization-Generalization Coexistence: A Case Study on Arithmetic Tasks with Label Noisecited by 1
- 2026Batch Normalization Amplifies Memorization and Privacy Riskscited by 1
- 2026From Symmetry to Invariance: Learning Galois Equivalent Representations in Finite Fieldscited by 1
- 2025Tracing the Path to Grokking: Embeddings, Dropout, and Network Activationcited by 0
- 2025Learning Pseudorandom Numbers with Transformers: Permuted Congruential Generators, Curricula, and Interpretabilitycited by 0
- 2025LLMs for Low-Resource Dialect Translation Using Context-Aware Prompting: A Case Study on Sylheticited by 0
- 2026Latent Algorithmic Structure Precedes Grokking: A Mechanistic Study of ReLU MLPs on Modular Arithmeticcited by 0
- 2026Emergence via Phase Transitions: Mechanism Landscapes and Universal Convergence Across Complex Systemscited by 0
- 2026Shortcut Before Circuit: Document Statistics Time In-Context Conflict Resolutioncited by 0
- 2026PrimeScientist: Strategic Allocation of Research Effort in Autonomous Researchcited by 0
- 2026PrimeScientist: Strategic Allocation of Research Effort in Autonomous Research15 Sep 2026
- 2026Shortcut Before Circuit: Document Statistics Time In-Context Conflict Resolution25 Aug 2026
- 2026From Symmetry to Invariance: Learning Galois Equivalent Representations in Finite Fields23 Aug 2026
- 2026Emergence via Phase Transitions: Mechanism Landscapes and Universal Convergence Across Complex Systems25 May 2026
- 2026Batch Normalization Amplifies Memorization and Privacy Risks23 May 2026
- 2026Unveiling Memorization-Generalization Coexistence: A Case Study on Arithmetic Tasks with Label Noise18 May 2026
- 2026Latent Algorithmic Structure Precedes Grokking: A Mechanistic Study of ReLU MLPs on Modular Arithmetic24 Mar 2026
- 2026On the Dynamics of Delayed Generalization in Linear Models9 Feb 2026
- 2026FIRE-Bench: Evaluating AI Agents on the Rediscovery of Scientific Insights2 Feb 2026
- 2025On the geometry and topology of representations: the manifolds of modular addition31 Dec 2025
- 2025LLMs for Low-Resource Dialect Translation Using Context-Aware Prompting: A Case Study on Sylheti24 Nov 2025
- 2025When Data Falls Short: Grokking Below the Critical Threshold6 Nov 2025
12 more
- 2025TRACES: Temporal Recall with Contextual Embeddings for Real-Time Video Anomaly Detection1 Nov 2025
- 2025Learning Pseudorandom Numbers with Transformers: Permuted Congruential Generators, Curricula, and Interpretability30 Oct 2025
- 2025Provable Scaling Laws of Feature Emergence from Learning Dynamics of Grokking25 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
- 2025Can Interpretation Predict Behavior on Unseen Data?8 Jul 2025
- 2025Grokking vs. Learning: Same Features, Different Encodings3 Feb 2025
- 2024Information-Theoretic Progress Measures reveal Grokking is an Emergent Phase Transition16 Aug 2024
- 2024Learning to grok: Emergence of in-context learning and skill composition in modular arithmetic tasks4 Jun 2024
- 2024Towards Empirical Interpretation of Internal Circuits and Properties in Grokked Transformers on Modular Polynomials26 Feb 2024
- 2024Towards Uncovering How Large Language Model Works: An Explainability Perspective16 Feb 2024
- 2024Critical Data Size of Language Models from a Grokking Perspective19 Jan 2024
- 2024Learning to grok: Emergence of in-context learning and skill composition in modular arithmetic taskscited by 40
- 2024Critical Data Size of Language Models from a Grokking Perspectivecited by 24
- 2024Information-Theoretic Progress Measures reveal Grokking is an Emergent Phase Transitioncited by 17
- 2025Provable Scaling Laws of Feature Emergence from Learning Dynamics of Grokkingcited by 15
- 2024Towards Empirical Interpretation of Internal Circuits and Properties in Grokked Transformers on Modular Polynomialscited by 14
- 2025Can Interpretation Predict Behavior on Unseen Data?cited by 8
- 2025Learning words in groups: fusion algebras, tensor ranks and grokkingcited by 4
- 2025On the geometry and topology of representations: the manifolds of modular additioncited by 3
- 2025Grokking vs. Learning: Same Features, Different Encodingscited by 2
- 2025TRACES: Temporal Recall with Contextual Embeddings for Real-Time Video Anomaly Detectioncited by 1
- 2025When Data Falls Short: Grokking Below the Critical Thresholdcited by 1
- 2026On the Dynamics of Delayed Generalization in Linear Modelscited by 1
12 most cited of 21 All 21 (JSON)
- 2026Shortcut Before Circuit: Document Statistics Time In-Context Conflict Resolution25 Aug 2026
- 2026From Symmetry to Invariance: Learning Galois Equivalent Representations in Finite Fields23 Aug 2026
- 2026Emergence via Phase Transitions: Mechanism Landscapes and Universal Convergence Across Complex Systems25 May 2026
- 2026Batch Normalization Amplifies Memorization and Privacy Risks23 May 2026
- 2026Unveiling Memorization-Generalization Coexistence: A Case Study on Arithmetic Tasks with Label Noise18 May 2026
- 2026Latent Algorithmic Structure Precedes Grokking: A Mechanistic Study of ReLU MLPs on Modular Arithmetic24 Mar 2026
- 2026On the Dynamics of Delayed Generalization in Linear Models9 Feb 2026
- 2025On the geometry and topology of representations: the manifolds of modular addition31 Dec 2025
- 2025LLMs for Low-Resource Dialect Translation Using Context-Aware Prompting: A Case Study on Sylheti24 Nov 2025
- 2025When Data Falls Short: Grokking Below the Critical Threshold6 Nov 2025
- 2025TRACES: Temporal Recall with Contextual Embeddings for Real-Time Video Anomaly Detection1 Nov 2025
- 2025Learning Pseudorandom Numbers with Transformers: Permuted Congruential Generators, Curricula, and Interpretability30 Oct 2025
12 newest of 21 All 21 (JSON)