Attention Head Specialization: Phase Transitions in Sample Complexity
Léo Catteau, O. Duranthon, Lenka Zdeborová
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.
Create a lesson
Related papers
Beyond Sample Hardness: Adaptive Data Selection through Learning Dynamics
Shared title terminology · Hai Gan, Suorong Yang, Guang Li et al.
Breaking the Barrier of Hard Samples: A Data-Centric Approach to Synthetic Data for Medical Tasks
Shared title terminology · Maynara Donato de Souza, Cleber Zanchettin
Turnout: Adaptive Attention Switching for Efficient Reasoning
Shared title terminology · Anna Kuzina, Mart van Baalen, Paul N. Whatmough et al.
Improved Accuracy Scaling with Problem Complexity in LLM Arithmetic Reasoning Using Executable Symbolic Representations
Shared title terminology · Yu-Bin Liu, Shi-Ju Ran
BusemannFormer: Horospherical Self-Attention for Hyperbolic Graph Transformers
Shared title terminology · Youheng Yao, Ziyao Zeng, Wenbo Liao et al.
HiSA: Sparsifying the Hidden Dimension of RoPE Attention in LLMs
Shared title terminology · Ambroise Borbely, Mathieu Salzmann, Olivier Verscheure