A Simple Image Segmentation Framework via In-Context Examples
Yang Liu, Chenchen Jing, Hengtao Li, Muzhi Zhu, Hao Chen, Xinlong Wang, Chunhua Shen
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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
12 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Unified Open-World Segmentation with Multi-Modal Prompts cites High-Resolution Image Synthesis with Latent Diffusion Models
- Unified Open-World Segmentation with Multi-Modal Prompts cites Segment Anything
- Unified Open-World Segmentation with Multi-Modal Prompts cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Unified Open-World Segmentation with Multi-Modal Prompts cites Learning Transferable Visual Models From Natural Language Supervision
- Unified Open-World Segmentation with Multi-Modal Prompts cites Unleashing the Potential of the Diffusion Model in Few-shot Semantic Segmentation
- INSID3: Training-Free In-Context Segmentation with DINOv3 cites High-Resolution Image Synthesis with Latent Diffusion Models
- INSID3: Training-Free In-Context Segmentation with DINOv3 cites Language Models are Few-Shot Learners
- INSID3: Training-Free In-Context Segmentation with DINOv3 cites Learning Transferable Visual Models From Natural Language Supervision
- INSID3: Training-Free In-Context Segmentation with DINOv3 cites Unleashing the Potential of the Diffusion Model in Few-shot Semantic Segmentation
- INSID3: Training-Free In-Context Segmentation with DINOv3 cites SANSA: Unleashing the Hidden Semantics in SAM2 for Few-Shot Segmentation
- Segment Anything cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Segment Anything cites Language Models are Few-Shot Learners
- Segment Anything cites Learning Transferable Visual Models From Natural Language Supervision
- An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale cites Language Models are Few-Shot Learners
- Training-free Detection of AI-generated images via Cropping Robustness cites High-Resolution Image Synthesis with Latent Diffusion Models
- Training-free Detection of AI-generated images via Cropping Robustness cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Training-free Detection of AI-generated images via Cropping Robustness cites Learning Transferable Visual Models From Natural Language Supervision
- Learning Transferable Visual Models From Natural Language Supervision cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Learning Transferable Visual Models From Natural Language Supervision cites Language Models are Few-Shot Learners
- Unleashing the Potential of the Diffusion Model in Few-shot Semantic Segmentation cites High-Resolution Image Synthesis with Latent Diffusion Models
- Unleashing the Potential of the Diffusion Model in Few-shot Semantic Segmentation cites Segment Anything
- SANSA: Unleashing the Hidden Semantics in SAM2 for Few-Shot Segmentation cites High-Resolution Image Synthesis with Latent Diffusion Models
- SANSA: Unleashing the Hidden Semantics in SAM2 for Few-Shot Segmentation cites Segment Anything
- SANSA: Unleashing the Hidden Semantics in SAM2 for Few-Shot Segmentation cites Language Models are Few-Shot Learners
- SANSA: Unleashing the Hidden Semantics in SAM2 for Few-Shot Segmentation cites Learning Transferable Visual Models From Natural Language Supervision
- SANSA: Unleashing the Hidden Semantics in SAM2 for Few-Shot Segmentation cites Unleashing the Potential of the Diffusion Model in Few-shot Semantic Segmentation
Cited by top-tier papers12
- Unleashing the Potential of the Diffusion Model in Few-shot Semantic SegmentationMuzhi Zhu, Yang Liu, Zekai Luo, Chenchen Jing et al.NeurIPS 2024 · 31 citations
- INSID3: Training-Free In-Context Segmentation with DINOv3Claudia Cuttano, Gabriele Trivigno, Christoph Reich, Daniel Cremers et al.CVPR 2026 · 13 citations
- Training-free Detection of AI-generated images via Cropping RobustnessSungik Choi, Hankook Lee, Moontae LeeNeurIPS 2025 · 11 citations
- SANSA: Unleashing the Hidden Semantics in SAM2 for Few-Shot SegmentationClaudia Cuttano, Gabriele Trivigno, Giuseppe Averta, Carlo MasoneNeurIPS 2025 · 9 citations
- Unified Open-World Segmentation with Multi-Modal PromptsYang Liu, Yufei Yin, Chenchen Jing, Muzhi Zhu et al.ICCV 2025 · 8 citations
Builds on31
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- Segment AnythingAlexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao et al.ICCV 2023 · 13,211 citations
- High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser et al.CVPR 2022 · 13,123 citations
Related papers
- Show and Segment: Universal Medical Image Segmentation via In-Context LearningYunhe Gao, Di Liu, Zhuowei Li, Yunsheng Li et al.CVPR 2025
- SegGPT: Towards Segmenting Everything In ContextXinlong Wang, Xiaosong Zhang, Yue Cao, Wen Wang et al.ICCV 2023 · 188 citations
- Tyche: Stochastic in-Context Learning for Medical Image SegmentationMarianne Rakic, Hallee E. Wong, Jose Javier Gonzalez Ortiz, Beth A. Cimini et al.CVPR 2024 · 9 citations
- CDICS: Delving Into Fine-Grained Attribute for In-Context Segmentation via Compositional Prompts and Phased DecouplingZhiyu Li, Dianmo Sheng, Qi Chu, Shilong Chen et al.CVPR 2026
- Skeleton-in-Context: Unified Skeleton Sequence Modeling with In-Context LearningXinshun Wang, Zhongbin Fang, Xia Li, Xiangtai Li et al.CVPR 2024 · 12 citations
