arXiv AI

Misalignment of Low-Loss Regions Causes Grokking

arXiv Machine Learning
Nov 16

Deep Neural Networks Training Efficiency: Does Grokking Modify its Dynamics?

The paper investigates whether grokking—delayed out‑of‑distribution generalization after overfitting—affects training efficiency, defined as accuracy per unit energy, in deep neural networks. Using modular arithmetic and MNIST tasks, two network models, and 16‑, 32‑, and 64‑bit precision, the authors employ Orthograd to probe training dynamics over short (≤500 epochs) and long (≤20,000 epochs) runs. They find that while grokking manifests as a sharp test‑accuracy improvement after a sustained train‑test gap, it does not produce noticeable deviations from the typically decreasing efficiency curves, even when Orthograd induces grokking in long‑horizon experiments.

By Eduardo Cueto-Mendoza, John D. Kelleher
arXiv Machine Learning
Sep 11

Quantifying the Memorization-to-Generalization Transition: Scaling Laws and Phase Structure in Grokking

The study investigates the delayed transition from memorization to generalization—known as grokking—in two‑hidden‑layer MLPs trained on modular arithmetic. By exploring 384 hyperparameter configurations, the authors derive a power‑law scaling relation for the onset time of generalization, showing that data complexity dominates over model capacity. A clear phase boundary at weight decay around 1.0 separates grokking from non‑grokking regimes, and weight norm trajectories indicate implicit regularization during the transition.

By Anish Kataria
arXiv Machine Learning
Oct 19

Flat Loss, Evolving Features: Grokking in Modular Addition

The paper demonstrates that neural networks can maintain perfect training accuracy while their training cross‑entropy remains nearly flat at a positive level, a phenomenon observed on modular addition tasks. Using ReLU networks with supported‑Polar hidden updates, normalized output‑layer updates, and weight decay, the authors show that hidden features evolve and held‑out accuracy can rise from zero to above 90% even as cross‑entropy stays flat. Theoretical results for one‑hidden‑layer networks and empirical evidence from deeper networks and transformers confirm that correct classification need not coincide with minimal cross‑entropy, challenging conventional assumptions about loss plateaus.

By Akash Kumar, Karthik Sankaranarayanan
arXiv AI
Oct 27

Subspace Crystallization in Grokking: Rank Compression Tracks the Phase Transition

The paper investigates the relationship between rank compression of weight matrices and the phenomenon of grokking in neural networks. Using a mean‑field MLP and a one‑layer transformer trained on modular arithmetic, the authors find that rank compression occurs after the onset of grokking, not during memorization, and that the effective rank drops sharply around 900 steps following the grokking onset. They also observe a subspace crystallization effect, where the number of singular directions needed to preserve test accuracy shrinks dramatically during the transition, and demonstrate that artificially imposing low rank does not accelerate grokking, indicating that compression is a signature rather than a cause of the phenomenon.

By Shlok Mehendale, Paras Chopra
arXiv Machine Learning
Oct 9

Grokking or Glitching? How Low-Precision Drives Slingshot Loss Spikes

Deep neural networks can exhibit periodic loss spikes known as the "Slingshot Mechanism" during long‑term training. This paper shows that such spikes arise from finite‑precision floating‑point arithmetic: when the correct‑class logit becomes much larger than the others, the gradient for that class is rounded to zero while others remain nonzero, breaking the zero‑sum constraint and creating a positive feedback loop that inflates feature and classifier norms. The authors term this Numerical Feature Inflation (NFI) and demonstrate that it explains the rapid norm growth, reappearance of gradients, and loss spikes, while also showing that partial absorption can still cause hidden norm growth without visible spikes.

By Hanqing Liu, Jianjun Cao, Yuanze Li, Zijian Zhou
arXiv Machine Learning
Oct 9

Do Flatter Minima Drive Better Generalization? An Algorithmic Separation in Grokking

The paper investigates whether flatter loss landscapes drive better generalization in the context of Grokking. It shows that sharpness‑aware minimization (SAM) alone does not reliably induce the transition to generalization, but when combined with weight decay, SAM can accelerate this transition up to four times faster. The authors provide a theoretical analysis using a minimal two‑layer ReLU model, demonstrating that flatness alone cannot distinguish memorizing from generalizing solutions, while weight decay favors generalization and a local stability window explains SAM’s effect.

By Mohnish Harwani