Early Spectral Concentration as a Predictor of Grokking Time in Neural Networks Performing Modular Arithmetic
Grokking is a phenomenon in which a neural network initially memorizes its training data but suddenly begins to generalize after extended training. It has been widely studied in small-scale algorithmic tasks, where regularization methods such as weight decay can encourage the model to discover a general rule. Although early learning-curve metrics have been used to predict whether grokking will occur (Tikeng Notsawo et al., 2023), estimating the step at which it will occur remains difficult. In modular addition, neural networks often learn to represent numbers as Fourier characters. The discrete Fourier transform (DFT) can be used to analyze these representations and identify the dominant frequencies in the learned embedding matrix. In this paper, I investigate whether early spectral concentration can improve estimates of grokking time beyond those obtained from loss metrics alone. Across 75 trials of a bilinear MLP trained on modular addition, adding spectral concentration and its rate of change to a loss-based linear regression increased the in-sample R² from 0.240 to 0.459. These results suggest that analyzing task-specific learned representations can provide additional information about when generalization may occur.
Authors
- Evan Johnson
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-03
- DOI
- https://doi.org/10.5281/zenodo.24787120
- Primary Topic
- Neural Networks and Applications
- Type
- preprint