mlsanityData to 7 Oct 2026

Demystify Mamba in Vision: A Linear Attention Perspective

arXiv 2405.16605 ↗First posted 26 May 2024cs.CVcited by 101

On the map: State-space sequence models (S4, Mamba) → Vision Mamba backbones

Abstract (arXiv)

Mamba is an effective state space model with linear computation complexity. It has recently shown impressive efficiency in dealing with high-resolution inputs across various vision tasks. In this paper, we reveal that the powerful Mamba model shares surprising similarities with linear attention Transformer, which typically underperform conventional Transformer in practice. By exploring the similarities and disparities between the effective Mamba and subpar linear attention Transformer, we provide comprehensive analyses to demystify the key factors behind Mamba's success. Specifically, we reformulate the selective state space model and linear attention within a unified formulation, rephrasing Mamba as a variant of linear attention Transformer with six major distinctions: input gate, forget gate, shortcut, no attention normalization, single-head, and modified block design. For each design, we meticulously analyze its pros and cons, and empirically evaluate its impact on model performance in vision tasks. Interestingly, the results highlight the forget gate and block design as the core contributors to Mamba's success, while the other four designs are less crucial. Based on these findings, we propose a Mamba-Inspired Linear Attention (MILA) model by incorporating the merits of these two key designs into linear attention. The resulting model outperforms various vision Mamba models in both image classification and high-resolution dense prediction tasks, while enjoying parallelizable computation and fast inference speed. Code is available at https://github.com/LeapLabTHU/MLLA.

Key facts. Cited by 101 papers in the map (data through 7 Oct 2026). Placed in Vision Mamba backbones, one of 10 directions in State-space sequence models (S4, Mamba). Builds on 53 of its 58 references that are in the map. First posted on arXiv 26 May 2024.

Builds on

53 of 58 references.

Closest ancestors · 5

Same direction, newest first

  1. 2024MambaOut: Do We Really Need Mamba for Vision?13 May
  2. 2024PlainMamba: Improving Non-Hierarchical Mamba in Visual Recognition26 Mar
  3. 2024EfficientVMamba: Atrous Selective Scan for Light Weight Visual Mamba15 Mar
  4. 2024LocalMamba: Visual State Space Model with Windowed Selective Scan14 Mar
  5. 2024Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space Model17 Jan

Other references · 48

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2014Microsoft COCO: Common Objects in Contextcited by 17,498
  5. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  6. 2020End-to-End Object Detection with Transformerscited by 7,384
  7. 2017Mask R-CNNcited by 7,259
  8. 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
  9. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
  10. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  11. 2022A ConvNet for the 2020scited by 3,545
  12. 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,875
36 more
  1. 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,261
  2. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  3. 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
  4. 2020Rethinking Attention with Performerscited by 1,584
  5. 2018Unified Perceptual Parsing for Scene Understandingcited by 1,265
  6. 2017Random Erasing Data Augmentationcited by 1,235
  7. 2016Semantic Understanding of Scenes through the ADE20K Datasetcited by 1,063
  8. 2024VMamba: Visual State Space Modelcited by 955
  9. 2021PVT v2: Improved Baselines with Pyramid Vision Transformercited by 749
  10. 2021CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windowscited by 526
  11. 2021MViTv2: Improved Multiscale Vision Transformers for Classification and Detectioncited by 516
  12. 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Modelscited by 495
  13. 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 468
  14. 2021Conditional Positional Encodings for Vision Transformerscited by 402
  15. 2024Jamba: A Hybrid Transformer-Mamba Language Modelcited by 390
  16. 2018Efficient Attention: Attention with Linear Complexitiescited by 366
  17. 2022Vision Transformer with Deformable Attentioncited by 293
  18. 2021Focal Self-attention for Local-Global Interactions in Vision Transformerscited by 286
  19. 2022Neighborhood Attention Transformercited by 235
  20. 2022cosFormer: Rethinking Softmax in Attentioncited by 212
  21. 2022Transformer Quality in Linear Timecited by 189
  22. 2023FLatten Transformer: Vision Transformer using Focused Linear Attentioncited by 170
  23. 2023BiFormer: Vision Transformer with Bi-Level Routing Attentioncited by 150
  24. 2021SOFT: Softmax-free Transformer with Linear Complexitycited by 128
  25. 2022Sharpness-Aware Training for Freecited by 95
  26. 2023Agent Attention: On the Integration of Softmax and Linear Attentioncited by 90
  27. 2024The Hidden Attention of Mamba Modelscited by 88
  28. 2024Mamba-ND: Selective State Space Modeling for Multi-Dimensional Datacited by 84
  29. 2024ZigMa: A DiT-style Zigzag Mamba Diffusion Modelcited by 84
  30. 2023Diffusion Models Without Attentioncited by 75
  31. 2022Dilated Neighborhood Attention Transformercited by 64
  32. 2021On the Connection between Local Attention and Dynamic Depth-wise Convolutioncited by 61
  33. 2022Hydra Attention: Efficient Attention with Many Headscited by 55
  34. 2022Deep Incubation: Training Large Models by Divide-and-Conqueringcited by 13
  35. 2022Demystify Transformers & Convolutions in Modern Image Deep Networkscited by 7
  36. 2021What Makes for Hierarchical Vision Transformer?cited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 24; 2025: 49; 2026: 28.

101 papers.

Sort:

By area:

  1. 2024MambaIRv2: Attentive State Space Restorationcited by 90
  2. 2025Test-time regression: a unifying framework for designing sequence models with associative memorycited by 63
  3. 2024Bridging the Divide: Reconsidering Softmax and Linear Attentioncited by 48
  4. 2024LinFusion: 1 GPU, 1 Minute, 16K Imagecited by 42
  5. 2024Spatial-Mamba: Effective Visual State Space Models via Structure-aware State Fusioncited by 40
  6. 2024A Survey of Mambacited by 39
  7. 2024Breaking the Low-Rank Dilemma of Linear Attentioncited by 31
  8. 2024VSSD: Vision Mamba with Non-Causal State Space Dualitycited by 29
  9. 2024QMambaBSR: Burst Image Super-Resolution with Query State Space Modelcited by 27
  10. 2024CLEAR: Conv-Like Linearization Revs Pre-Trained Diffusion Transformers Upcited by 26
  11. 2024Mamba in Vision: A Comprehensive Survey of Techniques and Applicationscited by 18
  12. 2024EfficientViM: Efficient Vision Mamba with Hidden State Mixer based State Space Dualitycited by 17
38 more
  1. 2025Rectifying Magnitude Neglect in Linear Attentioncited by 16
  2. 2026PISA: Piecewise Sparse Attention Is Wiser for Efficient Diffusion Transformerscited by 16
  3. 2025ViT3: Unlocking Test-Time Training in Visioncited by 15
  4. 2024SpikMamba: When SNN meets Mamba in Event-based Human Action Recognitioncited by 10
  5. 2024MambaVLT: Time-Evolving Multimodal State Space Model for Vision-Language Trackingcited by 9
  6. 2025PMA: Towards Parameter-Efficient Point Cloud Understanding via Point Mamba Adaptercited by 9
  7. 2024ENAT: Rethinking Spatial-temporal Interactions in Token-based Image Synthesiscited by 8
  8. 2024Mamba-FSCIL: Dynamic Adaptation with Selective State Space Model for Few-Shot Class-Incremental Learningcited by 7
  9. 2025TransMamba: A Sequence-Level Hybrid Transformer-Mamba Language Modelcited by 7
  10. 2026Distilled Large Language Model-Driven Dynamic Sparse Expert Activation Mechanismcited by 7
  11. 2024Exploring the Limitations of Mamba in COPY and CoT Reasoningcited by 6
  12. 2025Detail Matters: Mamba-Inspired Joint Unfolding Network for Snapshot Spectral Compressive Imagingcited by 6
  13. 2025DiCo: Revitalizing ConvNets for Scalable and Efficient Diffusion Modelingcited by 6
  14. 2024CARE Transformer: Mobile-Friendly Linear Visual Transformer via Decoupled Dual Interactioncited by 5
  15. 2025OuroMamba: A Data-Free Quantization Framework for Vision Mambacited by 5
  16. 2025ViT-Linearizer: Distilling Quadratic Knowledge into Linear-Time Vision Modelscited by 5
  17. 2025Linear Attention for Efficient Bidirectional Sequence Modelingcited by 4
  18. 2025An Efficient and Mixed Heterogeneous Model for Image Restorationcited by 4
  19. 2025Adaptive Dual-domain Learning for Underwater Image Enhancementcited by 4
  20. 2025Causal Spatio-Temporal Prediction: An Effective and Efficient Multi-Modal Approachcited by 4
  21. 2025Scaling Recurrent Neural Networks to a Billion Parameters with Zero-Order Optimizationcited by 4
  22. 2025VCMamba: Bridging Convolutions with Multi-Directional Mamba for Efficient Visual Representationcited by 4
  23. 2025URNet: Uncertainty-aware Refinement Network for Event-based Stereo Depth Estimationcited by 4
  24. 2025Linear Differential Vision Transformer: Learning Visual Contrasts via Pairwise Differentialscited by 4
  25. 2026ViT-AdaLA: Adapting Vision Transformers with Linear Attentioncited by 4
  26. 2026Switch Attention: Towards Dynamic and Fine-grained Hybrid Transformerscited by 4
  27. 2024Rate-Adaptive Generative Semantic Communication Using Conditional Diffusion Modelscited by 3
  28. 2024Why mamba is effective? Exploit Linear Transformer-Mamba Network for Multi-Modality Image Fusioncited by 3
  29. 2024OSMamba: Omnidirectional Spectral Mamba with Dual-Domain Prior Generator for Exposure Correctioncited by 3
  30. 2025MANTA: Diffusion Mamba for Efficient and Effective Stochastic Long-Term Dense Anticipationcited by 3
  31. 2025MambaFusion: Height-Fidelity Dense Global Fusion for Multi-modal 3D Object Detectioncited by 3
  32. 2025SAGA: Selective Adaptive Gating for Efficient and Expressive Linear Attentioncited by 3
  33. 2025MedVSR: Medical Video Super-Resolution with Cross State-Space Propagationcited by 3
  34. 2025Transformers as Intrinsic Optimizers: Forward Inference through the Energy Principlecited by 3
  35. 2026Interpreting and Steering State-Space Models via Activation Subspace Bottleneckscited by 3
  36. 2026Artificial Intelligence for Detecting Fetal Orofacial Clefts and Advancing Medical Educationcited by 3
  37. 2026LaplacianFormer:Rethinking Linear Attention with Laplacian Kernelcited by 3
  38. 2024MLLA-UNet: Mamba-like Linear Attention in an Efficient U-Shape Model for Medical Image Segmentationcited by 2

50 most cited of 101 All 101 (JSON)

Similar, not cited

Close in wording, no citation either way

  1. 2024A Survey on Visual Mamba
  2. 20262Mamba2Furious: Linear in Complexity, Competitive in Accuracy
  3. 2025Visual Attention Exploration in Vision-Based Mamba Models
  4. 2024Visual Mamba: A Survey and New Outlooks
  5. 2025A Survey on Mamba Architecture for Vision Applications
  6. 2026SF-Mamba: Rethinking State Space Model for Vision
  7. 2024Mamba in Speech: Towards an Alternative to Self-Attention
  8. 2025LBMamba: Locally Bi-directional Mamba