Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Self-Refining Diffusion Samplers: Enabling Parallelization via Parareal Iterations

About

In diffusion models, samples are generated through an iterative refinement process, requiring hundreds of sequential model evaluations. Several recent methods have introduced approximations (fewer discretization steps or distillation) to trade off speed at the cost of sample quality. In contrast, we introduce Self-Refining Diffusion Samplers (SRDS) that retain sample quality and can improve latency at the cost of additional parallel compute. We take inspiration from the Parareal algorithm, a popular numerical method for parallel-in-time integration of differential equations. In SRDS, a quick but rough estimate of a sample is first created and then iteratively refined in parallel through Parareal iterations. SRDS is not only guaranteed to accurately solve the ODE and converge to the serial solution but also benefits from parallelization across the diffusion trajectory, enabling batched inference and pipelining. As we demonstrate for pre-trained diffusion models, the early convergence of this refinement procedure drastically reduces the number of steps required to produce a sample, speeding up generation for instance by up to 1.7x on a 25-step StableDiffusion-v2 benchmark and up to 4.3x on longer trajectories.

Nikil Roashan Selvam, Amil Merchant, Stefano Ermon• 2024

Related benchmarks

TaskDatasetResultRank
Image GenerationLSUN church
FID12.8
95
Image GenerationImageNet
FID9
68
Text-to-Image GenerationStable Diffusion DrawBench
Time Per Sample0.69
15
Image GenerationStableDiffusion
Speedup2.73
6
Image GenerationCOCO 2017
CLIP Score31.9
5
Image GenerationLSUN bedroom
FID10
2
Image GenerationCIFAR
FID Score7.6
2
Showing 7 of 7 rows

Other info

Code

Follow for update