The Devil in Linear Transformer
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
- 2017Attention Is All You Needcited by 59,932
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2016Layer Normalizationcited by 5,579
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,708
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2020GLU Variants Improve Transformercited by 1,724
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2020Reformer: The Efficient Transformercited by 1,658
- 2020Rethinking Attention with Performerscited by 1,584
21 more
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,486
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2019Root Mean Square Layer Normalizationcited by 1,425
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
- 2021Random Feature Attentioncited by 350
- 2020Sparse Sinkhorn Attentioncited by 250
- 2022cosFormer: Rethinking Softmax in Attentioncited by 212
- 2022Transformer Quality in Linear Timecited by 189
- 2022Audio-Visual Segmentationcited by 148
- 2017On the Properties of the Softmax Function with Application in Game Theory and Reinforcement Learningcited by 136
- 2021Long-Short Transformer: Efficient Transformers for Language and Visioncited by 102
- 2021Skyformer: Remodel Self-Attention with Gaussian Kernel and Nystr"om Methodcited by 61
- 2022Implicit Motion Handling for Video Camouflaged Object Detectioncited by 60
- 2021Sparse Attention with Linear Unitscited by 41
- 2022Linear Complexity Randomized Self-attention Mechanismcited by 31
- 2022Vicinity Vision Transformercited by 22
- 2022Neural Architecture Search on Efficient Transformers and Beyondcited by 17
- 2016One-vs-Each Approximation to Softmax for Scalable Estimation of Probabilitiescited by 14
- 2022Deep Laparoscopic Stereo Matching with Transformerscited by 9
- 2022Locality Matters: A Locality-Biased Linear Attention for Automatic Speech Recognitioncited by 6
Built on by
Citing papers per year: 2023: 14; 2024: 36; 2025: 28; 2026: 20.
98 papers.
Sort:
By area:
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
- 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 490
- 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 373
- 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 329
- 2025MiniMax-M1: Scaling Test-Time Compute Efficiently with Lightning Attentioncited by 248
- 2023LongNet: Scaling Transformers to 1,000,000,000 Tokenscited by 201
- 2024HGRN2: Gated Linear RNNs with State Expansioncited by 122
- 2024The Hedgehog & the Porcupine: Expressive Linear Attentions with Softmax Mimicrycited by 119
- 2023Hierarchically Gated Recurrent Neural Network for Sequence Modelingcited by 100
- 2024In-Context Language Learning: Architectures and Algorithmscited by 86
- 2024Gated Slot Attention for Efficient Linear-Time Sequence Modelingcited by 73
38 more
- 2025Test-time regression: a unifying framework for designing sequence models with associative memorycited by 63
- 2024Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Modelscited by 57
- 2024Linearizing Large Language Modelscited by 51
- 2024Bridging the Divide: Reconsidering Softmax and Linear Attentioncited by 48
- 2024Hydra: Bidirectional State Space Models Through Generalized Matrix Mixerscited by 43
- 2023TransNormerLLM: A Faster and Better Large Language Model with Improved TransNormercited by 34
- 2024On the Efficacy of Eviction Policy for Key-Value Constrained Generative Language Model Inferencecited by 32
- 2024Mixture of In-Context Prompters for Tabular PFNscited by 32
- 2024Various Lengths, Constant Speed: Efficient Language Modeling with Lightning Attentioncited by 31
- 2023On Efficient Training of Large-Scale Deep Learning Models: A Literature Reviewcited by 26
- 2023Transformer-VQ: Linear-Time Transformers via Vector Quantizationcited by 26
- 2024LoLCATs: On Low-Rank Linearizing of Large Language Modelscited by 25
- 2023Efficient Attention via Control Variatescited by 23
- 2024MetaLA: Unified Optimal Linear Approximation to Softmax Attention Mapcited by 20
- 2025Position: The Future of Bayesian Prediction Is Prior-Fittedcited by 19
- 2025Lattice: Learning to Efficiently Compress the Memorycited by 18
- 2023Fine-grained Audible Video Descriptioncited by 17
- 2023Linearized Relative Positional Encodingcited by 17
- 2024CO2: Efficient Distributed Training with Full Communication-Computation Overlapcited by 17
- 2024On the Resurgence of Recurrent Models for Long Sequences -- Survey and Research Opportunities in the Transformer Eracited by 17
- 2025Rectifying Magnitude Neglect in Linear Attentioncited by 16
- 2026PISA: Piecewise Sparse Attention Is Wiser for Efficient Diffusion Transformerscited by 16
- 2023Why Softmax Attention Outperforms Linear Attentioncited by 15
- 2024UncertaintyRAG: Span-Level Uncertainty Enhanced Long-Context Modeling for Retrieval-Augmented Generationcited by 14
- 2024NeuSDFusion: A Spatial-Aware Generative Model for 3D Shape Completion, Reconstruction, and Generationcited by 13
- 2024ViG: Linear-complexity Visual Sequence Learning with Gated Linear Attentioncited by 13
- 2025Mixture of Sparse Attention: Content-Based Learnable Sparse Attention via Expert-Choice Routingcited by 13
- 2025TabFlex: Scaling Tabular Learning to Millions with Linear Attentioncited by 13
- 2025Hybrid Architectures for Language Models: Systematic Analysis and Design Insightscited by 13
- 2025Tiled Flash Linear Attention: More Efficient Linear RNN and xLSTM Kernelscited by 12
- 2025Scaling Linear Attention with Sparse State Expansioncited by 12
- 2024BurstAttention: An Efficient Distributed Attention Framework for Extremely Long Sequencescited by 10
- 2024You Only Scan Once: Efficient Multi-dimension Sequential Modeling with LightNetcited by 9
- 2024When Linear Attention Meets Autoregressive Decoding: Towards More Effective and Efficient Linearized Large Language Modelscited by 9
- 2025ZETA: Leveraging Z-order Curves for Efficient Top-k Attentioncited by 9
- 2025Rethinking Temporal Fusion with a Unified Gradient Descent View for 3D Semantic Occupancy Predictioncited by 9
- 2023Exploring Transformer Extrapolationcited by 8
- 2024Linear Attention Sequence Parallelismcited by 8
50 most cited of 98 All 98 (JSON)
- 2026CyFA: Linear Sequence Modeling with Relative-Time-Partitioned Memory28 Sep 2026
- 2026Larger Context Window, Fewer Overcorrections: Optimizing Prompts and Batching for Minimal-Edit Grammatical Error Correction9 Sep 2026
- 2026V-REX: Efficient Specialist VLM Training for Veterinary X-Rays20 Aug 2026
- 2026FLARE++: Low-rank attention with dynamic attention routing12 Aug 2026
- 2026M=oLe-Lambda: Learning the Coupled-Cluster Response State for Energies, Gradients, and Properties28 May 2026
- 2026Exact Linear Attention13 May 2026
- 2026The Structural Origin of Attention Sink: Variance Discrepancy, Super Neurons, and Dimension Disparity7 May 2026
- 2026CXRMate-2: Structured Multimodal Temporal Embeddings and Tractable Reinforcement Learning for Clinically Acceptable Chest X-ray Radiology Report Generation21 Apr 2026
- 2026On The Application of Linear Attention in Multimodal Transformers11 Apr 2026
- 2026Simple yet Effective: Low-Rank Spatial Attention for Neural Operators4 Apr 2026
- 2026A Knowledge-Informed Pretrained Model for Causal Discovery21 Mar 2026
- 2026StegaFFD: Privacy-Preserving Face Forgery Detection via Fine-Grained Steganographic Domain Lifting3 Mar 2026
38 more
- 2026Gated Differential Linear Attention: A Linear-Time Decoder for High-Fidelity Medical Segmentation3 Mar 2026
- 2026Coupled Cluster con M=oLe: Molecular Orbital Learning for Neural Wavefunctions23 Feb 2026
- 2026Free Energy Mixer6 Feb 2026
- 2026ZeroS: Zero-Sum Linear Attention for Efficient Transformers5 Feb 2026
- 2026Online Vector Quantized Attention3 Feb 2026
- 2026Dissecting Outlier Dynamics in LLM NVFP4 Pretraining2 Feb 2026
- 2026PISA: Piecewise Sparse Attention Is Wiser for Efficient Diffusion Transformers1 Feb 2026
- 2026MHLA: Restoring Expressivity of Linear Attention via Token-Level Multi-Head12 Jan 2026
- 2025Fine-Grained Zero-Shot Learning with Attribute-Centric Representations13 Dec 2025
- 2025GDKVM: Echocardiography Video Segmentation via Spatiotemporal Key-Value Memory with Gated Delta Rule11 Dec 2025
- 2025Transformers as Intrinsic Optimizers: Forward Inference through the Energy Principle2 Nov 2025
- 2025Transformer Based Linear Attention with Optimized GPU Kernel Implementation24 Oct 2025
- 2025DSAS: A Universal Plug-and-Play Framework for Attention Optimization in Multi-Document Question Answering14 Oct 2025
- 2025Hybrid Architectures for Language Models: Systematic Analysis and Design Insights6 Oct 2025
- 2025LAWCAT: Efficient Distillation from Quadratic to Linear Attention with Convolution across Tokens for Long Context Modeling22 Sep 2025
- 2025Elucidating the Design Space of Decay in Linear Attention5 Sep 2025
- 2025FLARE: Fast Low-rank Attention Routing Engine18 Aug 2025
- 2025Scaling Linear Attention with Sparse State Expansion22 Jul 2025
- 2025IML-Spikeformer: Input-aware Multi-Level Spiking Transformer for Speech Processing10 Jul 2025
- 2025Autoregressive Image Generation with Linear Complexity: A Spatial-Aware Decay Perspective2 Jul 2025
- 2025Rectifying Magnitude Neglect in Linear Attention1 Jul 2025
- 2025MiniMax-M1: Scaling Test-Time Compute Efficiently with Lightning Attention16 Jun 2025
- 2025TabFlex: Scaling Tabular Learning to Millions with Linear Attention5 Jun 2025
- 2025Position: The Future of Bayesian Prediction Is Prior-Fitted29 May 2025
- 2025CodeSSM: Towards State Space Models for Code Understanding2 May 2025
- 2025Mixture of Sparse Attention: Content-Based Learnable Sparse Attention via Expert-Choice Routing1 May 2025
- 2025Rethinking Temporal Fusion with a Unified Gradient Descent View for 3D Semantic Occupancy Prediction17 Apr 2025
- 2025Lattice: Learning to Efficiently Compress the Memory8 Apr 2025
- 2025FLAMES: A Hybrid Spiking-State Space Model for Adaptive Memory Retention in Event-Based Learning2 Apr 2025
- 2025Tiled Flash Linear Attention: More Efficient Linear RNN and xLSTM Kernels18 Mar 2025
- 2025SVIP: Semantically Contextualized Visual Patches for Zero-Shot Learning13 Mar 2025
- 2025GraphSparseNet: a Novel Method for Large Scale Traffic Flow Prediction27 Feb 2025
- 2025Linear Transformers as VAR Models: Aligning Autoregressive Attention Mechanisms with Autoregressive Forecasting11 Feb 2025
- 2025ReGLA: Refining Gated Linear Attention3 Feb 2025
- 2025ZETA: Leveraging Z-order Curves for Efficient Top-k Attention24 Jan 2025
- 2025Test-time regression: a unifying framework for designing sequence models with associative memory21 Jan 2025
- 2024Bridging the Divide: Reconsidering Softmax and Linear Attention9 Dec 2024
- 2024MetaLA: Unified Optimal Linear Approximation to Softmax Attention Map16 Nov 2024
50 newest of 98 All 98 (JSON)
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
- 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 490
- 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 329
- 2024Hydra: Bidirectional State Space Models Through Generalized Matrix Mixerscited by 43
- 2025Hybrid Architectures for Language Models: Systematic Analysis and Design Insightscited by 13
- 2025Hybrid Architectures for Language Models: Systematic Analysis and Design Insights6 Oct 2025
- 2024Hydra: Bidirectional State Space Models Through Generalized Matrix Mixers13 Jul 2024
- 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden States5 Jul 2024
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality31 May 2024
- 2023Gated Linear Attention Transformers with Hardware-Efficient Training11 Dec 2023
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spaces1 Dec 2023
- 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 373
- 2023LongNet: Scaling Transformers to 1,000,000,000 Tokenscited by 201
- 2024HGRN2: Gated Linear RNNs with State Expansioncited by 122
- 2024The Hedgehog & the Porcupine: Expressive Linear Attentions with Softmax Mimicrycited by 119
- 2023Hierarchically Gated Recurrent Neural Network for Sequence Modelingcited by 100
- 2024In-Context Language Learning: Architectures and Algorithmscited by 86
- 2024Gated Slot Attention for Efficient Linear-Time Sequence Modelingcited by 73
- 2025Test-time regression: a unifying framework for designing sequence models with associative memorycited by 63
- 2024Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Modelscited by 57
- 2024Linearizing Large Language Modelscited by 51
- 2024Bridging the Divide: Reconsidering Softmax and Linear Attentioncited by 48
- 2023TransNormerLLM: A Faster and Better Large Language Model with Improved TransNormercited by 34
12 most cited of 84 All 84 (JSON)
- 2026CyFA: Linear Sequence Modeling with Relative-Time-Partitioned Memory28 Sep 2026
- 2026Larger Context Window, Fewer Overcorrections: Optimizing Prompts and Batching for Minimal-Edit Grammatical Error Correction9 Sep 2026
- 2026V-REX: Efficient Specialist VLM Training for Veterinary X-Rays20 Aug 2026
- 2026FLARE++: Low-rank attention with dynamic attention routing12 Aug 2026
- 2026M=oLe-Lambda: Learning the Coupled-Cluster Response State for Energies, Gradients, and Properties28 May 2026
- 2026The Structural Origin of Attention Sink: Variance Discrepancy, Super Neurons, and Dimension Disparity7 May 2026
- 2026CXRMate-2: Structured Multimodal Temporal Embeddings and Tractable Reinforcement Learning for Clinically Acceptable Chest X-ray Radiology Report Generation21 Apr 2026
- 2026Simple yet Effective: Low-Rank Spatial Attention for Neural Operators4 Apr 2026
- 2026A Knowledge-Informed Pretrained Model for Causal Discovery21 Mar 2026
- 2026StegaFFD: Privacy-Preserving Face Forgery Detection via Fine-Grained Steganographic Domain Lifting3 Mar 2026
- 2026Gated Differential Linear Attention: A Linear-Time Decoder for High-Fidelity Medical Segmentation3 Mar 2026
- 2026Coupled Cluster con M=oLe: Molecular Orbital Learning for Neural Wavefunctions23 Feb 2026
12 newest of 84 All 84 (JSON)