ReSA: Preserving Reference-Specified Foreground in In-Context Segmentation
Dezhao Su, Bingxu Hou, Jingdi Lei, Lin Qian, Likai Wang, Yunyun Wan
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.
Create a lesson
Related papers
INCISE: Training-Free In-Context Segmentation of Surgical Videos
Shared title terminology · Yifan Xu, Bofang Zheng, Guangyu Meng et al.
CanopyFormer: Attention-Guided SegFormer for Explainable Forest Cover Segmentation
Shared title terminology · Dhinanjaya Fernando, Dinura Ginige, Kalana Lakshan et al.
Segment Everything, Materialize Nothing: Exact Streaming Inference for Many-Class 3D Segmentation
Shared title terminology · Fabian Isensee, Jakob Wasserthal, Lalith Kumar Shiyam Sundar et al.
PGS-PCQA: Perceptually Gated Synthetic Supervision for No-Reference Point Cloud Quality Assessment
Shared title terminology · Qinyuan Fan, Meng Zhang, Clemens Gühmann
Borrow the Style, Follow the Prompt: Progressive Reference-Guided Stylization
Shared title terminology · Yu Lin, Zi-Jun Wang, Zhilin Zhao
PP-CFG: Polarity-Preserving Guidance for Controllable Few-Step Image and Video Generation
Shared title terminology · Junyi He, Xu Peng, Chengming Xu et al.