Grokking isn't a sudden insight: representation learning is gradual, just slower than the readout

Two Speeds of Learning: A Representation-Readout Decomposition of Grokking and Double Descent

Chi-Ning Chou, Oscar Uzdelewicz, Neng-Chun Chiu, Yao-Yuan Yang, SueYeon Chung

cs.LG, cs.AI

2026-05-26

Tracking encoder and readout separately shows grokking's representation learning is gradual while the readout locks onto train data first; the same signatures flag spurious cases.

What problem this solves

Train loss and accuracy are the standard signals for judging whether a network is generalizing, and two phenomena break that monitoring loop. In grokking, training loss converges almost immediately while test accuracy sits near chance for a long stretch, then jumps. In epoch-wise double descent, training loss falls monotonically while test error rises and then falls again. Both undermine early-stopping decisions, and both have often been read as phase transitions in learning dynamics.

Existing explanations are mostly task-specific: Fourier progress measures for modular addition, circuit-competition accounts for sparse parity. What has been missing is a task-agnostic framework with observables that transfer across tasks and architectures.

Method

The paper splits a network at its final linear layer: f(x) = Wφ(x). The encoder φ carries representation learning; the readout W calibrates a classifier on whatever representation currently exists. The final layer is the one structural element shared by MLPs, CNNs, and transformers, so the measures need no task-specific adaptation. Four diagnostics track the two processes separately:

Experiments cover three algorithmic tasks with known mechanistic solutions (modular addition with p=113, permutation composition on S5 with 120 classes, sparse parity with n=40, k=3), each trained as an MLP and a transformer, plus a small-sample MNIST setup; double descent is reproduced with a ResNet-18 on CIFAR-10 with label noise.

Results

ObservationSettingResult
Share of the total Ncrit drop completed before grokking onset7 task-model pairs, 3 seeds20%–80% on train, 5%–50% on test
Train-minus-test NTK alignment gapgrokking settingspeaks near train saturation, decays to zero as grokking completes; far smaller in non-grokking controls
Final test accuracy of the MNIST "grokking" exampleinitial weights scaled >4x, only 1k of 60k samples80%, versus 98% for an SVM on the same task

Across the algorithmic tasks, Ncrit declines continuously through all four training phases with no discontinuity at grokking onset. That contradicts the strict lazy-to-rich account, under which features should stay frozen until the transition: representation learning is active throughout, just slower than the readout. The two architectures also take different geometric routes to the same surface behavior: MLPs raise center alignment ρc and lower axis alignment ρa, transformers do the opposite, while manifold radius and dimension fall in both.

The same diagnostics separate genuine from spurious generalization. A previously reported MNIST grokking example ends near 80% test accuracy where an SVM reaches about 98%, a sign the recipe itself caps learning. Before onset, the model's generalization gap far exceeds the probe's (readout overfitting) while probe accuracy falls and Ncrit rises (training is actively degrading the representation). Remove the two non-standard ingredients, the inflated initial weights and the 1k-of-60k sample subset, and both the grokking curve and the signatures vanish.

Double descent reads as two acts: in the descent phase representations deteriorate (Ncrit up, alignment down); in the recovery phase the readout is taken over by noisy labels, whose NTK alignment overtakes that of clean labels. Removing label noise removes the double descent and the signatures together.

Why it matters

For anyone monitoring training, these measures add observables beyond loss and accuracy; the appendix shows they are consistent across train/test splits, so representation health can be read without waiting for test results. For interpretability, this is a top-down complement to circuit-level work: it says where representation quality stands and where the readout is stuck before anyone goes hunting for circuits, fixing a weakness of bottom-up analysis, which rarely transfers across tasks.

To be clear about what it is not: this is an analysis framework, not a training method. The paper reports no accuracy gains; the deliverable is a way to judge.

For the grokking literature the message is corrective. Delayed generalization needs no phase-transition story; it is closer to two processes with very different speeds slowly converging. And phenomena induced by extreme recipes deserve an authenticity check before conclusions are drawn from them.

Limitations

The authors list three: the decomposition operates only at the final layer; task-specific structure (the group structure of modular addition, for instance) is left unused beyond a preliminary appendix; and there is no lightweight version of the measures, so practitioner tooling remains future work.

Two more concerns from reading it. The calls of "far exceeds" and "far smaller" rest on figure-level comparison against control runs, with no operational thresholds stated in the main text, so applying the signatures to a new setup risks eyeballing. And the evidence base is small: tiny algorithmic tasks plus a reproduced ResNet-18/CIFAR-10 setting; nothing tests whether the framework holds on large models or real-world data. The suggestion that these signatures could detect misalignment in safety-critical models is currently unsupported by any experiment.

Terms

Source

What people are saying

Related papers

All paper explainers