Explore the research collection
2 entries · Follow this search
- Paper
Subspace Crystallization in Grokking: Rank Compression Tracks the Phase Transition
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.
- Dataset
EsoLang-Bench
EsoLang-Bench is a contamination-resistant benchmark for evaluating large language models on out-of-distribution programming languages. It contains **80 algorithmic programming problems** organised into four difficulty tiers, each shipped with **6 hidden input-output test cases** for byte-exact scoring. Problems are language-agnostic and intended to be solved in five esoteric target languages whose pre-training presence is many orders of magnitude smaller than mainstream languages.