ResearchTrend.AI
  • Papers
  • Communities
  • Events
  • Blog
  • Pricing
Papers
Communities
Social Events
Terms and Conditions
Pricing
Parameter LabParameter LabTwitterGitHubLinkedInBlueskyYoutube

© 2025 ResearchTrend.AI, All rights reserved.

  1. Home
  2. Papers
  3. 2505.21795
16
0

SANSA: Unleashing the Hidden Semantics in SAM2 for Few-Shot Segmentation

27 May 2025
Claudia Cuttano
Gabriele Trivigno
Giuseppe Averta
Carlo Masone
    VLM
ArXiv (abs)PDFHTML
Main:9 Pages
12 Figures
Bibliography:4 Pages
8 Tables
Appendix:6 Pages
Abstract

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 atthis https URL.

View on arXiv
@article{cuttano2025_2505.21795,
  title={ SANSA: Unleashing the Hidden Semantics in SAM2 for Few-Shot Segmentation },
  author={ Claudia Cuttano and Gabriele Trivigno and Giuseppe Averta and Carlo Masone },
  journal={arXiv preprint arXiv:2505.21795},
  year={ 2025 }
}
Comments on this paper