ResiDual: Transformer with Dual Residual Connections
Not on the map. Why?
Abstract (arXiv)
Transformer networks have become the preferred architecture for many tasks due to their state-of-the-art performance. However, the optimal way to implement residual connections in Transformer, which are essential for effective training, is still debated. Two widely used variants are the Post-Layer-Normalization (Post-LN) and Pre-Layer-Normalization (Pre-LN) Transformers, which apply layer normalization after each residual block's output or before each residual block's input, respectively. While both variants enjoy their advantages, they also suffer from severe limitations: Post-LN causes gradient vanishing issue that hinders training deep Transformers, and Pre-LN causes representation collapse issue that limits model capacity. In this paper, we propose ResiDual, a novel Transformer architecture with Pre-Post-LN (PPLN), which fuses the connections in Post-LN and Pre-LN together and inherits their advantages while avoids their limitations. We conduct both theoretical analyses and empirical experiments to verify the effectiveness of ResiDual. Theoretically, we prove that ResiDual has a lower bound on the gradient to avoid the vanishing issue due to the residual connection from Pre-LN. Moreover, ResiDual also has diverse model representations to avoid the collapse issue due to the residual connection from Post-LN. Empirically, ResiDual outperforms both Post-LN and Pre-LN on several machine translation benchmarks across different network depths and data sizes. Thanks to the good theoretical and empirical performance, ResiDual Transformer can serve as a foundation architecture for different AI models (e.g., large language models). Our code is available at https://github.com/microsoft/ResiDual.
Key facts. Cited by 30 papers in the map (data through 7 Oct 2026). Builds on 29 of its 44 references that are in the map. First posted on arXiv 28 Apr 2023.
Builds on
29 of 44 references.
References · 29
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,014
- 2022Training Compute-Optimal Large Language Modelscited by 2,927
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
17 more
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,973
- 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,793
- 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,486
- 2020COMET: A Neural Framework for MT Evaluationcited by 1,024
- 2020On Layer Normalization in the Transformer Architecturecited by 906
- 2015A Neural Attention Model for Abstractive Sentence Summarizationcited by 394
- 2019Learning Deep Transformer Models for Machine Translationcited by 309
- 2020Improving Massively Multilingual Neural Machine Translation and Zero-Shot Translationcited by 277
- 2020ReZero is All You Need: Fast Convergence at Large Depthcited by 260
- 2020Understanding the Difficulty of Training Transformerscited by 210
- 2019WinoGrande: An Adversarial Winograd Schema Challenge at Scalecited by 194
- 2022DeepNet: Scaling Transformers to 1,000 Layerscited by 176
- 2020RealFormer: Transformer Likes Residual Attentioncited by 62
- 2021Rethinking Perturbations in Encoder-Decoders for Fast Trainingcited by 17
- 2019Stabilize Deep ResNet with A Sharp Scaling Factor τcited by 10
Built on by
Citing papers per year: 2023: 4; 2024: 4; 2025: 6; 2026: 16.
30 papers.
Sort:
By area:
- 2024Hyper-Connectionscited by 81
- 2025mHC: Manifold-Constrained Hyper-Connectionscited by 76
- 2024MoEUT: Mixture-of-Experts Universal Transformerscited by 55
- 2025HybridNorm: Towards Stable and Efficient Transformer Training via Hybrid Normalizationcited by 15
- 2026mHC-lite: You Don't Need 20 Sinkhorn-Knopp Iterationscited by 13
- 202452B to 1T: Lessons Learned via Tele-FLM Seriescited by 11
- 2026KromHC: Manifold-Constrained Hyper-Connections with Kronecker-Product Residual Matricescited by 10
- 2023EnCodecMAE: Leveraging neural codecs for universal audio representation learningcited by 9
- 2024More Expressive Attention with Negative Weightscited by 9
- 2025Frac-Connections: Fractional Extension of Hyper-Connectionscited by 8
- 2026SiameseNorm: Breaking the Barrier to Reconciling Pre/Post-Normcited by 8
- 2023Centered Self-Attention Layerscited by 7
18 more
- 2025Improving Model Representation and Reducing KV Cache via Skip Connections with First Value Headscited by 4
- 2025Scale-Distribution Decoupling: Enabling Stable and Effective Training of Large Language Modelscited by 3
- 2026go-mHC: Direct Parameterization of Manifold-Constrained Hyper-Connections via Generalized Orthostochastic Matricescited by 3
- 2026Agentic Discovery of Neural Architectures: AIRA-Compose and AIRA-Designcited by 3
- 2026Depth-Attention: Cross-Layer Value Mixing for Language Modelscited by 3
- 2023Reflection-Equivariant Diffusion for 3D Structure Determination from Isotopologue Rotational Spectra in Natural Abundancecited by 2
- 2026SpanNorm: Reconciling Training Stability and Performance in Deep Transformerscited by 2
- 2023MABViT -- Modified Attention Block Enhances Vision Transformerscited by 1
- 2025Model Hemorrhage and the Robustness Limits of Large Language Modelscited by 1
- 2026Progressive Residual Warmup for Language Model Pretrainingcited by 1
- 2026Neural posterior estimation of the neutrino direction in IceCube using transformer-encoded normalizing flows on the spherecited by 1
- 2026Transformers Provably Learn to Internalize Chain-of-Thoughtcited by 1
- 2026IMSAHLO: Integrating Multi-Scale Attention and Hybrid Loss Optimization Framework for Robust Neuronal Brain Cell Segmentationcited by 0
- 2026Multi-objective fluorescent molecule design with a data-physics dual-driven generative frameworkcited by 0
- 2026Attention-Enhanced Graph Filtering for False Data Injection Attack Detection and Localizationcited by 0
- 2026Hyper-Connections for Adaptive Multi-Modal MRI Brain Tumor Segmentationcited by 0
- 2026Scaling Adaptive Depth with Norm-Agnostic Residual Networkscited by 0
- 2026Why Post-Norm Transformers Collapse: Attention Amplification and Gradient Repair Failurecited by 0
- 2026Why Post-Norm Transformers Collapse: Attention Amplification and Gradient Repair Failure10 Aug 2026
- 2026Scaling Adaptive Depth with Norm-Agnostic Residual Networks15 Jun 2026
- 2026Depth-Attention: Cross-Layer Value Mixing for Language Models3 Jun 2026
- 2026Transformers Provably Learn to Internalize Chain-of-Thought27 May 2026
- 2026Agentic Discovery of Neural Architectures: AIRA-Compose and AIRA-Design15 May 2026
- 2026Neural posterior estimation of the neutrino direction in IceCube using transformer-encoded normalizing flows on the sphere21 Apr 2026
- 2026go-mHC: Direct Parameterization of Manifold-Constrained Hyper-Connections via Generalized Orthostochastic Matrices2 Apr 2026
- 2026Hyper-Connections for Adaptive Multi-Modal MRI Brain Tumor Segmentation20 Mar 2026
- 2026Progressive Residual Warmup for Language Model Pretraining5 Mar 2026
- 2026SiameseNorm: Breaking the Barrier to Reconciling Pre/Post-Norm8 Feb 2026
- 2026SpanNorm: Reconciling Training Stability and Performance in Deep Transformers30 Jan 2026
- 2026KromHC: Manifold-Constrained Hyper-Connections with Kronecker-Product Residual Matrices29 Jan 2026
18 more
- 2026Attention-Enhanced Graph Filtering for False Data Injection Attack Detection and Localization26 Jan 2026
- 2026Multi-objective fluorescent molecule design with a data-physics dual-driven generative framework20 Jan 2026
- 2026IMSAHLO: Integrating Multi-Scale Attention and Hybrid Loss Optimization Framework for Robust Neuronal Brain Cell Segmentation14 Jan 2026
- 2026mHC-lite: You Don't Need 20 Sinkhorn-Knopp Iterations9 Jan 2026
- 2025mHC: Manifold-Constrained Hyper-Connections31 Dec 2025
- 2025Improving Model Representation and Reducing KV Cache via Skip Connections with First Value Heads19 Oct 2025
- 2025Model Hemorrhage and the Robustness Limits of Large Language Models31 Mar 2025
- 2025Frac-Connections: Fractional Extension of Hyper-Connections18 Mar 2025
- 2025HybridNorm: Towards Stable and Efficient Transformer Training via Hybrid Normalization6 Mar 2025
- 2025Scale-Distribution Decoupling: Enabling Stable and Effective Training of Large Language Models21 Feb 2025
- 2024More Expressive Attention with Negative Weights11 Nov 2024
- 2024Hyper-Connections29 Sep 2024
- 202452B to 1T: Lessons Learned via Tele-FLM Series3 Jul 2024
- 2024MoEUT: Mixture-of-Experts Universal Transformers25 May 2024
- 2023MABViT -- Modified Attention Block Enhances Vision Transformers3 Dec 2023
- 2023Reflection-Equivariant Diffusion for 3D Structure Determination from Isotopologue Rotational Spectra in Natural Abundance17 Oct 2023
- 2023EnCodecMAE: Leveraging neural codecs for universal audio representation learning14 Sep 2023
- 2023Centered Self-Attention Layers2 Jun 2023
- 2026Transformers Provably Learn to Internalize Chain-of-Thought27 May 2026
- 2024Hyper-Connectionscited by 81
- 2025mHC: Manifold-Constrained Hyper-Connectionscited by 76
- 2025HybridNorm: Towards Stable and Efficient Transformer Training via Hybrid Normalizationcited by 15
- 2026mHC-lite: You Don't Need 20 Sinkhorn-Knopp Iterationscited by 13
- 202452B to 1T: Lessons Learned via Tele-FLM Seriescited by 11
- 2026KromHC: Manifold-Constrained Hyper-Connections with Kronecker-Product Residual Matricescited by 10
- 2023EnCodecMAE: Leveraging neural codecs for universal audio representation learningcited by 9
- 2024More Expressive Attention with Negative Weightscited by 9
- 2025Frac-Connections: Fractional Extension of Hyper-Connectionscited by 8
- 2026SiameseNorm: Breaking the Barrier to Reconciling Pre/Post-Normcited by 8
- 2023Centered Self-Attention Layerscited by 7
- 2025Scale-Distribution Decoupling: Enabling Stable and Effective Training of Large Language Modelscited by 3
12 most cited of 24 All 24 (JSON)
- 2026Why Post-Norm Transformers Collapse: Attention Amplification and Gradient Repair Failure10 Aug 2026
- 2026Scaling Adaptive Depth with Norm-Agnostic Residual Networks15 Jun 2026
- 2026Neural posterior estimation of the neutrino direction in IceCube using transformer-encoded normalizing flows on the sphere21 Apr 2026
- 2026go-mHC: Direct Parameterization of Manifold-Constrained Hyper-Connections via Generalized Orthostochastic Matrices2 Apr 2026
- 2026Hyper-Connections for Adaptive Multi-Modal MRI Brain Tumor Segmentation20 Mar 2026
- 2026Progressive Residual Warmup for Language Model Pretraining5 Mar 2026
- 2026SiameseNorm: Breaking the Barrier to Reconciling Pre/Post-Norm8 Feb 2026
- 2026KromHC: Manifold-Constrained Hyper-Connections with Kronecker-Product Residual Matrices29 Jan 2026
- 2026Attention-Enhanced Graph Filtering for False Data Injection Attack Detection and Localization26 Jan 2026
- 2026Multi-objective fluorescent molecule design with a data-physics dual-driven generative framework20 Jan 2026
- 2026IMSAHLO: Integrating Multi-Scale Attention and Hybrid Loss Optimization Framework for Robust Neuronal Brain Cell Segmentation14 Jan 2026
- 2026mHC-lite: You Don't Need 20 Sinkhorn-Knopp Iterations9 Jan 2026
12 newest of 24 All 24 (JSON)