[Paper Review] To Grok Grokking: Provable Grokking in Ridge Regression
The paper provides the first end-to-end provable grokking results in an over-parameterized ridge regression setup, showing training overfitting followed by delayed generalization and eventual generalization, with hyperparameters able to tune the grokking delay.
We study grokking, the onset of generalization long after overfitting, in a classical ridge regression setting. We prove end-to-end grokking results for learning over-parameterized linear regression models using gradient descent with weight decay. Specifically, we prove that the following stages occur: (i) the model overfits the training data early during training; (ii) poor generalization persists long after overfitting has manifested; and (iii) the generalization error eventually becomes arbitrarily small. Moreover, we show, both theoretically and empirically, that grokking can be amplified or eliminated in a principled manner through proper hyperparameter tuning. To the best of our knowledge, these are the first rigorous quantitative bounds on the generalization delay (which we refer to as the "grokking time") in terms of training hyperparameters. Lastly, going beyond the linear setting, we empirically demonstrate that our quantitative bounds also capture the behavior of grokking on non-linear neural networks. Our results suggest that grokking is not an inherent failure mode of deep learning, but rather a consequence of specific training conditions, and thus does not require fundamental changes to the model architecture or learning algorithm to avoid.
Motivation & Objective
- Motivate and formalize grokking in a classical regression setting as an end-to-end phenomenon.
- Show that gradient descent with weight decay can exhibit grokking in ridge regression.
- Derive quantitative bounds on grokking time as functions of hyperparameters.
- Provide theoretical and empirical evidence that grokking can be amplified or mitigated via hyperparameter tuning.
Proposed method
- Study an over-parameterized ridge regression problem with a realizable teacher function and a student linear model.
- Train using gradient descent with weight decay on a regularized squared loss.
- Prove three-stage grokking behavior: fast training loss decay, long-lasting poor generalization, and eventual good generalization (Theorem 4.2).
- Provide explicit bounds on grokking time (t2 - t1) in terms of hyperparameters (Equations (6)–(7)).
- Analyze the influence of hyperparameters (weight decay, sample size, feature dimension, initialization) on grokking as supported by theory and experiments.
- Extend insights to non-linear networks empirically, showing qualitative alignment with linear-ridge bounds.

Experimental results
Research questions
- RQ1Can grokking be proven end-to-end in a classical linear regression with ridge regularization and gradient descent?
- RQ2How do training dynamics create a delay between overfitting and generalization in over-parameterized ridge regression?
- RQ3How do hyperparameters (e.g., weight decay, initialization scale, sample size, feature dimension) quantitatively affect the grokking time?
- RQ4Do the theoretical grokking bounds extend to non-linear networks empirically?
Key findings
- Grokking occurs: training error decays quickly, generalization remains poor for a long period, then generalization improves to arbitrary accuracy (Theorem 4.2).
- There are quantitative lower bounds on grokking time (t2 − t1) showing controllable delay via hyperparameters (Equations (6) and (7)).
- Smaller weight decay increases grokking delay, with t2 growing and t1 unaffected by λ, enabling arbitrarily large delays under appropriate conditions.
- Initialization scale, sample size, and feature dimensionality influence the grokking timeline in predictable ways described by the theorems and corroborated by experiments.
- Experiments corroborate theoretical bounds and demonstrate hyperparameter-driven control of grokking in both linear and non-linear settings.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.