arXiv:2609.10657cs.AISep 2026

Manuscript Offprint

arXiv:2609.10657

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

Anish Kataria

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Neural networks trained past memorization frequently undergo a delayed transition to generalization, a phenomenon known as grokking. Despite theoretical progress on why this transition occurs, the quantitative structure of when it occurs in hyperparameter space remains uncharacterized. We map the memorization-to-generalization boundary across 384 configurations of two-hidden-layer MLPs on modular arithmetic, fitting a power-law scaling relation for generalization onset time: Tgrok∝H−0.27D−2.04η−0.50λ−0.64(R2=0.732;0.821 with interactions)T_{\mathrm{grok}} \propto H^{-0.27} D^{-2.04} \eta^{-0.50} \lambda^{-0.64} (R^{2} = 0.732; 0.821 \text{ with interactions}). The exponent hierarchy reveals that data complexity (D−2.04D^{-2.04}) is the dominant driver of regime transition, not model capacity (H−0.27H^{-0.27}): doubling data accelerates generalization by ∼4×\sim 4\times, while doubling width yields only ∼1.2×\sim 1.2\times. A sharp phase boundary at weight decay λ≳1.0\lambda \gtrsim 1.0 separates grokking from non-grokking configurations, and weight norm trajectories show monotonic compression during the transition, consistent with implicit regularization selecting low-complexity solutions. These results provide a quantitative foundation for predicting and controlling regime transitions in overparameterized networks.

1. Introduction

When do overparameterized neural networks transition from memorizing their training data to genuinely generalizing? This question sits at the center of modern deep learning theory. The double descent phenomenon (Belkin et al., 2019; Nakkiran et al., 2020) shows that generalization can improve beyond the interpolation threshold, and the lazy-to-rich transition (Woodworth et al., 2020; Chizat et al., 2019) identifies feature learning as the mechanism that separates kernel-regime memorization from structured generalization. Yet these frameworks characterize the transition qualitatively; they do not predict when, in training time, a given configuration will cross from one regime to the other.

Grokking (Power et al., 2022) provides a clean experimental window into this question. Networks trained on modular arithmetic first memorize the training set perfectly, then, after continued training with weight decay, abruptly generalize. The delay between memorization and generalization can span orders of magnitude depending on hyperparameters. Mechanistic studies have identified what happens during this transition: Fourier-feature circuits replace memorization lookup tables (Nanda et al., 2023), competing subnetworks resolve in favor of sparse generalizing solutions (Merrill et al., 2023), and weight norms compress toward low-complexity basins (Liu et al., 2023).

What is missing is a quantitative scaling theory: which hyperparameters govern the transition time, in what proportion, and does a phase boundary exist in hyperparameter space? We address this with a 384-configuration sweep, fitting a power-law scaling law for generalization onset time TgrokT_{grok}.