Introduction
The Segment Anything Model (SAM) has set a new benchmark in 2D computer vision, demonstrating remarkable zero-shot generalization for image segmentation. However, its application to 3D medical imaging—such as Computed Tomography (CT) and Magnetic Resonance Imaging (MRI)—remains a significant challenge. Medical volumes contain critical spatial information along the depth dimension that standard 2D-pretrained models are not designed to process. Adapting SAM for these volumetric datasets typically involves a trade-off between computational efficiency and the ability to capture long-range spatial dependencies.
The Challenge of 3D Adaptation
Existing strategies to bridge the gap between 2D foundations and 3D medical data generally fall into two categories, each with inherent limitations:
- 2D Adapters (e.g., LoRA): These methods treat 3D volumes as a series of independent 2D slices. While computationally efficient, they fail to capture inter-slice correlations, leading to inconsistent segmentation across the depth axis.
- 3D Convolutional Adapters: These can capture local depth information, but they struggle with long-range dependencies due to the local receptive fields of convolutions. While Self-Attention (SA) mechanisms could theoretically provide a global receptive field, their computational cost scales quadratically with the number of patches. In a 3D context, this leads to a "GFlops explosion," making them impractical for standard clinical hardware.
Proposed Method: Tri-Plane Mamba (TP-Mamba)
To address these limitations, the authors introduce Tri-Plane Mamba (TP-Mamba), a parameter-efficient framework that integrates specialized adapters into a frozen SAM backbone. The architecture focuses on two primary components:
Multi-scale 3D Convolutional Adapters
To capture local volumetric features, the model employs four parallel 3D convolutional layers with varying dilation rates. This multi-scale approach allows the network to extract local structural information at different granularities without significantly increasing the parameter count.
The Tri-Plane Mamba Module
The core innovation is the Tri-Plane Mamba module, which leverages the State Space Model (SSM) architecture. Unlike standard Mamba, which typically processes 1D sequences, or heavy 3D attention mechanisms, this module scans 3D feature maps along three orthogonal planes: height-width (HW), depth-height (DH), and depth-width (DW).
By utilizing Mamba’s linear complexity relative to sequence length, TP-Mamba achieves a global receptive field with a fraction of the computational overhead required by Transformers. This tri-plane scanning ensures that every voxel in the 3D volume is informed by global context from multiple directions, effectively mimicking a full 3D global view.
Experimental Results
Dataset and Data Efficiency
The model was evaluated using the Beyond the Cranial Vault (BTCV) dataset, comprising 30 CT volumes with annotations for 13 abdominal organs. To test the model's robustness in data-scarce environments—a common hurdle in medical AI—the researchers tested three scenarios: 100% data (24 samples), 25% data (6 samples), and 12% data (only 3 samples).
Performance and Efficiency
TP-Mamba demonstrated superior performance across several metrics:
- State-of-the-Art Accuracy: TP-Mamba outperformed ten major baselines, including nnUNet, SwinUNETR, and other SAM-based adapters like SAMed and MA-SAM.
- Extreme Data Efficiency: In the most challenging 12% data scenario, TP-Mamba achieved a Dice score 12% higher than conventional 3D segmentation networks, highlighting its ability to leverage SAM's pre-trained knowledge effectively.
- Computational Advantage: The efficiency gains are stark. A standard Self-Attention adapter for a 96x96x96 input adds approximately 18.86 GFlops per block, whereas the Mamba adapter adds only 2.37 GFlops—nearly an 8-fold improvement in efficiency.
- Convergence Speed: TP-Mamba reached peak performance within 200–400 epochs, significantly faster than traditional 3D networks that often require 1,000 epochs to converge.
Conclusion and Future Work
Tri-Plane Mamba represents a significant step forward in adapting large-scale 2D vision models for 3D medical tasks. By combining the local feature extraction of multi-scale convolutions with the efficient global context of the Tri-Plane Mamba module, the framework achieves high accuracy and remarkable data efficiency with low computational overhead.
Currently, the work focuses on the image encoder of SAM, treating it as an automated segmentation tool. Future research will explore adapting SAM’s prompt encoder for 3D data. This would enable interactive 3D segmentation, allowing clinicians to provide real-time refinements (via points or boxes) across entire volumetric scans, further bridging the gap between foundation models and clinical utility.
Summary updated