DC-SAM: In-Context Segment Anything in Images and Videos via Dual Consistency
Not on the map. Why?
Abstract (arXiv)
Given a single labeled example, in-context segmentation aims to segment corresponding objects. This setting, known as one-shot segmentation in few-shot learning, explores the segmentation model's generalization ability and has been applied to various vision tasks, including scene understanding and image/video editing. While recent Segment Anything Models have achieved state-of-the-art results in interactive segmentation, these approaches are not directly applicable to in-context segmentation. In this work, we propose the Dual Consistency SAM (DC-SAM) method based on prompt-tuning to adapt SAM and SAM2 for in-context segmentation of both images and videos. Our key insights are to enhance the features of the SAM's prompt encoder in segmentation by providing high-quality visual prompts. When generating a mask prior, we fuse the SAM features to better align the prompt encoder. Then, we design a cycle-consistent cross-attention on fused features and initial visual prompts. Next, a dual-branch design is provided by using the discriminative positive and negative prompts in the prompt encoder. Furthermore, we design a simple mask-tube training strategy to adopt our proposed dual consistency method into the mask tube. Although the proposed DC-SAM is primarily designed for images, it can be seamlessly extended to the video domain with the support of SAM2. Given the absence of in-context segmentation in the video domain, we manually curate and construct the first benchmark from existing video segmentation datasets, named In-Context Video Object Segmentation (IC-VOS), to better assess the in-context capability of the model. Extensive experiments demonstrate that our method achieves 55.5 (+1.4) mIoU on COCO-20i, 73.0 (+1.1) mIoU on PASCAL-5i, and a J&F score of 71.52 on the proposed IC-VOS benchmark. Our source code and benchmark are available at https://github.com/zaplm/DC-SAM.
Key facts. Cited by 15 papers in the map (data through 14 Oct 2026). Builds on 73 of its 99 references that are in the map. First posted on arXiv 16 Apr 2025.
Builds on
73 of 99 references.
References · 73
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2014Microsoft COCO: Common Objects in Contextcited by 17,608
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,364
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2023Segment Anythingcited by 8,234
- 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,974
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,236
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,915
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,795
38 more
- 2023Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detectioncited by 3,332
- 2024SAM 2: Segment Anything in Images and Videoscited by 2,863
- 2021BitFit: Simple Parameter-efficient Fine-tuning for Transformer-based Masked Language-modelscited by 1,245
- 2017The 2017 DAVIS Challenge on Video Object Segmentationcited by 957
- 2023LISA: Reasoning Segmentation via Large Language Modelcited by 776
- 2023Medical SAM Adapter: Adapting Segment Anything Model for Medical Image Segmentationcited by 490
- 2018YouTube-VOS: A Large-Scale Video Object Segmentation Benchmarkcited by 383
- 2020Parameter-Efficient Transfer Learning with Diff Pruningcited by 352
- 2017One-Shot Learning for Semantic Segmentationcited by 337
- 2022Images Speak in Images: A Generalist Painter for In-Context Visual Learningcited by 318
- 2020Prior Guided Feature Enrichment Network for Few-Shot Segmentationcited by 271
- 2021DatasetGAN: Efficient Labeled Data Factory with Minimal Human Effortcited by 264
- 2022Visual Prompting via Image Inpaintingcited by 250
- 2023Personalize Segment Anything Model with One Shotcited by 250
- 2023MOSE: A New Dataset for Video Object Segmentation in Complex Scenescited by 234
- 2021Adaptive Prototype Learning and Allocation for Few-Shot Segmentationcited by 207
- 2021Hypercorrelation Squeeze for Few-Shot Segmentationcited by 193
- 2023Segment and Track Anythingcited by 193
- 2020Prototype Mixture Models for Few-shot Semantic Segmentationcited by 190
- 2019Feature Weighting and Boosting for Few-Shot Segmentationcited by 189
- 2025Sa2VA: Marrying SAM2 with MLLM for Dense Grounded Understanding of Images and Videoscited by 159
- 2023Matcher: Segment Anything with One Shot Using All-Purpose Feature Matchingcited by 142
- 2020Few-Shot Segmentation Without Meta-Learning: A Good Transductive Inference Is All You Need?cited by 135
- 2021Few-Shot Segmentation via Cycle-Consistent Transformercited by 133
- 2022Learning What Not to Segment: A New Perspective on Few-Shot Segmentationcited by 120
- 2021Simpler is Better: Few-shot Semantic Segmentation with Classifier Weight Transformercited by 116
- 2022Cost Aggregation with 4D Convolutional Swin Transformer for Few-Shot Segmentationcited by 114
- 2022Self-Support Few-Shot Semantic Segmentationcited by 96
- 2021Repurposing GANs for One-shot Semantic Part Segmentationcited by 88
- 2023Hierarchical Dense Correlation Distillation for Few-Shot Segmentationcited by 84
- 2023MA-SAM: Modality-agnostic SAM Adaptation for 3D Medical Image Segmentationcited by 82
- 2022LVOS: A Benchmark for Long-term Video Object Segmentationcited by 77
- 2024Open-Vocabulary SAM: Segment and Recognize Twenty-thousand Classes Interactivelycited by 75
- 2024VRP-SAM: SAM with Visual Reference Promptcited by 75
- 2018Attentive Relational Networks for Mapping Images to Scene Graphscited by 73
- 2022Dense Cross-Query-and-Support Attention Weighted Mask Aggregation for Few-Shot Segmentationcited by 65
- 2022Feature-Proxy Transformer for Few-Shot Segmentationcited by 58
- 2022Learning Non-target Knowledge for Few-shot Semantic Segmentationcited by 57
50 most cited of 73 All 73 (JSON)
Built on by
Citing papers per year: 2025: 2; 2026: 13.
15 papers.
Sort:
By area:
- 2026Active Exploring like a Pigeon: Reinforcing Spatial Reasoning via Agentic Vision-Language Modelscited by 3
- 2026Closing the Reality Gap: Zero-Shot Sim-to-Real Deployment for Dexterous Force-Based Grasping and Manipulationcited by 2
- 2026CritiqueDriveVLM: From Verifier-Guided Reinforcement Learning to Latent Thought Distillation for Autonomous Drivingcited by 2
- 2025Chain-of-Evidence Multimodal Reasoning for Few-shot Temporal Action Localizationcited by 1
- 2026Reason-Then-Retrieve for CoVR-R with Structured Edit Prompts and Dense-Sparse Fusioncited by 1
- 2026Global-Local Monte Carlo Tree Search in Vision-Language Models for Text-to-3D Indoor Scene Generationcited by 1
- 2026A VideoMAE-v2 Approach to Zero-Shot Traffic Accident Anticipationcited by 1
- 2025Multi-Modal Scene Graph with Kolmogorov-Arnold Experts for Audio-Visual Question Answeringcited by 0
- 2026Question-Aware Evidence Ledgers for Video Relational Reasoningcited by 0
- 2026Claude Code-Driving Scenario Mining for the Argoverse 2 Challengecited by 0
- 2026Leveraging Metric Depth for Relative Depth Predictioncited by 0
- 2026SGFormer++: Semantic Graph Transformer for Incremental 3D Scene Graph Generationcited by 0
- 2026VTO: Visual Tool Orchestration for Video Anomaly Detection8 Aug 2026
- 2026Boosting Robustness for All-Weather Self-Supervised Depth Estimation in Autonomous Driving23 Jul 2026
- 2026CritiqueDriveVLM: From Verifier-Guided Reinforcement Learning to Latent Thought Distillation for Autonomous Driving5 Jul 2026
- 2026A DVDrive Approach for doScenes Instructed Driving Challenge19 Jun 2026
- 2026SGFormer++: Semantic Graph Transformer for Incremental 3D Scene Graph Generation13 Jun 2026
- 2026Leveraging Metric Depth for Relative Depth Prediction9 Jun 2026
- 2026A VideoMAE-v2 Approach to Zero-Shot Traffic Accident Anticipation8 Jun 2026
- 2026Claude Code-Driving Scenario Mining for the Argoverse 2 Challenge8 Jun 2026
- 2026Global-Local Monte Carlo Tree Search in Vision-Language Models for Text-to-3D Indoor Scene Generation4 Jun 2026
- 2026Question-Aware Evidence Ledgers for Video Relational Reasoning1 Jun 2026
- 2026Active Exploring like a Pigeon: Reinforcing Spatial Reasoning via Agentic Vision-Language Models1 Jun 2026
- 2026Reason-Then-Retrieve for CoVR-R with Structured Edit Prompts and Dense-Sparse Fusion1 Jun 2026
3 more
- 2026Closing the Reality Gap: Zero-Shot Sim-to-Real Deployment for Dexterous Force-Based Grasping and Manipulation6 Jan 2026
- 2025Multi-Modal Scene Graph with Kolmogorov-Arnold Experts for Audio-Visual Question Answering28 Nov 2025
- 2025Chain-of-Evidence Multimodal Reasoning for Few-shot Temporal Action Localization18 Apr 2025
- 2026Active Exploring like a Pigeon: Reinforcing Spatial Reasoning via Agentic Vision-Language Modelscited by 3
- 2026CritiqueDriveVLM: From Verifier-Guided Reinforcement Learning to Latent Thought Distillation for Autonomous Drivingcited by 2
- 2025Chain-of-Evidence Multimodal Reasoning for Few-shot Temporal Action Localizationcited by 1
- 2026Global-Local Monte Carlo Tree Search in Vision-Language Models for Text-to-3D Indoor Scene Generationcited by 1
- 2026CritiqueDriveVLM: From Verifier-Guided Reinforcement Learning to Latent Thought Distillation for Autonomous Driving5 Jul 2026
- 2026Global-Local Monte Carlo Tree Search in Vision-Language Models for Text-to-3D Indoor Scene Generation4 Jun 2026
- 2026Active Exploring like a Pigeon: Reinforcing Spatial Reasoning via Agentic Vision-Language Models1 Jun 2026
- 2025Chain-of-Evidence Multimodal Reasoning for Few-shot Temporal Action Localization18 Apr 2025
- 2026A DVDrive Approach for doScenes Instructed Driving Challenge19 Jun 2026
- 2026Closing the Reality Gap: Zero-Shot Sim-to-Real Deployment for Dexterous Force-Based Grasping and Manipulationcited by 2
- 2026Reason-Then-Retrieve for CoVR-R with Structured Edit Prompts and Dense-Sparse Fusioncited by 1
- 2026A VideoMAE-v2 Approach to Zero-Shot Traffic Accident Anticipationcited by 1
- 2026Question-Aware Evidence Ledgers for Video Relational Reasoningcited by 0
- 2026Claude Code-Driving Scenario Mining for the Argoverse 2 Challengecited by 0
- 2026Leveraging Metric Depth for Relative Depth Predictioncited by 0
- 2026SGFormer++: Semantic Graph Transformer for Incremental 3D Scene Graph Generationcited by 0
- 2026Boosting Robustness for All-Weather Self-Supervised Depth Estimation in Autonomous Drivingcited by 0
- 2026Boosting Robustness for All-Weather Self-Supervised Depth Estimation in Autonomous Driving23 Jul 2026
- 2026SGFormer++: Semantic Graph Transformer for Incremental 3D Scene Graph Generation13 Jun 2026
- 2026Leveraging Metric Depth for Relative Depth Prediction9 Jun 2026
- 2026A VideoMAE-v2 Approach to Zero-Shot Traffic Accident Anticipation8 Jun 2026
- 2026Claude Code-Driving Scenario Mining for the Argoverse 2 Challenge8 Jun 2026
- 2026Question-Aware Evidence Ledgers for Video Relational Reasoning1 Jun 2026
- 2026Reason-Then-Retrieve for CoVR-R with Structured Edit Prompts and Dense-Sparse Fusion1 Jun 2026
- 2026Closing the Reality Gap: Zero-Shot Sim-to-Real Deployment for Dexterous Force-Based Grasping and Manipulation6 Jan 2026