Applying Guidance in a Limited Interval Improves Sample and Distribution Quality in Diffusion Models

Tuomas Kynkäänniemi, Miika Aittala, Tero Karras, Samuli Laine, Timo Aila +1 more
4/11/2024
cs.CVcs.AIcs.LG

No official code found. Best implementation: kynkaat/guidance-interval (29 stars, Apache-2.0, last commit 2025-09-06).

Abstract

Guidance is a crucial technique for extracting the best performance out of image-generating diffusion models. Traditionally, a constant guidance weight has been applied throughout the sampling chain of an image. We show that guidance is clearly harmful toward the beginning of the chain (high noise levels), largely unnecessary toward the end (low noise levels), and only beneficial in the middle. We thus restrict it to a specific range of noise levels, improving both the inference speed and result quality. This limited guidance interval improves the record FID in ImageNet-512 significantly, from 1.81 to 1.40. We show that it is quantitatively and qualitatively beneficial across different sampler parameters, network architectures, and datasets, including the large-scale setting of Stable Diffusion XL. We thus suggest exposing the guidance interval as a hyperparameter in all diffusion models that use guidance.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Applying Guidance in a Limited Interval Improves Sample and Distribution Quality in Diffusion Models

292PythonOct 1, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{kynknniemi2024applying,
  title  = {Applying Guidance in a Limited Interval Improves Sample and Distribution Quality in Diffusion Models},
  author = {Tuomas Kynkäänniemi and Miika Aittala and Tero Karras and Samuli Laine and Timo Aila and Jaakko Lehtinen},
  year   = {2024},
  eprint = {2404.07724},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2404.07724},
  url    = {http://arxiv.org/abs/2404.07724v2},
  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/2404.07724.svg)](https://codeofpaper.com/paper/2404.07724)

Discussion