Litcius/Paper detail

RealFormer: Transformer Likes Residual Attention

Ruining He, Anirudh Ravula, Bhargav Kanagal, Joshua Ainslie

202181 citationsDOIOpen Access PDF

Abstract

Transformer is the backbone of modern NLP models. In this paper, we propose Real-Former, a simple and generic technique to create Residual Attention Layer Transformer networks that significantly outperform the canonical Transformer and its variants (BERT, ETC, etc.) on a wide spectrum of tasks including Masked Language Modeling, GLUE, SQuAD, Neural Machine Translation, WikiHop, HotpotQA, Natural Questions, and OpenKP. We also observe empirically that RealFormer stabilizes training and leads to models with sparser attention.

Topics & Concepts

TransformerResidualComputer scienceLanguage modelArchitectureArtificial intelligenceMachine learningAlgorithmEngineeringElectrical engineeringVoltageArtVisual artsTopic ModelingNatural Language Processing TechniquesMultimodal Machine Learning Applications