scimeatlas

Research map / Architectures and efficiency / Attention and transformers

RealFormer: Transformer Likes Residual Attention

Ruining He, Anirudh Ravula, Bhargav Kanagal, Joshua Ainslie

ACL 2021Architectures and efficiency › Attention and transformersapproach: Attention head and block redesignopen problems in this approach169 citations (OpenAlex)

Google

Read the paperPlace an idea next to itCheck your own paper ↗

13measured effects
8improved
2no clear effect
2hurt
1mixed

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

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add residual attention (skip edges on attention scores)BERT Post-LN, xLarge · MLM dev, 1M stepsMLM accuracy: 73.72% -> 74.76%Improved
add residual attentionBERT-Small Post-LN · MLM dev, 1M stepsMLM accuracy: 61.57% -> 61.70%No clear effect
add residual attentionBERT-Large Post-LN · GLUE dev overallGLUE score: 84.01 -> 84.53Improved
add residual attentionBERT-Large Post-LN · GLUE dev (QNLI, MRPC)accuracy / F1: QNLI 92.26 -> 91.89Mixed
use RealFormer pre-trained for only 500K steps instead of Post-LN at 1M stepsBERT-Large · GLUE devGLUE score: 84.01 (Post-LN 1M) -> 84.34 (RealFormer 500K)Improved
raise learning rate from default to 2e-4 (ablation)RealFormer BERT-Large · MLM devMLM accuracy: 73.94% -> 74.31%Improved
raise learning rate to 2e-4 (ablation)Post-LN BERT-Large · MLM devMLM accuracyHurt
add residual attention across dropout settings 0%, 10%, 20% (ablation)BERT-Large · MLM devMLM 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 devMLM accuracy: 73.64% (10%) -> 73.21% (20%)No clear effect
replace Post-LN backbone of ADMIN with RealFormerADMIN · WMT'14 En-Fr testBLEU: 43.72 (our ADMIN) -> 43.97Improved
add residual attention edgesETC-Large · WikiHop, HotpotQA, Natural Questions, OpenKP devaccuracy / F1: e.g. WikiHop 78.92 -> 79.21; OpenKP 44.06 -> 44.27Improved
turn off residual attention during fine-tuning (keeping RealFormer pre-trained checkpoint) (ablation)ETC-Large + RealFormer · WikiHop devaccuracy: 78.96 -> 79.21Improved

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.

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?

All 5 open problems and what was already tried →

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy