Show and Segment: Universal Medical Image Segmentation via In-Context Learning
Yunhe Gao, Di Liu, Zhuowei Li, Yunsheng Li, Dongdong Chen, Mu Zhou, Dimitris N. Metaxas
Abstract
Medical image segmentation remains challenging due to the vast diversity of anatomical structures, imaging modalities, and segmentation tasks. While deep learning has made significant advances, current approaches struggle to generalize as they require task-specific training or fine-tuning on unseen classes. We present Iris, a novel In-context Reference Image guided Segmentation framework that enables flexible adaptation to novel tasks through the use of reference examples without fine-tuning. At its core, Iris features a lightweight context task encoding module that distills task-specific information from reference context image-label pairs. This rich context embedding information is used to guide the segmentation of target objects. By decoupling task encoding from inference, Iris supports diverse strategies from one-shot inference and context example ensemble to object-level context example retrieval and in-context tuning. Through comprehensive evaluation across twelve datasets, we demonstrate that Iris performs strongly compared to task-specific models on in-distribution tasks. On seven held-out datasets, Iris shows superior generalization to out-of-distribution data and unseen classes. Further, Iris's task encoding module can automatically discover anatomical relationships across datasets and modalities, offering insights into medical objects without explicit anatomical supervision.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 5f5d311b-b925-4f3a-b90d-a5f0f7c5a6d5Cited by top-tier papers6
- MedCLIPSeg: Probabilistic Vision-Language Adaptation for Data-Efficient and Generalizable Medical Image SegmentationTaha Koleilat, Hojat Asgariandehkordi, Omid Nejatimanzari, Berardino Barile et al.CVPR 2026 · 4 citations
- MedSAMix: A Training-Free Model Merging Approach for Medical Image SegmentationYanwu Yang, Guinan Su, Jiesi Hu, Francesco Sammarco et al.AAAI 2026 · 3 citations
- K-Prism: A Knowledge-Guided and Prompt Integrated Universal Medical Image Segmentation ModelBangwei Guo, Yunhe Gao, Meng Ye, Difei Gu et al.ICLR 2026 · 2 citations
- Medverse: A Universal Model for Full-Resolution 3D Medical Image Segmentation, Transformation and EnhancementJiesi Hu, Jianfeng Cao, Yanwu Yang, Chenfei Ye et al.AAAI 2026 · 2 citations
- Pancakes: Consistent Multi-Protocol Image Segmentation Across Biomedical DomainsMarianne Rakic, Siyu Gai, Etienne Chollet, John V. Guttag et al.NeurIPS 2025 · 1 citation
Builds on14
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- Large Batch Optimization for Deep Learning: Training BERT in 76 minutesYang You, Jing Li, Sashank J. Reddi, Jonathan Hseu et al.ICLR 2020 · 1,170 citations
- CLIP-Driven Universal Model for Organ Segmentation and Tumor DetectionJie Liu, Yixiao Zhang, Jieneng Chen, Junfei Xiao et al.ICCV 2023 · 336 citations
- Personalize Segment Anything Model with One ShotRenrui Zhang, Zhengkai Jiang, Ziyu Guo, Shilin Yan et al.ICLR 2024 · 333 citations
- What Makes Good Examples for Visual In-Context Learning?Yuanhan Zhang, Kaiyang Zhou, Ziwei LiuNeurIPS 2023 · 219 citations
Related papers
- UniverSeg: Universal Medical Image SegmentationVictor Ion Butoi, Jose Javier Gonzalez Ortiz, Tianyu Ma, Mert R. Sabuncu et al.ICCV 2023 · 163 citations
- A Simple Image Segmentation Framework via In-Context ExamplesYang Liu, Chenchen Jing, Hengtao Li, Muzhi Zhu et al.NeurIPS 2024 · 29 citations
- EIR-SDG: Explore Invariant Representation for Single-source Domain Generalization in Medical Image SegmentationZiwei Niu, Shiao Xie, Ziyue Wang, Yen-Wei Chen et al.ACM MM 2025 · 1 citation
- Training Like a Medical Resident: Context-Prior Learning Toward Universal Medical Image SegmentationYunhe GaoCVPR 2024
- Retriever Encoder Selection Matters for In-Context Learning-based Medical SegmentationFan Wang, Zhongyi Han, Yongshun Gong, Yilong YinAAAI 2026
