Controllable and Compositional Generation with Latent-Space Energy-Based Models

Weili Nie, Arash Vahdat, Anima Anandkumar
10/21/2021
cs.CVcs.AIcs.LG

Official code: NVlabs/LACE (73 stars, Python, last commit 2021-12-03).

Abstract

Controllable generation is one of the key requirements for successful adoption of deep generative models in real-world applications, but it still remains as a great challenge. In particular, the compositional ability to generate novel concept combinations is out of reach for most current models.

Show full abstract

In this work, we use energy-based models (EBMs) to handle compositional generation over a set of attributes. To make them scalable to high-resolution image generation, we introduce an EBM in the latent space of a pre-trained generative model such as StyleGAN. We propose a novel EBM formulation representing the joint distribution of data and attributes together, and we show how sampling from it is formulated as solving an ordinary differential equation (ODE). Given a pre-trained generator, all we need for controllable generation is to train an attribute classifier. Sampling with ODEs is done efficiently in the latent space and is robust to hyperparameters. Thus, our method is simple, fast to train, and efficient to sample. Experimental results show that our method outperforms the state-of-the-art in both conditional sampling and sequential editing. In compositional generation, our method excels at zero-shot generation of unseen attribute combinations. Also, by composing energy functions with logical operators, this work is the first to achieve such compositionality in generating photo-realistic images of resolution 1024x1024. Code is available at https://github.com/NVlabs/LACE.

View on arXivView PDF

Code Implementations(1)

NVlabs/LACEOfficial100%

A new play-and-plug method of controlling an existing generative model with conditioning attributes and their compositions.

7313Python, CudaNov 18, 20214 years agoNOASSERTION

Similar Papers

Cite this paper

@article{nie2021controllable,
  title  = {Controllable and Compositional Generation with Latent-Space Energy-Based Models},
  author = {Weili Nie and Arash Vahdat and Anima Anandkumar},
  year   = {2021},
  eprint = {2110.10873},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.10873}
}

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/2110.10873.svg)](https://codeofpaper.com/paper/2110.10873)

Discussion