TL;DR
Adapting the 2D Segment Anything Model (SAM) to 3D medical images typically incurs massive computational overhead or sacrifices depth-wise context. Tri-Plane Mamba (TP-Mamba) solves this by introducing parameter-efficient adapters that combine multi-scale 3D convolutions with a tri-plane Mamba architecture, achieving state-of-the-art 3D segmentation performance even with extreme data scarcity (e.g., just 3 training samples).
What Problem Does This Paper Address?
Deep learning has revolutionized 3D medical image segmentation (such as identifying organs or tumors in CT/MRI scans), but these models require massive amounts of pixel-level annotations, which are tedious and expensive to produce. While foundation models like the 2D Segment Anything Model (SAM) offer incredible zero-shot capabilities, adapting them to 3D data is non-trivial.
If you treat 3D volumes as independent 2D slices, you lose crucial depth-wise correlations. If you use 3D convolutional adapters, they fail to capture long-range global context due to the local nature of convolutions. Finally, if you use standard self-attention mechanisms to capture global context across 3D patches, the computational cost explodes quadratically ($O(N^2)$), leading to massive GFLOP increases and severe overfitting on small medical datasets.
Methods
The authors introduce TP-Mamba, a parameter- and data-efficient adapter framework that keeps the core SAM parameters frozen while inserting lightweight 3D-aware modules into the Vision Transformer (ViT) blocks.
The architecture features two main innovations:
- Multi-scale 3D Convolutional Adapters: A parallel mixture of four 3D convolutional layers with varying dilation rates (1, 2, 4, 8). This efficiently extracts local depth-level features across different receptive fields.
- Tri-Plane Mamba Module: To capture long-range global dependencies without the quadratic cost of self-attention, the authors leverage State Space Models (Mamba). Because medical data is non-causal (spatial relationships exist in all directions), they project the 3D features into three orthogonal 2D planes: height-width ($hw$), depth-height ($dh$), and depth-width ($dw$). Three independent Mamba blocks scan these planes structurally, ensuring every element in the 3D feature space interacts globally with linear complexity ($O(N)$).
Datasets
The model was evaluated on the Beyond the Cranial Vault (BTCV) dataset, which consists of 30 CT volumes manually annotated for 13 abdominal organs. To test data efficiency, the authors benchmarked performance using 100% (24 samples), 25% (6 samples), and 12% (3 samples) of the training data.
Key Insights and Ideas
- Linear vs. Quadratic Complexity in 3D: Self-attention adapters add a staggering 18.86 GFLOPs per ViT block for a standard $96\times96\times96$ input volume. TP-Mamba's tri-plane scanning achieves global context with only 2.37 GFLOPs, making 3D foundation model adaptation practical on standard hardware.
- The Power of Non-Causal Scanning: Standard Mamba is causal (1D sequential). By breaking the 3D volume into a tri-plane scanning strategy, the model successfully captures spatial context from multiple directions, overcoming the limited receptive fields of naive 1D flattening.
- Extreme Data Efficiency: Foundation models possess rich prior knowledge. By freezing SAM and precisely targeting the missing 3D/depth context with TP-Mamba, the network avoids overfitting and excels even when data is incredibly scarce.
Key Results
- State-of-the-Art Performance: TP-Mamba outperformed ten competitive baselines (including nnUNet, SwinUNETR, and other SAM adapters like SAMed and MA-SAM) across all data scales.
- Data Scarcity Champion: When trained on just 3 CT scans (12% data), TP-Mamba achieved an average Dice score of 65.8%, outperforming conventional 3D networks by up to 12.3% and beating the next best adapter method by 6.8%.
- Rapid Convergence: TP-Mamba converges significantly faster than traditional networks, surpassing their 1000-epoch performance in just around 200 epochs when using 25% or 100% of the training data.
Limitations and Future Work
The authors note that this work focuses exclusively on adapting the image encoder of SAM to handle 3D volumetric data. It currently overlooks SAM's prompt encoder, meaning it does not yet support interactive segmentation (e.g., using bounding boxes or points provided by a clinician). The authors plan to explore interactive 3D medical segmentation in future studies.
Summary updated