Attention Head Specialization: Phase Transitions in Sample Complexity
L\'eo Catteau, O. Duranthon, Lenka Zdeborov\'a
Key points
From the paper's conclusion- We then study this phenomenon in a solvable high-dimensional model of multi-head attention and establish that, in this model, head specialization is a genuine phase transition in sample complexity, corresponding to a non-analyticity in the test error and other observables.
Abstract
Attention heads specialize into distinct functions during training, often emerging in stages together with sharp changes in model behavior. While this phenomenon has mostly been studied as a function of training time, we ask how head specialization depends on the amount of available training data. Empirically, we find that heads specialized to syntactic relations in BERT emerge as the dataset size increases. We then study this phenomenon in a solvable high-dimensional model of multi-head attention and establish that, in this model, head specialization is a genuine phase transition in sample complexity, corresponding to a non-analyticity in the test error and other observables. Depending on data structure and regularization, specialization can follow uninformative head differentiation or occur through a cascade of phase transitions that progressively recover weaker latent features, providing a statistical form of simplicity bias. Finally, we relate these statistical transitions to the stagewise emergence of specialized heads during online learning, disentangling statistical from dynamical origins of head specialization.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- The Emergence and Sparsification of a Syntactic CircuitarXiv · 2026
- Asymptotic Analysis of Discrete-Time Self-Attention Dynamics in TransformersarXiv · 2026
- Attention Function as an Intrinsic Inductive Bias: How Models' Behavior Diverges in Novel ContextsarXiv · 2026
- Emergent Inverse-Depth Scaling From Nonlinearity In AttentionarXiv · 2026
- Can Capability Enhancement be Localized?arXiv · 2026
- The Head Complexity of Boolean Functions in Single-Layer AttentionarXiv · 2026