Explaining Grokking in Transformers through the Lens of Inductive Bias
Jaisidh Singh, Diganta Misra, Antonio Orvieto

TL;DR
This paper explores the phenomenon of grokking in transformers by examining how architectural choices and optimization settings influence learning dynamics, revealing the role of inductive bias and feature compressibility in generalization.
Contribution
It provides a detailed analysis of how inductive biases from architecture and optimization affect grokking, highlighting the nuanced and continuous nature of feature evolution in transformers.
Findings
Layer Normalization position significantly affects grokking speed.
Optimization parameters like learning rate and weight decay influence grokking interpretations.
Feature compressibility correlates with generalization in grokking.
Abstract
We investigate grokking in transformers through the lens of inductive bias: dispositions arising from architecture or optimization that let the network prefer one solution over another. We first show that architectural choices such as the position of Layer Normalization (LN) strongly modulates grokking speed. This modulation is explained by isolating how LN on specific pathways shapes shortcut-learning and attention entropy. Subsequently, we study how different optimization settings modulate grokking, inducing distinct interpretations of previously proposed controls such as readout scale. Particularly, we find that using readout scale as a control for lazy training can be confounded by learning rate and weight decay in our setting. Accordingly, we show that features evolve continuously throughout training, suggesting grokking in transformers can be more nuanced than a lazy-to-rich…
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.
Taxonomy
TopicsAdvanced Memory and Neural Computing · Advanced Graph Neural Networks · Machine Learning in Materials Science
