Two failure modes of deep transformers and how to avoid them: a unified theory of signal propagation at initialisation
Alessio Giorlandino, Sebastian Goldt
Abstract
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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
6 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Stabilizing Transformer Training by Preventing Attention Entropy Collapse cites Attention is not all you need: pure attention loses rank doubly exponentially with depth
- Stabilizing Transformer Training by Preventing Attention Entropy Collapse cites Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapse
- Critical attention scaling in long-context transformers cites Attention is not all you need: pure attention loses rank doubly exponentially with depth
- Critical attention scaling in long-context transformers cites The emergence of clusters in self-attention dynamics
- Critical attention scaling in long-context transformers cites A multiscale analysis of mean-field transformers in the moderate interaction regime
- A multiscale analysis of mean-field transformers in the moderate interaction regime cites Critical attention scaling in long-context transformers
- The emergence of clusters in self-attention dynamics cites Attention is not all you need: pure attention loses rank doubly exponentially with depth
- Perceptrons and Localization of Attention’s Mean-Field Landscape cites Critical attention scaling in long-context transformers
- Perceptrons and Localization of Attention’s Mean-Field Landscape cites The emergence of clusters in self-attention dynamics
- Perceptrons and Localization of Attention’s Mean-Field Landscape cites Attention's forward pass and Frank-Wolfe
- Perceptrons and Localization of Attention’s Mean-Field Landscape cites A multiscale analysis of mean-field transformers in the moderate interaction regime
- The Stability of Singular Distribution: A Spectral Perspective on the Two-Phase Dynamics of Language Model Pre-training cites Attention is not all you need: pure attention loses rank doubly exponentially with depth
- Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapse cites Attention is not all you need: pure attention loses rank doubly exponentially with depth
- Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapse cites On Layer Normalization in the Transformer Architecture
- Attention's forward pass and Frank-Wolfe cites Stabilizing Transformer Training by Preventing Attention Entropy Collapse
- Attention's forward pass and Frank-Wolfe cites Attention is not all you need: pure attention loses rank doubly exponentially with depth
- Attention's forward pass and Frank-Wolfe cites The emergence of clusters in self-attention dynamics
- A multiscale analysis of mean-field transformers in the moderate interaction regime cites The emergence of clusters in self-attention dynamics
- A multiscale analysis of mean-field transformers in the moderate interaction regime cites Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapse
- A multiscale analysis of mean-field transformers in the moderate interaction regime cites Attention's forward pass and Frank-Wolfe
Cited by top-tier papers6
- A multiscale analysis of mean-field transformers in the moderate interaction regimeGiuseppe Bruno, Federico Pasqualotto, Andrea AgazziNeurIPS 2025 · 29 citations
- Critical attention scaling in long-context transformersShi Chen, Zhengjiang Lin, Yury Polyanskiy, Philippe RigolletICLR 2026 · 22 citations
- Perceptrons and Localization of Attention’s Mean-Field LandscapeAntonio Álvarez López, Borjan Geshkovski, Domènec Ruiz-BaletICML 2026 · 7 citations
- The Stability of Singular Distribution: A Spectral Perspective on the Two-Phase Dynamics of Language Model Pre-trainingHongtao Zhang, WenJie Zhou, Chenxi Jia, Wei Chen et al.ICML 2026
- Attention's forward pass and Frank-WolfeAlbert Alcalde, Borjan Geshkovski, Domènec Ruiz-BaletICML 2026
Builds on10
- On Layer Normalization in the Transformer ArchitectureRuibin Xiong, Yunchang Yang, Di He, Kai Zheng et al.ICML 2020 · 1,388 citations
- Attention is not all you need: pure attention loses rank doubly exponentially with depthYihe Dong, Jean-Baptiste Cordonnier, Andreas LoukasICML 2021 · 522 citations
- The emergence of clusters in self-attention dynamicsBorjan Geshkovski, Cyril Letrouit, Yury Polyanskiy, Philippe RigolletNeurIPS 2023 · 163 citations
- Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank CollapseLorenzo Noci, Sotiris Anagnostidis, Luca Biggio, Antonio Orvieto et al.NeurIPS 2022 · 161 citations
- Stabilizing Transformer Training by Preventing Attention Entropy CollapseShuangfei Zhai, Tatiana Likhomanenko, Etai Littwin, Dan Busbridge et al.ICML 2023 · 153 citations
Related papers
- Transformers Get Stable: An End-to-End Signal Propagation Theory for Language ModelsAkhil Kedia, Mohd Abbas Zaidi, Sushil Khyalia, Jungho Jung et al.ICML 2024 · 16 citations
- From Condensation to Rank Collapse: A Two-Stage Analysis of Transformer Training DynamicsZheng-An Chen, Tao LuoNeurIPS 2025 · 13 citations
- The Shaped Transformer: Attention Models in the Infinite Depth-and-Width LimitLorenzo Noci, Chuning Li, Mufan Bill Li, Bobby He et al.NeurIPS 2023 · 59 citations
- Mind the Gap: a Spectral Analysis of Rank Collapse and Signal Propagation in Attention LayersThiziri Nait Saada, Alireza Naderi, Jared TannerICML 2025
- Self-attention Networks Localize When QK-eigenspectrum ConcentratesHan Bao, Ryuichiro Hataya, Ryo KarakidaICML 2024 · 16 citations
