Seedlabs
Source research

Inspiring the Next Generation of Segment Anything Models: Comprehensively Evaluate SAM and SAM 2 with Diverse Prompts Towards Context-Dependent Concepts under Different Scenes

Xiaoqi Zhao, Youwei Pang, Shijie Chang, Yuan Zhao, Zhang, Lihe, Yu, Chenyang et al. · 2024 · 15 citationsRead the paper

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.

What the full text shows

Shown in the lab
  • Box prompts are the most effective for static image tasks, dominating in 10 out of 11 context-dependent concepts. — Best Dice/Fωβ/MAE overall (Static image tasks including SOD, COD, and LOS)
  • SAM and SAM 2 fail to capture fine structures or non-material boundaries, leading to over-segmentation or missing targets. (Shadow detection (SD), transparent object segmentation (TOS), and power battery detection (PBD))
  • SAM 2 outperforms SAM in temporal consistency and boundary preservation in video tasks. (VSOD, VCOD, and VSD using multi-frame prompts)
  • SAM 2 captures volumetric structures in 3D brain tumor segmentation more effectively than SAM. (3D brain tumor segmentation using bidirectional inference strategy)
  • Both models exhibit high sensitivity to prompt perturbations and cluttered backgrounds, leading to mask collapse. (Anomaly detection and medical lesions)
  • High performance achieved in specific tasks using SAMs. — Fωβ > 0.92 on DUTS (SOD); Dice > 0.91 in polyp segmentation (SOTA performance benchmarks)
Setup
33 datasets covering natural, medical, and industrial scenes, including DUTS, ECSSD, DAVIS16, CAMO, COD10K, NC4K, and MVTec-AD.
How
The authors developed a unified evaluation framework for SAM and SAM 2 using manual, automatic, and self-prompting strategies. They tested the models across 11 context-dependent concepts using 2D images, videos, and 3D medical volumes, incorporating in-context learning and prompt robustness testing.
Limitations
Dataset diversity and annotation quality may under-represent real deployment challenges. · High sensitivity to prompt precision (brittle reliance on precise prompts). · Limited robustness in low-contrast or ambiguous contexts.

Summarized by Gemma 4 from the open-access full text · 9 Nov 2026. Read it