mlsanityData to 7 Oct 2026

The Devil in Linear Transformer

arXiv 2210.10340 ↗First posted 19 Oct 2022cs.CL cs.LGcited by 98

Not on the map. Why?

Abstract (arXiv)

Linear transformers aim to reduce the quadratic space-time complexity of vanilla transformers. However, they usually suffer from degraded performances on various tasks and corpus. In this paper, we examine existing kernel-based linear transformers and identify two key issues that lead to such performance gaps: 1) unbounded gradients in the attention computation adversely impact the convergence of linear transformer models; 2) attention dilution which trivially distributes attention scores over long sequences while neglecting neighbouring structures. To address these issues, we first identify that the scaling of attention matrices is the devil in unbounded gradients, which turns out unnecessary in linear attention as we show theoretically and empirically. To this end, we propose a new linear attention that replaces the scaling operation with a normalization to stabilize gradients. For the issue of attention dilution, we leverage a diagonal attention to confine attention to only neighbouring tokens in early layers. Benefiting from the stable gradients and improved attention, our new linear transformer model, transNormer, demonstrates superior performance on text classification and language modeling tasks, as well as on the challenging Long-Range Arena benchmark, surpassing vanilla transformer and existing linear variants by a clear margin while being significantly more space-time efficient. The code is available at https://github.com/OpenNLPLab/Transnormer .

Key facts. Cited by 98 papers in the map (data through 7 Oct 2026). Builds on 33 of its 36 references that are in the map. First posted on arXiv 19 Oct 2022.

Builds on

33 of 36 references.

References · 33

  1. 2017Attention Is All You Needcited by 59,932
  2. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  3. 2016Layer Normalizationcited by 5,579
  4. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  5. 2020Longformer: The Long-Document Transformercited by 3,362
  6. 2016Pointer Sentinel Mixture Modelscited by 2,992
  7. 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,708
  8. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  9. 2020GLU Variants Improve Transformercited by 1,724
  10. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  11. 2020Reformer: The Efficient Transformercited by 1,658
  12. 2020Rethinking Attention with Performerscited by 1,584
21 more
  1. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  2. 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,486
  3. 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
  4. 2019Root Mean Square Layer Normalizationcited by 1,425
  5. 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
  6. 2021Random Feature Attentioncited by 350
  7. 2020Sparse Sinkhorn Attentioncited by 250
  8. 2022cosFormer: Rethinking Softmax in Attentioncited by 212
  9. 2022Transformer Quality in Linear Timecited by 189
  10. 2022Audio-Visual Segmentationcited by 148
  11. 2017On the Properties of the Softmax Function with Application in Game Theory and Reinforcement Learningcited by 136
  12. 2021Long-Short Transformer: Efficient Transformers for Language and Visioncited by 102
  13. 2021Skyformer: Remodel Self-Attention with Gaussian Kernel and Nystr"om Methodcited by 61
  14. 2022Implicit Motion Handling for Video Camouflaged Object Detectioncited by 60
  15. 2021Sparse Attention with Linear Unitscited by 41
  16. 2022Linear Complexity Randomized Self-attention Mechanismcited by 31
  17. 2022Vicinity Vision Transformercited by 22
  18. 2022Neural Architecture Search on Efficient Transformers and Beyondcited by 17
  19. 2016One-vs-Each Approximation to Softmax for Scalable Estimation of Probabilitiescited by 14
  20. 2022Deep Laparoscopic Stereo Matching with Transformerscited by 9
  21. 2022Locality Matters: A Locality-Biased Linear Attention for Automatic Speech Recognitioncited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 14; 2024: 36; 2025: 28; 2026: 20.

98 papers.

Sort:

By area:

  1. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
  2. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
  3. 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 490
  4. 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 373
  5. 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 329
  6. 2025MiniMax-M1: Scaling Test-Time Compute Efficiently with Lightning Attentioncited by 248
  7. 2023LongNet: Scaling Transformers to 1,000,000,000 Tokenscited by 201
  8. 2024HGRN2: Gated Linear RNNs with State Expansioncited by 122
  9. 2024The Hedgehog & the Porcupine: Expressive Linear Attentions with Softmax Mimicrycited by 119
  10. 2023Hierarchically Gated Recurrent Neural Network for Sequence Modelingcited by 100
  11. 2024In-Context Language Learning: Architectures and Algorithmscited by 86
  12. 2024Gated Slot Attention for Efficient Linear-Time Sequence Modelingcited by 73
38 more
  1. 2025Test-time regression: a unifying framework for designing sequence models with associative memorycited by 63
  2. 2024Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Modelscited by 57
  3. 2024Linearizing Large Language Modelscited by 51
  4. 2024Bridging the Divide: Reconsidering Softmax and Linear Attentioncited by 48
  5. 2024Hydra: Bidirectional State Space Models Through Generalized Matrix Mixerscited by 43
  6. 2023TransNormerLLM: A Faster and Better Large Language Model with Improved TransNormercited by 34
  7. 2024On the Efficacy of Eviction Policy for Key-Value Constrained Generative Language Model Inferencecited by 32
  8. 2024Mixture of In-Context Prompters for Tabular PFNscited by 32
  9. 2024Various Lengths, Constant Speed: Efficient Language Modeling with Lightning Attentioncited by 31
  10. 2023On Efficient Training of Large-Scale Deep Learning Models: A Literature Reviewcited by 26
  11. 2023Transformer-VQ: Linear-Time Transformers via Vector Quantizationcited by 26
  12. 2024LoLCATs: On Low-Rank Linearizing of Large Language Modelscited by 25
  13. 2023Efficient Attention via Control Variatescited by 23
  14. 2024MetaLA: Unified Optimal Linear Approximation to Softmax Attention Mapcited by 20
  15. 2025Position: The Future of Bayesian Prediction Is Prior-Fittedcited by 19
  16. 2025Lattice: Learning to Efficiently Compress the Memorycited by 18
  17. 2023Fine-grained Audible Video Descriptioncited by 17
  18. 2023Linearized Relative Positional Encodingcited by 17
  19. 2024CO2: Efficient Distributed Training with Full Communication-Computation Overlapcited by 17
  20. 2024On the Resurgence of Recurrent Models for Long Sequences -- Survey and Research Opportunities in the Transformer Eracited by 17
  21. 2025Rectifying Magnitude Neglect in Linear Attentioncited by 16
  22. 2026PISA: Piecewise Sparse Attention Is Wiser for Efficient Diffusion Transformerscited by 16
  23. 2023Why Softmax Attention Outperforms Linear Attentioncited by 15
  24. 2024UncertaintyRAG: Span-Level Uncertainty Enhanced Long-Context Modeling for Retrieval-Augmented Generationcited by 14
  25. 2024NeuSDFusion: A Spatial-Aware Generative Model for 3D Shape Completion, Reconstruction, and Generationcited by 13
  26. 2024ViG: Linear-complexity Visual Sequence Learning with Gated Linear Attentioncited by 13
  27. 2025Mixture of Sparse Attention: Content-Based Learnable Sparse Attention via Expert-Choice Routingcited by 13
  28. 2025TabFlex: Scaling Tabular Learning to Millions with Linear Attentioncited by 13
  29. 2025Hybrid Architectures for Language Models: Systematic Analysis and Design Insightscited by 13
  30. 2025Tiled Flash Linear Attention: More Efficient Linear RNN and xLSTM Kernelscited by 12
  31. 2025Scaling Linear Attention with Sparse State Expansioncited by 12
  32. 2024BurstAttention: An Efficient Distributed Attention Framework for Extremely Long Sequencescited by 10
  33. 2024You Only Scan Once: Efficient Multi-dimension Sequential Modeling with LightNetcited by 9
  34. 2024When Linear Attention Meets Autoregressive Decoding: Towards More Effective and Efficient Linearized Large Language Modelscited by 9
  35. 2025ZETA: Leveraging Z-order Curves for Efficient Top-k Attentioncited by 9
  36. 2025Rethinking Temporal Fusion with a Unified Gradient Descent View for 3D Semantic Occupancy Predictioncited by 9
  37. 2023Exploring Transformer Extrapolationcited by 8
  38. 2024Linear Attention Sequence Parallelismcited by 8

50 most cited of 98 All 98 (JSON)