A Comprehensive Analysis of Mamba for 3D Volumetric Medical Image Segmentation

Chaohan Wang, Yutong Xie, Qi Chen, Yuyin Zhou, Qi Wu · DOI

TL;DR

This paper thoroughly investigates Mamba, a new architecture for sequence modeling, in the context of 3D medical image segmentation. They demonstrate that Mamba can effectively replace Transformers, offering competitive accuracy with significantly improved computational efficiency, especially when enhanced with custom 3D convolutions and multi-scale strategies.

What Problem Does This Paper Address?

Accurate 3D medical image segmentation is crucial for diagnosis and treatment planning, requiring models to capture both fine local details and long-range dependencies across entire volumes. While Transformers excel at long-range modeling, their computational cost is prohibitive for high-resolution 3D data. Convolutional Neural Networks (CNNs) are more efficient but struggle with global context. Mamba, a recent State Space Model (SSM) architecture, offers a computationally efficient alternative for long-range dependencies, but its effectiveness in 3D medical imaging, particularly its potential to surpass Transformers and enhance multi-scale learning, remains underexplored. This paper aims to provide a comprehensive analysis of Mamba's capabilities in this domain.

Methods

The authors propose and evaluate several enhancements to Mamba for 3D medical image segmentation:

  • UlikeMamba and UlikeTrans: They introduce two U-shaped encoder-decoder networks. UlikeMamba uses Mamba blocks, while UlikeTrans uses Transformer blocks. Crucially, they replace the original 1D depthwise convolutions (DWConv) in Mamba with 3D DWConv to better preserve spatial coherence in volumetric data.
  • Multi-scale Mamba Blocks (MSv1-MSv4): To investigate Mamba's ability to enhance multi-scale representation learning, they design four schemes that combine features from different receptive fields. MSv1-MSv3 are general multi-scale strategies, while MSv4 is specifically tailored for Mamba, using multiple 3D DWConv layers.
  • Multi-scan Strategies: To address Mamba's 1D origins, they explore different scanning strategies for processing 3D data: single-scan, dual-scan (forward+backward, forward+random), and a novel Tri-scan (left-right, up-down, front-back) approach.
  • UlikeMamba_3dMT: Their final proposed model integrates the most effective strategies: 3D DWConv, the MSv4 multi-scale block, and the Tri-scan strategy.

Datasets

The study evaluates the proposed methods on three publicly available, large-scale 3D medical image segmentation benchmarks:

  • AMOS dataset: 300 abdominal CT scans with annotations for 15 abdominal organs.
  • TotalSegmentator (TotalSeg) dataset: 1,228 CT images with annotations for 117 anatomical structures.
  • BraTS 2021 challenge dataset: 1,251 subjects with four 3D MRI modalities, focusing on brain tumor segmentation.

Key Insights and Ideas

  • Mamba as a Transformer Replacement: Mamba can indeed replace Transformers in 3D medical image segmentation, offering comparable or superior accuracy with significantly lower computational cost and memory usage.
  • 3D DWConv is Crucial: Replacing 1D DWConv with 3D DWConv in Mamba is essential for preserving volumetric spatial structure and achieving better performance.
  • Mamba Excels at Multi-scale: Mamba's architecture naturally lends itself to enhanced multi-scale representation learning, capturing both fine details and global context more effectively than Transformers, especially in complex segmentation tasks.
  • Simpler Scanning Often Suffices, but Tri-scan Shines in Complexity: While single-scan strategies are surprisingly effective due to strong anatomical priors in medical data, the Tri-scan approach provides a significant boost in performance for highly complex segmentation tasks like TotalSegmentator.
  • Efficiency Gains are Substantial: Mamba-based models consistently require fewer parameters and FLOPs compared to Transformer-based counterparts, making them more suitable for resource-constrained environments.

Key Results

  • UlikeMamba_ld (vanilla Mamba with 1D DWConv) achieved competitive Dice scores and avoided Out-of-Memory (OOM) issues that plagued vanilla Transformer models.
  • UlikeMamba_3d (with 3D DWConv) outperformed UlikeMamba_ld and Transformer-based models in accuracy and efficiency. For instance, on the BraTS dataset, it achieved a Dice score of 87.45 with 24.30M parameters and 46.03G FLOPs, compared to UlikeTrans_SRA's 85.97 average Dice with 45.05M parameters and 64.47G FLOPs.
  • The MSv4 multi-scale strategy combined with UlikeMamba_3d yielded the highest average Dice score of 88.01 on TotalSeg, demonstrating Mamba's strength in capturing diverse anatomical scales.
  • The Tri-scan strategy achieved the highest average Dice score (87.93) across all datasets, particularly benefiting complex tasks like TotalSegmentator.
  • The final proposed model, UlikeMamba_3dMT, outperformed advanced baselines like nnUNet, CoTr, UNETR, SwinUNETR, and U-Mamba on AMOS and BraTS, achieving competitive Dice scores with significantly lower computational cost (e.g., 90.60 Dice on BraTS with 93.09G FLOPs).

Limitations and Future Work

  • Empirical vs. Analytical: The study relies heavily on empirical results to demonstrate Mamba's superiority. The authors suggest that future work could explore more theoretical analyses to provide a deeper understanding of Mamba's performance.
  • Hybrid Architecture: The current Mamba architecture still integrates convolutional kernels. Future research could aim to develop a fully convolution-free, pure Mamba-based architecture for 3D medical image segmentation to potentially further enhance efficiency and accuracy.

Summary updated

BibTeX
@article{wang2025comprehensive,
  author = {Chaohan Wang and Yutong Xie and Qi Chen and Yuyin Zhou and Qi Wu},
  title = {{A Comprehensive Analysis of Mamba for 3D Volumetric Medical Image Segmentation}},
  journal = {Pattern Recognition},
  year = {2025},
  doi = {10.1016/j.patcog.2025.112701},
}
Figure