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

Factorized Diffusion Architectures for Unsupervised Image Generation and Segmentation

Xin Yuan, Michael Maire

The Challenge of Unsupervised Segmentation

Image segmentation—partitioning an image into meaningful regions like foreground and background—typically requires massive datasets of painstakingly hand-drawn pixel labels. While unsupervised learning is the holy grail for this task, it remains incredibly difficult.

Recently, researchers have realized that generative models, such as Denoising Diffusion Probabilistic Models (DDPMs), learn rich, high-level semantic representations of images simply by learning to generate them. However, extracting these representations for segmentation usually requires a second training stage, fine-tuning with a small set of labels, complex post-hoc analysis of attention maps, or custom loss functions.

This paper asks a fundamental question: Can we design a generative model that outputs explicit, high-quality segmentation masks directly from scratch, using only the standard generation objective?

The Factorized Diffusion Model

The authors introduce a novel "factorized" architecture for diffusion models that learns to simultaneously generate and segment images without any human labels. Standard DDPMs use a U-Net architecture to iteratively predict and remove noise from an image. The authors modify this architecture by introducing a structural bottleneck:

  1. Mask Generator: Halfway through the U-Net, a dedicated branch predicts $K$ soft region masks (e.g., separating an image into foreground, background, and contours).
  2. Parallel Decoding: Instead of a single decoder finishing the U-Net, the architecture splits into multiple parallel, weight-shared decoders. Each decoder is responsible for denoising only one of the masked regions.
  3. Recombination: The outputs of these parallel decoders are masked and summed together to form the final noise prediction.

The crucial detail: This entire system is trained end-to-end using only the standard DDPM noise-prediction loss. There are no labels and no extra mathematical penalties forcing the masks to look a certain way.

Overview of the Factorized Diffusion architecture and qualitative results for both generation and segmentation.

To segment a real, novel image after training, the system simply adds a bit of noise to the image, runs it through the network once, and reads the output of the Mask Generator.

Key Insights

  • Architecture as a Constraint: You don't always need complex, custom loss functions to learn specific representations. By engineering a clever architectural bottleneck (parallel decoding), you can force a network to learn a specific task (segmentation) because it's the most efficient way to solve its primary job (denoising).
  • Generation and Segmentation are Synergistic: Forcing the model to generate different semantic regions independently doesn't just give you segmentation for free; it actually improves the quality of the generated images. The structural prior helps the generative model better understand the data distribution.
  • Zero-Shot Video Segmentation: Even though the model is trained entirely on static images, the learned representations are robust enough to accurately segment moving objects in videos (like the DAVIS-2017 dataset) frame-by-frame without any temporal training.

Performance and Results

The authors trained and evaluated their model on several standard computer vision datasets, including Oxford Flowers, CUB (Birds), FFHQ, CelebAMask-HQ, and ImageNet.

  • State-of-the-Art Unsupervised Segmentation: The model outperforms existing unsupervised baselines. On the Flower dataset, it achieved 90.1% pixel accuracy (vs. 89.6% for the next best). On the CUB bird dataset, it hit 89.6% accuracy.
  • Improved Image Generation: The factorized architecture consistently achieved better Fréchet Inception Distance (FID) scores—meaning higher quality, more realistic images—than standard DDPM U-Nets. For example, on FFHQ-64, FID dropped from 13.72 (baseline) to 12.02.
  • Speed: Unlike some generative extraction methods that require iterative optimization, segmenting a real image with this model requires only a single forward pass (one denoising step), making it highly efficient.

Limitations and Future Work

The primary experiments in the paper focus on relatively simple partitions, specifically 2-class (foreground/background) or 3-class (skin/hair/background) segmentations. Scaling this exact flat architecture to highly complex scenes with dozens of distinct, overlapping objects remains a challenge.

To address complex scenes, the authors propose a "Hierarchical Factorized Diffusion" architecture. In a preliminary experiment using 3D Shapes, they show that nesting these factorized modules can allow the model to progressively refine segmentations from coarse (e.g., object vs. background) to fine (e.g., parts of the object). Developing this hierarchical approach is a highly promising direction for future research.

Summary updated

BibTeX
@inproceedings{yuan2024factorized,
  author = {Xin Yuan and Michael Maire},
  title = {{Factorized Diffusion Architectures for Unsupervised Image Generation and Segmentation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=7G362fgJFd},
}
Figure