MM-UNet: Meta Mamba UNet for Medical Image Segmentation

Bin Xie, Yan Yan, Gady Agam · Submission to ICLR 2026 · Withdrawn

TL;DR

State Space Models (SSMs) like Mamba bring linear-time long-range sequence modeling to vision, but directly applying them to 3D medical images creates boundary discontinuities when flattening spatial dimensions and struggles with high-variance tissue data. MM-UNet solves these challenges by combining a simple bi-directional scan strategy with a hybrid CNN-Mamba block placed inside residual connections, achieving state-of-the-art segmentation performance across standard abdominal CT benchmarks.

What Problem Does This Paper Address?

While Convolutional Neural Networks (CNNs) excel at capturing local textures, their small receptive fields limit long-range anatomical context. Conversely, Vision Transformers (ViTs) capture global context but suffer from quadratic computational complexity ($O(N^2)$) relative to sequence length.

Selective State Space Models (e.g., Mamba) have emerged as an appealing alternative, modeling long sequences with linear time complexity ($O(N)$). However, adapting SSMs to volumetric medical image segmentation introduces two major hurdles:

  1. Flattening Discontinuities: 3D volumes must be flattened into 1D sequences. The transition from the end of one row/slice to the start of the next creates artificial spatial jumps where the sequence is discontinuous, causing the model to make inverted predictions at boundaries.
  2. Sensitivity to High Variance: SSMs relying on orthogonal polynomial projections (such as HiPPO) inherently smooth sequence approximations. Medical images feature high-variance boundaries between distinct tissues and organs, leading to inaccurate fitting of abrupt intensity changes.

Methods

The authors introduce MM-UNet, an adaptable U-shaped encoder-decoder framework tailored to SSM dynamics:

  • Variance-Taming Hybrid Blocks: Instead of building a purely Mamba-based network, the authors place two sequential CNN layers ahead of an SSM module within a residual connection. Because intermediate CNN features inside residual connections exhibit noticeably lower variance than raw inputs or outside-residual features, they create a much smoother signal that SSMs can stably fit.
  • Bi-Directional Scan Strategy (MetaSSM): Rather than using complicated multi-axis scanning schemes, MM-UNet flattens 3D patches along Depth-Height-Width (DHW) and pairs it with an exact inverse scan (flip(DHW)). Because row-transition discontinuities in one direction do not align with discontinuities in the reverse direction, the bidirectional pairing cancels out jump-related prediction artifacts.
  • Inference Flips and Gaussian Weighting: During inference, test patches are processed through 8 spatial flips across axial, coronal, and sagittal dimensions, aggregated with a 3D Gaussian weight map to minimize boundary prediction errors.

Datasets

The authors evaluate MM-UNet on two popular multi-organ volumetric CT benchmarks:

  • AMOS22: 300 abdominal CT scans annotated across 16 anatomical structures (evaluated with 5-fold cross-validation on training data, referencing the 200-image test set setup).
  • Synapse Multi-Atlas CT: 30 abdominal CT cases across 13 organs, using the standard split of 24 training and 4 validation cases.

Note: No new datasets were introduced in this work.

Key Insights and Ideas

  • Why S4/Mamba Struggles on Image Edges: By visualizing 1D fits of flattened 2D/3D scans, the authors show that SSM polynomial smoothing fails at points deviating heavily from the local mean. Preprocessing features through convolutional layers naturally lowers variance, serving as an effective inductive prior for SSM layers.
  • More Scan Directions Aren't Better: Prior visual SSM architectures explored 4-way, 6-way, or windowed scanning paths. The ablation study in this work demonstrates that adding unpaired scan axes (e.g., HWD) introduces new discontinuities, and scaling up to 12 scan directions yields diminishing returns. A single opposite-direction pair (DHW + reversed DHW) achieves the highest Dice score (0.910) with minimal computational overhead.
  • Optimal Placement in UNet: Replacing decoder blocks with SSMs actually lowered segmentation performance (dropping to 89.4%). Confining the hybrid SSM blocks to the encoder stages and bottleneck while keeping the decoder standard produced the best results.

Key Results

  • AMOS22 Benchmark: MM-UNet achieves a 91.0% average Dice Similarity Coefficient (DSC), surpassing strong baselines including nnUNet (89.3%), SwinUNETRv2 (89.7%), and existing Mamba baselines such as UMamba (90.5%) and VMUNet (89.6%).
  • Synapse Benchmark: MM-UNet achieves 87.1% DSC, outperforming nnUNet by +6.9% (80.2%) and Transformer-based nnFormer by +1.5% (85.6%).
  • Large Organ Gains: Qualitative and quantitative improvements were especially visible on large organs such as the liver (97.3% DSC) and spleen (96.7% DSC), where long-range contextual modeling is critical.

Limitations and Future Work

  • Modality Scope: Evaluation is restricted to volumetric abdominal CT imaging; generalizability across modalities with different noise and contrast properties (e.g., MRI, ultrasound) remains unverified.
  • Task Diversity: The framework was tested purely on semantic segmentation. The authors highlight the need to evaluate MM-UNet on other medical vision tasks, such as deformable image registration and multi-modal classification.

Summary updated

BibTeX
@misc{xie2025mm,
  author = {Bin Xie and Yan Yan and Gady Agam},
  title = {{MM-UNet: Meta Mamba UNet for Medical Image Segmentation}},
  year = {2025},
  eprint = {2503.17540},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.17540},
}
Figure