Grokfast: Accelerated Grokking by Amplifying Slow Gradients
Not on the map. Why?
Abstract (arXiv)
One puzzling artifact in machine learning dubbed grokking is where delayed generalization is achieved tenfolds of iterations after near perfect overfitting to the training data. Focusing on the long delay itself on behalf of machine learning practitioners, our goal is to accelerate generalization of a model under grokking phenomenon. By regarding a series of gradients of a parameter over training iterations as a random signal over time, we can spectrally decompose the parameter trajectories under gradient descent into two components: the fast-varying, overfitting-yielding component and the slow-varying, generalization-inducing component. This analysis allows us to accelerate the grokking phenomenon more than × 50 with only a few lines of code that amplifies the slow-varying components of gradients. The experiments show that our algorithm applies to diverse tasks involving images, languages, and graphs, enabling practical availability of this peculiar artifact of sudden generalization. Our code is available at https://github.com/ironjr/grokfast.
Key facts. Cited by 38 papers in the map (data through 7 Oct 2026). Builds on 18 of its 28 references that are in the map. First posted on arXiv 30 May 2024.
Builds on
18 of 28 references.
References · 18
- 2017Attention Is All You Needcited by 59,932
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2016Layer Normalizationcited by 5,579
- 2015Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classificationcited by 3,590
- 2016Gaussian Error Linear Units (GELUs)cited by 3,431
- 2018Reconciling modern machine learning practice and the bias-variance trade-offcited by 919
- 2023Progress measures for grokking via mechanistic interpretabilitycited by 822
- 2019Deep Double Descent: Where Bigger Models and More Data Hurtcited by 667
- 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 599
- 2022Towards Understanding Grokking: An Effective Theory of Representation Learningcited by 229
- 2022Hidden Progress in Deep Learning: SGD Learns Parities Near the Computational Limitcited by 184
- 2022Omnigrok: Grokking Beyond Algorithmic Datacited by 142
6 more
- 2022The Slingshot Mechanism: An Empirical Study of Adaptive Optimizers and the Grokking Phenomenoncited by 90
- 2023Grokking modular arithmeticcited by 77
- 2023Unifying Grokking and Double Descentcited by 49
- 2021Multi-scale Feature Learning Dynamics: Insights for Double Descentcited by 24
- 2024Unified View of Grokking, Double Descent and Emergent Abilities: A Perspective from Circuits Competitioncited by 23
- 2023Training Dynamics of Deep Network Linear Regionscited by 3
Built on by
Citing papers per year: 2024: 4; 2025: 12; 2026: 22.
38 papers.
Sort:
By area:
- 2024The AdEMAMix Optimizer: Better, Faster, Oldercited by 47
- 2024WARP: On the Benefits of Weight Averaged Rewarded Policiescited by 42
- 2025RL Grokking Recipe: How Does RL Unlock and Transfer New Algorithms in LLMs?cited by 23
- 2025Let Me Grok for You: Accelerating Grokking via Embedding Transfer from a Weaker Modelcited by 13
- 2025Grokking in the Wild: Data Augmentation for Real-World Multi-Hop Reasoning with Transformerscited by 12
- 2025Position: Solve Layerwise Linear Models First to Understand Neural Dynamical Phenomena (Neural Collapse, Emergence, Lazy/Rich Regime, and Grokking)cited by 8
- 2025Mechanistic Insights into Grokking from the Embedding Layercited by 6
- 2024Language Models "Grok" to Copycited by 5
- 2024An Ensemble Approach for Brain Tumor Segmentation and Synthesiscited by 5
- 2026A Systematic Empirical Study of Grokking: Depth, Architecture, Activation, and Regularizationcited by 5
- 2026The Geometric Inductive Bias of Grokking: Bypassing Phase Transitions via Architectural Topologycited by 4
- 2026Model Capacity Determines Grokking through Competing Memorisation and Generalisation Speedscited by 4
26 more
- 2026Grokking as a Falsifiable Finite-Size Transitioncited by 3
- 2026Agentic Discovery of Neural Architectures: AIRA-Compose and AIRA-Designcited by 3
- 2026Structure-Specific Representational Priors Causally Control the Grokking Delaycited by 3
- 2025NeuralGrok: Accelerate Grokking by Neural Gradient Transformationcited by 2
- 2025GrokAlign: Geometric Characterisation and Acceleration of Grokkingcited by 2
- 2025MT-DAO: Multi-Timescale Distributed Adaptive Optimizers with Local Updatescited by 2
- 2025Greedy Alignment Principle for Optimizer Selectioncited by 2
- 2026Spectral Entropy Collapse as a Phase Transition in Delayed Generalisation: An Interventional and Predictive Framework for Grokkincited by 2
- 2026ILDR: Geometric Early Detection of Grokkingcited by 2
- 2026Circuit Synchronization Precedes Generalization: A Causal Precursor to Grokkingcited by 2
- 2025Beyond Progress Measures: Theoretical Insights into the Mechanism of Grokkingcited by 1
- 2025Egalitarian Gradient Descent: A Simple Approach to Accelerated Grokkingcited by 1
- 2025When Data Falls Short: Grokking Below the Critical Thresholdcited by 1
- 2026Is Grokking Worthwhile? Functional Analysis and Transferability of Generalization Circuits in Transformerscited by 1
- 2026Dynamic Momentum Recalibration in Online Gradient Learningcited by 1
- 2026Detecting overfitting in Neural Networks during long-horizon grokking using Random Matrix Theorycited by 1
- 2026Radial Suppression Accelerates Algorithmic Generalization: A Geometric Analysis of Delayed Generalizationcited by 1
- 2026How to Tame Grokking: Representation Geometry as a Control Signalcited by 1
- 2026The Active Ingredient in Muon's Grokkingcited by 1
- 2026The Road Taken: The Role of Optimizers at the Edge of Stabilitycited by 1
- 2026Mitigating Position-Shift Failures in Text-Based Modular Arithmetic via Position Curriculum and Template Diversitycited by 0
- 2026Learning Rate Engineering: From Coarse Single Parameter to Layered Evolutioncited by 0
- 2026The Geometric Structure of Models Learning Sparse Datacited by 0
- 2026The Kinetics of Training: A Driven-Nucleation Rate Law for Emergence, Plasticity Loss, and Circuit Control in Language Modelscited by 0
- 2026Algorithmic Information Dynamics of Learning: A Certified, Differentiable Complexity Controller for Grokkingcited by 0
- 2026A Journey to the Edge of Stabilitycited by 0
- 2026A Journey to the Edge of Stability26 Sep 2026
- 2026The Road Taken: The Role of Optimizers at the Edge of Stability19 Aug 2026
- 2026Algorithmic Information Dynamics of Learning: A Certified, Differentiable Complexity Controller for Grokking14 Aug 2026
- 2026The Kinetics of Training: A Driven-Nucleation Rate Law for Emergence, Plasticity Loss, and Circuit Control in Language Models29 Jul 2026
- 2026How to Tame Grokking: Representation Geometry as a Control Signal13 Jul 2026
- 2026The Active Ingredient in Muon's Grokking6 Jul 2026
- 2026Structure-Specific Representational Priors Causally Control the Grokking Delay5 Jul 2026
- 2026Radial Suppression Accelerates Algorithmic Generalization: A Geometric Analysis of Delayed Generalization30 Jun 2026
- 2026Circuit Synchronization Precedes Generalization: A Causal Precursor to Grokking11 Jun 2026
- 2026Agentic Discovery of Neural Architectures: AIRA-Compose and AIRA-Design15 May 2026
- 2026Detecting overfitting in Neural Networks during long-horizon grokking using Random Matrix Theory12 May 2026
- 2026Model Capacity Determines Grokking through Competing Memorisation and Generalisation Speeds10 May 2026
26 more
- 2026The Geometric Structure of Models Learning Sparse Data8 May 2026
- 2026Learning Rate Engineering: From Coarse Single Parameter to Layered Evolution30 Apr 2026
- 2026ILDR: Geometric Early Detection of Grokking22 Apr 2026
- 2026Spectral Entropy Collapse as a Phase Transition in Delayed Generalisation: An Interventional and Predictive Framework for Grokkin13 Apr 2026
- 2026A Systematic Empirical Study of Grokking: Depth, Architecture, Activation, and Regularization26 Mar 2026
- 2026Grokking as a Falsifiable Finite-Size Transition25 Mar 2026
- 2026Dynamic Momentum Recalibration in Online Gradient Learning6 Mar 2026
- 2026The Geometric Inductive Bias of Grokking: Bypassing Phase Transitions via Architectural Topology5 Mar 2026
- 2026Is Grokking Worthwhile? Functional Analysis and Transferability of Generalization Circuits in Transformers14 Jan 2026
- 2026Mitigating Position-Shift Failures in Text-Based Modular Arithmetic via Position Curriculum and Template Diversity7 Jan 2026
- 2025Greedy Alignment Principle for Optimizer Selection6 Dec 2025
- 2025When Data Falls Short: Grokking Below the Critical Threshold6 Nov 2025
- 2025MT-DAO: Multi-Timescale Distributed Adaptive Optimizers with Local Updates6 Oct 2025
- 2025Egalitarian Gradient Descent: A Simple Approach to Accelerated Grokking6 Oct 2025
- 2025RL Grokking Recipe: How Does RL Unlock and Transfer New Algorithms in LLMs?25 Sep 2025
- 2025GrokAlign: Geometric Characterisation and Acceleration of Grokking14 Jun 2025
- 2025Mechanistic Insights into Grokking from the Embedding Layer21 May 2025
- 2025Grokking in the Wild: Data Augmentation for Real-World Multi-Hop Reasoning with Transformers29 Apr 2025
- 2025NeuralGrok: Accelerate Grokking by Neural Gradient Transformation24 Apr 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
- 2025Position: Solve Layerwise Linear Models First to Understand Neural Dynamical Phenomena (Neural Collapse, Emergence, Lazy/Rich Regime, and Grokking)28 Feb 2025
- 2024An Ensemble Approach for Brain Tumor Segmentation and Synthesis26 Nov 2024
- 2024Language Models "Grok" to Copy14 Sep 2024
- 2024The AdEMAMix Optimizer: Better, Faster, Older5 Sep 2024
- 2024WARP: On the Benefits of Weight Averaged Rewarded Policies24 Jun 2024
- 2024WARP: On the Benefits of Weight Averaged Rewarded Policiescited by 42
- 2024WARP: On the Benefits of Weight Averaged Rewarded Policies24 Jun 2024
- 2024Language Models "Grok" to Copycited by 5
- 2024Language Models "Grok" to Copy14 Sep 2024
- 2024The AdEMAMix Optimizer: Better, Faster, Oldercited by 47
- 2025RL Grokking Recipe: How Does RL Unlock and Transfer New Algorithms in LLMs?cited by 23
- 2025Let Me Grok for You: Accelerating Grokking via Embedding Transfer from a Weaker Modelcited by 13
- 2025Position: Solve Layerwise Linear Models First to Understand Neural Dynamical Phenomena (Neural Collapse, Emergence, Lazy/Rich Regime, and Grokking)cited by 8
- 2025Mechanistic Insights into Grokking from the Embedding Layercited by 6
- 2024An Ensemble Approach for Brain Tumor Segmentation and Synthesiscited by 5
- 2026A Systematic Empirical Study of Grokking: Depth, Architecture, Activation, and Regularizationcited by 5
- 2026The Geometric Inductive Bias of Grokking: Bypassing Phase Transitions via Architectural Topologycited by 4
- 2026Model Capacity Determines Grokking through Competing Memorisation and Generalisation Speedscited by 4
- 2026Grokking as a Falsifiable Finite-Size Transitioncited by 3
- 2026Structure-Specific Representational Priors Causally Control the Grokking Delaycited by 3
- 2025NeuralGrok: Accelerate Grokking by Neural Gradient Transformationcited by 2
12 most cited of 34 All 34 (JSON)
- 2026A Journey to the Edge of Stability26 Sep 2026
- 2026The Road Taken: The Role of Optimizers at the Edge of Stability19 Aug 2026
- 2026Algorithmic Information Dynamics of Learning: A Certified, Differentiable Complexity Controller for Grokking14 Aug 2026
- 2026The Kinetics of Training: A Driven-Nucleation Rate Law for Emergence, Plasticity Loss, and Circuit Control in Language Models29 Jul 2026
- 2026How to Tame Grokking: Representation Geometry as a Control Signal13 Jul 2026
- 2026The Active Ingredient in Muon's Grokking6 Jul 2026
- 2026Structure-Specific Representational Priors Causally Control the Grokking Delay5 Jul 2026
- 2026Radial Suppression Accelerates Algorithmic Generalization: A Geometric Analysis of Delayed Generalization30 Jun 2026
- 2026Circuit Synchronization Precedes Generalization: A Causal Precursor to Grokking11 Jun 2026
- 2026Detecting overfitting in Neural Networks during long-horizon grokking using Random Matrix Theory12 May 2026
- 2026Model Capacity Determines Grokking through Competing Memorisation and Generalisation Speeds10 May 2026
- 2026The Geometric Structure of Models Learning Sparse Data8 May 2026
12 newest of 34 All 34 (JSON)