Manuscript Offprint
arXiv:2610.18811Statistical Vignettes on the Grokking Phenomenon
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 1: Grokking near the interpolation edge ( ). Experiments for the simple model (2) trained with without regularization / weight decay ( ) in the optimization objective (3), on samples and nuisance features ( ) from the data distribution (1), for different values of the signal strength . In all cases, the effective weight decay is : the core coefficient approaches 1, and the test accuracy target 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 ( ), exceeds the threshold, preventing grokking from occurring. See Appendix C for details and additional experiments.

(a) Small signal strength . The vertical lines correspond to our theoretical estimate (20). For (rightmost plot), the effective weight decay is , 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 smaller than the critical threshold . See Appendix C for details and additional experiments.

(b) Moderate signal strength . Here, the signal is sufficiently strong that grokking occurs even for small and moderately large values of weight decay . Indeed, for all values of shown, the effective weight decay falls below the critical threshold ; our Theorem 3 correctly predicts that grokking occurs in time (vertical line).
Figure 2: Grokking below interpolation threshold ( ). Experiments use samples and nuisance features ( ). The results support Theorem 3 across zero, weak and strong weight decay . The core coefficient approaches the limit predicted by our Theorem 3, while weight determines whether the test-accuracy target 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.
2.1. Data Distribution
We consider a binary classification problem with a planted core feature and independent nuisance features. A random input–label pair is generated as follows:
The parameter controls the amplitude of the core feature relative to the unit scale of each nuisance coordinate. For every , the core feature determines the label exactly, whereas the nuisance vector is independent of the label. Thus, reducing weakens the scale at which the signal enters the model without increasing the Bayes classification error, which remains zero. We are particularly interested in the small-signal regime , where this distinction allows us to separate the availability of predictive information from the time required to learn to use it. A similar distribution was also considered by Bayat et al. (2025) in the context out-of-distribution generalization.
The training dataset consists of labeled samples which are iid copies of the pair defined above. Although the corresponding nuisance features of each data point contain no information about the label , their empirical correlations with the training labels allow them to contribute to fitting the training data (memorization).
2.2. A simple bilinear model
We consider model class
with learnable parameters and . The model is linear in the input but bilinear in the parameters associated with the core feature. This factorization introduces non-linear learning dynamics while retaining a tractable description of the competition between core learning and nuisance fitting.
The setup is motivated by sparse parity (Barak et al., 2022), a task on which two-layer ReLU networks exhibit grokking (Merrill et al., 2023). In this problem, the label is for binary inputs and a small, unknown subset . Merrill et al. (2023) associate delayed generalization with competition between a dense memorizing subnetwork and a sparse generalizing subnetwork. This motivates our separation between a predictive core and nuisance features that can fit the training data. A parity feature admits the gating representation , where selects the participating coordinates. Learning these gates entails discovering the relevant feature. Our model isolates the subsequent competition between amplifying predictive structure and fitting nuisance features: the core is already present, but its contribution is learned through the bilinear coefficient . This simplification allows us to isolate the fine analysis of the resulting learning time scales, while stepping aside the combinatorial problem of discovering the unknown parity mask.
2.3. Regularized Optimization Objective and Progress Metrics
We train the student model (2) by minimizing the regularized squared loss
(3) where is the weight-decay parameter and . Let be the nuisance matrix with rows and write , the response vector. Introducing the effective core coefficient
we obtain , where is the vector of training residuals; exact interpolation corresponds to , or equivalently . Since , the prediction decomposes as . Thus, measures the contribution of the planted core feature, while captures the nuisance.
Interesting, the squared regularization on the factors and translate into a an prior on the core feature . Indeed, observe that for an ,
For tracking learning progress during optimization, we consider the training accuracy and test accuracy of the student model f are respectively defined by:
for a random test point independent of the training data. It is easy to see that
where . Here, is the standard normal CDF. Thus, the dynamics of the test accuracy is completely determined by the dynamics of the core weight and the nuisance norm .
3. High-Level Overview of Gradient-Flow Dynamics
We explain the geometric picture underlying the separation between early training-data fitting and delayed generalization. When the signal amplitude and weight decay are small, nuisance weights evolve rapidly while the core feature evolves slowly. Fenichel theory describes this separation through attraction toward a slow invariant manifold, followed by approximately logistic core learning. We use this picture to motivate the quantitative hitting-time analysis and highlight why approaching the interpolation edge requires additional care.
3.1. Equations of Motion and Stationary Points
Define the following auxiliary random quantities:
Also introduce the "dual" variable .
Proposition 1 (Equations of motion) The equations of motion of under gradient flow of the objective R given in (3) are the following system of ODEs:
(7)
We can already see that if both and are small, then is a fast variable while and are slow variables: relaxes instantaneously compared to the clock of and . This observation will ultimately be the main idea exploited to obtain a detailed account of the grokking phenomenon on this toy problem.
Proposition 2 (Finite-sample phase boundary) In terms of the , , and w variables, the effective global minimizer of the optimization objective (3) is unique:
and the gradient-flow (7) converges to it.
Moreover, if , then there are two minima in space: , and one saddle point . Every initialization verifying converges to a minimum point. If , the latter point is the only stationary point and every trajectory converges to it.
3.2. Qualitative Insights: Fenichel Theory
Suppose the signal strength and weight decay be small such that . The second equation in (10) evolves faster than the first: for every value of , instantaneously relaxes to a value satisfying the equation , which corresponds to setting the RHS of the former to zero. This implicit equation defines a so-called slow manifold in parameter space, on which the better part of the dynamics is trapped. Because is in the image of , this invariant manifold is given explicitly by:
where is min-norm nuisance interpolator. It is easy to see that is an affine subspace of of dimension 1 if and if . There are thus two qualitatively distinct sub-regimes to consider.
The sample-poor regime: . In this setting, one has almost-surely. The reduced ODEs along the slow manifold become , , where is the part of which is in the kernel of . The dynamics converges to the pathological saddle which does not generalize: the limiting test accuracy (5) is 50%, i.e. chance level.

Figure 3: Fast/slow dynamics of learning. Triple arrows indicate fast dynamics, double arrows indicate slow, and single arrows indicate very slow dynamics. In the fast phase, the dynamics (7) quickly relaxes onto the plane in constant time . Then a slower phase begins where the dynamics relaxes towards the line , corresponding to learning the core feature weight in the student (2). This happens on a time scale of order , where is the SNR. This phase is responsible for the long test accuracy, long after memorization (perfect training accuracy) has occurred. In the final / slowest phase (which only exists in the case of unbalanced initialization), the "harmonic dual" variable relaxes to zero in time of order , where is the weight decay.
The sample-rich regime: . In this regime, one has almost-surely. The transverse Jacobian of the limiting fast dynamics along is . Since is positive definite (almost-surely), all transverse eigenvalues are strictly negative, establishing normal attraction. Now, consider the slow time , which allows us to zoom into the slow dynamics on . Let primes denote rate of change measured in this new clock. Along , the equations of motions reduce to the following decoupled system of ODEs:
The first equation is a logistic ODE, with a natural relation time scale of , i.e physical time. Actual crossing times also depend on initialization, regularization, and the target level. For fixed , Fenichel theory (Fenichel, 1979) then suggests the following picture:
-
A fast phase during which nuisance weights approach a neighborhood of an attracting slow manifold. Entry within a fixed tolerance takes physical time for a fixed positive spectral gap. Training accuracy can already be high during this phase, tending to perfect memorization.
-
A slow phase, during which the core evolves according to approximately logistic dynamics, while nuisance weights track its evolution. Whether this leads to the prescribed test accuracy depends on both regularization and the statistical regime.
Figure 3 illustrates this geometric picture. Note that formally, the invariant slow manifold is an -perturbation of the critical manifold , rather than itself (Fenichel, 1979).
This perspective is similar in spirit to the lazy-to-rich-transition account of Kumar et al. (2024); Nishiyama and Imaizumi (2026), in which early fitting precedes substantial feature learning. Our model makes a corresponding separation explicit through fast nuisance fitting and slow core learning, without identifying these phases with a neural tangent kernel transition. It also connects to Boursier et al. (2025), who analyze fast fitting followed by slow, weight-decay-driven norm minimization along a manifold of critical points. In our setting, small signal amplitude provides a distinct source of slow dynamics, allowing delayed generalization even without weight decay. Moreover, the statistical analysis determines when slow core learning translates into test accuracy, a distinction that becomes crucial near interpolation.
Turning the above geometric insights from Fenichel theory into a quantitative account of grokking requires comparing the core-learning scale with nuisance relaxation. The latter depends on the spectrum of the empirical covariance and need not remain bounded as the dimension grows. In particular, the proportional regime differs from approaching interpolation with but , where the spectral gap vanishes. Section 4 establishes conditions under which the separation persists and translates it into explicit hitting-time estimates.
4. Main Results
To make our lives easy henceforth, we make the following balanced initialization assumption.
Assumption 1 .
Under this assumption, one has for all in the dynamics (7). Thanks to Proposition 2 the only stationary point becomes defined above. Moreover, the equations of motion (7) reduce to the following coupled of ODEs:
where and are as defined in (6), were everything has been written to explicitly highlight the dependence on the sample size . The analysis of the above system of ODEs will be our main focus henceforth.
In this section, we quantify the time required to learn the core feature and attain a prescribed test accuracy, and identify when these targets are unattainable. Starting from the gradient-flow system (10), we focus on the sample-rich setting discussed at the end of Section 3.2, where nuisance fitting alone cannot interpolate the training labels and core learning is necessary to drive the training loss to zero.
4.1. Preliminaries
Given some quantity which evolves alongside the dynamics (10), and a threshold , define to be the time taken for to cross level , i.e.
We shall particularly be interested in: , which is the time taken to learn the core feature weight above level ; , which is the time taken to reach a test accuracy of at least 100p%; , which is the time to reach a training accuracy of at least 100p%.
A reference slow ODE. Note that hitting times are a random quantities, due to randomness in the training dataset which drives the dynamics. It turns out that most of the hitting times of interest to us can be neatly expressed in terms of the following deterministic function. For any core initialization , level , signal strength , and scalar with , define
Instructively, the ratio is nothing but the time the solution of the following reference logistic ODE takes to cross a level :
The above reference trajectory is precisely the form of the ODE on the slow manifold (9) with and rescaled time .
Displacement from invariant manifold. Recall the definition of the vector , the empirical nuisance covariance matrix , and the ridge nuisance interpolator . Thus, defining , the quantity
measures the time the dynamics take to relax in an -neighborhood of the slow manifold
Along this manifold, the nuisance weights are given explicitly in terms of the core feature . Note that when the regularization is turned off , reduces to the slow invariant manifold (8).
Our analysis from Section 3.2 suggested that the system of ODEs (10) rapidly collapses in time to the slow manifold . The remainder of the dynamics is then reduced and ODE of the form (9), or (13) with appropriately normalized time and "effective regularization" . Thus, in this setting, one might expect that the original system relaxes in time of order .
Asymptotics scaling limits. We shall work in the setting where the nuisance dimension , the weight decay , and the signal strength vary with sample size as follows:
The conditions and are crucial: the first one ensures that there is signal to drive the learning of the core feature (albeit, possibly on an arbitrarily long time scale) while the second ensures that the nuisance design matrix always trivial kernel so that the dynamics does not get trapped inside a basin of invisible nuisance features. Also, the above conditions imply
Thus, . Importantly, we allow for the possibility of no weight-decay . The case corresponds to the under-parametrized regime, while is the interpolation edge where .
4.2. Delayed Generalization
For a fixed test-accuracy target , define
Note that and . Below interpolation, it holds that where
whereas at the interpolation edge. The following is one of our main results.
Theorem 3 (Informal) For each , there exists a threshold such that the following holds. Fix a test target . Under (16) and the additional conditions in Table 1, the core dynamics, nuisance relaxation, and generalization behavior are as stated in the table. Limits and hitting-time estimates are understood in probability; non-attainment holds with probability tending to one.
Detailed statements appear as Proposition 5, Theorem 6, and Theorem 7 of Appendix A.2.
The highlight of the proof of Theorem 3 compares the equations of motion (10) with logistic ODE (13) with rescaled time .
This theorem separates three events: fitting the training data, learning the core feature, and generalizing. Training targets significantly above chance are reached in time, while relaxation of the core requires the longer scale time of order . Whether generalization follows on that same scale depends on dimensionality and regularization, as illustrated in Figures 2 and 1.
The threshold is defined in equation (25) of the appendix, and corresponds to the best test accuracy obtainable on a constant time scale. It is of order
| Regime | Effective dynamics of core feature | Effective dynamics of nuisance | Conclusion |
|---|---|---|---|
| Under-parameterized, weak regularization (, ) | Logistic ODE (13); limiting core trajectory converges to | Enters fixed vicinity of the slow sheet in constant time, then tracks the core feature | Grokking occurs on time scale of order (given in (16)), which diverges with the sample size |
| Under-parameterized, strong regularization (, ) | Logistic ODE (13); limiting core trajectory converges to | Enters fixed vicinity of in constant time, then tracks core | Target test accuracy is never reached |
| Interpolation edge, weak regularization (, ) | Logistic ODE (13); limiting core trajectory converges to | Entry time diverges, but is and | Fixed core levels reached on scale (diverging with ); grokking occurs on time scale of order |
| Interpolation edge, strong regularization (, ) | Logistic ODE (13); limiting core trajectory converges to | Same upper-bounds as above; stationary nuisance norm tends to | Fixed core levels reached on scale of order , but target test accuracy is never reached |
Table 1: Phase diagram for the (non)emergence of grokking (Theorem 3). Here, the scales and are as defined in (16), while and are as defined in (17)–(18). The under-parametrized regimes additionally assume , while interpolation-edge regimes assume and ; in particular, in both edge rows. Grokking denotes early attainment of the training target followed by delayed generalization, for the given test target . A precise hitting-time equivalent is provided in (19); the logarithmic factor at the edge is already included in the displayed time scale. The scale diverges with sample size , accounting for long plateaus. Regularization / weight decay is classified relative to the target . Core convergence refers to the limiting slow trajectory as slow time tends to infinity; stationary nuisance limits are taken as . Limits and time estimates are in probability; non-attainment holds with probability tending to one. Detailed results are provided in , defined in (14). Detailed claims are provided in Appendix A.2.
for small initialization of the core feature.
The early dynamics of training accuracy is provided in Theorem 4, which establishes that every training accuracy less than an attainable ceiling is attainable in constant time.
4.3. What Controls the Plateau Length?
Under the assumptions in Theorem 3 ensuring delayed attainment of the test target, the plateau length is
with as in (12), as in (17), and as in (16). The plateau length therefore combines the base scale with the effects of initialization, regularization, and the required core threshold.
Below interpolation. Consider the regime where in the limits (16). For , the prediction (19) from our Theorem 3 simplifies to:
Thus, the plateau length is inversely proportional to signal strength . Weight decay also affects this length: increases with and diverges as . Above this threshold, there is no grokking: the target is not attained with probability tending to 1.
At the interpolation edge. Now consider the setting where in the limits (16). Under the additional edge assumptions, with , observe that
Substitution into (19) and some algebra yields
Thus, in this regime generalization, requires an additional long delay delay beyond learning a fixed core level. The growing nuisance contribution must be offset by a vanishing core deficit before the test target accuracy p can be attained.
Effect of initialization. In the regimes where our theory guarantees grokking, (20)–(21) describe how the plateau depends on the initialization . For small , the normalized plateau length is predicted to grow logarithmically with , with coefficient below interpolation. At the interpolation edge, and the corresponding coefficient is one. Thus, early nuisance fitting can achieve high training accuracy while an initially weak core contribution takes much longer to become predictive. Increasing shortens this delay. A similar dependence was found by Nishiyama and Imaizumi (2026) in the context of linear regression with diagonal networks.
This dependence on gives a direct experimental diagnostic: at fixed signal amplitude, aspect ratio, and effective regularization, plotting against should approximately yield a line of slope for small below interpolation, and slope one at the edge. Figure 4 supports this prediction in the under-parameterized regime; corresponding edge experiments appear in Figure 9 of Appendix D.

Figure 4: Logarithmic scaling of grokking time w.r.t core feature initialization . Experiment with samples, nuisance dimension , a small signal strength , and no weight decay ( ). Perfect terminal test accuracy (100%) is always attained in this setting. Empirically measured normalized hitting time scales linearly in in view of (12), as predicted by Theorem 3.
4.4. Grokking does not require weight decay
Weight decay is central to several accounts of grokking (Nanda et al., 2023; Varma et al., 2023; Lyu et al., 2024; Boursier et al., 2025), but is it unclear whether it is really necessary for the phenomenon. Setting gives , placing the dynamics in the regime below interpolation and the b=0 regime at the interpolation edge. Under the corresponding assumptions, our Theorem 3 guarantees grokking. This is clearly visible empirically in Figure 2 (left), Figure 1, and Figure 4. Our results complement previous demonstrations of unregularized grokking (Gromov, 2023; Kumar et al., 2024) with explicit conditions and analytic plateau lengths. They also show that regularization can modify the delay or prevent attainment of the test target, without being necessary for delayed generalization.
Appendix C contains further empirical validation of our theoretical results.
5. Related work
In its current form, the grokking phenomenon was first observed by Power et al. (2022) as delayed generalization following early fitting of the training data. Subsequent work established that its occurrence depends on initialization, regularization, data, and architecture, and that it extends beyond algorithmic tasks (Liu et al., 2023). These observations motivate studying the mechanisms behind the delay separately from the appearance of a particular learning curve. Our analysis distinguishes three events: attaining high training accuracy, learning the core feature, and reaching a prescribed test-accuracy target. Their separation is essential near interpolation, where substantial core learning need not immediately produce generalization.
Plateau Phenomena and Singular Learning Theory. Prolonged plateaus in training error were studied well before grokking was documented (Power et al., 2022). Information-geometric and statistical-mechanical analyses associated slow learning with singular parameter configurations induced by symmetries and redundancies, where the Fisher information becomes degenerate (Wei et al., 2008; Amari et al., 2018). Classical studies of online learning in soft-committee networks also identified long transients and examined their dependence on teacher-student alignment (Saad and Solla, 1995), while later work investigated how input spectra shape learning plateaus (Yoshida and Okada, 2019). From a complementary statistical perspective, singular learning theory relates model singularities to generalization and marginal likelihood through algebraic geometry (Watanabe, 2009). These results provide context for the slow modes and separated time scales associated with grokking. However, training-error plateaus and delayed generalization concern different observables: explaining grokking requires identifying why test performance remains poor after training accuracy has already become high.
Mechanistic explanations and feature learning. Studies of modular arithmetic have identified the representations and algorithms underlying generalization. Gromov (2023) construct explicit solutions and connect grokking to the discovery of task-specific feature maps. Nanda et al. (2023) identify continuous progress measures that distinguish memorization, circuit formation, and the removal of memorizing components. Zhong et al. (2023) show that changes in initialization and architecture can lead to qualitatively different algorithms for the same modular-addition task. Beyond neural networks, Mallinar et al. (2025) demonstrate grokking in recursive feature machines, relating generalization to the emergence of block-circulant structure through the average gradient outer product. These studies establish that progress toward a generalizing solution can precede its appearance in accuracy curves. Our model makes the corresponding distinction explicit through separate hitting times for the core coefficient and test accuracy.
Lazy-to-rich transitions and implicit bias. Kumar et al. (2024) explain grokking through a transition from an initial kernel-like regime to subsequent feature learning, emphasizing the learning rate of features and their initial alignment with the target. Lyu et al. (2024) prove that large initialization and small weight decay can induce a transition between early kernel bias and later minimum-norm or maximum-margin bias. For modular addition, Mohamadi et al. (2024) establish limitations of kernel-regime predictors and generalization guarantees for appropriately norm-controlled quadratic networks. Our fast nuisance dynamics and slow growth of the factorized core coefficient provide a tractable analogue of such staged learning. The resulting time-scale separation explains why the core can remain nearly frozen during early training. It also shows why core learning alone need not determine the onset of generalization: residual nuisance contributions can remain decisive after the core relaxes above a fixed threshold.
Regularization and slow geometric dynamics. Liu et al. (2023) relate grokking to the dependence of training and test losses on weight norm. Notsawo et al. (2025) extend regularization-based explanations beyond the Euclidean norm, including sparsity and low-rank structure, and show that Euclidean norm reduction is not a universal indicator of generalization. A particularly close theoretical connection is Boursier et al. (2025), who analyze gradient flow with vanishing weight decay. Under their assumptions, an initial approach to a critical manifold is followed by slow Riemannian norm minimization on the inverse-weight-decay time scale. Our analysis also separates fast and slow dynamics, while incorporating the statistical effects of signal strength and sample-to-dimension ratio. In our model, delayed generalization can persist without weight decay, and regularization determines whether a specified test target is attainable. We establish explicit nuisance-tracking estimates and accuracy hitting times; near interpolation, these estimates account for the loss of a uniform spectral gap.
Solvable models and interpolation thresholds. Beck et al. (2025b) derive covariance-based learning dynamics for a Gaussian linear teacher–student model and use Marchenko–Pastur spectral analysis to characterize delayed generalization near interpolation. They also demonstrate that sharp accuracy changes can result from the evaluation criterion, without an accompanying discovery of a new representation. In a distinct logistic-classification setting, Beck et al. (2025a) identify long delays near the linear-separability threshold, where nearly flat directions slow optimization. Our results distinguish the fixed-aspect-ratio regime below interpolation from the hard interpolation edge, where the lower covariance spectral edge vanishes. They further separate the time needed to reach a fixed core level from the time needed to overcome nuisance interference. This yields regimes in which the limiting core trajectory approaches one but a prescribed test target remains unattainable. The classification is stated in terms of first accuracy hitting times, with explicit control of possible earlier crossings.
Predicting and accelerating grokking. Notsawo et al. (2023) use oscillations in early learning curves to predict subsequent grokking. Lee et al. (2024) accelerate generalization by amplifying slowly varying gradient components. Especially relevant to our dynamical perspective, Saheb Pasand and Dohmatob (2026) identify unequal learning speeds along principal gradient directions as a source of grokking and propose egalitarian gradient descent to equalize those speeds. Our contribution complements these diagnostic and algorithmic approaches with analytic asymptotic expressions for plateau lengths and conditions separating early generalization, delayed generalization, and non-attainment. The analysis also distinguishes slow core learning from slow nuisance relaxation: near the interpolation edge, nuisance relaxation itself need not occur in constant physical time.
6. Concluding Remarks
Our tractable model disentangles the optimization and statistical mechanisms underlying grokking. Its rich phenomenology reflects the interplay of initialization, signal strength, regularization, and dimensionality. Similar learning curves can conceal distinct dynamical and statistical constraints, requiring attention to both parameter evolution and its predictive consequences. Separating nuisance fitting, core learning, and test accuracy attainment yields explicit conditions for delayed generalization and analytic asymptotic plateau lengths. At the interpolation edge, substantial core learning need not immediately yield generalization. Weight decay affects both the delay and attainable accuracy, but does not dictate whether grokking occurs.
Limitations and future directions. Extending the analysis to models that must discover predictive features, such as ReLU networks learning sparse parity, is a natural next step. This would motivate non-proportional scalings of model complexity relative to sample size, potentially revealing a richer grokking phase diagram.
AI use statement. In this work, we have made limited use of generative AI tools for spell-checking, and also reformulating chunks of text in the introduction (Section 1) and detailed related works section (Appendix 5). Also, AI was used to generate Tikz code for displaying the cartoon in Figure (3). Finally, we used AI to better organize our proof of Theorem 3 in the appendix. We take responsibility for the final content of this work, including text, claims, or artifacts produced with the aid of AI.
Acknowledgement. We would like to proudly acknowledge that Baye Malick Gning is PhD student funded by boursaries from Canada Research Chair grant number CRC-2023-00228 (Computing for the Greater Good) attributed to Elvis Dohmatob.
References
Shun-ichi Amari, Tomoko Ozeki, Ryo Karakida, Yuki Yoshida, and Masato Okada. Dynamics of learning in mlp: Natural gradient and singularity revisited. Neural Computation, 30(1):1–33, 2018.
Boaz Barak, Benjamin Edelman, Surbhi Goel, Sham Kakade, Eran Malach, and Cyril Zhang. Hidden progress in deep learning: Sgd learns parities near the computational limit. Advances in Neural Information Processing Systems, 35:21750–21764, 2022.
Reza Bayat, Mohammad Pezeshki, Elvis Dohmatob, David Lopez-Paz, and Pascal Vincent. The pitfalls of memorization: When memorization hurts generalization. In International Conference on Learning Representations (ICLR), 2025.
Alon Beck, Noam Itzhak Levi, and Yohai Bar-Sinai. Grokking at the edge of linear separability. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 3307–3334. PMLR, 2025a.
Alon Beck, Noam Itzhak Levi, and Yohai Bar-Sinai. Grokking at the edge of linear separability. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research. PMLR, 2025b.
Etienne Boursier, Scott Pesme, and Radu-Alexandru Dragomir. A theoretical framework for grokking: Interpolation followed by riemannian norm minimisation. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025.
Neil Fenichel. Geometric singular perturbation theory for ordinary differential equations. Journal of Differential Equations, 31(1):53–98, 1979. doi: 10.1016/0022-0396(79)90152-9.
Andrey Gromov. Grokking modular arithmetic. 2023. URL https://arxiv.org/abs/2301.02679.
Tanishq Kumar, Blake Bordelon, Samuel J. Gershman, and Cengiz Pehlevan. Grokking as the transition from lazy to rich training dynamics. In International Conference on Learning Representations (ICLR), 2024.
Jaerin Lee, Bong Gyun Kang, Kihoon Kim, and Kyoung Mu Lee. Grokfast: Accelerated grokking by amplifying slow gradients. 2024. URL https://arxiv.org/abs/2405.20233. v2, 5 Jun 2024.
Ziming Liu, Eric J. Michaud, and Max Tegmark. Omnigrok: Grokking beyond algorithmic data. In International Conference on Learning Representations (ICLR), 2023. URL https://arxiv.org/abs/2210.01117. Spotlight.
Kaifeng Lyu, Jikai Jin, Zhiyuan Li, Simon Shaolei Du, Jason D. Lee, and Wei Hu. Dichotomy of early and late phase implicit biases can provably induce grokking. In The Twelfth International Conference on Learning Representations, 2024.
Neil Rohit Mallinar, Daniel Beaglehole, Libin Zhu, Adityanarayanan Radhakrishnan, Parthe Pandit, and Mikhail Belkin. Emergence in non-neural models: grokking modular arithmetic via average gradient outer product. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research. PMLR, 2025.
V.A. Marčenko and Leonid Pastur. Distribution of eigenvalues for some sets of random matrices. Math USSR Sb, 1:457–483, 01 1967.
William Merrill, Nikolaos Tsilivis, and Aman Shukla. A tale of two circuits: Grokking as competition of sparse and dense subnetworks. arXiv preprint arXiv:2303.11873, 2023.
Mohamad Amin Mohamadi, Zhiyuan Li, Lei Wu, and Danica J. Sutherland. Why do you grok? a theoretical analysis on grokking modular addition. In International Conference on Machine Learning (ICML), 2024.
Neel Nanda, Lawrence Chan, Tom Lieberum, Jess Smith, and Jacob Steinhardt. Progress measures for grokking via mechanistic interpretability. 2023. URL https://arxiv.org/abs/2301.05217. v3, 19 Oct 2023.
Sota Nishiyama and Masaaki Imaizumi. Precise dynamics of diagonal linear networks: A unifying analysis by dynamical mean-field theory. In The 29th International Conference on Artificial Intelligence and Statistics, 2026.
Pascal Notsawo, Hattie Zhou, Mohammad Pezeshki, Irina Rish, Guillaume Dumas, et al. Predicting grokking long before it happens: A look into the loss landscape of models which grok. arXiv preprint arXiv:2306.13253, 2023.
Pascal Notsawo, Guillaume Dumas, and Guillaume Rabusseau. Grokking beyond the euclidean norm of model parameters. In International Conference on Machine Learning (ICML), 2025.
Alethea Power, Yuri Burda, Harri Edwards, Igor Babuschkin, and Vedant Misra. Grokking: Generalization beyond overfitting on small algorithmic datasets. 2022. URL https://arxiv.org/abs/2201.02177.
David Saad and Sara A Solla. On-line learning in soft committee machines. Physical Review E, 52(4):4225, 1995.
Ali Saheb Pasand and Elvis Dohmatob. Egalitarian gradient descent: A simple approach to accelerated grokking. In International Conference on Learning Representations, volume 2026, 2026.
Vikrant Varma, Rohin Shah, Zachary Kenton, János Kramár, and Ramana Kumar. Explaining grokking through circuit efficiency. arXiv preprint arXiv:2309.02390, 2023.
Sumio Watanabe. Algebraic geometry and statistical learning theory, volume 25. Cambridge university press, 2009.
Haikun Wei, Jun Zhang, Florent Cousseau, Tomoko Ozeki, and Shun-ichi Amari. Dynamics of learning near singularities in layered networks. Neural Comput., 20(3), 2008.
Yuki Yoshida and Masato Okada. Data-dependence of plateau phenomenon in learning with neural network—statistical mechanical analysis. Advances in Neural Information Processing Systems, 32, 2019.
Ziqian Zhong, Ziming Liu, Max Tegmark, and Jacob Andreas. The clock and the pizza: Two stories in mechanistic explanation of neural networks. In Advances in Neural Information Processing Systems (NeurIPS), 2023. URL https://proceedings.neurips.cc/.
Appendix
A Detailed Theorems on Early/Late Dynamics and Plateau Length 19
A.1 Early Dynamics of Accuracies 20
A.2 Generalization: Convergence and Plateau Lengths 25
B Proofs of the Main Results 27
B.1 Proof of Proposition 5 27
B.2 Proof of Theorem 6 30
B.3 Proof of Theorem 7 31
C Experimental validation 34
C.1 Setup 34
C.2 Results 34
D Additional experimental results 36
D.1 Dependence of Grokking Plateau Length on Initialization 36
Appendix A. Detailed Theorems on Early/Late Dynamics and Plateau Length
The results in this section concern the high-dimensional dynamics (in the limits (16)) of defined by the system of ODEs (10). In all cases, the initialization is fixed.
A.1. Early Dynamics of Accuracies
Consider the scaling limit the input dimension , the weight decay , and the SNR vary as a function of sample size in such a way that
In the limit which is part of (16), the histogram of eigenvalues of the empirical covariance matrix converges weakly to a Marčenko-Pastur law (Marčenko and Pastur, 1967) . Define
Also, define the following deterministic reference accuracy curves
Finally, define a threshold as follows
Theorem 4 In the limit (22), the following hold.
(A) Early memorization. For any fixed time , it holds that . Furthermore, every target training accuracy below is attained in constant time .
(B) No early generalization. For any finite time horizon T > 0, it holds that
Moreover, for any target accuracy level , it holds that , where
is the best test accuracy obtainable on a constant time scale.
Proof We prove the statement with the corrected conclusion
Throughout, , and is independent of the training sample and uniformly distributed on the sphere of radius .
Freezing the core on bounded time intervals. Fix . Standard Gaussian spectral bounds give . Since ,
We first work up to a possible first crossing of . Variation of constants and positivity of give, on this interval,
The core equation consequently implies
up to that crossing. Since , integration excludes a crossing before with probability tending to one. Therefore
Let be the nuisance trajectory with the core frozen at and with zero weight decay:
Subtracting the two nuisance equations gives
Since ,
The limiting nuisance norm. Define
The frozen trajectory is
Expanding its squared norm gives three terms.
First, spherical quadratic-form concentration yields, for fixed t,
Indeed, conditional on , the variance is bounded by .
For the second term, put . Then
and, conditional on ,
On events where is bounded, the last quantity is for fixed . Thus
Finally, the cross term vanishes in probability. Conditional on the sample, it is a centered linear functional of , with variance bounded by
Applying Marchenko–Pastur convergence to these trace expressions proves
at every fixed t. This convergence is uniform on . To see this explicitly, the bounds on , and imply
Given an error tolerance, first bound this Lipschitz constant with arbitrarily high probability, then choose a sufficiently fine deterministic grid in . Convergence at the finitely many grid points, together with continuity of , controls the supremum between grid points. Hence
where we also used (27).
Because ,
The exact test-accuracy identity, together with (26) and (28), now gives
Training margins for the frozen dynamics. It remains to analyze training accuracy, which depends on the signs of individual margins. Absorb the labels into the design by setting
The entries of are again independent standard Gaussians, and . The vector of frozen training margins is
where
Let
We claim that, for fixed t,
To verify this, write . Orthogonal invariance of and spherical quadratic-form concentration imply
The trace limits are : the n-dimensional Gram matrix has a fraction of zero eigenvalues, and its remaining eigenvalues are those of .
Conditional on , the vector is centered and isotropic. In particular,
and spherical quadratic-form concentration gives
The normalized cross term between and also tends to zero. Indeed, conditional on , it is centered and its variance is bounded by a constant times on events where is bounded. Expanding now proves (29).
From margin moments to training accuracy. Moments alone would not determine the fraction of positive margins. Here Gaussian rotational symmetry supplies the additional information.
For any orthogonal matrix O with , the matrices and have the same distribution, and replacing by replaces by . Consequently, conditional on and , the direction of is uniform on the unit sphere in . We may therefore represent its conditional distribution using independent standard Gaussian variables :
where the Gaussian vector is independent of the two conditioning quantities.
The law of large numbers gives and . Together with (29) and convergence of the empirical Gaussian distribution, this proves
The denominator is positive at every finite , since and .
To transfer this conclusion to the original dynamics, let denote its margin vector. Then
For any , the fraction of signs that differ is at most
The first term converges to the probability that a nondegenerate Gaussian lies in ; the second vanishes. Letting proves
Training targets and exclusion of early test crossings. For , dominated convergence gives
Thus . For , the Marchenko–Pastur law has no atom at zero, so and , while the numerator of the training-accuracy formula tends to one. Hence the limiting training accuracy tends to .
Given a training target , choose a finite deterministic with . Fixed-time convergence implies
establishing the claimed bound.
Finally, fix and . If the actual test accuracy reaches before , then
Uniform convergence makes the probability of this event tend to zero. This proves exclusion of early attainment, while allowing a crossing on a diverging time scale.
A.2. Generalization: Convergence and Plateau Lengths
The results in this section taken together, make the statement of Theorem 2 of the main text precise.
Proposition 5 (Core learning and nuisance tracking) Define
where is as in (16), and let solve the logistic ODE
(A) Convergence of core feature trajectory. In the limit (16), it holds that
In particular, for every , it holds that
where is as defined by the reference slow ODE (13).
(B) Core feature plateau length. For every fixed , it holds in the limit (16) that
where the function is as defined in (12). Furthermore, if , then in probability.
(C) Slow manifold Entry. For , there exist deterministic constants such that, in the limit (16), with probability tending to one,
If additionally , then, for every fixed ,
Theorem 6 (Below interpolation) Consider the limit (16) with . Then, for every , it holds that
Furthermore, for every fixed , it holds that
Finally, for every target test accuracy , it holds that
The equality case is excluded.
Theorem 7 (At the interpolation edge) Consider the limits (16) with , and additionally
Then, and the following hold:
• The reference core trajectory (13) satisfies as .
• Every fixed satisfies
Furthermore, for every fixed , it holds that
and the stationary limits satisfy
Finally, for every target accuracy level , it holds that
Appendix B. Proofs of the Main Results
Throughout, convergence and stochastic order estimates are with respect to the training sample and initialization. We use the global existence and finite-sample convergence result established earlier, together with the fast-phase accuracy convergence. The random-matrix inputs used below are stated explicitly.
B.1. Proof of Proposition 5
All asymptotics are w.r.t the limits (16). Write
so that and .
Sample estimates. We first record the Gaussian estimates needed in the proof. At zero regularization, let
The random column space of is uniformly distributed and independent of . Consequently,
Thus in probability.
For completeness, the corresponding inverse-covariance estimate is
It follows from the Gaussian polar decomposition , where and is independent of . Indeed, , and spherical second and fourth moments give
The inverse-Wishart moment identities
then imply the assertion by Chebyshev's inequality, since .
We also use the standard extreme-singular-value estimates for rectangular Gaussian matrices: there are deterministic constants such that
In particular,
Comparison in an eigenbasis of therefore gives . Moreover,
and hence
This proves
A scalar identity for the core. The nuisance equation implies
Consequently,
Set . Integrating the equation for gives the exact identity
where
We bound this error before a possible first crossing of . On that interval, . Variation of constants in an eigenbasis of yields
because each coordinate of the forced response has magnitude at most the corresponding coordinate magnitude of . Thus
Let . Differentiating (43) gives
Scalar comparison with the logistic equation defining shows that, while ,
and therefore
Here . On the event , the upper bound prevents from reaching 2. The preceding estimates thus hold for all on an event whose probability tends to one. It follows that
Since and , continuous dependence of the scalar logistic equation gives the stated convergence to on bounded slow-time intervals.
Core hitting times. If , the limiting trajectory crosses strictly increasingly at . For every sufficiently small ,
Uniform convergence on this interval implies, with probability tending to one,
Letting proves the equivalent.
If , then the quantity
converges to a value strictly below . The global bound (44) excludes any crossing with probability tending to one. At equality, on every bounded interval, which proves .
Nuisance tracking. Direct differentiation of gives
Put and . Then
The matrix in the first line is symmetric and bounded below by . Also,
On events of probability tending to one, the preceding estimates give , , , and . Writing , the norm inequality yields
Using and proves
uniformly for .
Suppose now that . For , the first term is bounded by
and the second term also vanishes. Finally,
The second term is uniformly . This completes the proof.
B.2. Proof of Theorem 6
Since , the additional tracking condition in Proposition 5 holds automatically. Moreover,
Combining nuisance tracking with core convergence gives, uniformly on every ,
The limiting core stays strictly below one on every such compact interval. The limiting nuisance norm is therefore bounded away from zero there. Applying the exact test-accuracy formula proves the asserted uniform accuracy convergence.
The mismatch bound reduces to
on events of probability tending to one. Given , the second term is eventually at most , and the first is at most after a deterministic time. Thus .
Excluding crossings before the slow phase. Define
The fast test curve tends to . Since ,
We claim that, for sufficiently small fixed , there is no crossing before with probability tending to one. On every fixed interval , this follows from uniform fast-phase convergence and the strict gap .
For the remaining interval , core convergence and continuity at ensure that stays arbitrarily close to when is small. Meanwhile,
First choose small, then large. The exact accuracy formula and then keep the test accuracy strictly below throughout this interval, with probability tending to one.
Attainable targets. Suppose . The limiting accuracy crosses strictly increasingly at . Uniform convergence on compact positive slow-time intervals brackets this crossing, exactly as in the core hitting-time argument. The preceding early-time exclusion ensures that it is the first crossing. Hence
Unattainable targets. Suppose . The global core bound gives
whose right-hand side is strictly below . For every fixed , nuisance tracking holds uniformly for all . The nuisance norm is then bounded away from zero, and the exact accuracy formula gives
with probability tending to one. Together with the early-time exclusion, this proves non-attainment.
B.3. Proof of Theorem 7
Here . Since , we have . The core conclusions therefore follow directly from Proposition 5 with .
Nuisance entry and stationary limits. The mismatch bound shows that, for every fixed , permanent entry occurs by a time of order with probability tending to one. Furthermore,
To prove divergence of the entry time, fix . Fast-phase convergence gives , while and . The triangle inequality therefore gives
Thus , which implies .
The finite-sample stationary formula is
Since , , and , the stated stationary limits follow.
A time after which absolute tracking holds. Set
The assumptions imply . The mismatch estimate and the global core approximation give
Indeed, the decaying term is at most , and both remaining errors vanish under . The same core approximation shows that
Excluding early test crossings. For every fixed , fast-phase convergence excludes a crossing on when . We also need to exclude the interval .
On an event whose probability tends to one, for . In an eigenbasis of , variation of constants therefore gives, for ,
For each fixed T, Gaussian quadratic-form concentration and Marcenko–Pastur convergence imply that the sum converges in probability to
This uses a bounded continuous spectral function at fixed . As , , because the density of is asymptotic to at zero. Choose a fixed large enough that the preceding lower bound exceeds with probability tending to one. Since on the same event, the test accuracy then stays below on .
Logistic behavior on the longer clock. With probability tending to one, put
The explicit comparison trajectory is
and so
Here , , and .
Now, fix and define
Equation (46) gives
in probability. For the first assertion, the decaying term has size before multiplication by . For the second, its size is , while the stationary term converges to after that multiplication.
Attainable targets. Suppose . Since is increasing, the first preceding limit and (45) imply that the nuisance norm diverges uniformly over . Thus test accuracy stays below there with probability tending to one. Together with early-time exclusion, this gives
with probability tending to one.
At , core convergence through the global approximation gives , and (45) gives . The test accuracy therefore tends to , with the value interpreted as one when . Consequently,
with probability tending to one. Letting proves
Finally, direct substitution in (11) gives
which proves the other equivalent in the statement.
Unattainable targets. Suppose . From (46),
uniformly for all . Combining this with (45) and gives
with probability tending to one. Early-time exclusion handles the remaining interval, proving non-attainment. This completes the proof of the theorem.
Appendix C. Experimental validation
In this section, we provide extended experimental results under continuous gradient dynamics analyzed in the main text. Furthermore, we show that our theoretical predictions directly extend to Gradient Descent via rescaled time , where denotes the step size and the iteration index.
C.1. Setup
All experiments are run on a synthetic dataset generated according to the distribution defined in Equation 1. Continuous-time trajectories are obtained by numerically integrating the exact ODEs (Equation 7). For discrete-time Gradient Descent, student models (Equation 2) are trained using vanilla gradient descent with a learning rate of . Core feature weights and are initialized following Assumption 1. Nuisance feature weights are initialized using PyTorch's default uniform initialization and subsequently normalized to unit norm ( ).
C.2. Results
We empirically validate our main Theorem 3 across both continuous gradient dynamics and gradient descent.
Grokking trajectories ( ) Figure 5 compares the temporal evolution of accuracy and the core feature under gradient dynamics and gradient descent. Both experiments use samples, nuisance features ( ), and initial core feature scale . The close agreement confirms that discrete gradient descent trajectories converge to the corresponding gradient dynamics limit under the time rescaling.
Logarithmic scaling of grokking time Figure 6 illustrates the normalized grokking time as a function of log-inverse core feature initialization under gradient descent ( ). The empirically measured hitting times scale linearly with and closely follow the theoretical prediction (11). This demonstrates that the logarithmic plateau time derived for continuous gradient dynamics holds identically for discrete gradient descent.
Phase portrait Figure 8 presents the phase portrait of against in the underparametrized regime. Notice the fast relaxation of the fast variable W and the slow evolution along the neighborhood of the slow manifold, following Fenichel theory. Notably, when grokking fails to occur, the phase trajectory shifts toward the left.

(a) Gradient Descent (Discrete Dynamics)

(b) Gradient Flow (Continuous ODE)
Figure 5: Grokking in the under-parameterized regime ( ) for gradient descent and continuous gradient flow. Both experiments use samples, nuisance features ( ), and initial core feature scale . Signal strength is . (a) Gradient Descent with rescaled time. (b) Continuous Gradient Flow ODE. The close match confirms that the theoretical continuous-time analysis accurately captures discrete GD dynamics.

Figure 6: Logarithmic scaling of grokking time w.r.t core feature initialization under Gradient Descent. Comparing gradient-flow (left) and gradient-descent (right). The settings are identity to Figure 4 of the main text. GD is run with setup as described in Section C.1.

(a) Vanishing SNR .

(b) Very weak SNR .

(c) Weak SNR .
Figure 7: Grokking at hard interpolation . Here we use samples and nuisance features ( ). This is an extension of experiments in Figure 1, using regularized models . Here, critical threshold is and in last two columns. For fixed and , increases as the regularization increases, making grokking harder to happen.
Appendix D. Additional experimental results
D.1. Dependence of Grokking Plateau Length on Initialization
See Figure 9.


Figure 8: Phase portrait against in under-parametrized model ( ). Experiments use samples, and nuisance features. Results illustrate phase portraits from experiments in Figure 2. For small SNR (top row), dynamics exhibit a fast initial relaxation in time scale of (visible as a near-vertical trajectory at the beginning of training), after which nuisance feature weights are trapped in slow manifold , directly validating Theorem 3 via Fenichel theory. Notice that moderate SRN (bottom row) accelerates grokking, yielding a reduced hitting time, in exact agreement with our analytical .

Figure 9: Plateau length as a function of initialization scale. For these experiments, the signal strength is set to and the weight decay is turned off ( ). In each case, the straight broken line (theory) represents , where and the intercept is an explicit function of the target test accuracy (here ), but not on the initialization , etc. The grokking time is measured empirically. The scale is as defined in (16). Left: Under-parametrized regime . We use and as in Figure 4. The theoretical curve is given by (20). Right: Near the hard interpolation edge . Here, we use and . For the theory curve, we use (21). As in (20), notice the perfect match between experiment and our theoretical predictions from Section 4.3.

Figure 10: Plateau length in under-parametrized regime . Here samples and , making larger. Signal strength is and regularization is odd. Under the limit 16, the measured normalized grokking time is close to the theory as expected.