On Distillation of Guided Diffusion Models

By Chenlin Meng, Ruiqi Gao, Diederik P. Kingma, Stefano Ermon, Jonathan Ho, Tim Salimans. Computer Vision and Pattern Recognition, 2022

836 citations recorded by the source corpus.

Classifier-free guided diffusion models have recently been shown to be highly effective at high-resolution image generation, and they have been widely used in large-scale diffusion frameworks including DALL.E 2, Stable Diffusion and Imagen. However, a downside of classifier-free guided diffusion models is that they are computationally expensive at inference time since they require evaluating two diffusion models, a class-conditional model and an unconditional model, tens to hundreds of times. To deal with this limitation, we propose an approach to distilling classifier-free guided diffusion models into models that are fast to sample from: Given a pre-trained classifier-free guided model, we first learn a single model to match the output of the combined conditional and unconditional models, and then we progressively distill that model to a diffusion model that requires much fewer sampling steps. For standard diffusion models trained on the pixel-space, our approach is able to generate images visually comparable to that of the original model using as few as 4 sampling steps on ImageNet $64\times 64$ and CIFAR-10, achieving FID/IS scores comparable to that of the original model while being up to 256 times faster to sample from. For diffusion models trained on the latent-space (e.g., Stable Diffusion), our approach is able to generate high-fidelity images using as few as 1 to 4 denoising steps, accelerating inference by at least 10-fold compared to existing methods on ImageNet $256\times 256$ and LAION datasets. We further demonstrate the effectiveness of our approach on text-guided image editing and inpainting, where our distilled model is able to generate high-quality results using as few as 2–4 denoising steps.

Subfields: Computer Vision and Pattern Recognition, Radiology, Nuclear Medicine and Imaging, Statistical and Nonlinear Physics

View Paper: https://www.semanticscholar.org/paper/625d57bd52c60cd79aa4add6c4420dc2ad3b808a

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Ming-Hsuan Yang
  3. Dacheng Tao
  4. Xiaogang Wang
  5. Chen Change Loy
  6. Jitendra Malik
  7. Trevor Darrell
  8. Andrea Vedaldi

In Radiology, Nuclear Medicine and Imaging

  1. Diederik P. Kingma
  2. Karsten Kreis
  3. Jonathan Ho
  4. Dongjun Kim
  5. Ruiqi Gao
  6. Andreas Blattmann
  7. Ziwei Liu
  8. Tim Salimans

In Statistical and Nonlinear Physics

  1. Jonathan Ho
  2. David J. Fleet
  3. Karsten Kreis
  4. Mohammad Norouzi
  5. Stefano Ermon
  6. Diederik P. Kingma
  7. Tim Salimans
  8. William Chan

Citations in the corpus