Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

SAMed-2: Selective Memory Enhanced Medical Segment Anything Model

About

Recent "segment anything" efforts show promise by learning from large-scale data, but adapting such models directly to medical images remains challenging due to the complexity of medical data, noisy annotations, and continual learning requirements across diverse modalities and anatomical structures. In this work, we propose SAMed-2, a new foundation model for medical image segmentation built upon the SAM-2 architecture. Specifically, we introduce a temporal adapter into the image encoder to capture image correlations and a confidence-driven memory mechanism to store high-certainty features for later retrieval. This memory-based strategy counters the pervasive noise in large-scale medical datasets and mitigates catastrophic forgetting when encountering new tasks or modalities. To train and evaluate SAMed-2, we curate MedBank-100k, a comprehensive dataset spanning seven imaging modalities and 21 medical segmentation tasks. Our experiments on both internal benchmarks and 10 external datasets demonstrate superior performance over state-of-the-art baselines in multi-task scenarios. The code is available at: https://github.com/ZhilingYan/Medical-SAM-Bench.

Zhiling Yan, Sifan Song, Dingjie Song, Yiwei Li, Rong Zhou, Weixiang Sun, Zhennong Chen, Sekeun Kim, Hui Ren, Tianming Liu, Quanzheng Li, Xiang Li, Lifang He, Lichao Sun• 2025

Related benchmarks

TaskDatasetResultRank
Optic Cup SegmentationOpticCup Fundus (val)
DSC89.71
10
Medical Image SegmentationMedical Segmentation Internal (val)
DSC71.18
6
Medical Image SegmentationProstate (external val)
DSC86.01
6
Medical Image SegmentationBrain Tumor (external val)
DSC67.26
6
Medical Image SegmentationLiver (external val)
DSC0.7738
6
Medical Image SegmentationColonTumor (external val)
DSC70.05
6
Melanoma SegmentationMelanoma (Dermoscopy) (Internal val)
DSC91.19
6
Polyp SegmentationPolyp (Colonoscopy) (val)
DSC81.83
6
Left Ventricle Epicardium SegmentationEchocardiography Internal LV epi (val)
DSC0.5733
6
Lung SegmentationLung (X-Ray) Internal (val)
DSC90.07
6
Showing 10 of 17 rows

Other info

Code

Follow for update