TL;DR
MambaMIM introduces the first masked image modeling (MIM) pre-training framework tailored for State Space Models (Mamba) in 3D medical image segmentation. By replacing traditional random mask tokens with a novel mathematical token-interpolation strategy (TOKI), it preserves Mamba's inherent causal properties and achieves state-of-the-art performance across multiple clinical benchmarks.
What Problem Does This Paper Address?
While Vision Transformers (ViTs) and CNNs have dominated medical image segmentation, Transformers suffer from quadratic computational complexity, and CNNs struggle to capture long-range dependencies. Recently, Mamba—a State Space Model (SSM) with linear scaling—has emerged as a powerful alternative for long-sequence modeling.
However, self-supervised pre-training for Mamba via Masked Image Modeling (MIM) has faced a major bottleneck. Standard MIM approaches (like MAE) drop image patches and replace them with static, learnable "mask tokens" during decoding. For Mamba, this is highly problematic: its input-dependent selective scan relies on a continuous, causal sequence flow. Inserting random tokens disrupts this historical context. Furthermore, when combining CNNs and Mamba into hybrid architectures, maintaining a consistent masking pattern across heterogeneous modules and feature scales is incredibly difficult, leading to pixel distribution shifts that degrade representation learning.
Methods
The authors propose MambaMIM, featuring two core innovations designed to unleash Mamba's potential:
- Selective Structured State Space Sequence Token-Interpolation (TOKI): Instead of filling masked regions with random or learnable tokens, TOKI mathematically interpolates masked tokens based on the state-space context of adjacent unmasked tokens. This ensures the filled tokens respect the causal flow of Mamba's selective scan mechanism.
- Bottom-Up Hybrid Masking Strategy: To enable pre-training on HyMamba (a custom hybrid backbone combining MedNeXt CNN layers at the top and Vision Mamba at the bottom), the authors initialize the mask at the final CNN stage and map it hierarchically to earlier stages. This enforces strict positional masking consistency across different architectural components and feature scales.
Datasets
- Pre-training: A massive, diverse dataset of 6,814 unlabeled 3D CT scans aggregated from 13 public datasets (including BTCV, FLARE'22, AbdomenCT-1k, TotalSegmentator, and various Medical Segmentation Decathlon tasks).
- Downstream Evaluation: Evaluated across 8 public benchmarks spanning multi-organ and lesion segmentation: BTCV, AMOS, MSD (Pancreas, Hepatic Vessel, Spleen), CT-ORG, KiTS 23, and BraTS 21 (used to test cross-modality generalization to MRI scans).
Key Insights and Ideas
- Causality Matters for SSMs: Standard learnable mask tokens act as "speed bumps" in Mamba's sequential scan. Treating mask filling as a continuous state-space interpolation problem rather than a discrete token replacement is the key to unlocking generative pre-training for Mamba.
- Hybrid Harmony: Combining CNNs (excellent for local feature extraction) and Mamba (excellent for long-range context) requires strict spatial alignment during masking. Without a bottom-up masking strategy, the feature distributions mismatch, ruining the benefits of self-supervised learning.
- Semantic Independence: Pre-training on CT scans using a generative pixel-reconstruction task allows the model to learn fundamental anatomical geometries, enabling it to transfer seamlessly to entirely different modalities like MRI without structural collapse.
Key Results
- State-of-the-Art Segmentation: HyMamba pre-trained with MambaMIM achieved an average Dice Similarity Coefficient (DSC) of 80.16% on the BTCV dataset, outperforming the train-from-scratch baseline (77.56%) and beating standard learnable token approaches (79.38%).
- Outperforming Existing SSL: MambaMIM consistently outperformed top-tier self-supervised methods, including Transformer-based MAE (73.49% DSC) and CNN-based SparK (75.79% DSC).
- Robust Generalization: On unseen datasets like KiTS 23 and CT-ORG, MambaMIM maintained top performance. When transferred to the BraTS 21 MRI dataset, it achieved a SOTA average DSC of 89.91%, proving its cross-modality robustness.
Limitations and Future Work
While MambaMIM sets a new benchmark, the authors note a few areas for expansion:
- Scanning Strategies: Ablation studies showed that alternative scanning paradigms (like Shuffle scan) can alter downstream performance (boosting DSC to 80.89%). Future work could focus on adaptively optimizing these scanning paths during pre-training.
- Task Diversity: The evaluation focused heavily on 3D medical image segmentation. Extending this framework to other downstream tasks like 3D image registration, classification, or multi-modal clinical prediction remains an open avenue.
Summary updated