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

SAM-Med2D

Junlong Cheng, Jin Ye, Zhongying Deng, Jianpin Chen, Tianbin Li, Haoyu Wang, Yanzhou Su, Ziyan Huang, Jilong Chen, Lei Jiang, Hui Sun, Junjun He, Shaoting Zhang, Min Zhu, Yu QiaoarXiv 2023 · DOI

Abstract

SAM-Med2D is a specialized adaptation of Meta’s "Segment Anything Model" (SAM) designed specifically for the complexities of medical imaging. By fine-tuning on a massive, curated dataset of 4.6 million images and 19.7 million masks, the authors created a model that significantly outperforms the original SAM in medical contexts, particularly when using interactive point and bounding box prompts.

Introduction

The original Segment Anything Model (SAM) represented a paradigm shift in computer vision, demonstrating zero-shot segmentation capabilities on natural images. However, its performance degrades significantly when applied to medical imaging modalities like CT, MRI, and ultrasound. This "domain gap" arises because medical images—often grayscale, physics-based representations of internal anatomy—differ fundamentally from the RGB natural images SAM was trained on. SAM-Med2D addresses this by fine-tuning SAM on an unprecedented scale of medical data.

Methodology

SAM-Med2D introduces three key innovations to adapt the foundation model for clinical use:

  1. Parameter-Efficient Fine-Tuning (Adapters): Instead of retraining the entire image encoder, the authors inserted small, learnable "Adapter" layers into the frozen Transformer blocks. This allows the model to learn medical-specific features without losing its general visual knowledge.
  2. Comprehensive Prompting: The model is trained to handle points, bounding boxes, and masks simultaneously, providing flexibility for clinical workflows.
  3. Interactive Training Strategy: To simulate real-world usage, the model was trained iteratively. It receives "correction" points based on previous errors, mimicking how a radiologist might refine a segmentation mask.
Visual demonstration of SAM-Med2D performance across different modalities and prompt types (bounding boxes and points).

Dataset Scale and Diversity

The scale of the SAM-Med2D dataset is a major contribution to the field. The authors curated 4.6 million images and 19.7 million masks across 10 imaging modalities and 31 major organs. This represents a significant increase in data volume compared to previous medical segmentation benchmarks, providing the diversity needed for a robust foundation model.

Comparison of SA-1B and SAM-Med2D datasets, highlighting the scale of images and masks used for medical fine-tuning.

Key Results

SAM-Med2D demonstrates substantial improvements over the original SAM. On the test set, it achieved a 79.30% Dice score using bounding box prompts, compared to SAM's 61.63%. The most dramatic improvement was seen in single-point prompting, where SAM-Med2D reached a 70.01% Dice score, a 51% absolute increase over the original model's 18.94%. Furthermore, the model showed strong generalization on unseen datasets from the MICCAI 2023 challenges, maintaining an average Dice score of 81.93%.

Conclusion and Future Work

SAM-Med2D successfully brings the power of foundation models to the medical domain. While limitations remain—such as the lack of native 3D support and natural language prompting—the model sets a new state-of-the-art for interactive medical image segmentation. Future work will likely focus on extending these capabilities to 3D volumes and integrating textual clinical context to further assist radiologists in complex diagnostic tasks.

Summary updated

BibTeX
@misc{cheng2023sam,
  author = {Junlong Cheng and Jin Ye and Zhongying Deng and Jianpin Chen and Tianbin Li and Haoyu Wang and Yanzhou Su and Ziyan Huang and Jilong Chen and Lei Jiang and Hui Sun and Junjun He and Shaoting Zhang and Min Zhu and Yu Qiao},
  title = {{SAM-Med2D}},
  year = {2023},
  eprint = {2308.16184},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.16184},
}
Figure