Reproduce “Classifier-Free Diffusion Guidance” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Jonathan Ho, Tim Salimans
Classifier-free guidance trains a diffusion model to denoise with and without a class label, then combines predictions at sampling to strengthen class adherence without a separate classifier. This requires two denoiser evaluations per step. On class-conditional ImageNet at 128×128, guidance at w = 0.3 and 256 steps achieves FID 2.43 versus 2.97 for ADM-G, but performs worse at 128 steps.
Key insights
- The core benefit of guidance in diffusion models stems from emphasizing conditional information rather than solely relying on external classifier gradients.
- A single diffusion model can be trained to perform both conditional and unconditional generation effectively by occasionally dropping class conditioning.
- The trade-off between image quality and diversity can be intuitively managed by adjusting a single guidance weight parameter during sampling.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.