ACL Findings2023
B2T Connection: Serving Stability and Performance in Deep Transformers
Sho Takase, Shun Kiyono, Sosuke Kobayashi, Jun Suzuki
摘要
From the perspective of the layer normalization (LN) positions, the architectures of Transformers can be categorized into two types: Post-LN and Pre-LN. Recent Transformers tend to be Pre-LN because, in Post-LN with deep Transformers (e.g., those with ten or more layers), the training is often unstable, resulting in useless models. However, Post-LN has consistently achieved better performance than Pre-LN in relatively shallow Transformers (e.g., those with six or fewer layers). This study first investigates the reason for these discrepant observations empirically and theoretically and made the following discoveries: 1, the LN in Post-LN is the main source of the vanishing gradient problem that leads to unstable training, whereas Pre-LN prevents it, and 2, Post-LN tends to preserve larger gradient norms in higher layers during the back-propagation, which may lead to effective training. Exploiting the new findings, we propose a method that can provide both high stability and effective training by a simple modification of Post-LN. We conduct experiments on a wide range of text generation tasks. The experimental results demonstrate that our method outperforms Pre-LN, and enables stable training regardless of the shallow or deep layer settings. Our code is publicly available at https://github.com/takase/b2t_connection.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 8 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Impact of Layer Norm on Memorization and Generalization in Transformers 引用了 The Curse of Depth in Large Language Models
- Impact of Layer Norm on Memorization and Generalization in Transformers 引用了 Understanding the Difficulty of Training Transformers
- Impact of Layer Norm on Memorization and Generalization in Transformers 引用了 On Layer Normalization in the Transformer Architecture
- The Curse of Depth in Large Language Models 引用了 HybridNorm: Towards Stable and Efficient Transformer Training via Hybrid Normalization
- The Curse of Depth in Large Language Models 引用了 Understanding the Difficulty of Training Transformers
- The Curse of Depth in Large Language Models 引用了 On Layer Normalization in the Transformer Architecture
- Quantifying LLM Attention-Head Stability: Implications for Circuit Universality 引用了 On Layer Normalization in the Transformer Architecture
- HybridNorm: Towards Stable and Efficient Transformer Training via Hybrid Normalization 引用了 Understanding the Difficulty of Training Transformers
- HybridNorm: Towards Stable and Efficient Transformer Training via Hybrid Normalization 引用了 On Layer Normalization in the Transformer Architecture
- RealFormer: Transformer Likes Residual Attention 引用了 Understanding the Difficulty of Training Transformers
- RealFormer: Transformer Likes Residual Attention 引用了 Improving Transformer Optimization Through Better Initialization
- RealFormer: Transformer Likes Residual Attention 引用了 On Layer Normalization in the Transformer Architecture
- Understanding the Difficulty of Training Transformers 引用了 On Layer Normalization in the Transformer Architecture
- Improving Transformer Optimization Through Better Initialization 引用了 On Layer Normalization in the Transformer Architecture
- Self-attention Networks Localize When QK-eigenspectrum Concentrates 引用了 On Layer Normalization in the Transformer Architecture
引用它的顶会 Paper8
- The Curse of Depth in Large Language ModelsWenfang Sun, Xinyuan Song, Pengxiang Li, Lu Yin 等NeurIPS 2025 · 62 次引用
- HybridNorm: Towards Stable and Efficient Transformer Training via Hybrid NormalizationZhijian Zhuo, Yutao Zeng, Ya Wang, Sijun Zhang 等NeurIPS 2025 · 23 次引用
- Self-attention Networks Localize When QK-eigenspectrum ConcentratesHan Bao, Ryuichiro Hataya, Ryo KarakidaICML 2024 · 16 次引用
- Impact of Layer Norm on Memorization and Generalization in TransformersRishi Singhal, Jung-Eun KimNeurIPS 2025 · 4 次引用
- Quantifying LLM Attention-Head Stability: Implications for Circuit UniversalityKaran Bali, Jack Stanley, Praneet Suresh, Danilo BzdokICML 2026 · 2 次引用
它引用的 Paper4
- On Layer Normalization in the Transformer ArchitectureRuibin Xiong, Yunchang Yang, Di He, Kai Zheng 等ICML 2020 · 1,388 次引用
- Improving Transformer Optimization Through Better InitializationXiao Shi Huang, Felipe Pérez, Jimmy Ba, Maksims VolkovsICML 2020 · 181 次引用
- Understanding the Difficulty of Training TransformersLiyuan Liu, Xiaodong Liu, Jianfeng Gao, Weizhu Chen 等EMNLP 2020 · 158 次引用
- RealFormer: Transformer Likes Residual AttentionRuining He, Anirudh Ravula, Bhargav Kanagal, Joshua AinslieACL Findings 2021 · 104 次引用
相关 Paper
- Peri-LN: Revisiting Normalization Layer in the Transformer ArchitectureJeonghoon Kim, Byeongchan Lee, Cheonbok Park, Yeontaek Oh 等ICML 2025
- GPAS: Accelerating Convergence of LLM Pretraining via Gradient-Preserving Activation ScalingTianhao Chen, Xin Xu, Zijing Liu, Pengxiang Li 等NeurIPS 2025 · 2 次引用
- SpanNorm: Reconciling Training Stability and Performance in Deep TransformersChao Wang, Bei Li, Jiaqi Zhang, Xinyu Liu 等ICML 2026
- Mix-LN: Unleashing the Power of Deeper Layers by Combining Pre-LN and Post-LNPengxiang Li, Lu Yin, Shiwei LiuICLR 2025
- Bounded Hyperbolic Tangent: A Stable and Efficient Alternative to Pre-Layer Normalization in Large Language ModelsHoyoon Byun, Youngjun Choi, Taero Kim, Sungrae Park 等ICML 2026 · 2 次引用
