[Paper Review] MA-SAM: Modality-agnostic SAM Adaptation for 3D Medical Image Segmentation
MA-SAM adapts Segment Anything Model (SAM) to 3D medical data using parameter-efficient fine-tuning and 3D adapters, achieving strong automatic segmentation across CT, MRI, and surgical video without prompts.
The Segment Anything Model (SAM), a foundation model for general image segmentation, has demonstrated impressive zero-shot performance across numerous natural image segmentation tasks. However, SAM's performance significantly declines when applied to medical images, primarily due to the substantial disparity between natural and medical image domains. To effectively adapt SAM to medical images, it is important to incorporate critical third-dimensional information, i.e., volumetric or temporal knowledge, during fine-tuning. Simultaneously, we aim to harness SAM's pre-trained weights within its original 2D backbone to the fullest extent. In this paper, we introduce a modality-agnostic SAM adaptation framework, named as MA-SAM, that is applicable to various volumetric and video medical data. Our method roots in the parameter-efficient fine-tuning strategy to update only a small portion of weight increments while preserving the majority of SAM's pre-trained weights. By injecting a series of 3D adapters into the transformer blocks of the image encoder, our method enables the pre-trained 2D backbone to extract third-dimensional information from input data. The effectiveness of our method has been comprehensively evaluated on four medical image segmentation tasks, by using 10 public datasets across CT, MRI, and surgical video data. Remarkably, without using any prompt, our method consistently outperforms various state-of-the-art 3D approaches, surpassing nnU-Net by 0.9%, 2.6%, and 9.9% in Dice for CT multi-organ segmentation, MRI prostate segmentation, and surgical scene segmentation respectively. Our model also demonstrates strong generalization, and excels in challenging tumor segmentation when prompts are used. Our code is available at: https://github.com/cchen-cc/MA-SAM.
Motivation & Objective
- Leverage SAM as a general segmentation foundation model for medical imaging despite domain gaps between natural and medical images.
- Develop a modality-agnostic, parameter-efficient fine-tuning framework to incorporate 3D volumetric/temporal information.
- Enable effective automatic segmentation across CT, MRI, and surgical video modalities without prompts, with strong generalization.
- Improve segmentation resolution in the mask decoder to better handle small medical structures.
Proposed method
- Use FacT-based parameter-efficient fine-tuning to update low-rank weight increments in the image encoder (shared U/V factors across layers, per-layer Sigma).
- Inject 3D adapters inside each transformer block to extract volumetric/temporal information via Conv3D with a 3x1x1 kernel, applied to adjacent-slice inputs reshaped for compatibility.
- Fully fine-tune and slightly modify the mask decoder with progressive upsampling to recover original resolution and improve small-structure segmentation.
- Reshape inputs to align 3D context with the 2D SAM backbone (concatenate adjacent slices into batch dimension; reformat feature maps for 3D convs).
- Train with a hybrid segmentation loss (cross-entropy + Dice) and data augmentations; large-batch fine-tuning on ViT-H backbone across 400 epochs.

Experimental results
Research questions
- RQ1Can SAM be effectively adapted to 3D medical data using a modality-agnostic, lightweight fine-tuning approach?
- RQ2Does injecting 3D adapters into a 2D SAM backbone improve utilization of volumetric/temporal information for medical segmentation?
- RQ3Is full fine-tuning of the mask decoder beneficial for medical segmentation, and does a progressive upsampling strategy improve resolution?
- RQ4To what extent does MA-SAM generalize across CT, MRI, and surgical video datasets without prompts?
- RQ5How does prompting (e.g., 3D bounding boxes) further enhance challenging tumor segmentation with MA-SAM?
Key findings
- MA-SAM consistently outperforms state-of-the-art 3D medical segmentation methods on four tasks (CT, MRI, surgical video) without prompts.
- On BTCV abdominal multi-organ segmentation, MA-SAM achieves Dice 87.2% with an average 87.2 and HD 2.67% average, outperforming nnU-Net and other baselines.
- On 6-site prostate MRI datasets, MA-SAM attains average Dice 92.6% and HD 1.94%, surpassing nnU-Net and SAMed_h baselines.
- In EndoVis18 surgical scene segmentation, MA-SAM achieves mIoU 69.2 and Dice 77.0, outperforming task-specific and SAM-based methods.
- For pancreas tumor segmentation (MSD-Pancreas), automatic MA-SAM reaches 40.2 Dice and 59.1 NSD, with substantial gains when using 3D bounding box prompts (up to 80.35% Dice with a tight 3D box).
- With prompts, MA-SAM can exceed nnU-Net by up to 38.7% Dice in challenging tumor segmentation scenarios.
- MA-SAM demonstrates strong zero-shot and few-shot generalization on AMOS22 CT/MRI data, outperforming nnU-Net and SOTA domain-generalization methods.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.