MambaMIM: Pre-training Mamba with State Space Token Interpolation and its Application to Medical Image Segmentation
Fenghe Tang, Bingkun Nian, Yingtai Li, Zihang Jiang, Jie Yang, Wei Liu, S. Kevin Zhou
TL;DR
MambaMIM presents a generative self-supervised pre-training framework tailored for Mamba-based models in 3D medical imaging. By introducing TOKI, a state-space sequence token interpolation, and a bottom-up hierarchical masking scheme, it preserves causal relationships and ensures masking consistency across single and hybrid Mamba architectures. Pre-training on a large CT corpus and fine-tuning across multiple segmentation benchmarks yield substantial gains, including state-of-the-art performance on several tasks and strong generalization to unseen datasets and MRI. The approach advances efficient long-range modeling in medical image segmentation and demonstrates the practical value of state-space–aware pre-training for Mamba architectures.
Abstract
Recently, the state space model Mamba has demonstrated efficient long-sequence modeling capabilities, particularly for addressing long-sequence visual tasks in 3D medical imaging. However, existing generative self-supervised learning methods have not yet fully unleashed Mamba's potential for handling long-range dependencies because they overlook the inherent causal properties of state space sequences in masked modeling. To address this challenge, we propose a general-purpose pre-training framework called MambaMIM, a masked image modeling method based on a novel TOKen-Interpolation strategy (TOKI) for the selective structure state space sequence, which learns causal relationships of state space within the masked sequence. Further, MambaMIM introduces a bottom-up 3D hybrid masking strategy to maintain a masking consistency across different architectures and can be used on any single or hybrid Mamba architecture to enhance its multi-scale and long-range representation capability. We pre-train MambaMIM on a large-scale dataset of 6.8K CT scans and evaluate its performance across eight public medical segmentation benchmarks. Extensive downstream experiments reveal the feasibility and advancement of using Mamba for medical image pre-training. In particular, when we apply the MambaMIM to a customized architecture that hybridizes MedNeXt and Vision Mamba, we consistently obtain the state-of-the-art segmentation performance. The code is available at: https://github.com/FengheTan9/MambaMIM.
