HackerPapers

arXiv:2207.12598cs.LG

Classifier-Free Diffusion Guidance

Jonathan Ho, Tim Salimans

Abstract

Classifier guidance is a recently introduced method to trade off mode coverage and sample fidelity in conditional diffusion models post training, in the same spirit as low temperature sampling or truncation in other types of generative models. Classifier guidance combines the score estimate of a diffusion model with the gradient of an image classifier and thereby requires training an image classifier separate from the diffusion model. It also raises the question of whether guidance can be performed without a classifier. We show that guidance can be indeed performed by a pure generative model without such a classifier: in what we call classifier-free guidance, we jointly train a conditional and an unconditional diffusion model, and we combine the resulting conditional and unconditional score estimates to attain a trade-off between sample quality and diversity similar to that obtained using classifier guidance.

arXiv comments
A short version of this paper appeared in the NeurIPS 2021 Workshop on Deep Generative Models and Downstream Applications: https://openreview.net/pdf?id=qw8AKxfYbI
Journal reference
DOI
Subjects
cs.LGMachine Learning cs.AIArtificial Intelligence

On Hacker News

Linked by 2 identifiable commenters in 3 comments across 3 threads, from Oct 2023 to Sep 2024.

Comments linking this paper, per year.

Discussed in comments3 threads

    • Exactly, https://arxiv.org/abs/2207.12598 Jonathan Ho, one of the authors of the CFG paper, now works for Ideogram, and Ideogram 2 is one of the very few models (or perhaps the only one) where I don't see the artifacts caused by the CFG, maybe he has achieved a breakthrough.

      GaggiXView on HNParent context

  1. Diffusion Models 1 comment
    • Thanks for the feedback! Yes, when conditioned on a non-null label, the underlying model for classifier-free guidance can be seen as the same as a class-conditional model (in fact, the original CFG paper[0] discusses training a separate model - they didn't do that because it's…

      reasonablekloutView on HNParent context

    • The CFG is a trick used to trade variety for apparent quality, applied to images it causes high saturation and contrast. It's used because the training data set is very noisy. The paper: https://arxiv.org/abs/2207.12598, of course using CFG change the sample distribution from…

      GaggiXView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.