Inspiring the Next Generation of Segment Anything Models: Comprehensively Evaluate SAM and SAM 2 with Diverse Prompts Towards Context-Dependent Concepts under Different Scenes
Not on the map. Why?
Abstract (arXiv)
As large-scale foundation models trained on billions of image--mask pairs covering a vast diversity of scenes, objects, and contexts, SAM and its upgraded version, SAM~2, have significantly influenced multiple fields within computer vision. Leveraging such unprecedented data diversity, they exhibit strong open-world segmentation capabilities, with SAM~2 further enhancing these capabilities to support high-quality video segmentation. While SAMs (SAM and SAM~2) have demonstrated excellent performance in segmenting context-independent concepts like people, cars, and roads, they overlook more challenging context-dependent (CD) concepts, such as visual saliency, camouflage, industrial defects, and medical lesions. CD concepts rely heavily on global and local contextual information, making them susceptible to shifts in different contexts, which requires strong discriminative capabilities from the model. The lack of comprehensive evaluation of SAMs limits understanding of their performance boundaries, which may hinder the design of future models. In this paper, we conduct a thorough evaluation of SAMs on 11 CD concepts across 2D and 3D images and videos in various visual modalities within natural, medical, and industrial scenes. We develop a unified evaluation framework for SAM and SAM~2 that supports manual, automatic, and intermediate self-prompting, aided by our specific prompt generation and interaction strategies. We further explore the potential of SAM~2 for in-context learning and introduce prompt robustness testing to simulate real-world imperfect prompts. Finally, we analyze the benefits and limitations of SAMs in understanding CD concepts and discuss their future development in segmentation tasks.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 68 of its 101 references that are in the map. First posted on arXiv 2 Dec 2024.
Builds on
68 of 101 references.
References · 68
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2023Segment Anythingcited by 8,158
- 2016The Cityscapes Dataset for Semantic Urban Scene Understandingcited by 4,427
- 2024SAM 2: Segment Anything in Images and Videoscited by 2,784
- 20163D U-Net: Learning Dense Volumetric Segmentation from Sparse Annotationcited by 1,471
- 2016COCO-Stuff: Thing and Stuff Classes in Contextcited by 858
- 2021Towards Total Recall in Industrial Anomaly Detectioncited by 772
- 2019Skin Lesion Analysis Toward Melanoma Detection 2018: A Challenge Hosted by the International Skin Imaging Collaboration (ISIC)cited by 657
- 2019Kvasir-SEG: A Segmented Polyp Datasetcited by 588
- 2023Medical SAM Adapter: Adapting Segment Anything Model for Medical Image Segmentationcited by 485
- 2017Structure-measure: A New Way to Evaluate Foreground Mapscited by 480
- 2020PraNet: Parallel Reverse Attention Network for Polyp Segmentationcited by 460
38 more
- 2022Anomaly Detection via Reverse Distillation from One-Class Embeddingcited by 419
- 2022SPot-the-Difference Self-Supervised Pre-training for Anomaly Detection and Segmentationcited by 397
- 2023Segment Anything in High Qualitycited by 373
- 2022Images Speak in Images: A Generalist Painter for In-Context Visual Learningcited by 317
- 2021Anabranch Network for Camouflaged Object Segmentationcited by 227
- 2021VT-ADL: A Vision Transformer Network for Image Anomaly Detection and Localizationcited by 222
- 2016A Benchmark for Endoluminal Scene Segmentation of Colonoscopy Imagescited by 220
- 2021Concealed Object Detectioncited by 212
- 2014The Secrets of Salient Object Segmentationcited by 200
- 2021Simultaneously Localize, Segment and Rank the Camouflaged Objectscited by 198
- 2015Visual Saliency Based on Multiscale Deep Featurescited by 185
- 2020Inf-Net: Automatic COVID-19 Lung Infection Segmentation from CT Imagescited by 184
- 2017Stacked Conditional Generative Adversarial Networks for Jointly Learning Shadow Detection and Shadow Removalcited by 160
- 2023Matcher: Segment Anything with One Shot Using All-Purpose Feature Matchingcited by 142
- 2023Segment Anything Is Not Always Perfect: An Investigation of SAM on Different Real-world Applicationscited by 121
- 2023Explicit Visual Prompting for Low-Level Structure Segmentationscited by 113
- 2022Highly Accurate Dichotomous Image Segmentationcited by 110
- 2020Global Context-Aware Progressive Aggregation Network for Salient Object Detectioncited by 109
- 2020Segmenting Transparent Objects in the Wildcited by 98
- 2023UniverSeg: Universal Medical Image Segmentationcited by 90
- 2021Automatic Polyp Segmentation via Multi-scale Subtraction Networkcited by 77
- 2021Progressively Normalized Self-Attention Network for Video Polyp Segmentationcited by 75
- 2023SAM Struggles in Concealed Scenes -- Empirical Study on Segment Anythingcited by 75
- 2016It's Moving! A Probabilistic Model for Causal Motion Segmentation in Moving Camera Videoscited by 71
- 2020EDN: Salient Object Detection via Extremely-Downsampled Networkcited by 64
- 2020Betrayed by Motion: Camouflaged Object Discovery via Motion Segmentationcited by 62
- 2022Implicit Motion Handling for Video Camouflaged Object Detectioncited by 60
- 2022MALUNet: A Multi-Attention and Light-weight UNet for Skin Lesion Segmentationcited by 59
- 2019RGB-T Image Saliency Detection via Collaborative Graph Learningcited by 58
- 2023VSCode: General Visual Salient and Camouflaged Object Detection with 2D Prompt Learningcited by 58
- 2023SAM Fails to Segment Anything? -- SAM-Adapter: Adapting SAM in Underperformed Scenes: Camouflage, Shadow, Medical Image Segmentation, and Morecited by 53
- 2023EGE-UNet: an Efficient Group Enhanced UNet for skin lesion segmentationcited by 53
- 2021RGB-D Saliency Detection via Cascaded Mutual Information Minimizationcited by 50
- 2021Enhanced Boundary Learning for Glass-like Object Segmentationcited by 48
- 2023ZoomNeXt: A Unified Collaborative Pyramid Network for Camouflaged Object Detectioncited by 48
- 2023Advances in Deep Concealed Scene Understandingcited by 47
- 2022AAU-net: An Adaptive Attention U-net for Breast Lesions Segmentation in Ultrasound Imagescited by 43
- 2023Lesion-aware Dynamic Kernel for Polyp Segmentationcited by 39
50 most cited of 68 All 68 (JSON)
Built on by
Citing papers per year: 2025: 4; 2026: 4.
8 papers.
- 2025SAM2 for Image and Video Segmentation: A Comprehensive Surveycited by 13
- 2026TP-Seg: Task-Prototype Framework for Unified Medical Lesion Segmentationcited by 7
- 2026DifferSeg: Towards Diverse Multimodal Binary Segmentation via Differential Perception and Frequency Guidancecited by 6
- 2025Mixture-of-Shape-Experts (MoSE): End-to-End Shape Dictionary Framework to Prompt SAM for Generalizable Medical Segmentationcited by 4
- 2025SurgiSAM2: Fine-tuning a foundational model for surgical video anatomy segmentation and detectioncited by 2
- 2025The SAM2-to-SAM3 Gap in the Segment Anything Model Family: Why Prompt-Based Expertise Fails in Concept-Driven Image Segmentationcited by 2
- 2026PaperFit: Vision-in-the-Loop Typesetting Optimization for Scientific Documentscited by 1
- 2026Leveraging GenAI for Segmenting and Labeling Centuries-old Technical Documentscited by 0
- 2026DifferSeg: Towards Diverse Multimodal Binary Segmentation via Differential Perception and Frequency Guidance8 Jun 2026
- 2026PaperFit: Vision-in-the-Loop Typesetting Optimization for Scientific Documents11 May 2026
- 2026TP-Seg: Task-Prototype Framework for Unified Medical Lesion Segmentation1 Apr 2026
- 2026Leveraging GenAI for Segmenting and Labeling Centuries-old Technical Documents24 Feb 2026
- 2025The SAM2-to-SAM3 Gap in the Segment Anything Model Family: Why Prompt-Based Expertise Fails in Concept-Driven Image Segmentation4 Dec 2025
- 2025Mixture-of-Shape-Experts (MoSE): End-to-End Shape Dictionary Framework to Prompt SAM for Generalizable Medical Segmentation13 Apr 2025
- 2025SAM2 for Image and Video Segmentation: A Comprehensive Survey17 Mar 2025
- 2025SurgiSAM2: Fine-tuning a foundational model for surgical video anatomy segmentation and detection5 Mar 2025