SmoothCache: A Universal Inference Acceleration Technique for Diffusion Transformers

Joseph Liu, Joshua Geddes, Ziyu Guo, Haomiao Jiang, Mahesh Kumar Nandwana
11/15/2024
cs.LG

No official code found. Best implementation: Roblox/SmoothCache (48 stars, Apache-2.0, last commit 2025-07-17).

Abstract

Diffusion Transformers (DiT) have emerged as powerful generative models for various tasks, including image, video, and speech synthesis. However, their inference process remains computationally expensive due to the repeated evaluation of resource-intensive attention and feed-forward modules. To address this, we introduce SmoothCache, a model-agnostic inference acceleration technique for DiT architectures. SmoothCache leverages the observed high similarity between layer outputs across adjacent diffusion timesteps. By analyzing layer-wise representation errors from a small calibration set, SmoothCache adaptively caches and reuses key features during inference. Our experiments demonstrate that SmoothCache achieves 8% to 71% speed up while maintaining or even improving generation quality across diverse modalities. We showcase its effectiveness on DiT-XL for image generation, Open-Sora for text-to-video, and Stable Audio Open for text-to-audio, highlighting its potential to enable real-time applications and broaden the accessibility of powerful DiT models.

View on arXivView PDF

Code Implementations(1)

Roblox/SmoothCacheCommunity100%
Apache-2.0

Implementation of SmoothCache, a project aimed at speeding-up Diffusion Transformer (DiT) based GenAI models with error-guided caching.

484PythonOct 30, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{liu2024smoothcache,
  title  = {SmoothCache: A Universal Inference Acceleration Technique for Diffusion Transformers},
  author = {Joseph Liu and Joshua Geddes and Ziyu Guo and Haomiao Jiang and Mahesh Kumar Nandwana},
  year   = {2024},
  eprint = {2411.10510},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.10510v2}
}

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

Discussion