From Visual Matching to Textual Conditioning: Cross-Domain Few-Shot Segmentation via Reference Inversion
Jiahao Nie, Yun Xing, Wenbin An, Qixin Zhang, Yap-Peng Tan, Alex C. Kot, Shijian Lu
Key points
From the paper's conclusion- We propose Reference Inversion for SAM3 (RI-SAM3) that leverages SAM3's large-scale vision-language pre-training to learn suitable textual tokens for each target category.
Abstract
Cross-Domain Few-Shot Segmentation (CD-FSS) aims to segment objects from unseen domains using only a few annotated references. Recent Segment Anything Model (SAM)-based methods have advanced CD-FSS, yet their reference-target visual matching is highly sensitive to target appearance variations. SAM3 introduces text-conditioned segmentation, enabling natural-language descriptions to guide segmentation across target images, but directly using the category name as the condition still yields unstable performance under severe domain shifts. We propose Reference Inversion for SAM3 (RI-SAM3) that leverages SAM3's large-scale vision-language pre-training to learn suitable textual tokens for each target category. RI-SAM3 comprises three core designs: (i) Bi-level Reference Inversion that learns complementary tokens before and after the frozen text encoder: the former remain anchored in SAM3's text space while the latter represent the category more flexibly; (ii) Layer-adaptive Textual Conditioning combines these tokens differently as object queries evolve across decoder layers; and (iii) Presence-aware Confidence Supervision that jointly supervises query confidence and target presence for reliable predictions. With SAM3 frozen, RI-SAM3 optimizes around 12K parameters only per category and it efficiently segments each target in a single forward pass with reusable textual conditioning without per-sample reference-target visual matching. Extensive experiments over multiple widely adopted benchmarks show that RI-SAM3 achieves superior performance consistently in CD-FSS tasks, together with strong robustness, efficiency, and generalization.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Vision and Language Reference for a Segment Anything Model for Few-Shot SegmentationJournal of Imaging · 2026
- Visual Memory and Textual Alignment for Cross-Modal Few-Shot SegmentationarXiv · 2026
- OneRef ‐Seg: A Single‐Reference Framework for Efficient Medical Image SegmentationInternational Journal of Imaging Systems and Technology · 2026
- Efficient SAM3 Adaptation for Multi-Class Semantic Segmentation via Dense Competitive RepresentationsarXiv · 2026
- Adapt, Generate, and Supervise: Geometry-Aware Diffusion-Guided SAM Framework for Remote Sensing Semantic SegmentationIEEE Transactions on Geoscience and Remote Sensing · 2026
- WeatherAgent-SAM: Text-Grounded Agentic Tool Selection for Robust SAM SegmentationApplied Sciences · 2026