Two failure modes of deep transformers and how to avoid them: a unified theory of signal propagation at initialisation
Alessio Giorlandino, Sebastian Goldt
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 6 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Stabilizing Transformer Training by Preventing Attention Entropy Collapse 引用了 Attention is not all you need: pure attention loses rank doubly exponentially with depth
- Stabilizing Transformer Training by Preventing Attention Entropy Collapse 引用了 Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapse
- Critical attention scaling in long-context transformers 引用了 Attention is not all you need: pure attention loses rank doubly exponentially with depth
- Critical attention scaling in long-context transformers 引用了 The emergence of clusters in self-attention dynamics
- Critical attention scaling in long-context transformers 引用了 A multiscale analysis of mean-field transformers in the moderate interaction regime
- A multiscale analysis of mean-field transformers in the moderate interaction regime 引用了 Critical attention scaling in long-context transformers
- The emergence of clusters in self-attention dynamics 引用了 Attention is not all you need: pure attention loses rank doubly exponentially with depth
- Perceptrons and Localization of Attention’s Mean-Field Landscape 引用了 Critical attention scaling in long-context transformers
- Perceptrons and Localization of Attention’s Mean-Field Landscape 引用了 The emergence of clusters in self-attention dynamics
- Perceptrons and Localization of Attention’s Mean-Field Landscape 引用了 Attention's forward pass and Frank-Wolfe
- Perceptrons and Localization of Attention’s Mean-Field Landscape 引用了 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 引用了 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 引用了 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 引用了 On Layer Normalization in the Transformer Architecture
- Attention's forward pass and Frank-Wolfe 引用了 Stabilizing Transformer Training by Preventing Attention Entropy Collapse
- Attention's forward pass and Frank-Wolfe 引用了 Attention is not all you need: pure attention loses rank doubly exponentially with depth
- Attention's forward pass and Frank-Wolfe 引用了 The emergence of clusters in self-attention dynamics
- A multiscale analysis of mean-field transformers in the moderate interaction regime 引用了 The emergence of clusters in self-attention dynamics
- A multiscale analysis of mean-field transformers in the moderate interaction regime 引用了 Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapse
- A multiscale analysis of mean-field transformers in the moderate interaction regime 引用了 Attention's forward pass and Frank-Wolfe
引用它的顶会 Paper6
- A multiscale analysis of mean-field transformers in the moderate interaction regimeGiuseppe Bruno, Federico Pasqualotto, Andrea AgazziNeurIPS 2025 · 29 次引用
- Critical attention scaling in long-context transformersShi Chen, Zhengjiang Lin, Yury Polyanskiy, Philippe RigolletICLR 2026 · 22 次引用
- Perceptrons and Localization of Attention’s Mean-Field LandscapeAntonio Álvarez López, Borjan Geshkovski, Domènec Ruiz-BaletICML 2026 · 7 次引用
- 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 等ICML 2026
- Attention's forward pass and Frank-WolfeAlbert Alcalde, Borjan Geshkovski, Domènec Ruiz-BaletICML 2026
它引用的 Paper10
- On Layer Normalization in the Transformer ArchitectureRuibin Xiong, Yunchang Yang, Di He, Kai Zheng 等ICML 2020 · 1,388 次引用
- Attention is not all you need: pure attention loses rank doubly exponentially with depthYihe Dong, Jean-Baptiste Cordonnier, Andreas LoukasICML 2021 · 522 次引用
- The emergence of clusters in self-attention dynamicsBorjan Geshkovski, Cyril Letrouit, Yury Polyanskiy, Philippe RigolletNeurIPS 2023 · 163 次引用
- Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank CollapseLorenzo Noci, Sotiris Anagnostidis, Luca Biggio, Antonio Orvieto 等NeurIPS 2022 · 161 次引用
- Stabilizing Transformer Training by Preventing Attention Entropy CollapseShuangfei Zhai, Tatiana Likhomanenko, Etai Littwin, Dan Busbridge 等ICML 2023 · 153 次引用
相关 Paper
- Transformers Get Stable: An End-to-End Signal Propagation Theory for Language ModelsAkhil Kedia, Mohd Abbas Zaidi, Sushil Khyalia, Jungho Jung 等ICML 2024 · 16 次引用
- From Condensation to Rank Collapse: A Two-Stage Analysis of Transformer Training DynamicsZheng-An Chen, Tao LuoNeurIPS 2025 · 13 次引用
- The Shaped Transformer: Attention Models in the Infinite Depth-and-Width LimitLorenzo Noci, Chuning Li, Mufan Bill Li, Bobby He 等NeurIPS 2023 · 59 次引用
- 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 次引用
