arXiv:2610.18811cs.LGOct 2026

Manuscript Offprint

arXiv:2610.18811

Statistical Vignettes on the Grokking Phenomenon

Baye Malick Gning, Elvis Dohmatob

Abstract

In this work, we study grokking in a simple, analytically tractable setting whose rich phenomenology allows us to disentangle the effects of initialization, signal strength, weight decay, sample size, and input dimension. These factors can produce superficially similar learning curves through distinct mechanisms, complicating their interpretation. Our analysis distinguishes early fitting through nuisance features, core feature learning, and delayed generalization. We identify sharp conditions under which grokking provably occurs and derive analytic asymptotic expressions for the lengths of the generalization plateaus. Our results also characterize regimes of early generalization and failure to reach a prescribed test accuracy target. We show that the interpolation edge constitutes a distinct dynamical regime, where vanishing spectral gaps separate core learning from generalization, helping clarify the role of proximity to interpolation in existing accounts of grokking. The resulting picture is analogous to fast and slow phases in chemical kinetics and suggests that the lazy-to-rich transition discussed in the literature may reflect a similar separation of dynamical time scales. Our theoretical results are faithfully supported by extensive experiments.

1. Introduction

Grokking describes the delayed emergence of generalization after a model has already achieved high training accuracy. Since its discovery on algorithmic tasks (Power et al., 2022), it has been associated with representation learning, regularization, initialization, and proximity to interpolation. These perspectives raise a common question: what determines the delay between fitting the training data and generalizing? Answering this question requires understanding both optimization and statistics. High training accuracy, learning a useful feature, and attaining high test accuracy are distinct events, and similar learning curves can conceal different reasons for their separation.

We investigate these questions in a simple, analytically tractable setting with a planted core feature and a model that is bilinear on the core dimension. Despite its simplicity, this setting exhibits rich phenomenology, allowing us to disentangle the optimization dynamics of core learning and nuisance fitting from their statistical consequences for generalization. Our analysis identifies how initialization, signal strength, regularization, and sample-to-dimension ratio jointly determine whether and when grokking occurs. In particular, it quantifies grokking without weight decay and reveals the distinctive role of the interpolation edge: even when the core coefficient approaches its desired value, residual nuisance contributions can delay or prevent attainment of a prescribed test accuracy. This provides a unified setting in which to examine several mechanisms often studied separately.

Contributions. Our main contributions are as follows:

• Quantitative separation of learning time scales. We derive the exact gradient-flow equations for our model (Section 2) and analyze their fast and slow dynamics using a singular perturbation perspective. We establish a logistic approximation for core learning and quantitative bounds on the relaxation and tracking of nuisance weights. These results distinguish the regime below interpolation from the interpolation edge, where a vanishing spectral gap slows nuisance relaxation and creates a further separation between core learning and generalization (Section 3).

• Conditions for grokking and plateau lengths. We establish a high-dimensional phase diagram separating early generalization, grokking, and failure to attain a prescribed test accuracy target. Where grokking provably occurs, we derive analytic asymptotic expressions for core-learning and test-accuracy hitting times, quantifying the generalization plateau. The resulting conditions make explicit the roles of initialization, signal strength, regularization, and dimensionality. They also clarify the role of weight decay: it is not necessary for grokking, and excessive regularization can prevent attainment of the target accuracy (Section 4).

  • Experimental validation. We verify our predictions by sampling finite training datasets and numerically integrating the corresponding gradient flow. Across sample sizes and regularization regimes, we compare core trajectories, training and test accuracies, and hitting times with their theoretical predictions. The experiments illustrate both the separation of learning time scales below interpolation and the additional delay in generalization near the interpolation edge. See Figure 2, Figure 1, and Figure 4.

Appendix C contains further empirical validation.

Figure

Figure 1: Grokking near the interpolation edge ( γ=1\gamma = 1). Experiments for the simple model (2) trained with without regularization / weight decay ( λ=0\lambda = 0) in the optimization objective (3), on n=400n = 400 samples and d=395d = 395 nuisance features ( d/n≈1d/n \approx 1) from the data distribution (1), for different values of the signal strength ε\varepsilon. In all cases, the effective weight decay is b=0<1/zpb = 0 < 1/z_p: the core coefficient θ=εuv\theta = \varepsilon uv approaches 1, and the test accuracy target p=95%p = 95\% is attained at a time consistent with the prediction of our theory (21). Under a very small signal, note that when weight decay is active ( λ∈{10−4,10−5}\lambda \in \{10^{-4}, 10^{-5}\}), bb exceeds the threshold, preventing grokking from occurring. See Appendix C for details and additional experiments.

Figure

(a) Small signal strength ε=10−2\varepsilon = 10^{-2}. The vertical lines correspond to our theoretical estimate (20). For λ=10−3\lambda = 10^{-3} (rightmost plot), the effective weight decay is β=1>1−δp=0.17\beta = 1 > 1 - \delta_p = 0.17, and our theory (Theorem 3) correctly predicts that grokking does not occur here, contrary to the left and middle plots which correspond to values of β\beta smaller than the critical threshold 1−δp1 - \delta_p. See Appendix C for details and additional experiments.

Figure

(b) Moderate signal strength ε=10−1\varepsilon = 10^{-1}. Here, the signal is sufficiently strong that grokking occurs even for small and moderately large values of weight decay λ\lambda. Indeed, for all values of λ\lambda shown, the effective weight decay β\beta falls below the critical threshold 1−δp1 - \delta_p; our Theorem 3 correctly predicts that grokking occurs in time Tp≃Hδp(β)ℓnT_p \simeq H_{\delta_p}(\beta) \ell_n (vertical line).

Figure 2: Grokking below interpolation threshold ( γ<1\gamma < 1). Experiments use n=400n = 400 samples and d=360d = 360 nuisance features ( γ=0.9\gamma = 0.9). The results support Theorem 3 across zero, weak and strong weight decay λ\lambda. The core coefficient approaches the limit (1−β)+(1 - \beta)_+ predicted by our Theorem 3, while weight determines whether the test-accuracy target p=0.95p = 0.95 is attained. Core convergence and target attainment need not coincide. Whenever the target is reached, the observed hitting time agrees with the theoretical prediction (vertical line). See Appendix C for details and more extensive experiments.

References (26)