Subspace Crystallization in Grokking: Rank Compression Tracks the Phase Transition
Summary
Question: when a network groks - generalizes long after memorizing - the effective rank of its weight matrices collapses; does that rank compression cause grokking or follow it? Setup: a mean-field MLP and a one-layer transformer trained on modular arithmetic ((a+b) mod 97; the MLP also ab mod 97 and (a+b) mod 113), full batch, AdamW; compression tracked via effective rank and a 'sufficient subspace' (the fewest top singular directions preserving 99% of test accuracy, with a margin-free variant counting directions that keep outputs within 10%). Findings: (1) Timing - every transformer memorizes within 250 steps while grokking onset (first step at 95% test accuracy) varies from 6,500 to 21,000 steps; the steepest effective-rank fall comes about 900 steps AFTER onset, however late onset arrives, and networks that memorize without grokking compress far less - compression tracks the transition, not memorization. (2) Crystallization - at the transition the transformer's sufficient subspace falls discontinuously from a quarter or more of the available directions to about a tenth; the surviving subspace is interpretable: the (a+b) mod 97 circuit needs only ~4 singular directions, the embedding encodes ~4 Fourier frequencies, and the grokked rank is roughly double that (a full Fourier basis) - the rank is dictated by the problem, not the data. (3) Forcing compression does not help - training with low-rank updates to the MLP's layer-2 matrix (capped at rank 16, its eventual grokked rank) after memorization does not speed grokking, weight decay used as a forcing device is likewise null, and in the transformer, against a factorized full-rank control, capping the MLP input weights' rank delays onset while capping the embedding's rank stops 15 of 20 runs from grokking at all. Verdict: compression is a signature of grokking, not its cause; the authors' shared-cause account is that a late optimizer-driven collapse both generates the task features and crystallizes the weights - consistent with Barron et al.'s result that in Adam's small-step (g/eps) regime, weight decay applies a near-constant drift that zeroes all but the most important directions, which is why the MLP keeps compressing after grokking; the pattern holds across Adam, SGD with momentum, and full-batch gradient descent. Caveats: toy regime throughout (modular arithmetic, tiny models, full-batch training) - the causal claim is established for this regime and transfer to large-scale pretraining is untested; results are first-party, though the MIT-licensed repo ships all analysis outputs plus a preregistered held-out-seed replication. Monitoring note for Hudson: effective-rank collapse here is a LAGGING indicator of the generalization transition (~900 steps behind onset), not a leading one.
- Venue
- arXiv preprint
- Source
- arxiv
- Access
- free
- Language
- en
- Added
- Nov 5, 2026
- Verified
- Nov 5, 2026
Research notes
- License: paper CC BY 4.0 (arXiv record); code MIT (github.com/Lossfunk/Causal-geometric-grokking; ships analysis outputs + preregistered holdout). Submitted 26 Oct 2026 (cs.LG; cross-listed cs.AI). Shared via @lossfunk launch thread 2026-11-05 (status 2118307319264235620). Project page: mehshlok.github.io/subspace-crystallization; discussion: alphaxiv.org/abs/2610.35112.
Similar entries
- Paper Periodic Weak Spots: Phase Sensitivity from Chunked KV-Cache Compression
- Paper MILO: Efficient Many-shot In-Context Learning with Block-wise Low-rank Compression
- Paper Late-Stage Generalization Collapse in Grokking: Detecting anti-grokking with WeightWatcher
- Paper The Universal Weight Subspace Hypothesis
- Paper LoGRA: Scaling LLM Reinforcement Learning with Low-Rank Gradient Sketches
- Paper Quiet Feature Learning in Algorithmic Tasks