Guiding a Diffusion Model with a Bad Version of Itself
Tero Karras, Miika Aittala, Tuomas Kynkäänniemi, Jaakko Lehtinen, Timo Aila, Samuli Laine
TL;DR
This work scrutinizes classifier-free guidance (CFG) in diffusion models, showing that CFG entangles image quality with limited variation. It proposes autoguidance, a simple method that uses a weaker version of the same model to guide a stronger one, thereby boosting image fidelity without sacrificing diversity. Empirically, autoguidance achieves state-of-the-art FID and FDDINOv2 on ImageNet at 512 and 64 pixels, and improves unconditional generation as well; ablations highlight the importance of independent EMA settings and the nature of the guiding degradations. The study includes synthetic degradation tests and qualitative analyses, and releases code and models, expanding the guiding-design space for diffusion-based synthesis.
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.
