In-Context Matting
Not on the map. Why?
Abstract (arXiv)
We introduce in-context matting, a novel task setting of image matting. Given a reference image of a certain foreground and guided priors such as points, scribbles, and masks, in-context matting enables automatic alpha estimation on a batch of target images of the same foreground category, without additional auxiliary input. This setting marries good performance in auxiliary input-based matting and ease of use in automatic matting, which finds a good trade-off between customization and automation. To overcome the key challenge of accurate foreground matching, we introduce IconMatting, an in-context matting model built upon a pre-trained text-to-image diffusion model. Conditioned on inter- and intra-similarity matching, IconMatting can make full use of reference context to generate accurate target alpha mattes. To benchmark the task, we also introduce a novel testing dataset ICM-57, covering 57 groups of real-world images. Quantitative and qualitative results on the ICM-57 testing set show that IconMatting rivals the accuracy of trimap-based matting while retaining the automation level akin to automatic matting. Code is available at https://github.com/tiny-smart/in-context-matting
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 31 of its 48 references that are in the map. First posted on arXiv 23 Mar 2024.
Builds on
31 of 48 references.
References · 31
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
- 2023Segment Anythingcited by 8,234
- 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,974
- 2022Flamingo: a Visual Language Model for Few-Shot Learningcited by 4,386
- 2019Generative Modeling by Estimating Gradients of the Data Distributioncited by 4,101
- 2021GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Modelscited by 3,614
- 2022DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generationcited by 3,300
- 2023Emergent Correspondence from Image Diffusioncited by 446
- 2023Open-Vocabulary Panoptic Segmentation with Text-to-Image Diffusion Modelscited by 375
- 2022Images Speak in Images: A Generalist Painter for In-Context Visual Learningcited by 318
- 2022Visual Prompting via Image Inpaintingcited by 250
- 2020Real-Time High-Resolution Background Mattingcited by 173
19 more
- 2017Deep Image Mattingcited by 150
- 2020Background Matting: The World is Your Green Screencited by 105
- 2019Indices Matter: Learning to Index for Deep Image Mattingcited by 93
- 2020Bridging Composite and Real: Towards End-to-end Deep Image Mattingcited by 89
- 2020Mask Guided Matting via Progressive Refinement Networkcited by 84
- 2019Context-Aware Image Matting for Simultaneous Foreground and Alpha Estimationcited by 79
- 2020Natural Image Matting via Guided Contextual Attentioncited by 78
- 2018Semantic Human Mattingcited by 67
- 2021Privacy-Preserving Portrait Mattingcited by 60
- 2021Deep Automatic Natural Image Mattingcited by 59
- 2023ViTMatte: Boosting Image Matting with Pretrained Plain Vision Transformerscited by 56
- 2023Matte Anything: Interactive Natural Image Matting with Segment Anything Modelscited by 39
- 2023Matting Anythingcited by 31
- 2023Prompting Diffusion Representations for Cross-Domain Semantic Segmentationcited by 30
- 2022Rethinking Portrait Matting with Privacy Preservingcited by 25
- 2022Human Instance Matting via Mutual Guidance and Multi-Instance Refinementcited by 25
- 2022Referring Image Mattingcited by 22
- 2021Long-Range Feature Propagating for Natural Image Mattingcited by 13
- 2023Deep Image Matting: A Comprehensive Surveycited by 12
Built on by
Citing papers per year: 2025: 3.
3 papers.
- 2025Fewer Denoising Steps or Cheaper Per-Step Inference: Towards Compute-Optimal Diffusion Model Deploymentcited by 5
- 2025SDMatte: Grafting Diffusion Models for Interactive Mattingcited by 4
- 2025Capture Stage Matting: Challenges, Approaches, and Solutions for Offline and Real-Time Processingcited by 0
- 2025Fewer Denoising Steps or Cheaper Per-Step Inference: Towards Compute-Optimal Diffusion Model Deployment8 Aug 2025
- 2025SDMatte: Grafting Diffusion Models for Interactive Matting1 Aug 2025
- 2025Capture Stage Matting: Challenges, Approaches, and Solutions for Offline and Real-Time Processing10 Jul 2025
Similar, not cited
Close in wording, no citation either way
- 2026RenderMatte: Exact-Alpha Rendering and Group-Relative Alignment for Image Matting
- 2023DiffusionMat: Alpha Matting as Sequential Refinement Learning
- 2026VideoMaMa: Mask-Guided Video Matting via Generative Prior
- 2025VRMDiff: Text-Guided Video Referring Matting Generation of Diffusion
- 2024Matting by Generation
- 2025Generative Video Matting
- 2025Uncertainty-Guided Face Matting for Occlusion-Aware Face Transformation
- 2025Efficient Portrait Matte Creation With Layer Diffusion and Connectivity Priors