Stability of Transformers under Layer Normalization
Not on the map. Why?
Abstract (arXiv)
Despite their widespread use, training deep Transformers can be unstable. Layer normalization, a standard component, improves training stability, but its placement has often been ad-hoc. In this paper, we conduct a principled study on the forward (hidden states) and backward (gradient) stability of Transformers under different layer normalization placements. Our theory provides key insights into the training dynamics: whether training drives Transformers toward regular solutions or pathological behaviors. For forward stability, we derive explicit bounds on the growth of hidden states in trained Transformers. For backward stability, we analyze how layer normalization affects the backpropagation of gradients, thereby explaining the training dynamics of each layer normalization placement. Our analysis also guides the scaling of residual steps in Transformer blocks, where appropriate choices can further improve stability and performance. Our numerical results corroborate our theoretical findings. Beyond these results, our framework provides a principled way to sanity-check the stability of Transformers under new architectural modifications, offering guidance for future designs.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 30 of its 42 references that are in the map. First posted on arXiv 10 Oct 2025.
Builds on
30 of 42 references.
References · 30
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2016Layer Normalizationcited by 5,669
- 2023A Survey of Large Language Modelscited by 2,576
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
- 2025Gemma 3 Technical Reportcited by 1,824
- 2019Generating Long Sequences with Sparse Transformerscited by 1,546
- 2019Root Mean Square Layer Normalizationcited by 1,480
- 2020On Layer Normalization in the Transformer Architecturecited by 922
- 2019On the Variance of the Adaptive Learning Rate and Beyondcited by 772
- 2021CogView: Mastering Text-to-Image Generation via Transformerscited by 694
- 2022Efficiently Scaling Transformer Inferencecited by 539
18 more
- 2024Large Language Models: A Surveycited by 525
- 2017Stable Architectures for Deep Neural Networkscited by 341
- 20242 OLMo 2 Furiouscited by 340
- 2019Learning Deep Transformer Models for Machine Translationcited by 309
- 2024Massive Activations in Large Language Modelscited by 294
- 2018Adaptive Input Representations for Neural Language Modelingcited by 226
- 2018Deep Neural Networks Motivated by Partial Differential Equationscited by 187
- 2019Transformers without Tears: Improving the Normalization of Self-Attentioncited by 153
- 2017On the Properties of the Softmax Function with Application in Game Theory and Reinforcement Learningcited by 142
- 2019Understanding and Improving Transformer From a Multi-Particle Dynamic System Point of Viewcited by 113
- 2018Training Tips for the Transformer Modelcited by 85
- 2024Scaling FP8 training to trillion-token LLMscited by 65
- 2024The Super Weight in Large Language Modelscited by 52
- 2023A mean-field games laboratory for generative modelingcited by 28
- 2024Transformers Get Stable: An End-to-End Signal Propagation Theory for Language Modelscited by 18
- 2022B2T Connection: Serving Stability and Performance in Deep Transformerscited by 16
- 2025Optimal Control for Transformer Architectures: Enhancing Generalization, Robustness and Efficiencycited by 8
- 2023LSEMINK: A Modified Newton-Krylov Method for Log-Sum-Exp Minimizationcited by 3
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026When Does Sparsity Mitigate the Curse of Depth in LLMscited by 4
- 2026Multi-Headed Transformer Architectures as Time-dependent Wasserstein Gradient Flowscited by 1
- 2026End-to-End Learning of Safe Optimal Feedback Control in High Dimensions with Control Barrier Function Layerscited by 0
- 2026Rethinking Normalization Placement for LLMs: Post-Norm under Curriculum Depth Growingcited by 0
- 2026Stability of Measure-to-Measure Transformers on Sub-Gaussian Datacited by 0
- 2026Stability of Measure-to-Measure Transformers on Sub-Gaussian Data6 Oct 2026
- 2026Rethinking Normalization Placement for LLMs: Post-Norm under Curriculum Depth Growing13 Aug 2026
- 2026End-to-End Learning of Safe Optimal Feedback Control in High Dimensions with Control Barrier Function Layers22 Jul 2026
- 2026Multi-Headed Transformer Architectures as Time-dependent Wasserstein Gradient Flows15 May 2026
- 2026When Does Sparsity Mitigate the Curse of Depth in LLMs16 Mar 2026