Explore In-Context Segmentation via Latent Diffusion Models
On the map: Diffusion models → Medical imaging and segmentation
Abstract (arXiv)
In-context segmentation has drawn increasing attention with the advent of vision foundation models. Its goal is to segment objects using given reference images. Most existing approaches adopt metric learning or masked image modeling to build the correlation between visual prompts and input image queries. This work approaches the problem from a fresh perspective - unlocking the capability of the latent diffusion model (LDM) for in-context segmentation and investigating different design choices. Specifically, we examine the problem from three angles: instruction extraction, output alignment, and meta-architectures. We design a two-stage masking strategy to prevent interfering information from leaking into the instructions. In addition, we propose an augmented pseudo-masking target to ensure the model predicts without forgetting the original images. Moreover, we build a new and fair in-context segmentation benchmark that covers both image and video datasets. Experiments validate the effectiveness of our approach, demonstrating comparable or even stronger results than previous specialist or visual foundation models. We hope our work inspires others to rethink the unification of segmentation and generation.
Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). Placed in Medical imaging and segmentation, one of 14 directions in Diffusion models. Builds on 98 of its 108 references that are in the map. First posted on arXiv 14 Mar 2024.
Builds on
98 of 108 references.
Closest ancestors · 11
Same direction, newest first
- 2024A Simple Latent Diffusion Approach for Panoptic Segmentation and Mask Inpainting18 Jan
- 2023UniGS: Unified Representation for Image Generation and Segmentation4 Dec
- 2023MosaicFusion: Diffusion Models as Data Augmenters for Large Vocabulary Instance Segmentation22 Sep
- 2023SLiMe: Segment Like Me6 Sep
- 2023DifFSS: Diffusion Model for Few-Shot Semantic Segmentation3 Jul
- 2023MaskDiff: Modeling Mask Distribution with Diffusion Probabilistic Model for Few-Shot Instance Segmentation9 Mar
- 2023Open-Vocabulary Panoptic Segmentation with Text-to-Image Diffusion Models8 Mar
- 2023Open-vocabulary Object Segmentation with Diffusion Models12 Jan
- 2022DiffusionInst: Diffusion Model for Instance Segmentation6 Dec
- 2021Label-Efficient Semantic Segmentation with Diffusion Models6 Dec
- 2021SegDiff: Image Segmentation with Diffusion Probabilistic Models1 Dec
Other references · 87
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020Denoising Diffusion Probabilistic Modelscited by 21,076
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
- 2014Microsoft COCO: Common Objects in Contextcited by 17,608
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2020Denoising Diffusion Implicit Modelscited by 9,781
- 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 9,122
- 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,255
- 2023Segment Anythingcited by 8,234
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,403
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2022Scalable Diffusion Models with Transformerscited by 6,054
38 more
- 2022Classifier-Free Diffusion Guidancecited by 5,847
- 2023Adding Conditional Control to Text-to-Image Diffusion Modelscited by 5,503
- 2023SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesiscited by 4,356
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,236
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,915
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,795
- 2022InstructPix2Pix: Learning to Follow Image Editing Instructionscited by 2,611
- 2022Prompt-to-Prompt Image Editing with Cross Attention Controlcited by 2,431
- 2021BEiT: BERT Pre-Training of Image Transformerscited by 2,375
- 2022An Image is Worth One Word: Personalizing Text-to-Image Generation using Textual Inversioncited by 2,245
- 2021SDEdit: Guided Image Synthesis and Editing with Stochastic Differential Equationscited by 1,937
- 2021Image Super-Resolution via Iterative Refinementcited by 1,511
- 2022RePaint: Inpainting using Denoising Diffusion Probabilistic Modelscited by 1,430
- 2021Palette: Image-to-Image Diffusion Modelscited by 1,300
- 2021BitFit: Simple Parameter-efficient Fine-tuning for Transformer-based Masked Language-modelscited by 1,245
- 2021Cascaded Diffusion Models for High Fidelity Image Generationcited by 1,163
- 2021SimMIM: A Simple Framework for Masked Image Modelingcited by 1,153
- 2022OFA: Unifying Architectures, Tasks, and Modalities Through a Simple Sequence-to-Sequence Learning Frameworkcited by 745
- 2021Diffusion Probabilistic Models for 3D Point Cloud Generationcited by 735
- 2022LION: Latent Point Diffusion Models for 3D Shape Generationcited by 553
- 20213D Shape Generation and Completion through Point-Voxel Diffusioncited by 516
- 2019PANet: Few-Shot Image Semantic Segmentation with Prototype Alignmentcited by 449
- 2022Unified-IO: A Unified Model for Vision, Language, and Multi-Modal Taskscited by 421
- 2022DiffusionDet: Diffusion Model for Object Detectioncited by 354
- 2020Parameter-Efficient Transfer Learning with Diff Pruningcited by 352
- 2017One-Shot Learning for Semantic Segmentationcited by 337
- 2022Images Speak in Images: A Generalist Painter for In-Context Visual Learningcited by 318
- 2022Flexible Diffusion Modeling of Long Videoscited by 294
- 2022Exploring Visual Prompts for Adapting Large-Scale Modelscited by 274
- 2020Prior Guided Feature Enrichment Network for Few-Shot Segmentationcited by 271
- 2023Unleashing Text-to-Image Diffusion Models for Visual Perceptioncited by 269
- 2021DatasetGAN: Efficient Labeled Data Factory with Minimal Human Effortcited by 264
- 2022Visual Prompting via Image Inpaintingcited by 250
- 2023Personalize Segment Anything Model with One Shotcited by 250
- 2022Diffusion Probabilistic Modeling for Video Generationcited by 238
- 2023MOSE: A New Dataset for Video Object Segmentation in Complex Scenescited by 234
- 2023MeViS: A Large-scale Benchmark for Video Segmentation with Motion Expressionscited by 228
- 2021Adaptive Prototype Learning and Allocation for Few-Shot Segmentationcited by 207
50 most cited of 87 All 87 (JSON)
Built on by
Citing papers per year: 2024: 3; 2025: 5; 2026: 4.
12 papers.
- 2024SemFlow: Binding Semantic Segmentation and Image Synthesis via Rectified Flowcited by 20
- 2024Unleashing the Potential of the Diffusion Model in Few-shot Semantic Segmentationcited by 16
- 2024Unleashing In-context Learning of Autoregressive Models for Few-shot Image Manipulationcited by 13
- 2025From Ideal to Real: Unified and Data-Efficient Dense Prediction for Real-World Scenarioscited by 3
- 2025Human-in-Context: Unified Cross-Domain 3D Human Motion Modeling via In-Context Learningcited by 3
- 2025Towards Predicting Any Human Trajectory In Contextcited by 2
- 2026VIOLA: Towards Video In-Context Learning with Minimal Annotationscited by 2
- 2025Prior-Guided Residual Diffusion: Calibrated and Efficient Medical Image Segmentationcited by 1
- 2025Guiding Visual Autoregressive Models through Spectrum Weakeningcited by 0
- 2026Rethinking Vector Field Learning for Generative Segmentationcited by 0
- 2026Toward Robust In-Context Segmentation via Concept Guidancecited by 0
- 2026Representation Learning in Diffusion and Flow-based Model: An Application Aspectcited by 0
- 2026Representation Learning in Diffusion and Flow-based Model: An Application Aspect25 Aug 2026
- 2026Toward Robust In-Context Segmentation via Concept Guidance26 Jun 2026
- 2026Rethinking Vector Field Learning for Generative Segmentation19 Mar 2026
- 2026VIOLA: Towards Video In-Context Learning with Minimal Annotations22 Jan 2026
- 2025Guiding Visual Autoregressive Models through Spectrum Weakening28 Nov 2025
- 2025Prior-Guided Residual Diffusion: Calibrated and Efficient Medical Image Segmentation1 Sep 2025
- 2025Human-in-Context: Unified Cross-Domain 3D Human Motion Modeling via In-Context Learning14 Aug 2025
- 2025From Ideal to Real: Unified and Data-Efficient Dense Prediction for Real-World Scenarios25 Jun 2025
- 2025Towards Predicting Any Human Trajectory In Context1 Jun 2025
- 2024Unleashing In-context Learning of Autoregressive Models for Few-shot Image Manipulation2 Dec 2024
- 2024Unleashing the Potential of the Diffusion Model in Few-shot Semantic Segmentation3 Oct 2024
- 2024SemFlow: Binding Semantic Segmentation and Image Synthesis via Rectified Flow30 May 2024
Similar, not cited
Close in wording, no citation either way
- 2024Zero-Shot Video Semantic Segmentation based on Pre-Trained Diffusion Models
- 2023Denoising Diffusion Semantic Segmentation with Mask Prior Modeling
- 2025G4Seg: Generation for Inexact Segmentation Refinement with Diffusion Models
- 2025Stable Diffusion Models are Secretly Good at Visual In-Context Learning
- 2023LD-ZNet: A Latent Diffusion Approach for Text-Based Image Segmentation
- 2025SeeDiff: Off-the-Shelf Seeded Mask Generation from Diffusion Models
- 2023Prompting Diffusion Representations for Cross-Domain Semantic Segmentation
- 2026Diffusion Model as a Generalist Segmentation Learner