To Grok Grokking: Provable Grokking in Ridge Regression
SAI replication review · Referee report
Summary
The paper takes on a genuinely appealing target: give the first end-to-end mathematical proof of grokking — early overfitting, a long plateau of poor generalization, then eventual small generalization error — in a classical, transparent setting. The chosen setting is over-parameterized ridge regression with a fixed feature map, a realizable teacher , Gaussian random initialization, and vanilla GD with weight decay. Within that scope the argument is clean: decompose along and orthogonal to the row space of ; observe that contracts at rate while contracts only at rate ; combine with a Rademacher-based uniform-convergence bound for the eventual generalization. The three-stage result is packaged as Theorems 4.4/4.5/4.6 and assembled into Theorem 4.2, and a Gaussian-features specialization (Eq. 8) turns the rates into explicit closed forms in . Independent re-implementation of the experiments (no author code was released) matches the paper's headline numbers at the reported hyperparameters: on the ridge Figure 1 setup, training loss crosses the threshold near step while test loss does not until ; the Eq. (8) upper and lower bounds hold at all 23 sweep points in Figure 2, with following at a log-log slope of ; the Theorem 4.1 envelopes hold at every recorded step across all 50 seeds.
The main conceptual worry is scope: the mechanism proved here — slow weight-decay-driven shrinkage of an over-parameterized null-space component — is essentially a well-known behaviour of ridge regression, and it is not obvious that this is the same phenomenon as the delayed emergence of generalization on modular arithmetic or sparse-parity tasks, where feature learning, circuit formation, and lazy-to-rich transitions are the standard explanations. Fully realizable, noiseless labels leave the theorems silent on precisely the setting where grokking looks most striking; the paper acknowledges this openly, but the current framing ("provable grokking") is broader than what the proofs support. A related question is whether the result distinguishes grokking from ordinary slow convergence: making inflates both and , and no lower bound on the ratio is stated. The step from the ridge story to non-linear networks in Section 5 is presented as suggestive rather than derived, and the replication surfaces a directional inversion in one panel and a silent reproducibility failure in Figure 5 that the paper would need to address.
Strengths
- Clean, transparent setting. Ridge regression with a fixed feature map is possibly the simplest possible arena for a rigorous grokking analysis, and the paper makes good use of that simplicity — the mechanism (rate separation of vs ) is legible and lends itself to explicit hyperparameter dependence.
- End-to-end structure. Unlike prior work that proves parts of the picture (fast overfitting, or late-stage convergence, or rate transitions), the paper stitches all three stages into one theorem with matching high-probability guarantees.
- Explicit quantitative bounds. Equations (6)–(8) turn the informal statement "grokking time can be made large" into concrete, closed-form dependencies on , , , , which is genuinely useful for anyone trying to design controlled grokking experiments.
- Careful hyperparameter empirics. Figure 2 goes beyond qualitative shape and directly overlays the theoretical bound from Eq. (8), and the linear-ridge experiments reproduce the predicted scaling of and — independent re-implementation gives a -vs- log-log slope of and near-perfect linear-in- fits ().
- Theorem 4.1 envelopes hold quantitatively. The training-loss upper bound and population-loss lower bound of Theorem 4.1 hold at every recorded step across 50 independent seeds in the reproduction, with the empirical training-loss decay exponent about larger than and the empirical population-loss exponent equal to to five significant figures — a strong quantitative confirmation of the rate-separation mechanism.
- Honest scope reporting. The paper explicitly names its open problems (non-realizable ridge, agnostic random features, lazy-to-rich transitions) and identifies where its techniques break, which is more useful for follow-up work than a broader claim.
Weaknesses
- Realizable, noiseless setting is a strong scope restriction. The proofs only speak to fully realizable teachers. Classical grokking observations (Power et al., 2022) sit alongside noisy or agnostic settings, and Figure 6 (label noise) and Figure 3 (non-realizable random features) both show grokking-like behaviour that the theorems do not cover. The formal contribution should be positioned more precisely against this gap.
- Ambiguity about whether the mechanism is "grokking". The proved mechanism is a rate separation intrinsic to over-parameterized ridge regression. It is unclear whether this is the same phenomenon studied in modular arithmetic / sparse parity, where feature learning and lazy-to-rich transitions are the operative story. The paper does not really argue that the two are the same.
- No lower bound on the ratio . The construction that makes arbitrarily large also makes both and large in absolute terms. Grokking is usually understood as a disproportionate delay; without an explicit bound on the ratio, the theorems technically allow the null hypothesis "regularization is weak so learning is slow uniformly".
- Marchenko–Pastur invocation is non-standard. The limit in Remark 4.3 does not obviously match the standard MP edges for the declared normalisation ( entries variance , ). Either the exact scaling should be derived, or the formula should be replaced by the standard form with clearly stated normalizations.
- Step-size condition uses a loose smoothness surrogate. The stability bound uses rather than the top eigenvalue of . In the over-parameterized regime this can be substantially conservative, and the experiments (which use ) likely violate the stated condition even though GD is empirically stable.
- Overclaims in framing. "Fully and quantitatively controlled" is stronger than the one-sided lower bounds actually established, and the abstract's "amplified or eliminated" claim is only demonstrated on the amplification side — no panel shows the plateau disappearing, and re-running the Figure 2 sweep confirms that even at the largest swept the gap is still , more than a decade. Similarly, the "misspecified to well-specified prior" narrative in the discussion is asserted rather than derived from the analysis.
- Section 5.2 handwaves the residual approximation error. Framing the random-features experiment as "arbitrarily close to realizable" is not the same as realizable — the residual training loss at any finite is positive, and Theorem 4.6 gives , which the tight generalization narrative depends on being small. The apparent contradiction with the Section 6 statement that "arbitrarily small weight decay in the agnostic setting may impede generalization entirely" is not reconciled.
- The Xu et al. (2024) and Boursier et al. (2025) contrasts are load-bearing but under-argued. Both comparisons are one sentence each, and it is not clear whether the gap being closed is a proof-technique gap or a behavioural gap. Making these more specific would strengthen the novelty claim.
- Local expositional slips. is described as "remaining close to its initialization" while the eventual-generalization guarantee requires it to decay; the loss-rate and parameter-rate are used side by side without signposting; the identification of the convergence target with implicitly assumes is full rank. A duplicate "Left Lower" appears in the Figure 3 caption.
Reproducibility & code
The manuscript ships no code, so the observations below come from an independent re-implementation reconstructed from the paper text and run at the stated hyperparameters. The picture is broadly positive — the theoretical experiments are amenable to reconstruction and the headline claims reproduce — but a few underspecified choices caused silent failures.
- Headline linear-ridge results reproduce cleanly. Figures 1 and 2 come out as claimed at the reported settings: vs over 50 seeds on the Figure 1 Left setup; the Eq. (8) upper and lower bounds hold at all 23 sweep points; the -vs- log-log slope is ; the Theorem 4.1 envelopes hold at every recorded step across all 50 seeds; and the dependence is near-perfectly linear in ().
- Figure 5's teacher is missing from the specification. Appendix B gives but not the teacher. Under the natural reading — inheriting the non-realizable single-ReLU-neuron teacher of Section 5.2 — the surrogate-accuracy curve fails silently to leave the low plateau, staying in for the full steps. Only after switching to a realizable linear teacher over the same feature map (implied by Appendix B's phrase "linear regression") does the figure's phenomenon appear. This should be a one-line clarification in the caption.
- Figure 3 population loss floors above the paper's threshold. Because the Section 5.2 teacher is non-realizable, the test loss never reaches in any of the 16 replicated sweep configurations, so the paper's own definition of is unresolved throughout. The qualitative delayed-descent shape is still visible, but Figure 3 does not exhibit the sharp late collapse of the realizable ridge picture.
- Figure 4 has a directional discrepancy on the panel. Three of four Figure 4 dependencies match Figure 2 in the reproduction, but increasing decreases in Figure 4 (2501 / 1914 / 1196 for ) where Figure 2 raises it (123 to 352 across to ). The trend is monotone with roughly non-overlapping run-to-run spread, so it is not noise; the likely cause is the hidden-layer init , which makes scale feature magnitudes as well as output-layer scale. The paper's "qualitative match" claim needs to be narrowed to or the mismatch should be discussed.
- Elimination of grokking (abstract's second-half claim) is not evidenced. The Figure 2 sweep stops at , at which (still a full decade of visible plateau), and the codebase's own diagnostic already flags as outside the required rate-separation regime . No no-grokking setting is exercised in either theory or experiment.
- Fixed silently constrains the admissible range. For the random ReLU features setting, at the reported violates the Theorem 4.1 step-size condition and losses diverge to within a few hundred steps. Section 5.2 states no range and no stability condition, so extending the sweep past is a trap for reproducers.
- Label-noise "insensitivity" holds only for low std. At the paper's std the median values are near-identical (k, k, k); extending to std (values the paper does not claim) makes the test loss rise above and becomes unresolved — a boundary the caption should acknowledge.
- Setup-paragraph specification is incomplete. Figure 1's caption lists but not the input/feature distribution (Section 5.1's has to be assumed); the number of runs and dispersion-band definitions are stated for Figure 1 (50 runs) but not for Figures 2, 3, 4; the test-loss estimation protocol (analytical via vs held-out sample) is unstated for the non-linear experiments; the Figure 6 caption does not state the pre-noise teacher.
Recommended Changes
Essential
- Clarify scope of "grokking" claim. Add a sentence to the introduction and abstract distinguishing the mechanism the paper proves (over-parameterized ridge null-space slow-mode) from the feature-learning / lazy-to-rich stories in the modular-arithmetic grokking literature — as raised under "Ambiguity about whether the mechanism is 'grokking'" and "Realizable, noiseless setting is a strong scope restriction".
- State an explicit bound on (or its absence). As raised under "No lower bound on the ratio ", either prove that the ratio grows as (arguing this is genuine grokking rather than uniform slow convergence) or state clearly that the current bounds do not separate the two.
- State the Figure 5 teacher explicitly. As raised under "Figure 5's teacher is missing from the specification", add a one-line statement that Figure 5 uses a realizable linear teacher over the specified feature map, and note that realizability is what makes the surrogate-accuracy plateau appear.
- Reduce framing overclaims and add an elimination panel (or drop the claim). As raised under "Overclaims in framing" and "Elimination of grokking is not evidenced", either add an experimental panel showing collapsing under sufficiently large (with a matching theoretical prediction), or drop "eliminated" from the abstract and downgrade "fully and quantitatively controlled" in Section 1.
- Reconcile the small- agnostic claim in Section 6 with the empirics. As raised under "Section 5.2 handwaves the residual approximation error" and "Section 6's negative claim about the agnostic case is too vague", give the mechanistic reason (e.g., recovers the ridgeless interpolator that overfits noise) so the apparent conflict with Figures 3 and 6 is resolved.
- Fix or derive the Marchenko–Pastur limit in Remark 4.3. As raised under "Marchenko–Pastur invocation is non-standard", either replace with the standard form under a clearly stated normalisation for , or add the two-line derivation that yields the currently-stated .
- Discuss the Figure 4 directional discrepancy or narrow the qualitative-match claim. As raised under "Figure 4 has a directional discrepancy on the panel", either explain why the two-layer ReLU network moves opposite to the ridge case under increasing , or narrow the Section 5.3 claim to the panels.
- Release code with the exact Eq. (8) plotting formulas, sweep grids, seeds, and extraction rules. As raised throughout Reproducibility & code — reconstruction from the manuscript alone works but is fragile at the specifications above.
Suggested
- Sharpen the Xu et al. (2024) and Boursier et al. (2025) contrasts. Add one sentence each specifying which part of their result is missing (proof-technique gap vs behavioural gap), as raised under "The Xu et al. (2024) and Boursier et al. (2025) contrasts are load-bearing but under-argued".
- State input/feature distributions, run counts, dispersion bands, and test-loss protocol in every figure caption. In-place statements for Figures 1, 3, 4, 5, 6, 7 covering , teacher distribution where applicable, number of runs, dispersion-band definition, and the analytical-vs-held-out test-loss estimator (as raised throughout Reproducibility & code).
- Note the step-size gap between theory and experiment. Comment that the trace-based bound is conservative relative to the operator norm, and that experiments with still lie in the intended regime (as raised under "Step-size condition uses a loose smoothness surrogate").
- Add a stability caveat for the Section 5.2 sweep. State the admissible range at the fixed so re-implementers do not step into the divergent regime (as raised under "Fixed silently constrains the admissible range").
- Signpost loss-rate vs parameter-rate. One sentence clarifying that is a loss rate while is a parameter rate would prevent readers from hunting for a nonexistent inconsistency (as raised under "Local expositional slips").
- Qualify " remains close to its initialization" and the identification of the convergence target with . These are correct with mild qualifiers ("for many steps", "under ") that would prevent misreading (as raised under "Local expositional slips").
- Soften "misspecified to well-specified prior" to interpretive language. Replace "Hence" with "This can be viewed as", since the correspondence is a narrative rather than a formal consequence (as raised under "Overclaims in framing").
- Fix the duplicate "Left Lower" in the Figure 3 caption. Trivial correction, as raised under "Local expositional slips".
- Qualify the label-noise "insensitivity" claim to the low-noise range. Note that the claim holds within the range shown and that at higher std the threshold-based definition ceases to resolve (as raised under "Label-noise insensitivity holds only for low std").
- Cite non-asymptotic bounds on where they apply. Bai–Yin / Silverstein and Rudelson–Vershynin bounds give finite- information the paper currently disclaims (as raised under " is treated as unknown while known non-asymptotic bounds apply").
- Note the "" leading factor. Point out that item (iii)'s "arbitrarily small generalization error" claim depends on realizability making , and that the factor of 2 would matter outside the realizable case (as raised under "Uniform-convergence bound gives ").