Skip to main content
QUICK REVIEW

[Paper Review] Optimizing DDPM Sampling with Shortcut Fine-Tuning

Ying Fan, Kangwook Lee|arXiv (Cornell University)|Jan 31, 2023
Machine Learning in HealthcareComputer Science4 citations
TL;DR

This paper proposes Shortcut Fine-Tuning (SFT), a reinforcement learning-inspired method that directly minimizes Integral Probability Metrics (IPM) to optimize DDPM sampling, bypassing the backward diffusion process. By framing sampling as a policy gradient problem, SFT achieves state-of-the-art sample quality with only 10 steps—surpassing full-step DDPM (1000 steps) on CIFAR-10 and CelebA with FID scores of 2.28 and 2.01, respectively.

ABSTRACT

In this study, we propose Shortcut Fine-Tuning (SFT), a new approach for addressing the challenge of fast sampling of pretrained Denoising Diffusion Probabilistic Models (DDPMs). SFT advocates for the fine-tuning of DDPM samplers through the direct minimization of Integral Probability Metrics (IPM), instead of learning the backward diffusion process. This enables samplers to discover an alternative and more efficient sampling shortcut, deviating from the backward diffusion process. Inspired by a control perspective, we propose a new algorithm SFT-PG: Shortcut Fine-Tuning with Policy Gradient, and prove that under certain assumptions, gradient descent of diffusion models with respect to IPM is equivalent to performing policy gradient. To our best knowledge, this is the first attempt to utilize reinforcement learning (RL) methods to train diffusion models. Through empirical evaluation, we demonstrate that our fine-tuning method can further enhance existing fast DDPM samplers, resulting in sample quality comparable to or even surpassing that of the full-step model across various datasets.

Motivation & Objective

  • To address the inefficiency of standard DDPM sampling, which requires many steps (T ≈ 1000) for high-quality generation.
  • To explore whether sampling can be improved by deviating from the learned backward diffusion process.
  • To develop a method that directly optimizes sample quality via IPM minimization, rather than imitating the backward process.
  • To establish a theoretical link between gradient descent on DDPMs w.r.t. IPM and policy gradient, enabling RL-based training of diffusion models.

Proposed method

  • Proposes SFT-PG, a novel algorithm that frames DDPM sampling as a reinforcement learning problem, where the generator (DDPM sampler) is optimized via policy gradient.
  • Shows that gradient descent on the DDPM sampler w.r.t. IPM is mathematically equivalent to stochastic policy gradient, enabling RL-style training.
  • Introduces a surrogate function for IPM that provides theoretical insight into conditions for monotonic improvement during training.
  • Employs a critic-generator alternating training scheme with gradient penalty and baseline regularization to stabilize policy gradient training.
  • Uses a fixed variance schedule and sub-sampling schedule from FastDPM as initialization, fine-tuning only the mean prediction head.
  • Applies gradient clipping and multiple generator steps per critic update to improve training stability and performance.
Figure 1 : Image denoising is similar to a closed-loop control system: finding paths from pure noise to natural images.
Figure 1 : Image denoising is similar to a closed-loop control system: finding paths from pure noise to natural images.

Experimental results

Research questions

  • RQ1Can we improve DDPM sampling quality by not following the backward diffusion process, but instead discovering alternative sampling paths?
  • RQ2Is gradient descent on a DDPM sampler w.r.t. an IPM equivalent to policy gradient, enabling RL-based training of diffusion models?
  • RQ3Can a surrogate function of the IPM guide stable and monotonic improvement during fine-tuning?
  • RQ4Does direct IPM minimization outperform imitation-based fast sampling methods like FastDPM and Analytic-DPM in terms of sample quality with fewer steps?
  • RQ5Can fine-tuning with SFT-PG achieve performance comparable to or better than full-step DDPM (T=1000) using only T′=10 sampling steps?

Key findings

  • SFT-PG with 10 sampling steps achieves a FID of 2.28 on CIFAR-10 and 2.01 on CelebA, outperforming the full-step DDPM (FID 3.03 and 3.26, respectively).
  • On the swiss roll dataset, SFT-PG reduces FID from 2.36 (T=100) to 0.64 (T′=10), demonstrating significant improvement with minimal steps.
  • The method improves existing fast samplers: SFT-PG achieves better FID than FastDPM (29.43), Analytic-DPM (22.94), and SN-DPM (16.33) on CIFAR-10 with T′=10.
  • Training with 5 generator steps and γ=1.0 yields the best FID (0.82) on MNIST, showing that gradient clipping and step count influence performance.
  • SFT-PG with baseline regularization (SFT-PG B) achieves slightly better final performance than SFT and SFT-PG on toy datasets, indicating improved stability.
  • Theoretical analysis confirms that IPM-based gradient descent on DDPMs is equivalent to policy gradient, marking the first use of RL methods to train diffusion models.
Figure 2 : A visual illustration of the key idea of Shortcut Fine-Tuning (SFT). DDPMs aim at learning the backward diffusion model, but this approach is limited to a small number of steps. We propose the idea of not following the backward process and exploring other unexplored paths that can lead to
Figure 2 : A visual illustration of the key idea of Shortcut Fine-Tuning (SFT). DDPMs aim at learning the backward diffusion model, but this approach is limited to a small number of steps. We propose the idea of not following the backward process and exploring other unexplored paths that can lead to

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.