← Latest papers
📊 statistics

To Grok Grokking: Provable Grokking in Ridge Regression

This paper provides the first rigorous quantitative bounds on "grokking time" by proving that over-parameterized linear regression models trained with gradient descent and weight decay inevitably transition from overfitting to perfect generalization, demonstrating that this phenomenon is a controllable consequence of training conditions rather than an inherent failure of deep learning.

Original authors: Mingyue Xu, Gal Vardi, Itay Safran

Published 2026-06-01
📖 5 min read🧠 Deep dive

Original authors: Mingyue Xu, Gal Vardi, Itay Safran

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are teaching a student to solve math problems. You give them a specific set of practice questions (the training data) and a rulebook (the learning algorithm).

Usually, we expect a student to get better at solving new problems (generalization) as they practice more. But sometimes, something weird happens. The student memorizes the practice questions perfectly, gets a 100% score, and then... nothing happens. They keep getting 100% on the practice sheet, but if you give them a new test, they fail miserably. They stay stuck in this "memorized but clueless" state for a long time.

Then, suddenly, after what looks like endless stagnation, the student has an "aha!" moment. They stop just memorizing and actually start understanding the underlying logic. Suddenly, they ace the new test.

This phenomenon is called "Grokking." It's like the student was sleeping through the lesson, memorized the answers by rote, and then woke up years later to finally understand the concept.

The Paper's Big Discovery

For a long time, scientists thought this "Grokking" only happened in super-complex, mysterious AI systems (like deep neural networks). They thought it was a weird glitch of modern technology.

This paper, however, says: "Wait a minute. You don't need a super-computer for this to happen."

The authors proved that Grokking can happen in the simplest, most classic math problem imaginable: Ridge Regression. Think of this as a very basic, linear way of drawing a line through a cloud of dots. It's the "Hello World" of machine learning.

They showed that even with this simple tool, if you tune the settings just right, you can force the model to:

  1. Memorize the data quickly (Overfitting).
  2. Stumble for a long time, failing to understand new data (The "Grokking Time").
  3. Suddenly understand and generalize perfectly.

The Secret Sauce: The "Weight Decay" Knob

The paper identifies the main culprit behind this delay as a setting called Weight Decay.

Imagine you are driving a car (the model) toward a destination (the correct answer).

  • The Training Data is a map of a specific route you've driven before.
  • Weight Decay is like a gentle hand on the steering wheel that constantly tries to push the car back toward the center of the road, preventing it from drifting too far off course.

Here is the analogy for what the paper found:

  1. The Fast Lane (Training Error): When the car is on the familiar road (the training data), it zooms forward very quickly. Even with the gentle hand on the wheel (small weight decay), the car fits the road perfectly. The driver thinks, "I'm doing great!"
  2. The Stuck Phase (The Grokking Time): But when the driver tries to leave the familiar road and drive on a new road (generalization), the car gets stuck. The "hand on the wheel" (weight decay) is too weak to pull the car out of the deep ruts of the old road. The car is technically moving, but it's just spinning its wheels in the mud of the old path. It takes a long time for the car to slowly drift out of those ruts.
  3. The Breakthrough: Eventually, the gentle hand (weight decay) does its job. It slowly pulls the car out of the deep ruts and onto the center of the road. Once the car is centered, it can finally drive smoothly on any new road.

What the Paper Proves

The authors didn't just watch this happen; they wrote a mathematical recipe to predict exactly how long the car will be stuck in the mud.

  • The Smaller the Weight Decay: The longer the car stays stuck. If you turn the "hand on the wheel" almost off, the car might stay in the ruts for an incredibly long time before finally generalizing.
  • The More Data: If you have a huge map (lots of training data), the car gets stuck faster because the ruts are deeper.
  • The More Dimensions: If the road is very wide and complex, the car takes longer to find the center.

Why This Matters

The paper argues that Grokking isn't a magical failure of "Deep Learning" or a sign that AI is broken. It's not a bug; it's a feature of how certain training conditions work.

It's like saying, "If you teach a student to memorize answers without letting them think, they will eventually figure it out, but it will take a long time." The paper shows that by adjusting the "teaching style" (the hyperparameters like weight decay), you can control exactly how long that delay lasts. You can make the student grok instantly, or make them wait for years, all with the same simple math.

In short: The paper proves that this strange "memorize first, understand later" behavior is a fundamental property of learning algorithms, not a mystery of complex AI. It happens even in the simplest math classes, and we can now calculate exactly how long the "understanding" will be delayed.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →