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 +2 more
8/15/2024
cs.CV

Official code: FengheTan9/MambaMIM (41 stars, Apache-2.0, last commit 2025-08-10).

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.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

[MedIA 2025] MambaMIM: Pre-training Mamba with State Space Token Interpolation and its Application to Medical Image Segmentation

415PythonAug 15, 20241 years agoApache-2.0
mambamamba-state-space-modelsmasked-image-modelingmedical-image-segmentationmedical-imaging

Similar Papers

Cite this paper

@article{tang2024mambamim,
  title  = {MambaMIM: Pre-training Mamba with State Space Token Interpolation and its Application to Medical Image Segmentation},
  author = {Fenghe Tang and Bingkun Nian and Yingtai Li and Zihang Jiang and Jie Yang and Wei Liu and S. Kevin Zhou},
  year   = {2024},
  eprint = {2408.08070},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.08070v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2408.08070.svg)](https://codeofpaper.com/paper/2408.08070)

Discussion