Compositional Visual Generation with Composable Diffusion Models

Nan Liu, Shuang Li, Yilun Du, Antonio Torralba, Joshua B. Tenenbaum
6/3/2022
cs.CVcs.AIcs.LG
diffusion-flow

Official code: energy-based-model/Compositional-Visual-Generation-with-Composable-Diffusion-Models-PyTorch (489 stars, Jupyter Notebook, last commit 2025-04-24).

Abstract

Large text-guided diffusion models, such as DALLE-2, are able to generate stunning photorealistic images given natural language descriptions. While such models are highly flexible, they struggle to understand the composition of certain concepts, such as confusing the attributes of different objects or relations between objects.

Show full abstract

In this paper, we propose an alternative structured approach for compositional generation using diffusion models. An image is generated by composing a set of diffusion models, with each of them modeling a certain component of the image. To do this, we interpret diffusion models as energy-based models in which the data distributions defined by the energy functions may be explicitly combined. The proposed method can generate scenes at test time that are substantially more complex than those seen in training, composing sentence descriptions, object relations, human facial attributes, and even generalizing to new combinations that are rarely seen in the real world. We further illustrate how our approach may be used to compose pre-trained text-guided diffusion models and generate photorealistic images containing all the details described in the input descriptions, including the binding of certain object attributes that have been shown difficult for DALLE-2. These results point to the effectiveness of the proposed method in promoting structured generalization for visual generation. Project page: https://energy-based-model.github.io/Compositional-Visual-Generation-with-Composable-Diffusion-Models/

View on arXivView PDF

Code Implementations(1)

[ECCV 2022] Compositional Generation using Diffusion Models

48937Jupyter Notebook, PythonJun 2, 20221 years agoNOASSERTION
compositionalitydiffusion-modelsebmenergy-based-modelgenerative-model

Similar Papers

Cite this paper

@article{liu2022compositional,
  title  = {Compositional Visual Generation with Composable Diffusion Models},
  author = {Nan Liu and Shuang Li and Yilun Du and Antonio Torralba and Joshua B. Tenenbaum},
  year   = {2022},
  eprint = {2206.01714},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.01714}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2206.01714.svg)](https://codeofpaper.com/paper/2206.01714)

Discussion