mlsanityData to 7 Oct 2026

ResiDual: Transformer with Dual Residual Connections

arXiv 2304.14802 ↗First posted 28 Apr 2023cs.CL cs.AI cs.LGcited by 30

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  4. 2020Language Models are Few-Shot Learnerscited by 32,199
  5. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  6. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  7. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  8. 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,014
  9. 2022Training Compute-Optimal Large Language Modelscited by 2,927
  10. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
  11. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
  12. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
17 more
  1. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
  2. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  3. 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,973
  4. 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,793
  5. 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,486
  6. 2020COMET: A Neural Framework for MT Evaluationcited by 1,024
  7. 2020On Layer Normalization in the Transformer Architecturecited by 906
  8. 2015A Neural Attention Model for Abstractive Sentence Summarizationcited by 394
  9. 2019Learning Deep Transformer Models for Machine Translationcited by 309
  10. 2020Improving Massively Multilingual Neural Machine Translation and Zero-Shot Translationcited by 277
  11. 2020ReZero is All You Need: Fast Convergence at Large Depthcited by 260
  12. 2020Understanding the Difficulty of Training Transformerscited by 210
  13. 2019WinoGrande: An Adversarial Winograd Schema Challenge at Scalecited by 194
  14. 2022DeepNet: Scaling Transformers to 1,000 Layerscited by 176
  15. 2020RealFormer: Transformer Likes Residual Attentioncited by 62
  16. 2021Rethinking Perturbations in Encoder-Decoders for Fast Trainingcited by 17
  17. 2019Stabilize Deep ResNet with A Sharp Scaling Factor τcited by 10

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 4; 2024: 4; 2025: 6; 2026: 16.

30 papers.

Sort:

By area:

  1. 2024Hyper-Connectionscited by 81
  2. 2025mHC: Manifold-Constrained Hyper-Connectionscited by 76
  3. 2024MoEUT: Mixture-of-Experts Universal Transformerscited by 55
  4. 2025HybridNorm: Towards Stable and Efficient Transformer Training via Hybrid Normalizationcited by 15
  5. 2026mHC-lite: You Don't Need 20 Sinkhorn-Knopp Iterationscited by 13
  6. 202452B to 1T: Lessons Learned via Tele-FLM Seriescited by 11
  7. 2026KromHC: Manifold-Constrained Hyper-Connections with Kronecker-Product Residual Matricescited by 10
  8. 2023EnCodecMAE: Leveraging neural codecs for universal audio representation learningcited by 9
  9. 2024More Expressive Attention with Negative Weightscited by 9
  10. 2025Frac-Connections: Fractional Extension of Hyper-Connectionscited by 8
  11. 2026SiameseNorm: Breaking the Barrier to Reconciling Pre/Post-Normcited by 8
  12. 2023Centered Self-Attention Layerscited by 7
18 more
  1. 2025Improving Model Representation and Reducing KV Cache via Skip Connections with First Value Headscited by 4
  2. 2025Scale-Distribution Decoupling: Enabling Stable and Effective Training of Large Language Modelscited by 3
  3. 2026go-mHC: Direct Parameterization of Manifold-Constrained Hyper-Connections via Generalized Orthostochastic Matricescited by 3
  4. 2026Agentic Discovery of Neural Architectures: AIRA-Compose and AIRA-Designcited by 3
  5. 2026Depth-Attention: Cross-Layer Value Mixing for Language Modelscited by 3
  6. 2023Reflection-Equivariant Diffusion for 3D Structure Determination from Isotopologue Rotational Spectra in Natural Abundancecited by 2
  7. 2026SpanNorm: Reconciling Training Stability and Performance in Deep Transformerscited by 2
  8. 2023MABViT -- Modified Attention Block Enhances Vision Transformerscited by 1
  9. 2025Model Hemorrhage and the Robustness Limits of Large Language Modelscited by 1
  10. 2026Progressive Residual Warmup for Language Model Pretrainingcited by 1
  11. 2026Neural posterior estimation of the neutrino direction in IceCube using transformer-encoded normalizing flows on the spherecited by 1
  12. 2026Transformers Provably Learn to Internalize Chain-of-Thoughtcited by 1
  13. 2026IMSAHLO: Integrating Multi-Scale Attention and Hybrid Loss Optimization Framework for Robust Neuronal Brain Cell Segmentationcited by 0
  14. 2026Multi-objective fluorescent molecule design with a data-physics dual-driven generative frameworkcited by 0
  15. 2026Attention-Enhanced Graph Filtering for False Data Injection Attack Detection and Localizationcited by 0
  16. 2026Hyper-Connections for Adaptive Multi-Modal MRI Brain Tumor Segmentationcited by 0
  17. 2026Scaling Adaptive Depth with Norm-Agnostic Residual Networkscited by 0
  18. 2026Why Post-Norm Transformers Collapse: Attention Amplification and Gradient Repair Failurecited by 0