Skip to main content
QUICK REVIEW

[Paper Review] SegDiff: Image Segmentation with Diffusion Probabilistic Models

Tomer Amit, Tal Shaharbany|arXiv (Cornell University)|Dec 1, 2021
Advanced Neural Network ApplicationsComputer Science47 references13 citations
TL;DR

This paper introduces SegDiff, a novel diffusion probabilistic model for end-to-end image segmentation without a pre-trained backbone. It conditions the denoising process by summing encoded features from the input image and current segmentation prediction, iteratively refining the output; the method achieves state-of-the-art performance on Cityscapes, Vaihingen, and MoNuSeg benchmarks by leveraging multiple stochastic generations and model averaging.

ABSTRACT

Diffusion Probabilistic Methods are employed for state-of-the-art image generation. In this work, we present a method for extending such models for performing image segmentation. The method learns end-to-end, without relying on a pre-trained backbone. The information in the input image and in the current estimation of the segmentation map is merged by summing the output of two encoders. Additional encoding layers and a decoder are then used to iteratively refine the segmentation map, using a diffusion model. Since the diffusion model is probabilistic, it is applied multiple times, and the results are merged into a final segmentation map. The new method produces state-of-the-art results on the Cityscapes validation set, the Vaihingen building segmentation benchmark, and the MoNuSeg dataset.

Motivation & Objective

  • To extend diffusion probabilistic models—previously used mainly for image generation—to the task of image segmentation, where ground truth is unique and deterministic.
  • To eliminate reliance on pre-trained backbones by training the entire model end-to-end from scratch.
  • To develop a novel conditioning mechanism that fuses input image and current segmentation estimate via feature summation rather than concatenation.
  • To improve model calibration and accuracy by generating multiple stochastic outputs and averaging them.
  • To demonstrate state-of-the-art performance across diverse segmentation benchmarks, especially on small datasets.

Proposed method

  • The model uses a U-Net architecture as the denoising network, with two separate encoders: one for the input image I and one for the current segmentation estimate xₜ.
  • Features from the two encoders are summed early in the U-Net encoder path, enabling joint modeling of image and segmentation information.
  • The denoising network predicts the next state xₜ₋₁ using the summed features, iteratively refining the segmentation map over T diffusion steps.
  • The model is trained using a variational inference framework to minimize the reverse process loss, optimizing the denoising objective.
  • Multiple independent generations are performed per input, and the final segmentation is obtained by averaging the results to improve robustness and accuracy.
  • A residual-like conditioning mechanism is employed, where the input image is encoded and added to the current prediction’s representation, rather than concatenated.

Experimental results

Research questions

  • RQ1Can diffusion probabilistic models be effectively applied to image segmentation, a task with a unique ground truth, rather than just generation tasks with multiple plausible outputs?
  • RQ2How can the input image be effectively conditioned in a diffusion model for segmentation, especially when avoiding pre-trained backbones?
  • RQ3Does generating multiple stochastic samples and averaging them improve segmentation accuracy and model calibration compared to a single deterministic prediction?
  • RQ4How does the choice of feature fusion mechanism (e.g., sum vs. concatenation) impact performance in the segmentation diffusion setting?
  • RQ5What is the trade-off between inference speed (number of diffusion steps) and segmentation accuracy in this new framework?

Key findings

  • SegDiff achieves state-of-the-art performance on the Cityscapes validation set, with a mIoU improvement over prior methods, especially on challenging categories like 'bus'.
  • On the Vaihingen building segmentation benchmark, the method outperforms existing approaches by a significant margin, particularly when using feature summation over concatenation for conditioning.
  • The model achieves strong results on the MoNuSeg dataset for nuclei segmentation, demonstrating generalization across diverse medical imaging domains.
  • Reducing the number of diffusion steps from 100 to 25 results in only a 1–2 mIoU drop in performance, enabling up to fourfold speedup with minimal accuracy loss.
  • The number of RRDB blocks has a limited impact on performance, with optimal configurations yielding less than 1 mIoU difference between best and worst settings.
  • Averaging nine generated samples significantly improves accuracy and model calibration, confirming the benefit of stochastic sampling in deterministic tasks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.