atlas

Research map / Detection and segmentation / Open-set and few-shot detection

SAM-CP: Marrying SAM with Composable Prompts for Versatile Segmentation

ICLR 2025 · Detection and segmentation › Open-set and few-shot detection · approach: Open-vocabulary semantic segmentation

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes SAM-CP, which equips frozen SAM patches with two composable prompts (semantic labeling and instance merging) unified in an affinity-based query decoder for semantic, instance, and panoptic segmentation in closed and open vocabulary settings.

Problem

Applying SAM to semantic-aware segmentation (semantic, instance, panoptic) is hard because SAM patches lack semantic labels and often over-segment instances into sub-patches.

Approach

Two composable prompts over SAM patches: Type-I judges whether a patch matches a text class, Type-II judges whether two same-class patches belong to the same instance. A unified query-based affinity decoder (DETR-style queries over patch keys, with dynamic cross-attention and affinity refinement) implements both efficiently, avoiding quadratic pairwise enumeration.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add Mask DINO proposals to SAM proposals (ablation)SAM-CP · COCO, 36 epochsPQ: 48.6 -> 51.4Helped
remove mask focal loss from the loss and label assignment (ablation)SAM-CP · COCO→ADE20K, 12 epochsPQ: 27.2 -> 0.6Hurt
remove Dice loss from the loss and label assignment (ablation)SAM-CP · COCO→ADE20K, 12 epochsPQ: 27.2 -> 23.8Hurt
remove mask focal loss from label assignment (ablation)SAM-CP · COCO→ADE20K, 12 epochsPQ: 27.2 -> 26.5Hurt
remove Dice loss from label assignment (ablation)SAM-CP · COCO→ADE20K, 12 epochsPQ: 27.2 -> 26.6Hurt
remove box and gIoU costs from label assignment (ablation)SAM-CP · COCO→ADE20K, 12 epochsPQ: 27.2 -> 25.9Hurt
remove dynamic cross-attention (ablation)SAM-CP · COCO, 12 epochsPQ: 47.0 -> 43.5Hurt
remove affinity refinement (ablation)SAM-CP · COCO, 12 epochsPQ: 47.0 -> 44.1Hurt
remove MaskRoI (ablation)SAM-CP · COCO, 12 epochsPQ: 47.0 -> 44.1Hurt
remove query enhancement (ablation)SAM-CP · COCO, 12 epochsPQ: 47.0 -> 44.8Hurt
remove background self-affinity (ablation)SAM-CP · COCO, 12 epochsPQ: 47.0 -> 45.2Hurt
fuse learnable and CLIP classifiers instead of using either alone (ablation)SAM-CP · COCO→ADE20KPQ: 17.5 -> 27.2; 16.9 -> 27.2Helped

Surprising findings

Limitations

Experimental setup

Datasets: COCO-Panoptic ADE20K Cityscapes Pascal Part

Benchmarks: COCO-Panoptic ADE20K Cityscapes Pascal Part

Metrics: PQ AP mIoU SQ RQ

Baselines: FCCLIP FrozenSeg OpenSeeD X-Decoder ODISE Mask2Former MaskFormer Mask DINO SEEM Semantic-SAM

Builds on: Segment Anything DETR Mask DINO FC-CLIP GLIP

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy