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

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Early Spectral Concentration as a Predictor of Grokking Time in Neural Networks Performing Modular Arithmetic

Evan Johnson
Zenodo (CERN European Organization for Nuclear Research)
Neural Networks and Applications
preprint

Early Spectral Concentration as a Predictor of Grokking Time in Neural Networks Performing Modular Arithmetic

Evan Johnson
preprint en

Abstract

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.

Zenodo (CERN European Organization for Nuclear Research)
Neural Networks and Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon