NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SAM3D: Segment Anything Model in Volumetric Medical Images

Nhat-Tan Bui, Dinh-Hieu Hoang, Minh-Triet Tran, Ngan Le · DOI

Abstract

The Segment Anything Model (SAM) has demonstrated remarkable zero-shot generalization in 2D natural image segmentation. However, its application to 3D volumetric medical data, such as CT and MRI scans, remains challenging due to the lack of spatial awareness across slices and the high computational cost of 3D architectures. This paper introduces SAM3D, an efficient adaptation that combines a frozen SAM image encoder with a lightweight, custom-designed 3D CNN decoder. SAM3D achieves competitive performance on multiple medical benchmarks while utilizing up to 50 times fewer parameters than state-of-the-art 3D segmentation models.

Introduction

Volumetric data is the cornerstone of modern medical diagnosis. Accurate segmentation of organs and lesions within these volumes is critical but labor-intensive. While foundation models like SAM offer a path toward automated segmentation, they are inherently 2D. Existing adaptations often process 3D volumes slice-by-slice, neglecting the "depth-wise" spatial relationships essential for anatomical consistency. Conversely, training full 3D Transformer-based models from scratch is data-hungry and computationally prohibitive for many clinical settings. SAM3D addresses these challenges by bridging the gap between 2D foundation models and 3D medical requirements through a parameter-efficient hybrid architecture.

Methodology

The SAM3D architecture leverages the robust feature extraction capabilities of a pretrained foundation model while introducing 3D spatial awareness through a specialized decoder.

The SAM3D pipeline: 3D volumetric data is processed slice-by-slice by a frozen SAM encoder, and the resulting embeddings are integrated by a lightweight 3D decoder.

Architecture Components

  1. Frozen Encoder: SAM3D utilizes the pretrained SAM ViT-B image encoder. By freezing the encoder, the model retains the "universal" visual features (edges, textures, boundaries) learned from millions of natural images, which generalize well to medical domains without the need for expensive fine-tuning.
  2. Feature Volume Reconstruction: A 3D volume is processed slice-by-slice. The resulting 2D feature embeddings are stacked to form a 3D feature volume, preserving the original spatial arrangement.
  3. Lightweight 3D Decoder: The core innovation is a tiny 3D CNN decoder (approximately 1.88M parameters). Unlike SAM's original 2D mask decoder, this component is trained to learn spatial dependencies across the depth dimension.
  4. Deep Supervision: To optimize the training of the small decoder, deep supervision is employed, calculating losses at multiple resolutions to capture both local details and global anatomical structures.

Experimental Results

SAM3D was evaluated on four diverse benchmarks: Synapse (multi-organ CT), ACDC (cardiac MRI), MSD BraTS (brain tumor MRI), and MSD Lung (lung tumor CT).

Quantitative Performance

On the ACDC dataset, SAM3D achieved a Dice Similarity Coefficient (DSC) of 90.41%, outperforming established models like TransUNet (89.71%) while being significantly more efficient.

Comparison of SAM3D against state-of-the-art models on the ACDC dataset, highlighting parameter efficiency and DSC scores.

As shown in the table above, SAM3D maintains high accuracy across individual regions (Right Ventricle, Left Ventricle, Myocardium) despite having only 1.88M trainable parameters—roughly 50 times fewer than TransUNet or nnFormer. On the Synapse multi-organ dataset, SAM3D reached a DSC of 79.56%, demonstrating strong performance across various abdominal organs.

Qualitative Insights

Visual analysis indicates that SAM3D produces smoother and more anatomically coherent segmentations compared to 2D-only adaptations. By incorporating 3D spatial context, the model avoids the inter-slice "jitter" often seen in slice-by-slice processing methods.

Discussion and Conclusion

SAM3D demonstrates that foundation models can be effectively adapted for specialized 3D tasks without massive retraining. The key insight lies in reusing high-quality 2D features and focusing training efforts on a lightweight 3D "bridge." This approach drastically reduces the computational barrier to entry for high-performance medical image segmentation.

Future work includes scaling the backbone to larger ViT variants (ViT-L/H) and exploring more complex 3D decoder architectures. Additionally, integrating the interactive prompting capabilities of the original SAM into a 3D volumetric workflow could further enhance clinical utility.

Summary updated

BibTeX
@misc{bui2023sam,
  author = {Nhat-Tan Bui and Dinh-Hieu Hoang and Minh-Triet Tran and Ngan Le},
  title = {{SAM3D: Segment Anything Model in Volumetric Medical Images}},
  year = {2023},
  eprint = {2309.03493},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.03493},
}
Figure