Guiding a Diffusion Model with a Bad Version of Itself

Tero Karras, Miika Aittala, Tuomas Kynkäänniemi, Jaakko Lehtinen, Timo Aila +1 more
6/4/2024
cs.CVcs.AIcs.LG

No official code found. Best implementation: NVlabs/edm2 (848 stars, last commit 2024-12-09).

Abstract

The primary axes of interest in image-generating diffusion models are image quality, the amount of variation in the results, and how well the results align with a given condition, e.g., a class label or a text prompt. The popular classifier-free guidance approach uses an unconditional model to guide a conditional model, leading to simultaneously better prompt alignment and higher-quality images at the cost of reduced variation. These effects seem inherently entangled, and thus hard to control. We make the surprising observation that it is possible to obtain disentangled control over image quality without compromising the amount of variation by guiding generation using a smaller, less-trained version of the model itself rather than an unconditional model. This leads to significant improvements in ImageNet generation, setting record FIDs of 1.01 for 64x64 and 1.25 for 512x512, using publicly available networks. Furthermore, the method is also applicable to unconditional diffusion models, drastically improving their quality.

View on arXivView PDF

Code Implementations(1)

NVlabs/edm2Community100%

EDM2 and Autoguidance -- Official PyTorch implementation

84860Python, DockerfileMar 11, 20241 years agoNOASSERTION

Similar Papers

Cite this paper

@article{karras2024guiding,
  title  = {Guiding a Diffusion Model with a Bad Version of Itself},
  author = {Tero Karras and Miika Aittala and Tuomas Kynkäänniemi and Jaakko Lehtinen and Timo Aila and Samuli Laine},
  year   = {2024},
  eprint = {2406.02507},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2406.02507},
  url    = {http://arxiv.org/abs/2406.02507v3},
  journal = {NEURIPS 2024 2024}
}

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

Discussion