Segment Anything In-Context via Visual Demonstrations
Yuzhu Wang, Manni Duan, Hongliang Ye, Shu Kong
Key points
From the paper's conclusion- We present the Segment Anything Model via Visual Demonstrations (SAYD), a foundation model for in-context segmentation.
Abstract
We present the Segment Anything Model via Visual Demonstrations (SAYD), a foundation model for in-context segmentation. Given visual demos comprising prompt images and their segmentation masks, SAYD segments coherent regions (e.g., objects or their parts) in a query image by establishing visual correspondences between the prompts and the query. SAYD generalizes to previously-unseen segmentation tasks, including those requiring tacit visual knowledge or involving concepts that are difficult to articulate unambiguously in language. We train SAYD on 12 public datasets originally curated for panoptic segmentation using our proposed techniques, including a lightweight mask decoder for prompt-agnostic mask generation and a learning mechanism for recognizing novel query classes absent in the prompts. These innovations enhance both computational efficiency and out-of-domain generalization. Consequently, SAYD significantly outperforms existing methods of in-context segmentation and open-vocabulary segmentation across 24 out-of-domain benchmarks, spanning natural, biological, ecological, cosmological, medical, pathological, and satellite imagery.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Vision and Language Reference for a Segment Anything Model for Few-Shot SegmentationJournal of Imaging · 2026
- Adapting Frozen Promptable Segmenters to User-Defined Taxonomies via Few-Shot Proposal LearningarXiv · 2026
- Visual Memory and Textual Alignment for Cross-Modal Few-Shot SegmentationarXiv · 2026
- What You Show Is Not What You Get: Rethinking Demonstration Following in Visual In-Context SegmentationarXiv · 2026
- ZeroDSS: Semantic Segmentation from Class Names AlonearXiv · 2026
- S4VY: Segment Anything in Feed-Forward 4D Visual GeometryarXiv · 2026