Nnmamba: 3D Biomedical Image Segmentation, Classification and Landmark Detection with State Space Model

Haifan Gong, Luoyao Kang, Yitao Wang, Yihan Wang, Xiang Wan, Xusheng Wu, Haofeng Li

TL;DR

nnMamba is a new architectural backbone that brings the efficiency of State Space Models (SSMs) to the complex world of 3D biomedical imaging. By combining the local feature extraction of CNNs with the long-range modeling of the Mamba architecture, it achieves state-of-the-art results in segmentation, classification, and landmark detection while using significantly fewer parameters and computational resources than Transformer-based models.

What Problem Does This Paper Address?

In 3D medical imaging (like MRI or CT scans), researchers face a "Goldilocks" problem with existing architectures. Convolutional Neural Networks (CNNs) are great at picking up local patterns (like the edge of a tumor) but struggle to understand the "big picture" because of their limited receptive fields. Transformers solve this by using self-attention to capture global context, but they are computationally expensive—their memory and processing requirements grow quadratically with the size of the input.

When dealing with high-resolution 3D volumes, Transformers often become too "heavy" to be practical. The authors of nnMamba sought a middle ground: an architecture that offers the global reach of a Transformer but with the linear scaling and efficiency of a State Space Model.

Methods

The core innovation of nnMamba is the MICCSS (Mamba-In-Convolution with Channel-Spatial Siamese learning) block. It integrates three key concepts:

  1. Mamba (State Space Model): Unlike Transformers, Mamba uses an input-adaptive mechanism that allows it to process long sequences (like flattened 3D image voxels) with linear complexity.
  2. MIC (Mamba-In-Convolution): Inspired by "Network-In-Network" designs, this module uses 1x1 convolutions to filter features before passing them to the Mamba layer. This ensures the model focuses on the most relevant features for non-linear long-range modeling.
  3. CSS (Channel-Spatial Siamese Learning): To fully capture the 3D nature of the data, the authors use a "Siamese" approach. They augment the input by flipping dimensions, forcing the Mamba layer to learn relationships across both spatial voxels and feature channels simultaneously.

For segmentation and landmark detection, nnMamba uses a UNet-like structure with a residual encoder. For classification, it employs a hierarchical sequential learning method that distills features from multiple resolutions into a final prediction.

Datasets

The authors established a robust benchmark using six different datasets across three tasks:

  • Segmentation: BraTS 2023 (Brain Tumors) and AMOS 2022 (Multi-organ abdominal scans in both CT and MRI).
  • Classification: ADNI (Alzheimer’s Disease Neuroimaging Initiative) for identifying Alzheimer's progression stages.
  • Landmark Detection: A private fetal cerebellum dataset.

Key Insights and Ideas

  • Efficiency is King: One of the most striking insights is that nnMamba outperforms massive models like nnFormer while being a fraction of the size. For the AMOS dataset, nnMamba uses only 15.55M parameters compared to nnFormer’s 150.14M, yet it achieves higher accuracy.
  • Boundary Precision: The model shows a significant improvement in the Hausdorff Distance (HD95) metric. This suggests that by combining local and global information, nnMamba is much better at precisely delineating the boundaries of complex structures like tumors.
  • The Power of Symmetry: The Siamese (CSS) approach—processing the data from multiple "flipped" perspectives—is a clever way to overcome the 1D sequential nature of standard SSMs, making them better suited for 3D spatial data.

Key Results

  • BraTS 2023: nnMamba achieved an average Dice score of 89.97 and a significantly lower HD95 (6.53) compared to the previous state-of-the-art (7.12).
  • AMOS 2022: On MRI scans, nnMamba reached a mean Dice of 73.98%, outperforming the popular nnU-Net (67.63%) and SwinUNetr (57.50%).
  • Computational Savings: On the AMOS benchmark, nnMamba required only 141.14 GFLOPS, whereas nnU-Net required 680.31 GFLOPS.
  • Classification: On the ADNI dataset (NC vs. AD), it achieved an AUC of 95.81%, proving that the backbone is versatile enough for more than just dense pixel-wise predictions.

Limitations and Future Work

While the results are impressive, the paper does not deeply explore the model's performance on extremely low-resolution data or its generalizability to non-radiological images (like pathology slides). Additionally, the landmark detection was tested on a private dataset, making it harder for the community to replicate those specific results immediately.

The authors suggest that nnMamba sets a "new standard" for long-range modeling in medical AI, implying that future work could involve integrating this backbone into even more complex multi-modal diagnostic systems.

Summary updated

BibTeX
@inproceedings{gong2025nnmamba,
  author = {Haifan Gong and Luoyao Kang and Yitao Wang and Yihan Wang and Xiang Wan and Xusheng Wu and Haofeng Li},
  title = {{Nnmamba: 3D Biomedical Image Segmentation, Classification and Landmark Detection with State Space Model}},
  booktitle = {ISBI},
  year = {2025},
  doi = {10.1109/isbi60581.2025.10980694},
}
Figure