Rectifying Magnitude Neglect in Linear Attention
Not on the map. Why?
Abstract (arXiv)
As the core operator of Transformers, Softmax Attention exhibits excellent global modeling capabilities. However, its quadratic complexity limits its applicability to vision tasks. In contrast, Linear Attention shares a similar formulation with Softmax Attention while achieving linear complexity, enabling efficient global information modeling. Nevertheless, Linear Attention suffers from a significant performance degradation compared to standard Softmax Attention. In this paper, we analyze the underlying causes of this issue based on the formulation of Linear Attention. We find that, unlike Softmax Attention, Linear Attention entirely disregards the magnitude information of the Query. This prevents the attention score distribution from dynamically adapting as the Query scales. As a result, despite its structural similarity to Softmax Attention, Linear Attention exhibits a significantly different attention score distribution. Based on this observation, we propose Magnitude-Aware Linear Attention (MALA), which modifies the computation of Linear Attention to fully incorporate the Query's magnitude. This adjustment allows MALA to generate an attention score distribution that closely resembles Softmax Attention while exhibiting a more well-balanced structure. We evaluate the effectiveness of MALA on multiple tasks, including image classification, object detection, instance segmentation, semantic segmentation, natural language processing, speech recognition, and image generation. Our MALA achieves strong results on all of these tasks. Code will be available at https://github.com/qhfan/MALA
Key facts. Cited by 16 papers in the map (data through 14 Oct 2026). Builds on 52 of its 59 references that are in the map. First posted on arXiv 1 Jul 2025.
Builds on
52 of 59 references.
References · 52
- 2017Attention Is All You Needcited by 60,361
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2017Mask R-CNNcited by 7,277
- 2022Scalable Diffusion Models with Transformerscited by 6,054
- 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
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,962
- 2020Conformer: Convolution-augmented Transformer for Speech Recognitioncited by 1,863
- 2017Cascade R-CNN: Delving into High Quality Object Detectioncited by 1,276
- 2018Unified Perceptual Parsing for Scene Understandingcited by 1,271
38 more
- 2016Deep Networks with Stochastic Depthcited by 979
- 2024VMamba: Visual State Space Modelcited by 969
- 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
- 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 514
- 2022InternImage: Exploring Large-Scale Vision Foundation Models with Deformable Convolutionscited by 482
- 2018Efficient Attention: Attention with Linear Complexitiescited by 368
- 2021CMT: Convolutional Neural Networks Meet Vision Transformerscited by 310
- 2022Neighborhood Attention Transformercited by 239
- 2022Visual Attention Networkcited by 210
- 2022UniFormer: Unified Transformer for Efficient Spatiotemporal Representation Learningcited by 184
- 2022DaViT: Dual Attention Vision Transformerscited by 175
- 2023FLatten Transformer: Vision Transformer using Focused Linear Attentioncited by 171
- 2023BiFormer: Vision Transformer with Bi-Level Routing Attentioncited by 151
- 2021MPViT: Multi-Path Vision Transformer for Dense Predictioncited by 122
- 2022HorNet: Efficient High-Order Spatial Interactions with Recursive Gated Convolutionscited by 103
- 2024Demystify Mamba in Vision: A Linear Attention Perspectivecited by 102
- 2022Inception Transformercited by 99
- 2022Global Context Vision Transformerscited by 98
- 2022The Devil in Linear Transformercited by 98
- 2023RMT: Retentive Networks Meet Vision Transformerscited by 68
- 2024Multi-Scale VMamba: Hierarchy in Hierarchy Visual State Space Modelcited by 62
- 2022MogaNet: Multi-order Gated Aggregation Networkcited by 59
- 2024DiG: Scalable and Efficient Diffusion Models with Gated Linear Attentioncited by 56
- 2022Hydra Attention: Efficient Attention with Many Headscited by 55
- 2023Scale-Aware Modulation Meet Transformercited by 49
- 2024Bridging the Divide: Reconsidering Softmax and Linear Attentioncited by 48
- 2022Vision Transformer with Super Token Samplingcited by 44
- 2024Breaking the Low-Rank Dilemma of Linear Attentioncited by 31
- 2022Castling-ViT: Compressing Self-Attention via Switching Towards Linear-Angular Attention at Vision Transformer Inferencecited by 28
- 2023Lightweight Vision Transformer with Bidirectional Interactioncited by 25
- 2024Learning Correlation Structures for Vision Transformerscited by 15
- 2022Dynamic Group Transformer: A General Vision Transformer Backbone with Dynamic Group Attentioncited by 14
- 2024DiC: Rethinking Conv3x3 Designs in Diffusion Modelscited by 14
- 2022Softmax-free Linear Transformerscited by 9
- 2025DiCo: Revitalizing ConvNets for Scalable and Efficient Diffusion Modelingcited by 6
- 2023Rethinking Local Perception in Lightweight Vision Transformercited by 5
50 most cited of 52 All 52 (JSON)
Built on by
Citing papers per year: 2025: 5; 2026: 11.
16 papers.
Sort:
By area:
- 2026FlashPrefill: Instantaneous Pattern Discovery and Thresholding for Ultra-Fast Long-Context Prefillingcited by 9
- 2026MHLA: Restoring Expressivity of Linear Attention via Token-Level Multi-Headcited by 7
- 2025TimeViper: A Hybrid Mamba-Transformer Vision-Language Model for Efficient Long Video Understandingcited by 4
- 2026STILL: Selecting Tokens for Intra-Layer Hybrid Attention to Linearize LLMscited by 4
- 2025SAGA: Selective Adaptive Gating for Efficient and Expressive Linear Attentioncited by 3
- 2026VMonarch: Efficient Video Diffusion Transformers with Structured Attentioncited by 3
- 2026UniPrefill: Universal Long-Context Prefill Acceleration via Block-wise Dynamic Sparsificationcited by 2
- 2026FlashPrefill V2: Block-Sparse Prefill Attention for Long-Context LLM Servingcited by 2
- 2026Softmax Linear Attention: Reclaiming Global Competitioncited by 1
- 2026Efficient and High-Quality Depth Estimation via Pixel-Space Diffusion with Linear Attentioncited by 1
- 2025Conditional Diffusion Modeling with Attention for Probabilistic Battery Capacity Prediction under Real-World Conditioncited by 0
- 2025MPCM-Net: Multi-scale network integrates partial attention convolution with Mamba for ground-based cloud image segmentationcited by 0
4 more
- 2025IMSE: Efficient U-Net-based Speech Enhancement using Inception Depthwise Convolution and Amplitude-Aware Linear Attentioncited by 0
- 2026LINA: Linear Autoregressive Image Generative Models with Continuous Tokenscited by 0
- 2026MirrorLA: Reflecting Feature Map for Vision Linear Attentioncited by 0
- 2026SOLAR: SVD-Optimized Lifelong Attention for Recommendationcited by 0
- 2026Efficient and High-Quality Depth Estimation via Pixel-Space Diffusion with Linear Attention31 Aug 2026
- 2026FlashPrefill V2: Block-Sparse Prefill Attention for Long-Context LLM Serving20 Aug 2026
- 2026UniPrefill: Universal Long-Context Prefill Acceleration via Block-wise Dynamic Sparsification7 May 2026
- 2026FlashPrefill: Instantaneous Pattern Discovery and Thresholding for Ultra-Fast Long-Context Prefilling6 Mar 2026
- 2026SOLAR: SVD-Optimized Lifelong Attention for Recommendation3 Mar 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
- 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
- 2025TimeViper: A Hybrid Mamba-Transformer Vision-Language Model for Efficient Long Video Understanding20 Nov 2025
4 more
- 2025IMSE: Efficient U-Net-based Speech Enhancement using Inception Depthwise Convolution and Amplitude-Aware Linear Attention18 Nov 2025
- 2025MPCM-Net: Multi-scale network integrates partial attention convolution with Mamba for ground-based cloud image segmentation12 Nov 2025
- 2025Conditional Diffusion Modeling with Attention for Probabilistic Battery Capacity Prediction under Real-World Condition20 Oct 2025
- 2025SAGA: Selective Adaptive Gating for Efficient and Expressive Linear Attention16 Sep 2025
- 2026FlashPrefill: Instantaneous Pattern Discovery and Thresholding for Ultra-Fast Long-Context Prefillingcited by 9
- 2026MHLA: Restoring Expressivity of Linear Attention via Token-Level Multi-Headcited by 7
- 2026STILL: Selecting Tokens for Intra-Layer Hybrid Attention to Linearize LLMscited by 4
- 2025SAGA: Selective Adaptive Gating for Efficient and Expressive Linear Attentioncited by 3
- 2026Softmax Linear Attention: Reclaiming Global Competitioncited by 1
- 2026Efficient and High-Quality Depth Estimation via Pixel-Space Diffusion with Linear Attentioncited by 1
- 2025IMSE: Efficient U-Net-based Speech Enhancement using Inception Depthwise Convolution and Amplitude-Aware Linear Attentioncited by 0
- 2026LINA: Linear Autoregressive Image Generative Models with Continuous Tokenscited by 0
- 2026MirrorLA: Reflecting Feature Map for Vision Linear Attentioncited by 0
- 2026SOLAR: SVD-Optimized Lifelong Attention for Recommendationcited by 0
- 2026Efficient and High-Quality Depth Estimation via Pixel-Space Diffusion with Linear Attention31 Aug 2026
- 2026FlashPrefill: Instantaneous Pattern Discovery and Thresholding for Ultra-Fast Long-Context Prefilling6 Mar 2026
- 2026SOLAR: SVD-Optimized Lifelong Attention for Recommendation3 Mar 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
- 2026LINA: Linear Autoregressive Image Generative Models with Continuous Tokens30 Jan 2026
- 2026MHLA: Restoring Expressivity of Linear Attention via Token-Level Multi-Head12 Jan 2026
- 2025IMSE: Efficient U-Net-based Speech Enhancement using Inception Depthwise Convolution and Amplitude-Aware Linear Attention18 Nov 2025
- 2025SAGA: Selective Adaptive Gating for Efficient and Expressive Linear Attention16 Sep 2025