Classifier-Free Diffusion Guidance

Jonathan Ho, Tim Salimans
7/26/2022
cs.LGcs.AI

No official code found. Best implementation: TeaPearce/Conditional_Diffusion_MNIST (826 stars, MIT, last commit 2024-01-07).

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.

View on arXivView PDF

Code Implementations(1)

MIT

Conditional diffusion model to generate MNIST. Minimal script. Based on 'Classifier-Free Diffusion Guidance'.

82691PythonAug 5, 20222 years agoMIT

Similar Papers

Cite this paper

@article{ho2022classifierfree,
  title  = {Classifier-Free Diffusion Guidance},
  author = {Jonathan Ho and Tim Salimans},
  year   = {2022},
  eprint = {2207.12598},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.12598v1}
}

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

Discussion