TL;DR
This paper provides a comprehensive survey of the Mamba architecture—a state-space model (SSM) alternative to Transformers—specifically tailored for computer vision. By replacing quadratic-complexity attention with linear-scaling selective scans, Mamba-based models like ViM and VideoMamba achieve state-of-the-art performance in image and video tasks while significantly reducing computational overhead.
What Problem Does This Paper Address?
For years, Vision Transformers (ViTs) have dominated computer vision. However, they suffer from a "quadratic bottleneck": the computational cost of their self-attention mechanism grows quadratically ($O(L^2)$) with the sequence length (number of patches). This makes processing high-resolution images or long video sequences prohibitively expensive.
The authors explore how the Mamba architecture, originally designed for 1D natural language processing, can be adapted to 2D and 3D visual data. The challenge lies in the fact that visual data is non-causal (pixels don't just follow a sequence like words) and requires spatial awareness that standard 1D SSMs lack.
Methods
The paper categorizes various architectural innovations used to "vision-ify" Mamba:
- Selective State Space Models (S6): The core engine that allows the model to selectively propagate or forget information based on the input, providing a global receptive field with linear complexity ($O(L)$).
- Bidirectional & Multi-path Scanning: Since images are 2D, models like Vision Mamba (ViM) use bidirectional scans (forward and backward) to capture context. VMamba introduces the Cross-Scan Module (CSM), which scans in four directions (top-left, bottom-right, etc.) to better map 2D spatial relationships.
- Hierarchical Designs: Models like Hi-Mamba and SpatialMamba use a pyramid-like structure (similar to CNNs) to extract features at multiple scales, which is crucial for tasks like object detection and segmentation.
- Spatiotemporal Scanning: For video, VideoMamba extends scanning into the third dimension, combining spatial data with temporal data to understand motion across frames.
- Token Fusion & Registers: Techniques like Famba-V use token fusion to improve training efficiency, while Mamba® introduces "register tokens" to eliminate visual artifacts found in early SSM feature maps.
Datasets
The survey benchmarks these models across standard vision "proving grounds":
- Image Classification: ImageNet-1k and CIFAR-100.
- Semantic Segmentation: ADE20K.
- Object Detection: MS-COCO.
- Video Understanding: Kinetics-400 and Something-Something-V2 (SSV2).
Key Insights and Ideas
- Scanning Strategy is Key: The way a 2D image is flattened into a 1D sequence for the SSM determines the model's spatial "intelligence." Simple raster scanning loses vertical context; multi-directional and "zigzag" scans are much more effective.
- Efficiency vs. Accuracy: Mamba models aren't just faster; they are often more parameter-efficient. For example, EfficientViM-M4 achieves 81.9% accuracy on ImageNet with significantly fewer GFLOPS than comparable Transformers.
- Overcoming "Historical Decay": Standard SSMs tend to "forget" the beginning of a sequence. Innovations like Masked Backward Computation in VideoMambaPro help the model better utilize information from the start of a video or the top of an image.
- Hybridization: The most successful models often combine Mamba blocks with other components, such as Convolutional layers for local feature extraction or even a final Attention layer to balance global and local reasoning.
Key Results
- Classification: SpatialMamba-S emerged as a top performer with 84.6% Top-1 accuracy on ImageNet-1k.
- Segmentation & Detection: SpatialMamba-S and Vmamba-S lead the pack, with SpatialMamba hitting 50.6 mIoU on ADE20K and 54.2 $AP_{bb}^{75}$ on MS-COCO.
- Video: VideoMambaPro-S showed superior performance on Kinetics-400 with 88.5% accuracy, outperforming its predecessor by utilizing residual SSM blocks and masked computation.
Limitations and Future Work
Despite the progress, the authors note several hurdles:
- Artifacts: Early Mamba models produced "artifacts" in their feature maps, requiring specialized fixes like register tokens.
- Performance Gap: While Mamba is catching up, the most mature Transformer models still hold a slight edge in absolute accuracy on some benchmarks due to years of optimization.
- Specialized Domains: Applying Mamba to niche areas like point cloud processing (3D) and multi-modal fusion (text + image) is still in its infancy.
- Future Directions: The authors suggest focusing on "native" 2D/3D Mamba models (rather than just adapting 1D versions) and improving the scalability of token fusion techniques.
Summary updated