mlsanityData to 14 Oct 2026

Bridging the Divide: Reconsidering Softmax and Linear Attention

arXiv 2412.06590 ↗First posted 9 Dec 2024cs.CVcited by 48

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  3. 2014Microsoft COCO: Common Objects in Contextcited by 17,608
  4. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
  5. 2020End-to-End Object Detection with Transformerscited by 7,414
  6. 2017mixup: Beyond Empirical Risk Minimizationcited by 5,183
  7. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
  8. 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
  9. 2022A ConvNet for the 2020scited by 3,579
  10. 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,884
  11. 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,269
  12. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
30 more
  1. 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,962
  2. 2020Rethinking Attention with Performerscited by 1,601
  3. 2018Unified Perceptual Parsing for Scene Understandingcited by 1,271
  4. 2017Random Erasing Data Augmentationcited by 1,239
  5. 2016Semantic Understanding of Scenes through the ADE20K Datasetcited by 1,069
  6. 2021Going deeper with Image Transformerscited by 764
  7. 2021PVT v2: Improved Baselines with Pyramid Vision Transformercited by 751
  8. 2019Panoptic Feature Pyramid Networkscited by 645
  9. 2021CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windowscited by 527
  10. 2021MViTv2: Improved Multiscale Vision Transformers for Classification and Detectioncited by 519
  11. 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 471
  12. 2018Efficient Attention: Attention with Linear Complexitiescited by 368
  13. 2022Vision Transformer with Deformable Attentioncited by 295
  14. 2021Focal Self-attention for Local-Global Interactions in Vision Transformerscited by 288
  15. 2022Neighborhood Attention Transformercited by 239
  16. 2022cosFormer: Rethinking Softmax in Attentioncited by 213
  17. 2023FLatten Transformer: Vision Transformer using Focused Linear Attentioncited by 171
  18. 2023GSVA: Generalized Segmentation via Multimodal Large Language Modelscited by 154
  19. 2023BiFormer: Vision Transformer with Bi-Level Routing Attentioncited by 151
  20. 2021SOFT: Softmax-free Transformer with Linear Complexitycited by 128
  21. 2024Demystify Mamba in Vision: A Linear Attention Perspectivecited by 102
  22. 2022The Devil in Linear Transformercited by 98
  23. 2023Agent Attention: On the Integration of Softmax and Linear Attentioncited by 90
  24. 2022Dilated Neighborhood Attention Transformercited by 64
  25. 2022Hydra Attention: Efficient Attention with Many Headscited by 55
  26. 2023Dynamic Perceiver for Efficient Visual Recognitioncited by 33
  27. 2022Castling-ViT: Compressing Self-Attention via Switching Towards Linear-Angular Attention at Vision Transformer Inferencecited by 28
  28. 2022Vicinity Vision Transformercited by 22
  29. 2024Revisiting Non-Autoregressive Transformers for Efficient Image Synthesiscited by 22
  30. 2024AdaNAT: Exploring Adaptive Policy for Token-Based Image Generationcited by 13

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 24; 2026: 24.

48 papers.

Sort:

By area:

  1. 2025ViT3: Unlocking Test-Time Training in Visioncited by 18
  2. 2025Rectifying Magnitude Neglect in Linear Attentioncited by 16
  3. 2025Attention Surgery: An Efficient Recipe to Linearize Your Video Diffusion Transformercited by 15
  4. 2025Massive Memorization with Hundreds of Trillions of Parameters for Sequential Transducer Generative Recommenderscited by 10
  5. 2026MHLA: Restoring Expressivity of Linear Attention via Token-Level Multi-Headcited by 7
  6. 2025On the Expressiveness of Softmax Attention: A Recurrent Neural Network Perspectivecited by 6
  7. 2026ZeroS: Zero-Sum Linear Attention for Efficient Transformerscited by 5
  8. 2025The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architecturescited by 4
  9. 2025Linear Differential Vision Transformer: Learning Visual Contrasts via Pairwise Differentialscited by 4
  10. 2026STILL: Selecting Tokens for Intra-Layer Hybrid Attention to Linearize LLMscited by 4
  11. 2026HyTRec: A Hybrid Temporal-Aware Attention Architecture for Long Behavior Sequential Recommendationcited by 4
  12. 2026ViT-AdaLA: Adapting Vision Transformers with Linear Attentioncited by 4
36 more
  1. 2025Transformers Provably Learn Sparse XOR with Polylogarithmic Parameterscited by 3
  2. 2025Self-Adjust Softmaxcited by 3
  3. 2025SAGA: Selective Adaptive Gating for Efficient and Expressive Linear Attentioncited by 3
  4. 2025LAWCAT: Efficient Distillation from Quadratic to Linear Attention with Convolution across Tokens for Long Context Modelingcited by 3
  5. 2025UltraImageGen: Efficient Ultra-High-Resolution Image Generation with Hierarchical Local Attentioncited by 3
  6. 2026VMonarch: Efficient Video Diffusion Transformers with Structured Attentioncited by 3
  7. 2026Affine-Scaled Attention: Towards Flexible and Stable Transformer Attentioncited by 3
  8. 2026LaplacianFormer:Rethinking Linear Attention with Laplacian Kernelcited by 3
  9. 2026Linearizing Vision Transformer with Test-Time Trainingcited by 3
  10. 2025Kolmogorov-Arnold Attention: Is Learnable Attention Better For Vision Transformers?cited by 2
  11. 2025Norm×Direction: Restoring the Missing Query Norm in Vision Linear Attentioncited by 2
  12. 2026Mixture-of-Top-k Attention: Efficient Attention via Scalable Fast Weightscited by 2
  13. 2025Online Pseudo-average Shifting Attention(PASA) for Robust Low-precision LLM Inference: Algorithms and Numerical Analysiscited by 1
  14. 2025SEMA: a Scalable and Efficient Mamba like Attention via Token Localization and Averagingcited by 1
  15. 2025How Data Mixing Shapes In-Context Learning: Asymptotic Equivalence for Transformers with MLPscited by 1
  16. 2025Optimal Attention Temperature Improves the Robustness of In-Context Learning under Distribution Shift in High Dimensionscited by 1
  17. 2025RNN as Linear Transformer: A Closer Investigation into Representational Potentials of Visual Mamba Modelscited by 1
  18. 2026Softmax Linear Attention: Reclaiming Global Competitioncited by 1
  19. 2026BinaryAttention: One-Bit QK-Attention for Vision and Diffusion Transformerscited by 1
  20. 2026DiD It in 87 Minutes: A Label-Free Softmax-to-Linear Adaptation of Vision Transformers for Object Detectioncited by 1
  21. 2025Balancing Computation Load and Representation Expressivity in Parallel Hybrid Neural Networkscited by 0
  22. 2025Mondrian: Transformer Operators via Domain Decompositioncited by 0
  23. 2025Topology-Assisted Spatio-Temporal Pattern Disentangling for Scalable MARL in Large-scale Autonomous Traffic Controlcited by 0
  24. 2025Minimax Rates for Learning Pairwise Interactions in Attention-Style Modelscited by 0
  25. 2025Attentive Convolution: Unifying the Expressivity of Self-Attention with Convolutional Efficiencycited by 0
  26. 2026LINA: Linear Autoregressive Image Generative Models with Continuous Tokenscited by 0
  27. 2026MirrorLA: Reflecting Feature Map for Vision Linear Attentioncited by 0
  28. 2026Exploring Spatiotemporal Feature Propagation for Video-Level Compressive Spectral Reconstruction: Dataset, Model and Benchmarkcited by 0
  29. 2026Collapse-Free Prototype Readout Layer for Transformer Encoderscited by 0
  30. 2026HierEdit: Region-Aware Hierarchical Diffusion for Efficient High-Resolution Editingcited by 0
  31. 2026DnA: Denoising Attention for Visual Taskscited by 0
  32. 2026GLIDE: Guided Layerwise Hybrid Attention for Efficient LLM Inferencecited by 0
  33. 2026nnMNet: Baseline for Martian Terrain Semantic Segmentationcited by 0
  34. 2026Copy the Same, Distill the Difference: Initializing Linear Vision Transformerscited by 0
  35. 2026Switching Linear Attentioncited by 0
  36. 2026Cluster Attention Neural Operators for Solving Parametric Partial Differential Equationscited by 0