ACL Findings2023
B2T Connection: Serving Stability and Performance in Deep Transformers
Sho Takase, Shun Kiyono, Sosuke Kobayashi, Jun Suzuki
Abstract
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.
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.
8 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
- Impact of Layer Norm on Memorization and Generalization in Transformers cites The Curse of Depth in Large Language Models
- Impact of Layer Norm on Memorization and Generalization in Transformers cites Understanding the Difficulty of Training Transformers
- Impact of Layer Norm on Memorization and Generalization in Transformers cites On Layer Normalization in the Transformer Architecture
- The Curse of Depth in Large Language Models cites HybridNorm: Towards Stable and Efficient Transformer Training via Hybrid Normalization
- The Curse of Depth in Large Language Models cites Understanding the Difficulty of Training Transformers
- The Curse of Depth in Large Language Models cites On Layer Normalization in the Transformer Architecture
- Quantifying LLM Attention-Head Stability: Implications for Circuit Universality cites On Layer Normalization in the Transformer Architecture
- HybridNorm: Towards Stable and Efficient Transformer Training via Hybrid Normalization cites Understanding the Difficulty of Training Transformers
- HybridNorm: Towards Stable and Efficient Transformer Training via Hybrid Normalization cites On Layer Normalization in the Transformer Architecture
- RealFormer: Transformer Likes Residual Attention cites Understanding the Difficulty of Training Transformers
- RealFormer: Transformer Likes Residual Attention cites Improving Transformer Optimization Through Better Initialization
- RealFormer: Transformer Likes Residual Attention cites On Layer Normalization in the Transformer Architecture
- Understanding the Difficulty of Training Transformers cites On Layer Normalization in the Transformer Architecture
- Improving Transformer Optimization Through Better Initialization cites On Layer Normalization in the Transformer Architecture
- Self-attention Networks Localize When QK-eigenspectrum Concentrates cites On Layer Normalization in the Transformer Architecture
Cited by top-tier papers8
- The Curse of Depth in Large Language ModelsWenfang Sun, Xinyuan Song, Pengxiang Li, Lu Yin et al.NeurIPS 2025 · 62 citations
- HybridNorm: Towards Stable and Efficient Transformer Training via Hybrid NormalizationZhijian Zhuo, Yutao Zeng, Ya Wang, Sijun Zhang et al.NeurIPS 2025 · 23 citations
- Self-attention Networks Localize When QK-eigenspectrum ConcentratesHan Bao, Ryuichiro Hataya, Ryo KarakidaICML 2024 · 16 citations
- Impact of Layer Norm on Memorization and Generalization in TransformersRishi Singhal, Jung-Eun KimNeurIPS 2025 · 4 citations
- Quantifying LLM Attention-Head Stability: Implications for Circuit UniversalityKaran Bali, Jack Stanley, Praneet Suresh, Danilo BzdokICML 2026 · 2 citations
Builds on4
- On Layer Normalization in the Transformer ArchitectureRuibin Xiong, Yunchang Yang, Di He, Kai Zheng et al.ICML 2020 · 1,388 citations
- Improving Transformer Optimization Through Better InitializationXiao Shi Huang, Felipe Pérez, Jimmy Ba, Maksims VolkovsICML 2020 · 181 citations
- Understanding the Difficulty of Training TransformersLiyuan Liu, Xiaodong Liu, Jianfeng Gao, Weizhu Chen et al.EMNLP 2020 · 158 citations
- RealFormer: Transformer Likes Residual AttentionRuining He, Anirudh Ravula, Bhargav Kanagal, Joshua AinslieACL Findings 2021 · 104 citations
Related papers
- Peri-LN: Revisiting Normalization Layer in the Transformer ArchitectureJeonghoon Kim, Byeongchan Lee, Cheonbok Park, Yeontaek Oh et al.ICML 2025
- GPAS: Accelerating Convergence of LLM Pretraining via Gradient-Preserving Activation ScalingTianhao Chen, Xin Xu, Zijing Liu, Pengxiang Li et al.NeurIPS 2025 · 2 citations
- SpanNorm: Reconciling Training Stability and Performance in Deep TransformersChao Wang, Bei Li, Jiaqi Zhang, Xinyu Liu et al.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 et al.ICML 2026 · 2 citations
