SEGIC: Unleashing the Emergent Correspondence for In-Context Segmentation
Lingchen Meng, Shiyi Lan, Hengduo Li, Jose M. Alvarez, Zuxuan Wu, Yu-Gang Jiang
TL;DR
SEGIC presents an end-to-end in-context segmentation framework that exploits emergent dense correspondences within a frozen vision foundation model to transfer segmentation knowledge from a few in-context exemplars. By encoding in-context information as geometric, visual, and meta instructions and decoding with a lightweight query-based mask decoder, SEGIC segments novel targets without backbone fine-tuning. It achieves state-of-the-art results on one-shot benchmarks such as COCO-20^i, FSS-1000, and LVIS-92^i, and demonstrates competitive performance on video object segmentation and open-vocabulary segmentation, all with data-efficient training. Ablations reveal the importance of high-resolution pre-training, the content of in-context instructions, and augmentation strategies, underscoring SEGIC’s potential for universal, low-cost segmentation across tasks.
Abstract
In-context segmentation aims at segmenting novel images using a few labeled example images, termed as "in-context examples", exploring content similarities between examples and the target. The resulting models can be generalized seamlessly to novel segmentation tasks, significantly reducing the labeling and training costs compared with conventional pipelines. However, in-context segmentation is more challenging than classic ones requiring the model to learn segmentation rules conditioned on a few samples. Unlike previous work with ad-hoc or non-end-to-end designs, we propose SEGIC, an end-to-end segment-in-context framework built upon a single vision foundation model (VFM). In particular, SEGIC leverages the emergent correspondence within VFM to capture dense relationships between target images and in-context samples. As such, information from in-context samples is then extracted into three types of instructions, i.e. geometric, visual, and meta instructions, serving as explicit conditions for the final mask prediction. SEGIC is a straightforward yet effective approach that yields state-of-the-art performance on one-shot segmentation benchmarks. Notably, SEGIC can be easily generalized to diverse tasks, including video object segmentation and open-vocabulary segmentation. Code will be available at https://github.com/MengLcool/SEGIC.
