This study provides a rigorous "under the hood" look at why certain architectural tweaks, specifically spherical constraints and Fourier features, dramatically speed up grokking—the phenomenon where a neural network suddenly generalizes long after perfectly fitting its training data. By running nearly 1,000 controlled experiments, the authors reveal that the observed acceleration isn't due to a single "silver bullet" but rather a complex, fragile interaction between geometric constraints, readout normalization, and weight decay.
TL;DR
The paper dissects the "Sphere+Fourier" configuration to show that while spherical projection can accelerate grokking by up to 37x, it is neither sufficient nor strictly necessary on its own. The speedup depends entirely on how projection interacts with other factors like weight decay and logit scaling, and the benefits surprisingly vanish as model depth increases beyond 10 layers.
What Problem Does This Paper Address?
Grokking is a fascinating but poorly understood delay in generalization. In tasks like modular arithmetic, models often hit 100% training accuracy almost immediately but take thousands of additional epochs to "get it" and achieve high test accuracy.
Recent work introduced the Sphere+Fourier configuration, which uses spherical residual streams (projecting hidden vectors to a unit sphere) and Fourier-initialized embeddings to make grokking happen much faster. However, this configuration changes many things at once. The authors of this paper wanted to isolate the variables: Is it the spherical geometry? The Fourier features? The weight decay? Or the way these components talk to each other?
Methods
The researchers conducted a massive complete $2^4$ factorial experiment involving 960 runs. They systematically toggled four key components:
- N (Residual Projection): Forcing hidden vectors onto a unit sphere.
- C (Readout Weight Normalization): Normalizing the rows of the final output layer.
- T (Logit Scale): Adjusting the "temperature" of the output.
- W (Weight Decay): Standard L2 regularization.
They primarily used a one-layer transformer architecture and measured the Restricted Mean Crossing Time (RMST-50K)—essentially the average number of epochs it takes to cross the 95% test accuracy threshold, capped at 50,000 epochs.
Datasets
The study focuses on Modular Arithmetic over prime fields $\mathbb{Z}_p$ for $p \in \{59, 97, 113\}$.
- Tasks: Addition, subtraction, and multiplication.
- Split: A standard 30/70 train/test split.
- Benchmarks: They used five different data partitions and ten different model seeds to ensure the results weren't just "lucky" noise.
Key Insights and Ideas
- Interaction is Everything: Spherical projection (N=1) is a massive accelerator, but only if you have the right "supporting cast." For instance, projected models failed to grok entirely if both readout normalization and weight decay were absent.
- The "Geometry" Confusion: Because projection changes the magnitude of the vectors entering the final layer, it's difficult to tell if the benefit comes from the shape of the data (spherical geometry) or just the scale of the outputs.
- Fourier is a "Nice-to-Have": While Fourier initialization helped (reducing crossing time from ~1,240 to ~720 epochs), the models could still grok rapidly without it. It’s an optimizer, not a requirement.
- The Depth Wall: Perhaps the most surprising finding was that the Sphere+Fourier advantage is highly sensitive to depth. While it works wonders for 1- and 2-layer models, it failed to reach the generalization criterion within 50k epochs for models with 10 or more layers, even as baseline models continued to succeed.
Key Results
The factorial analysis (visualized in Figure 1) shows the dramatic impact of these interactions.

- Speedup: In matched settings with weight decay, adding projection made grokking 8 to 37 times faster.
- Robustness: The "bundle" of Sphere+Fourier features was consistently faster across all five tested data partitions for shallow models.
- Stability vs. Speed: Faster grokking didn't always mean a more stable model. In 2-layer models, the Sphere+Fourier configuration generalized earlier but actually had more runs that eventually "relapsed" (dropped back below 95% accuracy) compared to the slower baseline.

Limitations and Future Work
The authors are careful to note that these findings are currently limited to small modular-arithmetic transformers. Whether these geometric constraints help in large-scale language modeling (LLMs) or computer vision remains an open question.
Furthermore, the failure of the spherical configuration at greater depths suggests that "hard" projection might be too restrictive for complex, multi-layer representations. Future work could investigate "soft" constraints or adaptive projection methods that might scale better with model depth. Finally, the authors suggest that future grokking studies should move beyond just measuring "first crossing" and focus more on the long-term persistence of generalization.
Summary updated