Weight Decay as a Catalyst for Grokking

This direction is merged into another direction: delayed generalization. Its last version stays readable and citable here.

Version 1 of 125 papers40 conceptsfrozen 2026-10-04

In the traditional view of machine learning, generalization is a steady climb: as training error decreases, validation error follows until the model begins to overfit. However, recent research into "grokking" has revealed a more dramatic landscape. In many algorithmic and reasoning tasks, models first achieve perfect training accuracy through rote memorization, only to "grok"—suddenly achieving perfect generalization—thousands of steps later. This transition is not accidental; it is driven by a fundamental tug-of-war between memorization and simplicity, where weight decay acts as the decisive tie-breaker.

The Competition Between Circuits

When a neural network is tasked with learning a rule—such as modular arithmetic or logical reasoning—it can succeed in two ways. It can either build a "memorization circuit" that maps specific inputs to outputs, or an "algorithmic circuit" that implements the underlying logic.

Early in training, the network rushes to minimize loss, and memorization is often the path of least resistance. However, as Boshi Wang and colleagues demonstrate in Grokking of Implicit Reasoning in Transformers, these two strategies exist in a state of competition. Memorization circuits are typically "heavy," requiring high-norm weights to store specific data points. Algorithmic circuits are "light," using compact, structured representations to cover the entire domain.

Weight Decay as a Simplicity Bias

Weight decay (L2 regularization) is often viewed as a simple trick to prevent overfitting. But in the context of grokking, it serves a more profound role: it is a "functional filter" that systematically prunes high-norm memorization strategies.

As explored by Anders Krogh and John A. Hertz in their foundational 1991 paper, weight decay forces the optimizer to choose the "simplest" solution among many that satisfy the training data. In the late stages of training—long after the training loss has hit zero—weight decay continues to apply pressure. This "drift" along the solution manifold, described by Etienne Boursier in A Theoretical Framework for Grokking, eventually collapses the complex memorization circuits, leaving only the efficient, generalizable ones behind.

The Phase Transition to Generalization

This process is not gradual but characterized by sharp phase transitions. Research from Alethea Power and the OpenAI team in Grokking: Generalization Beyond Overfitting shows that without sufficient weight decay, models may remain stuck in a "memorization regime" indefinitely.

Key evidence for this mechanism includes:

Beyond Neural Networks

The fact that grokking occurs in linear regression and Gaussian Processes when complexity penalties are applied (Jack Miller et al., Grokking Beyond Neural Networks) suggests that this is a universal property of optimization. By penalizing the "norm" or complexity of a solution, we provide the necessary catalyst for the model to stop reciting the training data and start understanding the rules that govern it.

Papers in this version

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_weight_decay_as_a_catalyst_for_grokking_db4d85fe,
  title = {Weight Decay as a Catalyst for Grokking},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/weight-decay-as-a-catalyst-for-grokking/rdr_db4d85fe2f6948a59de48ecf2a6cce48},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-25},
}

This exact version (version 1, frozen text):

@misc{lacuna_weight_decay_as_a_catalyst_for_grokking_db4d85fe_v1,
  title = {Weight Decay as a Catalyst for Grokking},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/weight-decay-as-a-catalyst-for-grokking/rdr_db4d85fe2f6948a59de48ecf2a6cce48/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-25},
}