NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

$\mathbf{Li_2}$: A Framework on Dynamics of Feature Emergence and Delayed Generalization

Yuandong TianICLR 2026

Introduction

In deep learning, "grokking" is a fascinating but poorly understood behavior where a model initially overfits to a training set (memorization) and then, after much longer training, suddenly achieves near-perfect accuracy on unseen data (generalization).

Grokking training curve showing delayed generalization

While researchers have observed this empirically, a rigorous mathematical framework has been lacking to explain what specific features emerge, how gradient dynamics drive this transition, and why factors like weight decay or initialization determine whether a model "groks" or remains stuck in memorization. Existing theories, such as the Neural Tangent Kernel (NTK), often fall short because they assume weights do not change significantly from initialization, whereas grokking is fundamentally about the emergence of new, structured features.

This paper introduces the $Li_2$ framework, a mathematical theory that explains this delayed generalization. By decomposing learning into three distinct stages, the authors provide provable scaling laws for feature emergence and explain the effectiveness of specific hyperparameters and optimizers.

The $Li_2$ Framework

The authors propose the $Li_2$ framework, which divides the learning process into three sequential stages:

The three stages of the Li2 framework
  1. Stage I: Lazy Learning: The top layer of the network quickly overfits to the random features provided by the initial weights. At this point, the model appears to be merely memorizing the training data.
  2. Stage II: Independent Feature Learning: Crucially, even during the lazy learning stage, the backpropagated gradient ($G_F$) begins to carry structured information about the task. Each hidden node uses this "leaked" signal to learn task-related features independently. This process follows the gradient ascent of an energy function $\mathcal{E}$, where the local maxima represent the emerging features.
  3. Stage III: Interactive Feature Learning: As features become stronger, hidden nodes begin to interact. The gradient signal shifts to push the model toward missing features, encouraging diversity among the nodes and completing the transition to generalization.

To validate this framework, the authors use Group Representation Theory to analyze group arithmetic tasks (e.g., modular addition). This allows them to mathematically characterize the optimal features and prove when they will remain stable.

Key Insights and Results

  • The "Leaked" Signal and Energy Landscapes: The most critical insight is that the backpropagated gradient acts as a "leaky" messenger. Even when the model fails to generalize, the gradient quietly feeds the hidden layers the structural information needed to build better features. Feature emergence is not a random walk; it is an optimization process where features emerge at the local maxima of an energy function related to Nonlinear Canonical Correlation Analysis (CCA).
  • Provable Scaling Laws and Stability: The authors derived and experimentally verified a scaling law for the boundary between memorization and generalization: $p \sim M^{-1} \log M$ (where $p$ is the training data ratio and $M$ is the group size). If the number of samples is below this threshold, the energy landscape changes, and the only stable solutions are "memorization" peaks.
  • Explaining the Muon Optimizer: The paper provides a first-principles explanation for the recent success of the Muon optimizer. Muon effectively rebalances gradient updates, ensuring the model does not waste capacity by having multiple nodes learn the same feature, thereby accelerating the collection of all necessary task features.
  • Zero-Init Acceleration: Initializing the output layer to zero ("zero-init") can accelerate feature learning by up to 10x because it forces the gradient signal to be cleaner from the very start.
  • Hyperparameter Sensitivity: The framework explains why weight decay is often necessary for grokking: it prevents the gradient signal from vanishing after the model overfits in Stage I. Furthermore, generalization circuits are mathematically more efficient (lower energy) than memorization circuits, but they take longer to climb the energy landscape, explaining the delay.

Limitations and Future Work

While the energy function derivation is general, the specific analysis of local maxima relies on the input having a "group structure." Applying this to less structured data, like natural language or images, remains a challenge. Additionally, while the framework describes the stages well, it does not yet provide a precise formula for the exact time (number of epochs) when the transition from Stage I to Stage II occurs. Future work will also need to extend this full analysis to complex architectures like Transformers, where grokking was first widely noticed.

Summary updated

BibTeX
@inproceedings{tian2026mathbf,
  author = {Yuandong Tian},
  title = {{$\textbackslash\{\}mathbf\{Li\_2\}$: A Framework on Dynamics of Feature Emergence and Delayed Generalization}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=ceIBRhJpUr},
}
Figure