Parallel Sampling of Diffusion Models

Andy Shih, Suneel Belkhale, Stefano Ermon, Dorsa Sadigh, Nima Anari
5/25/2023
cs.LGcs.AI

No official code found. Best implementation: AndyShih12/paradigms (159 stars, MIT, PyTorch, last commit 2023-10-13). 1 more below.

Abstract

Diffusion models are powerful generative models but suffer from slow sampling, often taking 1000 sequential denoising steps for one sample. As a result, considerable efforts have been directed toward reducing the number of denoising steps, but these methods hurt sample quality. Instead of reducing the number of denoising steps (trading quality for speed), in this paper we explore an orthogonal approach: can we run the denoising steps in parallel (trading compute for speed)? In spite of the sequential nature of the denoising steps, we show that surprisingly it is possible to parallelize sampling via Picard iterations, by guessing the solution of future denoising steps and iteratively refining until convergence. With this insight, we present ParaDiGMS, a novel method to accelerate the sampling of pretrained diffusion models by denoising multiple steps in parallel. ParaDiGMS is the first diffusion sampling method that enables trading compute for speed and is even compatible with existing fast sampling techniques such as DDIM and DPMSolver. Using ParaDiGMS, we improve sampling speed by 2-4x across a range of robotics and image generation models, giving state-of-the-art sampling speeds of 0.2s on 100-step DiffusionPolicy and 14.6s on 1000-step StableDiffusion-v2 with no measurable degradation of task reward, FID score, or CLIP score.

View on arXivView PDF

Code Implementations(2)

PyTorchMIT

PyTorch implementation for "Parallel Sampling of Diffusion Models", NeurIPS 2023 Spotlight

15913PythonMay 19, 20233 years agoMIT
diffusion-modelspytorchsampling-methodsstable-diffusion

This is the official repo for the paper "Accelerating Parallel Sampling of Diffusion Models" Tang et al. ICML 2024 https://openreview.net/forum?id=CjVWen8aJL

161PythonMay 27, 20242 years ago

Similar Papers

Cite this paper

@article{shih2023parallel,
  title  = {Parallel Sampling of Diffusion Models},
  author = {Andy Shih and Suneel Belkhale and Stefano Ermon and Dorsa Sadigh and Nima Anari},
  year   = {2023},
  eprint = {2305.16317},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.16317v3},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.16317.svg)](https://codeofpaper.com/paper/2305.16317)

Discussion