Low-Dimensional and Transversely Curved Optimization Dynamics in Grokking
Not on the map. Why?
Abstract (arXiv)
Grokking -- the delayed transition from memorization to generalization in small algorithmic tasks -- remains poorly understood. We present a geometric analysis of optimization dynamics in transformers trained on modular arithmetic. PCA of attention weight trajectories reveals that training evolves predominantly within a low-dimensional execution subspace, with a single principal component capturing 68-83% of trajectory variance. To probe loss-landscape geometry, we measure commutator defects -- the non-commutativity of successive gradient steps -- and project them onto this learned subspace. We find that curvature grows sharply in directions orthogonal to the execution subspace while the trajectory remains largely confined to it. Importantly, curvature growth consistently precedes generalization across learning rates and hyperparameter regimes, with the lead time obeying a power law in the grokking timescale. Causal intervention experiments show that motion along the learned subspace is necessary for grokking, while artificially increasing curvature is insufficient. Together, these results support a geometric account in which grokking reflects escape from a metastable regime characterized by low-dimensional confinement and transverse curvature accumulation. All findings replicate across this learning-rate range, a qualitatively different slow regime (lr=5e-5, wd=0.1, 3 layers), and three random seeds, though alignment dynamics differ quantitatively between regimes. Causal intervention experiments establish that orthogonal gradient flow is necessary but not sufficient for grokking: suppressing it prevents generalization with a monotonic dose-response across four operations, while artificially boosting curvature defects has no effect.
Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). Builds on 18 of its 26 references that are in the map. First posted on arXiv 18 Feb 2026.
Builds on
18 of 26 references.
References · 18
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2017Visualizing the Loss Landscape of Neural Netscited by 1,126
- 2023Progress measures for grokking via mechanistic interpretabilitycited by 822
- 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 599
- 2018Loss Surfaces, Mode Connectivity, and Fast Ensembling of DNNscited by 585
- 2018Measuring the Intrinsic Dimension of Objective Landscapescited by 364
- 2018Essentially No Barriers in Neural Network Energy Landscapecited by 328
- 2023The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural Networkscited by 153
- 2022Omnigrok: Grokking Beyond Algorithmic Datacited by 142
- 2023Explaining grokking through circuit efficiencycited by 105
- 2023Grokking as the Transition from Lazy to Rich Training Dynamicscited by 102
- 2022The Slingshot Mechanism: An Empirical Study of Adaptive Optimizers and the Grokking Phenomenoncited by 90
6 more
- 2023A Tale of Two Circuits: Grokking as Competition of Sparse and Dense Subnetworkscited by 78
- 2023Dichotomy of Early and Late Phase Implicit Biases Can Provably Induce Grokkingcited by 76
- 2019Large Scale Structure of Neural Network Loss Landscapescited by 68
- 2023Unifying Grokking and Double Descentcited by 49
- 2026Low-Dimensional Execution Manifolds in Transformer Learning Dynamics: Evidence from Modular Arithmetic Taskscited by 7
- 2026Phase Transitions for Feature Learning in Neural Networkscited by 6
Built on by
Citing papers per year: 2026: 10.
10 papers.
- 2026The Geometry of Multi-Task Grokking: Transverse Instability, Superposition, and Weight Decay Phase Structurecited by 8
- 2026Early-Warning Signals of Grokking via Loss-Landscape Geometrycited by 6
- 2026Spectral Edge Dynamics of Training Trajectories: Signal--Noise Geometry Across Scalescited by 5
- 2026Optimizer-Induced Low-Dimensional Drift and Transverse Dynamics in Transformer Trainingcited by 3
- 2026Spectral Edge Dynamics Reveal Functional Modes of Learningcited by 2
- 2026Weight Decay Regimes in Grokking Transformers: Cheap Online Diagnosticscited by 2
- 2026The Lifecycle of the Spectral Edge: From Gradient Learning to Weight-Decay Compressioncited by 1
- 2026Low-Rank Decay for Grokking in Scale-Invariant Transformers: A Spectral-Geometric Viewcited by 1
- 2026Global Low-Rank, Local Full-Rank: The Holographic Encoding of Learned Algorithmscited by 0
- 2026Feature Repulsion and Spectral Lock-in: An Empirical Study of Two-Layer Network Grokkingcited by 0
- 2026Low-Rank Decay for Grokking in Scale-Invariant Transformers: A Spectral-Geometric View3 Jun 2026
- 2026Weight Decay Regimes in Grokking Transformers: Cheap Online Diagnostics19 May 2026
- 2026Feature Repulsion and Spectral Lock-in: An Empirical Study of Two-Layer Network Grokking28 Apr 2026
- 2026The Lifecycle of the Spectral Edge: From Gradient Learning to Weight-Decay Compression8 Apr 2026
- 2026Spectral Edge Dynamics Reveal Functional Modes of Learning6 Apr 2026
- 2026Spectral Edge Dynamics of Training Trajectories: Signal--Noise Geometry Across Scales14 Mar 2026
- 2026Optimizer-Induced Low-Dimensional Drift and Transverse Dynamics in Transformer Training27 Feb 2026
- 2026Global Low-Rank, Local Full-Rank: The Holographic Encoding of Learned Algorithms20 Feb 2026
- 2026The Geometry of Multi-Task Grokking: Transverse Instability, Superposition, and Weight Decay Phase Structure19 Feb 2026
- 2026Early-Warning Signals of Grokking via Loss-Landscape Geometry19 Feb 2026