SAM-CP: Marrying SAM with Composable Prompts for Versatile Segmentation
Not on the map. Why?
Abstract (arXiv)
The Segment Anything model (SAM) has shown a generalized ability to group image pixels into patches, but applying it to semantic-aware segmentation still faces major challenges. This paper presents SAM-CP, a simple approach that establishes two types of composable prompts beyond SAM and composes them for versatile segmentation. Specifically, given a set of classes (in texts) and a set of SAM patches, the Type-I prompt judges whether a SAM patch aligns with a text label, and the Type-II prompt judges whether two SAM patches with the same text label also belong to the same instance. To decrease the complexity in dealing with a large number of semantic classes and patches, we establish a unified framework that calculates the affinity between (semantic and instance) queries and SAM patches and merges patches with high affinity to the query. Experiments show that SAM-CP achieves semantic, instance, and panoptic segmentation in both open and closed domains. In particular, it achieves state-of-the-art performance in open-vocabulary segmentation. Our research offers a novel and generalized methodology for equipping vision foundation models like SAM with multi-grained semantic perception abilities.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 53 of its 61 references that are in the map. First posted on arXiv 23 Jul 2024.
Builds on
53 of 61 references.
References · 53
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2023Segment Anythingcited by 8,158
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,339
- 2017Mask R-CNNcited by 7,259
- 2023BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Modelscited by 6,069
- 2016Feature Pyramid Networks for Object Detectioncited by 5,021
- 2016The Cityscapes Dataset for Semantic Urban Scene Understandingcited by 4,427
38 more
- 2022Flamingo: a Visual Language Model for Few-Shot Learningcited by 4,337
- 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,410
- 2023Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detectioncited by 3,274
- 2021Masked-attention Mask Transformer for Universal Image Segmentationcited by 2,338
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
- 2019MMDetection: Open MMLab Detection Toolbox and Benchmarkcited by 1,379
- 2022DINO: DETR with Improved DeNoising Anchor Boxes for End-to-End Object Detectioncited by 1,306
- 2021Per-Pixel Classification is Not All You Need for Semantic Segmentationcited by 1,148
- 2021Grounded Language-Image Pre-trainingcited by 1,147
- 2024Grounded SAM: Assembling Open-World Models for Diverse Visual Taskscited by 914
- 2022EVA: Exploring the Limits of Masked Visual Representation Learning at Scalecited by 685
- 2022DAB-DETR: Dynamic Anchor Boxes are Better Queries for DETRcited by 569
- 2022Image as a Foreign Language: BEiT Pretraining for All Vision and Vision-Language Taskscited by 510
- 2022DN-DETR: Accelerate DETR Training by Introducing Query DeNoisingcited by 486
- 2023Open-Vocabulary Panoptic Segmentation with Text-to-Image Diffusion Modelscited by 371
- 2022Mask DINO: Towards A Unified Transformer-based Framework for Object Detection and Segmentationcited by 341
- 2018Learning Pixel-level Semantic Affinity with Image-level Supervision for Weakly Supervised Semantic Segmentationcited by 321
- 2022Generalized Decoding for Pixel, Image, and Languagecited by 292
- 2023Inpaint Anything: Segment Anything Meets Image Inpaintingcited by 233
- 2023Track Anything: Segment Anything Meets Videoscited by 230
- 2023Convolutions Die Hard: Open-Vocabulary Segmentation with Single Frozen Convolutional CLIPcited by 199
- 2023Segment and Track Anythingcited by 193
- 2023Semantic-SAM: Segment and Recognize Anything at Any Granularitycited by 185
- 2023RSPrompter: Learning to Prompt for Remote Sensing Instance Segmentation based on Visual Foundation Modelcited by 180
- 2022CLIP2Point: Transfer CLIP to Point Cloud Classification with Image-Depth Pre-trainingcited by 159
- 2022Open-Vocabulary Universal Image Segmentation with MaskCLIPcited by 131
- 2020Context Prior for Scene Segmentationcited by 121
- 2023SAM-CLIP: Merging Vision Foundation Models towards Semantic and Spatial Understandingcited by 111
- 2023Can SAM Segment Anything? When SAM Meets Camouflaged Object Detectioncited by 99
- 2023FreeSeg: Unified, Universal and Open-Vocabulary Image Segmentationcited by 94
- 2017Learning Affinity via Spatial Propagation Networkscited by 79
- 2023SAM.MD: Zero-shot medical image segmentation capabilities of the Segment Anything Modelcited by 61
- 2023When SAM Meets Medical Images: An Investigation of Segment Anything Model (SAM) on Multi-phase Liver Tumor Segmentationcited by 52
- 2023Text2Seg: Remote Sensing Image Semantic Segmentation via Text-Guided Visual Foundation Modelscited by 44
- 2023Open-vocabulary Panoptic Segmentation with Embedding Modulationcited by 39
- 2023SAMRS: Scaling-up Remote Sensing Segmentation Dataset with Segment Anything Modelcited by 38
- 2023Edit Everything: A Text-Guided Generative System for Images Editingcited by 33
- 2023Learning to "Segment Anything" in Thermal Infrared Images through Knowledge Distillation with a Large Scale Dataset SATIRcited by 11
50 most cited of 53 All 53 (JSON)
Built on by
Citing papers per year: 2025: 5.
5 papers.
- 2025SAM-MI: A Mask-Injected Framework for Enhancing Open-Vocabulary Semantic Segmentation with SAMcited by 4
- 2025Evaluating SAM2 for Video Semantic Segmentationcited by 4
- 2025Efficient Redundancy Reduction for Open-Vocabulary Semantic Segmentationcited by 2
- 2025Granular Computing-driven SAM: From Coarse-to-Fine Guidance for Prompt-Free Segmentationcited by 0
- 2025ST-DETrack: Identity-Preserving Branch Tracking in Entangled Plant Canopies via Dual Spatiotemporal Evidencecited by 0
- 2025ST-DETrack: Identity-Preserving Branch Tracking in Entangled Plant Canopies via Dual Spatiotemporal Evidence17 Dec 2025
- 2025Evaluating SAM2 for Video Semantic Segmentation1 Dec 2025
- 2025SAM-MI: A Mask-Injected Framework for Enhancing Open-Vocabulary Semantic Segmentation with SAM25 Nov 2025
- 2025Granular Computing-driven SAM: From Coarse-to-Fine Guidance for Prompt-Free Segmentation24 Nov 2025
- 2025Efficient Redundancy Reduction for Open-Vocabulary Semantic Segmentation29 Jan 2025