View a PDF of the paper titled Algebraic Generalization through Coherent Bridges: Grokking as a Delayed Regime, by Mian Wang
Abstract:Grokking is the temporal order where training targets become correct first, held-out targets much later, and fitted behavior persists. We test the algebraic process beneath that order on modular arithmetic. A frozen 36-run multiplication intervention fixes sample counts and marginal frequencies while keeping the modular relation, removing all length-three paths to held-out pairs, or randomizing labels. All 12 intact runs reach persistent 99% held-out capability versus 0/24 controls; median true-answer log-probability changes are +4.742, -5.263, and -6.717 (signed margins +11.207, -8.204, and -9.154). A matched 12-run counterfactual intervention keeps bridges coherent while replacing each product z by z^5 mod 97: median counterfactual capability is 1.0000 (0.5082–1.0000) versus 0.0614 for ordinary multiplication (91.43%–93.87% of acquired targets are wrong under ordinary multiplication). In Z_97, each complete nonzero path uniquely determines its held-out product; we call such a path an algebraically coherent bridge (ACB). From known-path predictions alone, 64 ACBs per target rank the true product highest for every held-out target in all nine configurations at interpolation, even at 0.388 direct capability. Exact dense replays show population scores and margins rising until held-out capability exceeds 0.95 in all three primary seeds. Finally, holding model, division task, split, seeds, and ACBs fixed, weight decay 1 yields early crossing, whereas zero decay drives margins far negative before crossing after 174,000 and 669,000 steps in two seeds (negative in the third). ACBs determine whether shared updates form a directional readout and which solution it targets; optimization determines temporal order. Grokking is this process’s delayed, preserving regime and does not require weight decay.
Submission history
From: Mian Wang [view email]
[v1]
Wed, 2 Dec 2026 05:16:56 UTC (106 KB)
[v2]
Thu, 3 Dec 2026 13:53:54 UTC (194 KB)
