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

Compositional Image Decomposition with Diffusion Models

Jocelin Su, Nan Liu, Yanbo Wang, Joshua B. Tenenbaum, Yilun Du

Abstract

Human perception naturally decomposes visual scenes into independent factors such as objects, lighting, and textures. Replicating this ability in artificial intelligence has been a persistent challenge. We present Decomp Diffusion, an unsupervised framework introduced at ICML 2024 that decomposes images into constituent components using diffusion models. By representing each component with its own diffusion model and training the system to reconstruct images through the summation of denoising outputs, Decomp Diffusion achieves high-fidelity reconstruction and zero-shot composition. Our results demonstrate superior performance over existing energy-based and object-centric methods across diverse datasets, including CelebA-HQ and CLEVR.

Introduction

Understanding compositionality—the idea that a scene is a sum of independent parts—is fundamental to computer vision. Previous approaches generally categorized into global factor methods (e.g., $\beta$-VAEs) or object-centric methods (e.g., Slot Attention). While the former captures abstract concepts like hair color, they struggle with multiple object instances. The latter excels at segmentation but often fails to model global context like shadows or inter-object reflections.

Recent work explored Energy-Based Models (EBMs) for composition, but these are notoriously difficult to train, requiring expensive second-order gradients and often yielding blurry results. Decomp Diffusion addresses these limitations by reframing diffusion models as high-quality EBMs, enabling stable, unsupervised decomposition of complex scenes.

Methods

Decomp Diffusion leverages the insight that the denoising process in diffusion models can be viewed as an energy-minimization task. The architecture consists of a latent encoder and a set of $K$ denoising functions.

  1. Latent Encoding: An input image is mapped to $K$ low-dimensional latent vectors ($z_1, \dots, z_K$).
  2. Component Denoising: Each latent vector conditions a specific component of the diffusion model.
  3. Summation Objective: The model is trained such that the sum of the denoising outputs from all $K$ components reconstructs the original image $x_0$.

An information bottleneck on the latents forces the model to distribute information across components, naturally leading to the separation of background, lighting, and individual objects.

Overview of Decomp Diffusion: The model decomposes input images into independent components (middle) which are then recomposed to reconstruct the original scene (right). Examples include object-centric CLEVR scenes and global-factor facial images.

Results and Discussion

The framework was evaluated on datasets ranging from synthetic benchmarks (CLEVR, Falcor3D) to real-world faces (CelebA-HQ) and complex driving scenes (Virtual KITTI 2).

High-Fidelity Reconstruction

Decomp Diffusion significantly outperforms baselines in reconstruction quality. On CelebA-HQ, it achieved an FID of 16.48, a substantial improvement over the EBM-based COMET (FID 62.64). The use of a $x_0$-prediction objective ensures sharper results and greater training stability compared to traditional noise-prediction diffusion.

Zero-Shot Composition and Generalization

A key strength of the model is its ability to perform "zero-shot" recombination. By mixing latent vectors from different scenes—such as taking lighting from one image and an object from another—the model can generate novel scenes without additional training. Furthermore, the model exhibits strong generalization; for instance, a model trained on CLEVR images with four objects can successfully compose scenes with eight objects at inference time.

Conclusion

Decomp Diffusion provides a robust, unsupervised path toward compositional scene understanding. By treating diffusion components as additive building blocks, it enables precise control over image generation and manipulation. Future work will focus on automatically determining the optimal number of components ($K$) and further reducing inference latency through parallelization.

Summary updated

BibTeX
@inproceedings{su2024compositional,
  author = {Jocelin Su and Nan Liu and Yanbo Wang and Joshua B. Tenenbaum and Yilun Du},
  title = {{Compositional Image Decomposition with Diffusion Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=7zvl9mNQG2},
}
Figure