Bridging the Divide: Reconsidering Softmax and Linear Attention
Not on the map. Why?
Abstract (arXiv)
Widely adopted in modern Vision Transformer designs, Softmax attention can effectively capture long-range visual information; however, it incurs excessive computational cost when dealing with high-resolution inputs. In contrast, linear attention naturally enjoys linear complexity and has great potential to scale up to higher-resolution images. Nonetheless, the unsatisfactory performance of linear attention greatly limits its practical application in various scenarios. In this paper, we take a step forward to close the gap between the linear and Softmax attention with novel theoretical analyses, which demystify the core factors behind the performance deviations. Specifically, we present two key perspectives to understand and alleviate the limitations of linear attention: the injective property and the local modeling ability. Firstly, we prove that linear attention is not injective, which is prone to assign identical attention weights to different query vectors, thus adding to severe semantic confusion since different queries correspond to the same outputs. Secondly, we confirm that effective local modeling is essential for the success of Softmax attention, in which linear attention falls short. The aforementioned two fundamental differences significantly contribute to the disparities between these two attention paradigms, which is demonstrated by our substantial empirical validation in the paper. In addition, more experiment results indicate that linear attention, as long as endowed with these two properties, can outperform Softmax attention across various tasks while maintaining lower computation complexity. Code is available at https://github.com/LeapLabTHU/InLine.
Key facts. Cited by 48 papers in the map (data through 14 Oct 2026). Builds on 42 of its 46 references that are in the map. First posted on arXiv 9 Dec 2024.
Builds on
42 of 46 references.
References · 42
- 2017Attention Is All You Needcited by 60,361
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2014Microsoft COCO: Common Objects in Contextcited by 17,608
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2020End-to-End Object Detection with Transformerscited by 7,414
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,183
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2022A ConvNet for the 2020scited by 3,579
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,884
- 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,269
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
30 more
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,962
- 2020Rethinking Attention with Performerscited by 1,601
- 2018Unified Perceptual Parsing for Scene Understandingcited by 1,271
- 2017Random Erasing Data Augmentationcited by 1,239
- 2016Semantic Understanding of Scenes through the ADE20K Datasetcited by 1,069
- 2021Going deeper with Image Transformerscited by 764
- 2021PVT v2: Improved Baselines with Pyramid Vision Transformercited by 751
- 2019Panoptic Feature Pyramid Networkscited by 645
- 2021CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windowscited by 527
- 2021MViTv2: Improved Multiscale Vision Transformers for Classification and Detectioncited by 519
- 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 471
- 2018Efficient Attention: Attention with Linear Complexitiescited by 368
- 2022Vision Transformer with Deformable Attentioncited by 295
- 2021Focal Self-attention for Local-Global Interactions in Vision Transformerscited by 288
- 2022Neighborhood Attention Transformercited by 239
- 2022cosFormer: Rethinking Softmax in Attentioncited by 213
- 2023FLatten Transformer: Vision Transformer using Focused Linear Attentioncited by 171
- 2023GSVA: Generalized Segmentation via Multimodal Large Language Modelscited by 154
- 2023BiFormer: Vision Transformer with Bi-Level Routing Attentioncited by 151
- 2021SOFT: Softmax-free Transformer with Linear Complexitycited by 128
- 2024Demystify Mamba in Vision: A Linear Attention Perspectivecited by 102
- 2022The Devil in Linear Transformercited by 98
- 2023Agent Attention: On the Integration of Softmax and Linear Attentioncited by 90
- 2022Dilated Neighborhood Attention Transformercited by 64
- 2022Hydra Attention: Efficient Attention with Many Headscited by 55
- 2023Dynamic Perceiver for Efficient Visual Recognitioncited by 33
- 2022Castling-ViT: Compressing Self-Attention via Switching Towards Linear-Angular Attention at Vision Transformer Inferencecited by 28
- 2022Vicinity Vision Transformercited by 22
- 2024Revisiting Non-Autoregressive Transformers for Efficient Image Synthesiscited by 22
- 2024AdaNAT: Exploring Adaptive Policy for Token-Based Image Generationcited by 13
Built on by
Citing papers per year: 2025: 24; 2026: 24.
48 papers.
Sort:
By area:
- 2025ViT3: Unlocking Test-Time Training in Visioncited by 18
- 2025Rectifying Magnitude Neglect in Linear Attentioncited by 16
- 2025Attention Surgery: An Efficient Recipe to Linearize Your Video Diffusion Transformercited by 15
- 2025Massive Memorization with Hundreds of Trillions of Parameters for Sequential Transducer Generative Recommenderscited by 10
- 2026MHLA: Restoring Expressivity of Linear Attention via Token-Level Multi-Headcited by 7
- 2025On the Expressiveness of Softmax Attention: A Recurrent Neural Network Perspectivecited by 6
- 2026ZeroS: Zero-Sum Linear Attention for Efficient Transformerscited by 5
- 2025The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architecturescited by 4
- 2025Linear Differential Vision Transformer: Learning Visual Contrasts via Pairwise Differentialscited by 4
- 2026STILL: Selecting Tokens for Intra-Layer Hybrid Attention to Linearize LLMscited by 4
- 2026HyTRec: A Hybrid Temporal-Aware Attention Architecture for Long Behavior Sequential Recommendationcited by 4
- 2026ViT-AdaLA: Adapting Vision Transformers with Linear Attentioncited by 4
36 more
- 2025Transformers Provably Learn Sparse XOR with Polylogarithmic Parameterscited by 3
- 2025Self-Adjust Softmaxcited by 3
- 2025SAGA: Selective Adaptive Gating for Efficient and Expressive Linear Attentioncited by 3
- 2025LAWCAT: Efficient Distillation from Quadratic to Linear Attention with Convolution across Tokens for Long Context Modelingcited by 3
- 2025UltraImageGen: Efficient Ultra-High-Resolution Image Generation with Hierarchical Local Attentioncited by 3
- 2026VMonarch: Efficient Video Diffusion Transformers with Structured Attentioncited by 3
- 2026Affine-Scaled Attention: Towards Flexible and Stable Transformer Attentioncited by 3
- 2026LaplacianFormer:Rethinking Linear Attention with Laplacian Kernelcited by 3
- 2026Linearizing Vision Transformer with Test-Time Trainingcited by 3
- 2025Kolmogorov-Arnold Attention: Is Learnable Attention Better For Vision Transformers?cited by 2
- 2025Norm×Direction: Restoring the Missing Query Norm in Vision Linear Attentioncited by 2
- 2026Mixture-of-Top-k Attention: Efficient Attention via Scalable Fast Weightscited by 2
- 2025Online Pseudo-average Shifting Attention(PASA) for Robust Low-precision LLM Inference: Algorithms and Numerical Analysiscited by 1
- 2025SEMA: a Scalable and Efficient Mamba like Attention via Token Localization and Averagingcited by 1
- 2025How Data Mixing Shapes In-Context Learning: Asymptotic Equivalence for Transformers with MLPscited by 1
- 2025Optimal Attention Temperature Improves the Robustness of In-Context Learning under Distribution Shift in High Dimensionscited by 1
- 2025RNN as Linear Transformer: A Closer Investigation into Representational Potentials of Visual Mamba Modelscited by 1
- 2026Softmax Linear Attention: Reclaiming Global Competitioncited by 1
- 2026BinaryAttention: One-Bit QK-Attention for Vision and Diffusion Transformerscited by 1
- 2026DiD It in 87 Minutes: A Label-Free Softmax-to-Linear Adaptation of Vision Transformers for Object Detectioncited by 1
- 2025Balancing Computation Load and Representation Expressivity in Parallel Hybrid Neural Networkscited by 0
- 2025Mondrian: Transformer Operators via Domain Decompositioncited by 0
- 2025Topology-Assisted Spatio-Temporal Pattern Disentangling for Scalable MARL in Large-scale Autonomous Traffic Controlcited by 0
- 2025Minimax Rates for Learning Pairwise Interactions in Attention-Style Modelscited by 0
- 2025Attentive Convolution: Unifying the Expressivity of Self-Attention with Convolutional Efficiencycited by 0
- 2026LINA: Linear Autoregressive Image Generative Models with Continuous Tokenscited by 0
- 2026MirrorLA: Reflecting Feature Map for Vision Linear Attentioncited by 0
- 2026Exploring Spatiotemporal Feature Propagation for Video-Level Compressive Spectral Reconstruction: Dataset, Model and Benchmarkcited by 0
- 2026Collapse-Free Prototype Readout Layer for Transformer Encoderscited by 0
- 2026HierEdit: Region-Aware Hierarchical Diffusion for Efficient High-Resolution Editingcited by 0
- 2026DnA: Denoising Attention for Visual Taskscited by 0
- 2026GLIDE: Guided Layerwise Hybrid Attention for Efficient LLM Inferencecited by 0
- 2026nnMNet: Baseline for Martian Terrain Semantic Segmentationcited by 0
- 2026Copy the Same, Distill the Difference: Initializing Linear Vision Transformerscited by 0
- 2026Switching Linear Attentioncited by 0
- 2026Cluster Attention Neural Operators for Solving Parametric Partial Differential Equationscited by 0
- 2026Cluster Attention Neural Operators for Solving Parametric Partial Differential Equations30 Sep 2026
- 2026Switching Linear Attention30 Sep 2026
- 2026Copy the Same, Distill the Difference: Initializing Linear Vision Transformers28 Sep 2026
- 2026nnMNet: Baseline for Martian Terrain Semantic Segmentation30 Aug 2026
- 2026DiD It in 87 Minutes: A Label-Free Softmax-to-Linear Adaptation of Vision Transformers for Object Detection23 Aug 2026
- 2026GLIDE: Guided Layerwise Hybrid Attention for Efficient LLM Inference26 Jun 2026
- 2026DnA: Denoising Attention for Visual Tasks25 Jun 2026
- 2026HierEdit: Region-Aware Hierarchical Diffusion for Efficient High-Resolution Editing17 May 2026
- 2026Linearizing Vision Transformer with Test-Time Training4 May 2026
- 2026LaplacianFormer:Rethinking Linear Attention with Laplacian Kernel22 Apr 2026
- 2026Collapse-Free Prototype Readout Layer for Transformer Encoders4 Apr 2026
- 2026ViT-AdaLA: Adapting Vision Transformers with Linear Attention17 Mar 2026
36 more
- 2026BinaryAttention: One-Bit QK-Attention for Vision and Diffusion Transformers10 Mar 2026
- 2026Exploring Spatiotemporal Feature Propagation for Video-Level Compressive Spectral Reconstruction: Dataset, Model and Benchmark28 Feb 2026
- 2026Affine-Scaled Attention: Towards Flexible and Stable Transformer Attention26 Feb 2026
- 2026HyTRec: A Hybrid Temporal-Aware Attention Architecture for Long Behavior Sequential Recommendation20 Feb 2026
- 2026ZeroS: Zero-Sum Linear Attention for Efficient Transformers5 Feb 2026
- 2026MirrorLA: Reflecting Feature Map for Vision Linear Attention4 Feb 2026
- 2026STILL: Selecting Tokens for Intra-Layer Hybrid Attention to Linearize LLMs2 Feb 2026
- 2026Softmax Linear Attention: Reclaiming Global Competition2 Feb 2026
- 2026Mixture-of-Top-k Attention: Efficient Attention via Scalable Fast Weights1 Feb 2026
- 2026LINA: Linear Autoregressive Image Generative Models with Continuous Tokens30 Jan 2026
- 2026VMonarch: Efficient Video Diffusion Transformers with Structured Attention29 Jan 2026
- 2026MHLA: Restoring Expressivity of Linear Attention via Token-Level Multi-Head12 Jan 2026
- 2025ViT3: Unlocking Test-Time Training in Vision1 Dec 2025
- 2025RNN as Linear Transformer: A Closer Investigation into Representational Potentials of Visual Mamba Models23 Nov 2025
- 2025Optimal Attention Temperature Improves the Robustness of In-Context Learning under Distribution Shift in High Dimensions3 Nov 2025
- 2025Linear Differential Vision Transformer: Learning Visual Contrasts via Pairwise Differentials2 Nov 2025
- 2025How Data Mixing Shapes In-Context Learning: Asymptotic Equivalence for Transformers with MLPs29 Oct 2025
- 2025Massive Memorization with Hundreds of Trillions of Parameters for Sequential Transducer Generative Recommenders24 Oct 2025
- 2025Attentive Convolution: Unifying the Expressivity of Self-Attention with Convolutional Efficiency23 Oct 2025
- 2025UltraImageGen: Efficient Ultra-High-Resolution Image Generation with Hierarchical Local Attention18 Oct 2025
- 2025Minimax Rates for Learning Pairwise Interactions in Attention-Style Models13 Oct 2025
- 2025The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures6 Oct 2025
- 2025Attention Surgery: An Efficient Recipe to Linearize Your Video Diffusion Transformer29 Sep 2025
- 2025LAWCAT: Efficient Distillation from Quadratic to Linear Attention with Convolution across Tokens for Long Context Modeling22 Sep 2025
- 2025SAGA: Selective Adaptive Gating for Efficient and Expressive Linear Attention16 Sep 2025
- 2025On the Expressiveness of Softmax Attention: A Recurrent Neural Network Perspective31 Jul 2025
- 2025Rectifying Magnitude Neglect in Linear Attention1 Jul 2025
- 2025Norm×Direction: Restoring the Missing Query Norm in Vision Linear Attention26 Jun 2025
- 2025Topology-Assisted Spatio-Temporal Pattern Disentangling for Scalable MARL in Large-scale Autonomous Traffic Control14 Jun 2025
- 2025SEMA: a Scalable and Efficient Mamba like Attention via Token Localization and Averaging10 Jun 2025
- 2025Mondrian: Transformer Operators via Domain Decomposition9 Jun 2025
- 2025Balancing Computation Load and Representation Expressivity in Parallel Hybrid Neural Networks26 May 2025
- 2025Kolmogorov-Arnold Attention: Is Learnable Attention Better For Vision Transformers?13 Mar 2025
- 2025Online Pseudo-average Shifting Attention(PASA) for Robust Low-precision LLM Inference: Algorithms and Numerical Analysis26 Feb 2025
- 2025Self-Adjust Softmax25 Feb 2025
- 2025Transformers Provably Learn Sparse XOR with Polylogarithmic Parameters11 Feb 2025
- 2025Attention Surgery: An Efficient Recipe to Linearize Your Video Diffusion Transformercited by 15
- 2025UltraImageGen: Efficient Ultra-High-Resolution Image Generation with Hierarchical Local Attentioncited by 3
- 2026VMonarch: Efficient Video Diffusion Transformers with Structured Attentioncited by 3
- 2026BinaryAttention: One-Bit QK-Attention for Vision and Diffusion Transformerscited by 1
- 2026BinaryAttention: One-Bit QK-Attention for Vision and Diffusion Transformers10 Mar 2026
- 2026VMonarch: Efficient Video Diffusion Transformers with Structured Attention29 Jan 2026
- 2025UltraImageGen: Efficient Ultra-High-Resolution Image Generation with Hierarchical Local Attention18 Oct 2025
- 2025Attention Surgery: An Efficient Recipe to Linearize Your Video Diffusion Transformer29 Sep 2025
- 2025ViT3: Unlocking Test-Time Training in Visioncited by 18
- 2025Rectifying Magnitude Neglect in Linear Attentioncited by 16
- 2025Massive Memorization with Hundreds of Trillions of Parameters for Sequential Transducer Generative Recommenderscited by 10
- 2026MHLA: Restoring Expressivity of Linear Attention via Token-Level Multi-Headcited by 7
- 2025On the Expressiveness of Softmax Attention: A Recurrent Neural Network Perspectivecited by 6
- 2026ZeroS: Zero-Sum Linear Attention for Efficient Transformerscited by 5
- 2025The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architecturescited by 4
- 2025Linear Differential Vision Transformer: Learning Visual Contrasts via Pairwise Differentialscited by 4
- 2026STILL: Selecting Tokens for Intra-Layer Hybrid Attention to Linearize LLMscited by 4
- 2026HyTRec: A Hybrid Temporal-Aware Attention Architecture for Long Behavior Sequential Recommendationcited by 4
- 2026ViT-AdaLA: Adapting Vision Transformers with Linear Attentioncited by 4
- 2025Transformers Provably Learn Sparse XOR with Polylogarithmic Parameterscited by 3
12 most cited of 40 All 40 (JSON)
- 2026Cluster Attention Neural Operators for Solving Parametric Partial Differential Equations30 Sep 2026
- 2026Switching Linear Attention30 Sep 2026
- 2026Copy the Same, Distill the Difference: Initializing Linear Vision Transformers28 Sep 2026
- 2026nnMNet: Baseline for Martian Terrain Semantic Segmentation30 Aug 2026
- 2026DiD It in 87 Minutes: A Label-Free Softmax-to-Linear Adaptation of Vision Transformers for Object Detection23 Aug 2026
- 2026DnA: Denoising Attention for Visual Tasks25 Jun 2026
- 2026HierEdit: Region-Aware Hierarchical Diffusion for Efficient High-Resolution Editing17 May 2026
- 2026Linearizing Vision Transformer with Test-Time Training4 May 2026
- 2026LaplacianFormer:Rethinking Linear Attention with Laplacian Kernel22 Apr 2026
- 2026Collapse-Free Prototype Readout Layer for Transformer Encoders4 Apr 2026
- 2026ViT-AdaLA: Adapting Vision Transformers with Linear Attention17 Mar 2026
- 2026Exploring Spatiotemporal Feature Propagation for Video-Level Compressive Spectral Reconstruction: Dataset, Model and Benchmark28 Feb 2026
12 newest of 40 All 40 (JSON)