mlsanityData to 14 Oct 2026

DC-SAM: In-Context Segment Anything in Images and Videos via Dual Consistency

arXiv 2504.12080 ↗First posted 16 Apr 2025cs.CVcited by 15

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

  1. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  2. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  3. 2014Microsoft COCO: Common Objects in Contextcited by 17,608
  4. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,364
  5. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  6. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  7. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
  8. 2023Segment Anythingcited by 8,234
  9. 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,974
  10. 2019Parameter-Efficient Transfer Learning for NLPcited by 4,236
  11. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,915
  12. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,795
38 more
  1. 2023Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detectioncited by 3,332
  2. 2024SAM 2: Segment Anything in Images and Videoscited by 2,863
  3. 2021BitFit: Simple Parameter-efficient Fine-tuning for Transformer-based Masked Language-modelscited by 1,245
  4. 2017The 2017 DAVIS Challenge on Video Object Segmentationcited by 957
  5. 2023LISA: Reasoning Segmentation via Large Language Modelcited by 776
  6. 2023Medical SAM Adapter: Adapting Segment Anything Model for Medical Image Segmentationcited by 490
  7. 2018YouTube-VOS: A Large-Scale Video Object Segmentation Benchmarkcited by 383
  8. 2020Parameter-Efficient Transfer Learning with Diff Pruningcited by 352
  9. 2017One-Shot Learning for Semantic Segmentationcited by 337
  10. 2022Images Speak in Images: A Generalist Painter for In-Context Visual Learningcited by 318
  11. 2020Prior Guided Feature Enrichment Network for Few-Shot Segmentationcited by 271
  12. 2021DatasetGAN: Efficient Labeled Data Factory with Minimal Human Effortcited by 264
  13. 2022Visual Prompting via Image Inpaintingcited by 250
  14. 2023Personalize Segment Anything Model with One Shotcited by 250
  15. 2023MOSE: A New Dataset for Video Object Segmentation in Complex Scenescited by 234
  16. 2021Adaptive Prototype Learning and Allocation for Few-Shot Segmentationcited by 207
  17. 2021Hypercorrelation Squeeze for Few-Shot Segmentationcited by 193
  18. 2023Segment and Track Anythingcited by 193
  19. 2020Prototype Mixture Models for Few-shot Semantic Segmentationcited by 190
  20. 2019Feature Weighting and Boosting for Few-Shot Segmentationcited by 189
  21. 2025Sa2VA: Marrying SAM2 with MLLM for Dense Grounded Understanding of Images and Videoscited by 159
  22. 2023Matcher: Segment Anything with One Shot Using All-Purpose Feature Matchingcited by 142
  23. 2020Few-Shot Segmentation Without Meta-Learning: A Good Transductive Inference Is All You Need?cited by 135
  24. 2021Few-Shot Segmentation via Cycle-Consistent Transformercited by 133
  25. 2022Learning What Not to Segment: A New Perspective on Few-Shot Segmentationcited by 120
  26. 2021Simpler is Better: Few-shot Semantic Segmentation with Classifier Weight Transformercited by 116
  27. 2022Cost Aggregation with 4D Convolutional Swin Transformer for Few-Shot Segmentationcited by 114
  28. 2022Self-Support Few-Shot Semantic Segmentationcited by 96
  29. 2021Repurposing GANs for One-shot Semantic Part Segmentationcited by 88
  30. 2023Hierarchical Dense Correlation Distillation for Few-Shot Segmentationcited by 84
  31. 2023MA-SAM: Modality-agnostic SAM Adaptation for 3D Medical Image Segmentationcited by 82
  32. 2022LVOS: A Benchmark for Long-term Video Object Segmentationcited by 77
  33. 2024Open-Vocabulary SAM: Segment and Recognize Twenty-thousand Classes Interactivelycited by 75
  34. 2024VRP-SAM: SAM with Visual Reference Promptcited by 75
  35. 2018Attentive Relational Networks for Mapping Images to Scene Graphscited by 73
  36. 2022Dense Cross-Query-and-Support Attention Weighted Mask Aggregation for Few-Shot Segmentationcited by 65
  37. 2022Feature-Proxy Transformer for Few-Shot Segmentationcited by 58
  38. 2022Learning Non-target Knowledge for Few-shot Semantic Segmentationcited by 57

50 most cited of 73 All 73 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 13.

15 papers.

Sort:

By area: