cs.CVNov 20, 2026

ReSA: Preserving Reference-Specified Foreground in In-Context Segmentation

Authors: Dezhao Su, Bingxu Hou, Jingdi Lei, Lin Qian, Likai Wang, Yunyun Wan

Organizations: Fudan University · Zhejiang University · Nanyang Technological University · University of Manchester · 

Abstract

In-context segmentation uses annotated references to specify the target and its extent in a query image. Accurately transferring this reference-specified foreground requires recovering target regions while suppressing irrelevant predictions. We propose ReSA, a reference-guided framework that unifies query adaptation and mask selection through a shared reference kernel. ReSA leverages foreground and background reference prototypes to constrain prediction changes during adaptation and guide foreground selection through reference-weighted reconstruction. This shared guidance promotes consistent use of reference information across prediction refinement and mask formation. ReSA further selects among adapted predictions and aligns boundary refinement with the selected foreground threshold. We establish a theoretical bound connecting reference-response changes during adaptation and soft reconstruction. With a frozen visual encoder and lightweight test-time adaptation, ReSA requires no offline task training. Ablation studies demonstrate improved foreground retention and effective suppression of false-positive regions, while qualitative results show more complete masks with fewer isolated artifacts. Across ten object, part, and cross-domain segmentation benchmarks, ReSA achieves the highest average mIoU among the evaluated methods, reaching 62.6% in 1-shot and 71.8% in 5-shot.

Figures & tables

Appendix figures & tables29 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. FoRIS: Progressive Foreground Refinement for Training-Free In-Context Segmentation

    Sep 3, 2026Ming Hu, Jianfu Yin, Mingyu Dou +5Image SegmentationFew-Shot Semantic Segmentation

  2. REBASE: Reference-Background Subspace Elimination for Training-Free In-Context Segmentation

    Jul 10, 2026Mantha Sai Gopal, Jaison Saji Chacko, Harsh Nandwana +3Image SegmentationPromptable Image Segmentation

  3. Toward Robust In-Context Segmentation via Concept Guidance

    Jun 26, 2026Zhigang Chen, Xiawu Zheng, Rongrong JiText-Guided Image SegmentationPromptable Image Segmentation