AsyncDiff: Parallelizing Diffusion Models by Asynchronous Denoising

Zigeng Chen, Xinyin Ma, Gongfan Fang, Zhenxiong Tan, Xinchao Wang
6/1/2024
35 citations
diffusion-flow

Official code: czg1225/AsyncDiff (216 stars, Python, Apache-2.0, last commit 2025-09-27). Most starred: horseee/DeepCache, a community implementation (966 stars, Python, Apache-2.0, last commit 2024-06-27, 4.5× the official stars). 1 more implementation below.

Abstract

Diffusion models have garnered significant interest from the community for their great generative ability across various applications. However, their typical multi-step sequential-denoising nature gives rise to high cumulative latency, thereby precluding the possibilities of parallel computation.

Show full abstract

To address this, we introduce AsyncDiff, a universal and plug-and-play acceleration scheme that enables model parallelism across multiple devices. Our approach divides the cumbersome noise prediction model into multiple components, assigning each to a different device. To break the dependency chain between these components, it transforms the conventional sequential denoising into an asynchronous process by exploiting the high similarity between hidden states in consecutive diffusion steps. Consequently, each component is facilitated to compute in parallel on separate devices. The proposed strategy significantly reduces inference latency while minimally impacting the generative quality. Specifically, for the Stable Diffusion v2.1, AsyncDiff achieves a 2.7x speedup with negligible degradation and a 4.0x speedup with only a slight reduction of 0.38 in CLIP Score, on four NVIDIA A5000 GPUs. Our experiments also demonstrate that AsyncDiff can be readily applied to video diffusion models with encouraging performances. The code is available at https://github.com/czg1225/AsyncDiff.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
czg1225/AsyncDiffOfficial216PythonApache-2.02025-09-27
horseee/DeepCacheCommunity966PythonApache-2.02024-06-27
Apache-2.0

[NeurIPS 2024] AsyncDiff: Parallelizing Diffusion Models by Asynchronous Denoising

21613PythonMay 31, 20241 years agoApache-2.0
diffusion-modelsdistributed-computingefficient-inferenceinference-accelerationstable-diffusion+3 more
horseee/DeepCacheCommunity71%
Apache-2.0

[CVPR 2024] DeepCache: Accelerating Diffusion Models for Free

96651Python, ShellDec 1, 20232 years agoApache-2.0
diffusion-modelsefficient-inferencemodel-compressionstable-diffusiontraining-free

Similar Papers

Cite this paper

@article{chen2024asyncdiff,
  title  = {AsyncDiff: Parallelizing Diffusion Models by Asynchronous Denoising},
  author = {Zigeng Chen and Xinyin Ma and Gongfan Fang and Zhenxiong Tan and Xinchao Wang},
  year   = {2024},
  eprint = {2406.06911},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2406.06911},
  url    = {https://arxiv.org/abs/2406.06911},
  journal = {NEURIPS 2024 2024}
}

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/2406.06911.svg)](https://codeofpaper.com/paper/2406.06911)

Discussion