[Paper Review] Learning to Efficiently Sample from Diffusion Probabilistic Models
Presents a dynamic programming approach to find optimal inference schedules for pre-trained DDPMs, enabling high-quality sampling with as few as 32 refinement steps and without retraining. It optimizes ELBO to select timesteps under a fixed computation budget.
Denoising Diffusion Probabilistic Models (DDPMs) have emerged as a powerful family of generative models that can yield high-fidelity samples and competitive log-likelihoods across a range of domains, including image and speech synthesis. Key advantages of DDPMs include ease of training, in contrast to generative adversarial networks, and speed of generation, in contrast to autoregressive models. However, DDPMs typically require hundreds-to-thousands of steps to generate a high fidelity sample, making them prohibitively expensive for high dimensional problems. Fortunately, DDPMs allow trading generation speed for sample quality through adjusting the number of refinement steps as a post process. Prior work has been successful in improving generation speed through handcrafting the time schedule by trial and error. We instead view the selection of the inference time schedules as an optimization problem, and introduce an exact dynamic programming algorithm that finds the optimal discrete time schedules for any pre-trained DDPM. Our method exploits the fact that ELBO can be decomposed into separate KL terms, and given any computation budget, discovers the time schedule that maximizes the training ELBO exactly. Our method is efficient, has no hyper-parameters of its own, and can be applied to any pre-trained DDPM with no retraining. We discover inference time schedules requiring as few as 32 refinement steps, while sacrificing less than 0.1 bits per dimension compared to the default 4,000 steps used on ImageNet 64x64 [Ho et al., 2020; Nichol and Dhariwal, 2021].
Motivation & Objective
- Motivate reducing the computational cost of sampling from DDPMs without retraining.
- Introduce an exact dynamic programming method to pick optimal inference timesteps under a given refinement budget.
- Leverage ELBO decomposability to enable memoization and exact optimization over inference paths.
Proposed method
- Formulate the inference schedule selection as a shortest-path problem on timesteps using the ELBO decomposition.
- Compute a table of KL-based ELBO terms L(t,s) for all candidate timesteps using a fixed pre-trained DDPM.
- Apply a dynamic programming algorithm to find the exact optimal path with exactly K refinement steps (0=t0<...<tK=1).
- Exploit memoization so that only O(T) forward passes are needed to fill the L(t,s) terms, where T is the number of grid timesteps.
- Support both time-discrete and time-continuous DDPMs by constructing valid ELBO paths that start at 0 and end at 1 with contiguous timesteps.
- Optionally estimate the ELBO terms with Monte Carlo sampling to reduce computation.
Experimental results
Research questions
- RQ1Can the choice of inference schedule in DDPMs be optimized post-training under a fixed computation budget?
- RQ2Does an exact dynamic programming formulation over DDPM timesteps yield higher ELBO (lower negative ELBO) than hand-crafted sampling schedules at few-step regimes?
- RQ3How many refinement steps are needed to closely match the original model’s log-likelihood while significantly reducing computation?
- RQ4Is the DP-derived schedule transferable across pre-trained DDPM variants (time-discrete and time-continuous) without retraining?
Key findings
- A DP-based method finds optimal inference paths for any budget K, requiring only O(T) forward passes to compute the ELBO terms.
- On CIFAR-10 with L_simple and ImageNet 64x64 with L_hybrid, schedules with as few as 32 refinement steps achieve within 0.1 bits per dimension of the original 1000–4000 step models.
- DP-stride schedules outperform hand-crafted even or quadratic strides in log-likelihood (bits/dim) across few-step regimes.
- The DP approach yields strong log-likelihoods but does not always improve FID scores, highlighting a known disconnect between likelihood-based metrics and FID.
- Monte Carlo ablations show that using as few as 128 samples to estimate the ELBO terms can still yield substantial gains, especially on CIFAR-10; ImageNet benefits with more samples.
- The method is training-free and broadly applicable to pre-trained DDPMs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.