A Simple Image Segmentation Framework via In-Context Examples

Yang Liu, Chenchen Jing, Hengtao Li, Muzhi Zhu, Hao Chen +2 more
2/3/2026

No official code found. Best implementation: aim-uofa/SINE (68 stars, last commit 2024-10-29).

Abstract

Recently, there have been explorations of generalist segmentation models that can effectively tackle a variety of image segmentation tasks within a unified in-context learning framework. However, these methods still struggle with task ambiguity in in-context segmentation, as not all in-context examples can accurately convey the task information. In order to address this issue, we present SINE, a simple image Segmentation framework utilizing in-context examples. Our approach leverages a Transformer encoder-decoder structure, where the encoder provides high-quality image representations, and the decoder is designed to yield multiple task-specific output masks to effectively eliminate task ambiguity. Specifically, we introduce an In-context Interaction module to complement in-context information and produce correlations between the target image and the in-context example and a Matching Transformer that uses fixed matching and a Hungarian algorithm to eliminate differences between different tasks. In addition, we have further perfected the current evaluation system for in-context image segmentation, aiming to facilitate a holistic appraisal of these models. Experiments on various segmentation tasks show the effectiveness of the proposed method.

View on arXivView PDF

Code Implementations(1)

aim-uofa/SINECommunity100%

[NeurIPS'24] A Simple Image Segmentation Framework via In-Context Examples

685Shell, PythonOct 6, 20241 years agoNOASSERTION
dinov2generalist-modelin-context-segmentationtask-ambiguity

Similar Papers

Cite this paper

@article{liu2026simple,
  title  = {A Simple Image Segmentation Framework via In-Context Examples},
  author = {Yang Liu and Chenchen Jing and Hengtao Li and Muzhi Zhu and Hao Chen and Xinlong Wang and Chunhua Shen},
  year   = {2026},
  eprint = {2410.04842},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2410.04842},
  url    = {https://arxiv.org/abs/2410.04842},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.04842.svg)](https://codeofpaper.com/paper/2410.04842)

Discussion