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
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 ↗
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 changed | Where | Measured | Effect |
|---|---|---|---|
| replace the scaling denominator with a normalization after attention (NormAttention) (ablation) | 1+elu linear attention · WikiText-103 val | perplexity: 4.98 -> 4.94 | Improved |
| remove scaling without adding normalization (ablation) | 1+elu linear attention · WikiText-103 val | perplexity: 4.98 -> 797.08 | Hurt |
| replace scaling with NormAttention (ablation) | linear attention · gradient relative std, 50k iterations | relative 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 val | perplexity: 4.98 -> 3.76 | Improved |
| use vanilla attention in later layers instead of early layers (ablation) | 1+elu · WikiText-103 val | perplexity: 3.76 -> 3.90 | Hurt |
| swap order: DiagAttention in later stage instead of early (ablation) | TransNormer T1 · WikiText-103 val | perplexity: 3.82 -> 4.13 | Hurt |
| use DiagAttention in all 12 layers (no NormAttention) (ablation) | TransNormer T1 · WikiText-103 val | perplexity: 3.82 -> 4.75 | Hurt |
| add DiagAttention to early layers (6 of 12) versus NormAttention only (ablation) | TransNormer T1 · WikiText-103 val | perplexity: 4.23 -> 3.82 | Improved |
| replace FFN with GLU (ablation) | TransNormer T1/T2 · WikiText-103 val | perplexity: T1 3.93 -> 3.82; T2 3.93 -> 3.81 | Improved |
| increase DiagAttention block size from 32 to 128 (ablation) | TransNormer T1 · WikiText-103 val | perplexity: 3.92 -> 3.72 | Improved |
| use DiagAttention and NormAttention in parallel within each layer (ablation) | TransNormer · WikiText-103 val | perplexity: T1 3.82 -> 3.77; T2 3.81 -> 3.82 | No clear effect |
| alternate DiagAttention and NormAttention sequentially within layers (ablation) | TransNormer T1 · WikiText-103 val | perplexity: 3.82 -> 4.19 | Hurt |
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.
- cosFormer — cosFormer: Rethinking Softmax In Attention (ICLR 2022) · better on 1 of 1 shared result
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
- SEA: Sparse Linear Attention with Estimated Attention Mask (ICLR 2024 · similarity 0.89)
- Linear Log-Normal Attention with Unbiased Concentration (ICLR 2024 · similarity 0.89)
- Transformers Learn Nonlinear Features In Context: Nonconvex Mean-field Dynamics on the Attention Landscape (ICML 2024 · similarity 0.89)
- Viewing Transformers Through the Lens of Long Convolutions Layers (ICML 2024 · similarity 0.89)
- Gated Linear Attention Transformers with Hardware-Efficient Training (ICML 2024 · similarity 0.89)
- Token Statistics Transformer: Linear-Time Attention via Variational Rate Reduction (ICLR 2025 · similarity 0.89)
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.
