NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DiffusionInst: Diffusion Model for Instance Segmentation

Zhangxuan Gu, Haoxing Chen, Zhuoer Xu, Jun Lan, Changhua Meng, Weiqiang Wang · DOI

TL;DR

This paper introduces DiffusionInst, a novel framework that adapts diffusion models for instance segmentation. By treating instance segmentation as a "noise-to-filter" denoising process, DiffusionInst achieves competitive performance on standard benchmarks, offering a new generative approach to this discriminative task.

What Problem Does This Paper Address?

Instance segmentation, the task of identifying and delineating each individual object instance within an image with a precise mask, is a fundamental problem in computer vision. Existing methods typically fall into two categories: two-stage (detect then segment) and single-stage (direct prediction). While these approaches have seen significant progress, they often rely on complex pipelines, anchor-based mechanisms, or non-maximum suppression (NMS) for post-processing. More recent query-based methods have simplified this by using learnable queries and bipartite matching, effectively framing the problem as a "noise-to-mask" scheme. However, the authors observe that these query-based methods can be seen as a specific case of diffusion models. This leads to the core question: can we leverage the full power of diffusion models, known for their generative capabilities, for the discriminative task of instance segmentation, and can this offer advantages over existing methods?

Methods

DiffusionInst adapts the diffusion model paradigm for instance segmentation. Instead of generating images, the model learns to denoise "instance-aware filters" (vectors) from noisy inputs to produce instance masks.

Here's a breakdown of the key components:

  • Noise-to-Filter Denoising: The core idea is to frame instance segmentation as a generative process. During training, ground truth instance masks are corrupted with noise, and the model learns to reverse this process, predicting clean "filters" that represent the instances.
  • Instance-Aware Filters: Unlike traditional methods that might directly predict masks or bounding boxes, DiffusionInst uses instance-aware filters. These filters, combined with a shared mask feature map from a backbone network (like FPN), are used to dynamically reconstruct instance masks.
  • Dynamic Mask Head: A specialized mask head is employed. It takes the instance-agnostic mask feature map and the predicted instance-specific filter to generate the final binary mask for each instance. This approach is inspired by methods like CondInst.
  • Leveraging DiffusionDet: The framework builds upon DiffusionDet, a diffusion model for object detection. DiffusionInst inherits its noise-to-box denoising pipeline but extends it to handle filters for segmentation.
  • Multi-Step Denoising: Similar to standard diffusion models, DiffusionInst can perform inference in multiple steps, gradually refining the predicted filters and masks. This contrasts with query-based methods that typically perform a single forward pass.

Datasets

The paper evaluates DiffusionInst on two widely used instance segmentation datasets:

  • COCO (Common Objects in Context): A standard benchmark with 80 object categories. The authors use the train2017 split for training and val2017 for ablation studies, reporting main results on test-dev.
  • LVIS (Large Vocabulary Instance Segmentation): A more challenging dataset with a long-tail distribution of 1203 categories and over 2 million instance masks. This dataset is used to test the model's robustness on a wider range of object instances.

Key Insights and Ideas

  • Diffusion Models for Discriminative Tasks: The paper demonstrates that diffusion models, primarily known for generation, can be effectively adapted for discriminative tasks like instance segmentation, achieving competitive results.
  • "Noise-to-Filter" as a Novel Paradigm: By reframing instance segmentation as a noise-to-filter denoising process, DiffusionInst offers a new generative perspective that differs from existing detection-centric or query-based approaches.
  • Instance-Aware Filters for Mask Reconstruction: Using instance-specific filters to dynamically generate masks, in conjunction with multi-scale features, proves to be an effective strategy for capturing instance details.
  • Potential for Reduced Inductive Bias: The diffusion process, by starting from noisy inputs and iteratively refining them, potentially reduces the reliance on strong inductive biases inherent in some traditional methods (e.g., RPNs).
  • Multi-Step Denoising Benefits: While not always leading to dramatic gains, the multi-step denoising capability inherent in diffusion models offers a gradual refinement process that can be beneficial.

Key Results

DiffusionInst achieves competitive performance on both COCO and LVIS datasets, often outperforming or matching state-of-the-art methods, especially when using stronger backbones like Swin Transformers.

  • COCO Validation: With a ResNet-50 backbone and a 1x schedule, DiffusionInst achieves 30.4% AP, improving to 37.3% AP with a 5x schedule. Using a Swin-L backbone, it reaches 47.8% AP, outperforming QueryInst (44.6% AP).
  • COCO Test-Dev: Similar strong performance is observed, with DiffusionInst achieving 48.3% AP with a Swin-Large backbone.
  • LVIS Dataset: DiffusionInst demonstrates strong performance, particularly with Swin-Base as the backbone, outperforming other methods on this challenging long-tail dataset.
  • FPS: The paper notes that DiffusionInst is slower than standard methods, with around 15 FPS on an A100 GPU for a multi-step denoising process.

Limitations and Future Work

The authors acknowledge several limitations and suggest future research directions:

  • Reliance on Bounding Boxes: Currently, DiffusionInst still relies on bounding boxes for training, which can lead to slightly poorer performance on small instances. Future work could explore training without this dependency.
  • Limited Gains from Multi-Step Denoising: The performance improvement from multi-step denoising is modest. Developing more effective sampling strategies beyond DDIM could be beneficial.
  • Longer Training and Slower Inference: DiffusionInst requires more training epochs and has slower inference speeds compared to many standard methods. Research into faster training schemes and more efficient denoising processes is needed.
  • Instance Context: The model's performance on occluded or small instances suggests a need for better utilization of instance context, potentially through improved backbone features or larger receptive fields.
  • Exploring Generative Capabilities: The authors suggest that further exploration of the generative aspects of diffusion models could lead to even more powerful frameworks for challenging discriminative tasks.

Summary updated

BibTeX
@inproceedings{gu2022diffusioninst,
  author = {Zhangxuan Gu and Haoxing Chen and Zhuoer Xu and Jun Lan and Changhua Meng and Weiqiang Wang},
  title = {{DiffusionInst: Diffusion Model for Instance Segmentation}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2022},
  doi = {10.1109/icassp48485.2024.10447191},
}
Figure