SANSA: Unleashing the Hidden Semantics in SAM2 for Few-Shot Segmentation
Not on the map. Why?
Abstract (arXiv)
Few-shot segmentation aims to segment unseen object categories from just a handful of annotated examples. This requires mechanisms that can both identify semantically related objects across images and accurately produce segmentation masks. We note that Segment Anything 2 (SAM2), with its prompt-and-propagate mechanism, offers both strong segmentation capabilities and a built-in feature matching process. However, we show that its representations are entangled with task-specific cues optimized for object tracking, which impairs its use for tasks requiring higher level semantic understanding. Our key insight is that, despite its class-agnostic pretraining, SAM2 already encodes rich semantic structure in its features. We propose SANSA (Semantically AligNed Segment Anything 2), a framework that makes this latent structure explicit, and repurposes SAM2 for few-shot segmentation through minimal task-specific modifications. SANSA achieves state-of-the-art performance on few-shot segmentation benchmarks specifically designed to assess generalization, outperforms generalist methods in the popular in-context setting, supports various prompts flexible interaction via points, boxes, or scribbles, and remains significantly faster and more compact than prior approaches. Code is available at https://github.com/ClaudiaCuttano/SANSA.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 79 of its 95 references that are in the map. First posted on arXiv 27 May 2025.
Builds on
79 of 95 references.
References · 79
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2023Segment Anythingcited by 8,158
- 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,764
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
- 2017Mask R-CNNcited by 7,259
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
- 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
- 2016DeepLab: Semantic Image Segmentation with Deep Convolutional Nets, Atrous Convolution, and Fully Connected CRFscited by 3,239
38 more
- 2024SAM 2: Segment Anything in Images and Videoscited by 2,784
- 2021Masked-attention Mask Transformer for Universal Image Segmentationcited by 2,338
- 2016V-Net: Fully Convolutional Neural Networks for Volumetric Medical Image Segmentationcited by 2,284
- 2016Matching Networks for One Shot Learningcited by 2,246
- 2019LVIS: A Dataset for Large Vocabulary Instance Segmentationcited by 1,215
- 2016Semantic Understanding of Scenes through the ADE20K Datasetcited by 1,063
- 2021VICReg: Variance-Invariance-Covariance Regularization for Self-Supervised Learningcited by 1,013
- 2018Panoptic Segmentationcited by 796
- 2022AdaptFormer: Adapting Vision Transformers for Scalable Visual Recognitioncited by 714
- 2020Intrinsic Dimensionality Explains the Effectiveness of Language Model Fine-Tuningcited by 658
- 2019Skin Lesion Analysis Toward Melanoma Detection 2018: A Challenge Hosted by the International Skin Imaging Collaboration (ISIC)cited by 657
- 2018Free-Form Image Inpainting with Gated Convolutioncited by 594
- 2023Segment Everything Everywhere All at Oncecited by 546
- 2018Meta-Learning with Latent Embedding Optimizationcited by 476
- 2019PANet: Few-Shot Image Semantic Segmentation with Prototype Alignmentcited by 449
- 2023Emergent Correspondence from Image Diffusioncited by 437
- 2018Measuring the Intrinsic Dimension of Objective Landscapescited by 364
- 2017One-Shot Learning for Semantic Segmentationcited by 337
- 2022Images Speak in Images: A Generalist Painter for In-Context Visual Learningcited by 317
- 2023A Tale of Two Features: Stable Diffusion Complements DINO for Zero-Shot Semantic Correspondencecited by 297
- 2023Hiera: A Hierarchical Vision Transformer without the Bells-and-Whistlescited by 287
- 2023Personalize Segment Anything Model with One Shotcited by 250
- 2014Detect What You Can: Detecting and Representing Objects using Holistic Models and Body Partscited by 230
- 2021Associating Objects with Transformers for Video Object Segmentationcited by 225
- 2022Splicing ViT Features for Semantic Appearance Transfercited by 209
- 2021Adaptive Prototype Learning and Allocation for Few-Shot Segmentationcited by 207
- 2021Hypercorrelation Squeeze for Few-Shot Segmentationcited by 193
- 2019Feature Weighting and Boosting for Few-Shot Segmentationcited by 189
- 2021Efficient Visual Pretraining with Contrastive Detectioncited by 150
- 2021On the Effectiveness of Adapter-based Tuning for Pretrained Language Model Adaptationcited by 147
- 2022Decoupling Features in Hierarchical Propagation for Video Object Segmentationcited by 146
- 2023PACO: Parts and Attributes of Common Objectscited by 146
- 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
- 2022VICRegL: Self-Supervised Learning of Local Visual Featurescited by 118
- 2022Cost Aggregation with 4D Convolutional Swin Transformer for Few-Shot Segmentationcited by 114
50 most cited of 79 All 79 (JSON)
Built on by
Citing papers per year: 2026: 8.
8 papers.
- 2026INSID3: Training-Free In-Context Segmentation with DINOv3cited by 12
- 2026Few-Shot Semantic Segmentation Meets SAM3cited by 3
- 2026MARCO: Navigating the Unseen Space of Semantic Correspondencecited by 3
- 2026MLRecon: Robust Markerless Freehand 3D Ultrasound Reconstruction via Coarse-to-Fine Pose Estimationcited by 0
- 2026Toward Robust In-Context Segmentation via Concept Guidancecited by 0
- 2026Do Medical Foundation Models Generalize on the African Brain?cited by 0
- 2026FoundYou: A Unified Model for Personalized Segmentation and Retrievalcited by 0
- 2026FoRIS: Progressive Foreground Refinement for Training-Free In-Context Segmentationcited by 0
- 2026FoRIS: Progressive Foreground Refinement for Training-Free In-Context Segmentation3 Sep 2026
- 2026FoundYou: A Unified Model for Personalized Segmentation and Retrieval30 Aug 2026
- 2026Do Medical Foundation Models Generalize on the African Brain?30 Jul 2026
- 2026Toward Robust In-Context Segmentation via Concept Guidance26 Jun 2026
- 2026MARCO: Navigating the Unseen Space of Semantic Correspondence20 Apr 2026
- 2026Few-Shot Semantic Segmentation Meets SAM37 Apr 2026
- 2026INSID3: Training-Free In-Context Segmentation with DINOv330 Mar 2026
- 2026MLRecon: Robust Markerless Freehand 3D Ultrasound Reconstruction via Coarse-to-Fine Pose Estimation1 Mar 2026