Adaptive Caching for Faster Video Generation with Diffusion Transformers

Kumara Kahatapitiya, Haozhe Liu, Sen He, Ding Liu, Menglin Jia +3 more
11/4/2024
cs.CV

No official code found. Best implementation: AdaCache-DiT/AdaCache (171 stars, Apache-2.0, last commit 2024-11-05).

Abstract

Generating temporally-consistent high-fidelity videos can be computationally expensive, especially over longer temporal spans. More-recent Diffusion Transformers (DiTs) -- despite making significant headway in this context -- have only heightened such challenges as they rely on larger models and heavier attention mechanisms, resulting in slower inference speeds. In this paper, we introduce a training-free method to accelerate video DiTs, termed Adaptive Caching (AdaCache), which is motivated by the fact that "not all videos are created equal": meaning, some videos require fewer denoising steps to attain a reasonable quality than others. Building on this, we not only cache computations through the diffusion process, but also devise a caching schedule tailored to each video generation, maximizing the quality-latency trade-off. We further introduce a Motion Regularization (MoReg) scheme to utilize video information within AdaCache, essentially controlling the compute allocation based on motion content. Altogether, our plug-and-play contributions grant significant inference speedups (e.g. up to 4.7x on Open-Sora 720p - 2s video generation) without sacrificing the generation quality, across multiple video DiT baselines.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Code for our ICCV 2025 paper "Adaptive Caching for Faster Video Generation with Diffusion Transformers"

17112Shell, PythonOct 31, 20241 years agoApache-2.0
cachingcontent-adaptivediffusion-transformerefficiencyvideo-generation

Similar Papers

Cite this paper

@article{kahatapitiya2024adaptive,
  title  = {Adaptive Caching for Faster Video Generation with Diffusion Transformers},
  author = {Kumara Kahatapitiya and Haozhe Liu and Sen He and Ding Liu and Menglin Jia and Chenyang Zhang and Michael S. Ryoo and Tian Xie},
  year   = {2024},
  eprint = {2411.02397},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.02397v2}
}

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

Discussion