Phase Transitions in Attention: A Bayesian Theory of Copy Head Emergence
Not on the map. Why?
Abstract (arXiv)
Attention is the key mechanism underlying in-context learning in transformers, and attention patterns have been observed empirically to emerge abruptly during training. We present a Bayesian theory of feature learning in attention; we then focus on how the copy subcircuit in the first layer of an induction head is learned by analyzing a single-layer softmax attention network trained on a copy task. We derive a closed-form posterior over the attention matrix and reduce it to a low-dimensional order parameter space. This reduction reveals a phase transition in the amount of training data, which we verify using both Bayesian sampling and standard training with Adam. We contrast our results with linear attention and find that softmax attention exhibits a first-order phase transition while in linear attention an initial second-order phase transition is followed by a smooth, continuous evolution toward the structured attention pattern (crossover). Our work provides a first-principles theoretical account of the abrupt emergence of the copy subcircuit, reminiscent of the one observed in training large language models.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 14 of its 63 references that are in the map. First posted on arXiv 10 Jun 2026.
Builds on
14 of 63 references.
References · 14
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2022In-context Learning and Induction Headscited by 964
- 2023Uncovering mesa-optimization algorithms in Transformerscited by 100
- 2023Transformers as Support Vector Machinescited by 74
- 2025Emergent Abilities in Large Language Models: A Surveycited by 37
- 2025Scaling Laws Are Unreliable for Downstream Tasks: A Reality Checkcited by 29
- 2024Implicit Regularization of Gradient Flow on One-Layer Softmax Attentioncited by 19
- 2025Applications of Statistical Field Theory in Deep Learningcited by 9
- 2024How Transformers Get Rich: Approximation and Dynamics Analysiscited by 8
- 2025Predicting the Emergence of Induction Heads in Language Model Pretrainingcited by 7
- 2025On the Emergence of Induction Heads for In-Context Learningcited by 5
Built on by
Citing papers per year: 2026: 3.
3 papers.
- 2026The Kinetics of Training: A Driven-Nucleation Rate Law for Emergence, Plasticity Loss, and Circuit Control in Language Modelscited by 0
- 2026Phase Space Attention:A Hairer Lift Circumvents the Single-Layer Induction Obstructioncited by 0
- 2026What Pretraining and Midtraining Make Learnable from Rewards?cited by 0
- 2026What Pretraining and Midtraining Make Learnable from Rewards?29 Sep 2026
- 2026Phase Space Attention:A Hairer Lift Circumvents the Single-Layer Induction Obstruction26 Sep 2026
- 2026The Kinetics of Training: A Driven-Nucleation Rate Law for Emergence, Plasticity Loss, and Circuit Control in Language Models29 Jul 2026