Grokking as Structural Inference: Transformers Need Bayesian Lottery Tickets
Kai Hidajat, Solden Stoll, Joseph An

TL;DR
This paper models attention in Transformers as a Bayesian posterior over task dependencies, explaining delayed generalization (grokking) as a structural inference problem and proposing interventions to accelerate learning.
Contribution
It introduces a Bayesian structural perspective on attention, decouples capacity and structural conditions for generalization, and proposes a KL-based intervention to speed up grokking.
Findings
Attention as Bayesian posterior explains grokking delays.
Structural interventions can bypass the delay and accelerate generalization.
Bayesian tickets outperform lottery tickets in transfer tasks.
Abstract
Why does a Transformer that has memorized its training set wait thousands of steps before it generalizes? Existing accounts locate this delay in norm minimization, feature emergence, or the late discovery of sparse subnetworks. These explanations capture important parts of the transition, but ignore a constraint unique to attention-based models: if attention discards an informative token, no bounded downstream computation can recover it. We formalize attention as an implicit Bayesian posterior over the task dependency graph and prove that generalization requires two separable conditions: a familiar Goldilocks bound on MLP capacity, coinciding with norm-based theories of grokking, and a novel Bayesian structural condition requiring attention to place sufficient mass on every informative token. This decoupling explains delayed generalization as delayed structural inference. Early in…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
