Research map / Architectures and efficiency / Attention and transformers
RealFormer: Transformer Likes Residual Attention
Ruining He, Anirudh Ravula, Bhargav Kanagal, Joshua Ainslie
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
On benchmark leaderboards
- WikiHop leaderboard accuracy (dev) 79.21 · rank 4 of 10 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add residual attention (skip edges on attention scores) | BERT Post-LN, xLarge · MLM dev, 1M steps | MLM accuracy: 73.72% -> 74.76% | Improved |
| add residual attention | BERT-Small Post-LN · MLM dev, 1M steps | MLM accuracy: 61.57% -> 61.70% | No clear effect |
| add residual attention | BERT-Large Post-LN · GLUE dev overall | GLUE score: 84.01 -> 84.53 | Improved |
| add residual attention | BERT-Large Post-LN · GLUE dev (QNLI, MRPC) | accuracy / F1: QNLI 92.26 -> 91.89 | Mixed |
| use RealFormer pre-trained for only 500K steps instead of Post-LN at 1M steps | BERT-Large · GLUE dev | GLUE score: 84.01 (Post-LN 1M) -> 84.34 (RealFormer 500K) | Improved |
| raise learning rate from default to 2e-4 (ablation) | RealFormer BERT-Large · MLM dev | MLM accuracy: 73.94% -> 74.31% | Improved |
| raise learning rate to 2e-4 (ablation) | Post-LN BERT-Large · MLM dev | MLM accuracy | Hurt |
| add residual attention across dropout settings 0%, 10%, 20% (ablation) | BERT-Large · MLM dev | MLM accuracy: e.g. 73.66% vs 73.21% at 20% | Improved |
| increase dropout rate instead of adding residual attention (ablation) | Post-LN BERT-Large · MLM dev | MLM accuracy: 73.64% (10%) -> 73.21% (20%) | No clear effect |
| replace Post-LN backbone of ADMIN with RealFormer | ADMIN · WMT'14 En-Fr test | BLEU: 43.72 (our ADMIN) -> 43.97 | Improved |
| add residual attention edges | ETC-Large · WikiHop, HotpotQA, Natural Questions, OpenKP dev | accuracy / F1: e.g. WikiHop 78.92 -> 79.21; OpenKP 44.06 -> 44.27 | Improved |
| turn off residual attention during fine-tuning (keeping RealFormer pre-trained checkpoint) (ablation) | ETC-Large + RealFormer · WikiHop dev | accuracy: 78.96 -> 79.21 | Improved |
Later papers that compared with this method
2 later accepted papers report RealFormer as a baseline in their results tables; 2 of them report a better number on most of the results they share with it.
- B2T Connection: Serving Stability and Performance in Deep Transformers (ACL 2023 · better on 1 of 1 shared result)
- OmniNet: Omnidirectional Representations from Transformers (ICML 2021 · better on 2 of 2 shared results)
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems in attention head and block redesign
Do attention redesigns still help at large scale, or only in small models and carefully set conditions?
- Theory rests on simplifying assumptions that real transformers break. · 13 papers state it
- Tested only on small models, not at LLM scale. · 12 papers state it
- Gains over the baseline attention are small or mixed. · 10 papers state it
Closest papers by meaning
- Spectral Conditioning of Attention Improves Transformer Performance (NeurIPS 2025 · similarity 0.83)
- ZeroS: Zero‑Sum Linear Attention for Efficient Transformers (NeurIPS 2025 · similarity 0.82)
- Rethinking Attention: Exploring Shallow Feed-Forward Neural Networks as an Alternative to Attention Layers in Transformers (Student Abstract) (AAAI 2024 · similarity 0.82)
- Transformer Meets Twicing: Harnessing Unattended Residual Information (ICLR 2025 · similarity 0.82)
- Viewing Transformers Through the Lens of Long Convolutions Layers (ICML 2024 · similarity 0.81)
- On the Role of Attention Masks and LayerNorm in Transformers (NeurIPS 2024 · similarity 0.81)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.