mlsanityData to 14 Oct 2026

Two failure modes of deep transformers and how to avoid them: a unified theory of signal propagation at initialisation

arXiv 2505.24333 ↗First posted 30 May 2025stat.ML cond-mat.dis-nn cond-mat.stat-mechcited by 17

Not on the map. Why?

Abstract (arXiv)

Finding the right initialisation for neural networks is crucial to ensure smooth training and good performance. In transformers, the wrong initialisation can lead to one of two failure modes of self-attention layers: rank collapse, where all tokens collapse into similar representations, and entropy collapse, where highly concentrated attention scores lead to training instability. While previous work has studied different scaling regimes for transformers, an asymptotically exact, down-to-the constant prescription for how to initialise transformers has so far been lacking. Here, we provide an analytical theory of signal propagation through deep transformers with self-attention, layer normalisation, skip connections and MLP. Our theory yields a simple algorithm to compute trainability diagrams that identify the correct choice of initialisation hyper-parameters for a given architecture. We overcome the key challenge, an exact treatment of the self-attention layer, by establishing a formal parallel with the Random Energy Model from statistical physics. We also analyse gradients in the backward path and determine the regime where gradients vanish at initialisation. We demonstrate the versatility of our framework through three case studies. Our theoretical framework gives a unified perspective on the two failure modes of self-attention and gives quantitative predictions on the scale of both weights and residual connections that guarantee smooth training.

Key facts. Cited by 17 papers in the map (data through 14 Oct 2026). Builds on 31 of its 44 references that are in the map. First posted on arXiv 30 May 2025.

Builds on

31 of 44 references.

References · 31

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2016Layer Normalizationcited by 5,669
  4. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
  5. 2015Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classificationcited by 3,611
  6. 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,224
  7. 2019Root Mean Square Layer Normalizationcited by 1,480
  8. 2020On Layer Normalization in the Transformer Architecturecited by 922
  9. 2018On Lazy Training in Differentiable Programmingcited by 675
  10. 2023TinyStories: How Small Can Language Models Be and Still Speak Coherent English?cited by 449
  11. 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 419
  12. 2019Learning Deep Transformer Models for Machine Translationcited by 309
19 more
  1. 2019A Multiscale Visualization of Attention in the Transformer Modelcited by 292
  2. 2016Exponential expressivity in deep neural networks through transient chaoscited by 261
  3. 2020Feature Learning in Infinite-Width Neural Networkscited by 190
  4. 2022DeepNet: Scaling Transformers to 1,000 Layerscited by 178
  5. 2018Dynamical Isometry and a Mean Field Theory of CNNs: How to Train 10,000-Layer Vanilla Convolutional Neural Networkscited by 176
  6. 2023A mathematical perspective on Transformerscited by 164
  7. 2023Stabilizing Transformer Training by Preventing Attention Entropy Collapsecited by 161
  8. 2022Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapsecited by 141
  9. 2023The emergence of clusters in self-attention dynamicscited by 140
  10. 2018How to Start Training: The Effect of Initialization and Architecturecited by 109
  11. 2018Which Neural Net Architectures Give Rise To Exploding and Vanishing Gradients?cited by 94
  12. 2017Mean Field Residual Networks: On the Edge of Chaoscited by 83
  13. 2023The Shaped Transformer: Attention Models in the Infinite Depth-and-Width Limitcited by 47
  14. 2024Infinite Limits of Multi-head Transformer Dynamicscited by 39
  15. 2024Emergence of meta-stable clustering in mean-field transformer modelscited by 39
  16. 2025Quantitative Clustering in Mean-Field Transformer Modelscited by 26
  17. 2024Geometric Dynamics of Signal Propagation Predict Trainability of Transformerscited by 24
  18. 2023Effective Theory of Transformers at Initializationcited by 21
  19. 2021Critical Initialization of Wide and Deep Neural Networks through Partial Jacobians: General Theory and Applicationscited by 8

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 4; 2026: 13.

17 papers.

Sort: