Reproduce “ResiDual: Transformer with Dual Residual Connections” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Shufang Xie, Huishuai Zhang, Junliang Guo, Xu Tan, Jiang Bian, Hany Hassan Awadalla, Arul Menezes, Tao Qin and 1 more
The ResiDual architecture introduces dual residual connections to Transformers, overcoming the gradient vanishing issue in Post-LN models and the representation collapse in Pre-LN models. It achieves improved machine translation performance, with up to 1.1 BLEU points gain on deep WMT DE →EN models, and demonstrates enhanced training stability without requiring learning-rate warm-up.
Key insights
- Theoretical analysis proves ResiDual mitigates gradient vanishing by ensuring a non-zero lower bound on gradient norms across all layers.
- ResiDual maintains representation diversity in deeper layers, as the variance of changes in hidden states is independent of layer depth, addressing Pre-LN's representation collapse.
- The study reveals that the Adam optimizer can become unstable and ill-conditioned when faced with vanishing gradients, highlighting the importance of robust gradient flow.
- ResiDual offers a unified solution to the long-standing trade-off between gradient stability and representation capacity in Transformer architectures.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.