SpeCa: Accelerating Diffusion Transformers with Speculative Feature Caching

Jiacheng Liu, Chang Zou, Yuanhuiyi Lyu, Fei Ren, Shaobo Wang +2 more
9/15/2025
cs.LGcs.AIcs.CV

Official code: Shenyi-Z/Cache4Diffusion (112 stars, last commit 2025-10-23).

Abstract

Diffusion models have revolutionized high-fidelity image and video synthesis, yet their computational demands remain prohibitive for real-time applications. These models face two fundamental challenges: strict temporal dependencies preventing parallelization, and computationally intensive forward passes required at each denoising step. Drawing inspiration from speculative decoding in large language models, we present SpeCa, a novel 'Forecast-then-verify' acceleration framework that effectively addresses both limitations. SpeCa's core innovation lies in introducing Speculative Sampling to diffusion models, predicting intermediate features for subsequent timesteps based on fully computed reference timesteps. Our approach implements a parameter-free verification mechanism that efficiently evaluates prediction reliability, enabling real-time decisions to accept or reject each prediction while incurring negligible computational overhead. Furthermore, SpeCa introduces sample-adaptive computation allocation that dynamically modulates resources based on generation complexity, allocating reduced computation for simpler samples while preserving intensive processing for complex instances. Experiments demonstrate 6.34x acceleration on FLUX with minimal quality degradation (5.5% drop), 7.3x speedup on DiT while preserving generation fidelity, and 79.84% VBench score at 6.1x acceleration for HunyuanVideo. The verification mechanism incurs minimal overhead (1.67%-3.5% of full inference costs), establishing a new paradigm for efficient diffusion model inference while maintaining generation quality even at aggressive acceleration ratios. Our codes have been released in Github: \textbf{https://github.com/Shenyi-Z/Cache4Diffusion}

View on arXivView PDF

Code Implementations(1)

Aiming to integrate most existing feature caching-based diffusion acceleration schemes into a unified framework.

11211Shell, PythonAug 23, 202512 months ago

Similar Papers

Cite this paper

@article{liu2025speca,
  title  = {SpeCa: Accelerating Diffusion Transformers with Speculative Feature Caching},
  author = {Jiacheng Liu and Chang Zou and Yuanhuiyi Lyu and Fei Ren and Shaobo Wang and Kaixin Li and Linfeng Zhang},
  year   = {2025},
  eprint = {2509.11628},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.11628v1}
}

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

Discussion