AI Paper Atlas

Research map / Architectures and efficiency / Attention and transformers

The Devil in Linear Transformer

Zhen Qin, Xiaodong Han, Weixuan Sun, Dongxu Li, Lingpeng Kong, Nick Barnes, Yiran Zhong

EMNLP 2022Architectures and efficiency › Attention and transformersapproach: Linear attention approximations159 citations (OpenAlex)

The University of Hong Kong · SenseTime · Shanghai AI Laboratory · Australian National University · OPPO Research Institute

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

15measured effects
8improved
2no clear effect
5hurt

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.

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace the scaling denominator with a normalization after attention (NormAttention) (ablation)1+elu linear attention · WikiText-103 valperplexity: 4.98 -> 4.94Improved
remove scaling without adding normalization (ablation)1+elu linear attention · WikiText-103 valperplexity: 4.98 -> 797.08Hurt
replace scaling with NormAttention (ablation)linear attention · gradient relative std, 50k iterationsrelative standard deviation: 0.58 -> 0.20 (vs 1+elu)Improved
use vanilla attention in early layers of a linear transformer (ablation)1+elu · WikiText-103 valperplexity: 4.98 -> 3.76Improved
use vanilla attention in later layers instead of early layers (ablation)1+elu · WikiText-103 valperplexity: 3.76 -> 3.90Hurt
swap order: DiagAttention in later stage instead of early (ablation)TransNormer T1 · WikiText-103 valperplexity: 3.82 -> 4.13Hurt
use DiagAttention in all 12 layers (no NormAttention) (ablation)TransNormer T1 · WikiText-103 valperplexity: 3.82 -> 4.75Hurt
add DiagAttention to early layers (6 of 12) versus NormAttention only (ablation)TransNormer T1 · WikiText-103 valperplexity: 4.23 -> 3.82Improved
replace FFN with GLU (ablation)TransNormer T1/T2 · WikiText-103 valperplexity: T1 3.93 -> 3.82; T2 3.93 -> 3.81Improved
increase DiagAttention block size from 32 to 128 (ablation)TransNormer T1 · WikiText-103 valperplexity: 3.92 -> 3.72Improved
use DiagAttention and NormAttention in parallel within each layer (ablation)TransNormer · WikiText-103 valperplexity: T1 3.82 -> 3.77; T2 3.81 -> 3.82No clear effect
alternate DiagAttention and NormAttention sequentially within layers (ablation)TransNormer T1 · WikiText-103 valperplexity: 3.82 -> 4.19Hurt

Earlier methods this paper compares with

Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most 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.

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