The Geometry of Grokking: Norm Minimization on the Zero-Loss Manifold

Tiberiu Musat
11/2/2025
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

Grokking is a puzzling phenomenon in neural networks where full generalization occurs only after a substantial delay following the complete memorization of the training data. Previous research has linked this delayed generalization to representation learning driven by weight decay, but the precise underlying dynamics remain elusive. In this paper, we argue that post-memorization learning can be understood through the lens of constrained optimization: gradient descent effectively minimizes the weight norm on the zero-loss manifold. We formally prove this in the limit of infinitesimally small learning rates and weight decay coefficients. To further dissect this regime, we introduce an approximation that decouples the learning dynamics of a subset of parameters from the rest of the network. Applying this framework, we derive a closed-form expression for the post-memorization dynamics of the first layer in a two-layer network. Experiments confirm that simulating the training process using our predicted gradients reproduces both the delayed generalization and representation learning characteristic of grokking.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{musat2025geometry,
  title  = {The Geometry of Grokking: Norm Minimization on the Zero-Loss Manifold},
  author = {Tiberiu Musat},
  year   = {2025},
  eprint = {2511.01938},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.01938v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2511.01938.svg)](https://codeofpaper.com/paper/2511.01938)

Discussion