AB-Cache: Training-Free Acceleration of Diffusion Models via Adams-Bashforth Cached Feature Reuse

Zichao Yu, Zhen Zou, Guojiang Shao, Chengwei Zhang, Shengze Xu +4 more
4/13/2025
stat.MLcs.AIcs.LG

No official code found. Best implementation: aSleepyTree/AB-Cache (0 stars, last commit 2025-10-14).

Abstract

Diffusion models have demonstrated remarkable success in generative tasks, yet their iterative denoising process results in slow inference, limiting their practicality. While existing acceleration methods exploit the well-known U-shaped similarity pattern between adjacent steps through caching mechanisms, they lack theoretical foundation and rely on simplistic computation reuse, often leading to performance degradation. In this work, we provide a theoretical understanding by analyzing the denoising process through the second-order Adams-Bashforth method, revealing a linear relationship between the outputs of consecutive steps. This analysis explains why the outputs of adjacent steps exhibit a U-shaped pattern. Furthermore, extending Adams-Bashforth method to higher order, we propose a novel caching-based acceleration approach for diffusion models, instead of directly reusing cached results, with a truncation error bound of only \(O(h^k)\) where $h$ is the step size. Extensive validation across diverse image and video diffusion models (including HunyuanVideo and FLUX.1-dev) with various schedulers demonstrates our method's effectiveness in achieving nearly $3\times$ speedup while maintaining original performance levels, offering a practical real-time solution without compromising generation quality.

View on arXivView PDF

Code Implementations(1)

AB-Cache: Training-Free Acceleration of Diffusion Models via Adams-Bashforth Cached Feature Reuse

00PythonOct 14, 20251 years ago

Similar Papers

Cite this paper

@article{yu2025abcache,
  title  = {AB-Cache: Training-Free Acceleration of Diffusion Models via Adams-Bashforth Cached Feature Reuse},
  author = {Zichao Yu and Zhen Zou and Guojiang Shao and Chengwei Zhang and Shengze Xu and Jie Huang and Feng Zhao and Xiaodong Cun and Wenyi Zhang},
  year   = {2025},
  eprint = {2504.10540},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.10540v1}
}

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

Discussion