Attention Head Specialization: Phase Transitions in Sample Complexity

Léo Catteau, O. Duranthon, Lenka Zdeborová
11/19/2026
cs.LGcond-mat.dis-nnstat.ML
transformer-attention

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{catteau2026attention,
  title  = {Attention Head Specialization: Phase Transitions in Sample Complexity},
  author = {Léo Catteau and O. Duranthon and Lenka Zdeborová},
  year   = {2026},
  eprint = {2611.26228},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.26228v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.26228.svg)](https://codeofpaper.com/paper/2611.26228)

Discussion