MambaVision: A Hybrid Mamba-Transformer Vision Backbone

Ali Hatamizadeh, Jan Kautz

In the rapidly evolving landscape of computer vision backbones, we’ve seen a tug-of-war between two titans: Transformers, which offer unparalleled global context but suffer from quadratic computational costs, and State Space Models (SSMs) like Mamba, which boast linear scaling but often struggle to capture the full spatial relationships inherent in images.

A new paper from NVIDIA researchers introduces MambaVision, a hybrid backbone that suggests we don't have to choose. By strategically blending Mamba’s efficiency with Transformer’s global reach, MambaVision establishes a new state-of-the-art Pareto front for the accuracy-throughput tradeoff.

Figure 1 – Top-1 accuracy vs. image throughput comparisons on ImageNet-1K dataset. The MambaVision models achieve a new Pareto front for Top-1 accuracy and image throughput tradeoff. Specifically, MambaVision variants outperform Mamba- based models such as VMamba and Vim, sometimes by a signifi- cant margin. For all models, image throughput is measured on an A100 NVIDIA GPU with a batch size of 128.

TL;DR

MambaVision is a hybrid vision backbone that redesigns the Mamba block for 2D data and integrates self-attention in the final layers of a hierarchical architecture. It outperforms existing SOTA models like Swin and ConvNeXt in both accuracy and speed, marking the first successful scaling of a Mamba-based vision architecture to large-scale ImageNet-21K pre-training.

What Problem Does This Paper Address?

While Vision Transformers (ViTs) are the current gold standard, their self-attention mechanism is computationally expensive ($O(L^2)$ complexity relative to sequence length). This makes high-resolution processing a bottleneck.

Recent "Vision Mamba" attempts tried to solve this using SSMs, which scale linearly ($O(L)$). However, Mamba was originally designed for 1D sequences with a causal (past-to-future) dependency. Images are different: pixels have spatial relationships in all directions, and global context is often needed to understand local regions. Previous attempts to fix this (like bidirectional scans) introduced significant latency, often resulting in models that were slower or less accurate than well-optimized CNNs or Transformers.

Methods

MambaVision uses a hierarchical 4-stage architecture. The researchers made three key design choices to bridge the Mamba-Transformer gap:

  1. CNN-Based Early Stages: Stages 1 and 2 use standard residual convolutional blocks. This allows for fast feature extraction at high resolutions where SSMs or Attention would still be too slow.
  2. Redesigned MambaVision Mixer: The authors modified the standard Mamba block (Figure 3). They replaced the restrictive causal convolution with a regular convolution and added a symmetric "non-SSM" branch. This parallel branch uses a simple Conv + SiLU activation to compensate for information that might be lost during the sequential processing of the SSM branch.
  3. Strategic Hybridization: Instead of using Mamba or Attention everywhere, they found a "sweet spot." In Stages 3 and 4, they use MambaVision blocks for the first half of the layers and standard Transformer self-attention blocks for the second half. This allows the model to benefit from Mamba's efficiency early on and "recover" global context using Attention at the end of the stage.
Figure 2 – The architecture of hierarchical MambaVision models. The first two stages use residual convolutional blocks for fast feature extraction. Stages 3 and 4 employ both MambaVision and Transformer blocks. Specifically, given N layers, we use N

Datasets

The models were rigorously evaluated on:

  • ImageNet-1K: For standard classification benchmarks.
  • ImageNet-21K: To demonstrate large-scale pre-training and scalability.
  • MS COCO: For downstream object detection and instance segmentation.
  • ADE20K: For semantic segmentation.

Key Insights and Ideas

  • Attention is a "Finisher": The most critical insight from their ablation study was that self-attention is most effective when placed in the final layers of a stage. Placing it randomly or at the beginning yielded suboptimal results.
  • Causality is a Constraint: By removing the causal requirement from the Mamba block, the model becomes much better suited for the non-sequential nature of visual data.
  • The Power of the Symmetric Branch: Adding a parallel, non-SSM path to the Mamba mixer (Figure 3) provided a +1.0% boost in Top-1 accuracy, validating that SSMs alone might "forget" or suppress important spatial features that a simple convolution can preserve.
Figure 3 – Architecture of MambaVision block. In addition to replacing causal Conv layer with their regular counterparts, we create a symmetric path without SSM as a token mixer to enhance the modeling of global context.

Key Results

MambaVision variants consistently outperformed their peers across the board:

  • Classification: MambaVision-B achieves 84.2% Top-1 accuracy on ImageNet-1K with a throughput of 3,670 img/sec. For comparison, Swin-B achieves 83.5% at only 1,926 img/sec.
  • Speed: The smallest variant, MambaVision-T, reaches a staggering 6,298 img/sec, nearly double the throughput of ConvNeXt-T while maintaining higher accuracy.
  • Scaling: As shown in Figure 4, the architecture scales impressively. The MambaVision-L3 variant reaches 88.1% Top-1 accuracy when trained on ImageNet-21K at 512 resolution.
  • Downstream Tasks: On MS COCO, MambaVision-B outperformed Swin-B by +0.9 box AP and +0.7 mask AP.

Limitations and Future Work

While MambaVision represents a significant leap, the authors note a few areas for growth:

  • Task Specificity: The current study focuses on standard classification, detection, and segmentation. Its performance on more niche tasks like video understanding or long-range multi-modal modeling remains to be seen.
  • Hardware Optimization: While throughput on A100 GPUs is excellent, the hybrid nature of the blocks might require further kernel-level optimization to reach peak efficiency on a wider variety of edge hardware.
  • Future Directions: The authors suggest that these findings could serve as a foundation for a new class of hybrid vision models, potentially exploring even more complex integration patterns for ultra-high-resolution imagery.

Summary updated

Abstract

We propose a novel hybrid Mamba-Transformer backbone, MambaVision, specifically tailored for vision applications. Our core contribution includes redesigning the Mamba formulation to enhance its capability for efficient modeling of visual features. Through a comprehensive ablation study, we demonstrate the feasibility of integrating Vision Transformers (ViT) with Mamba. Our results show that equipping the Mamba architecture with self-attention blocks in the final layers greatly improves its capacity to capture long-range spatial dependencies. Based on these findings, we introduce a family of MambaVision models with a hierarchical architecture to meet various design criteria. For classification on the ImageNet-1K dataset, MambaVision variants achieve state-of-the-art (SOTA) performance in terms of both Top-1 accuracy and throughput. In downstream tasks such as object detection, instance segmentation, and semantic segmentation on MS COCO and ADE20K datasets, MambaVision outperforms comparably sized backbones while demonstrating favorable performance. Code: https://github.com/NVlabs/MambaVision
BibTeX
@inproceedings{hatamizadeh2025mambavision,
  author = {Ali Hatamizadeh and Jan Kautz},
  title = {{MambaVision: A Hybrid Mamba-Transformer Vision Backbone}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  url = {https://openreview.net/forum?id=vQy82Vhavu},
}
Figure