Enregistré dans:
Détails bibliographiques
Auteurs principaux: Liu, Joseph, Geddes, Joshua, Guo, Ziyu, Jiang, Haomiao, Nandwana, Mahesh Kumar
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:https://arxiv.org/abs/2411.10510
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866909619134136320
author Liu, Joseph
Geddes, Joshua
Guo, Ziyu
Jiang, Haomiao
Nandwana, Mahesh Kumar
author_facet Liu, Joseph
Geddes, Joshua
Guo, Ziyu
Jiang, Haomiao
Nandwana, Mahesh Kumar
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2411_10510
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle SmoothCache: A Universal Inference Acceleration Technique for Diffusion Transformers
Liu, Joseph
Geddes, Joshua
Guo, Ziyu
Jiang, Haomiao
Nandwana, Mahesh Kumar
Machine Learning
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.
title SmoothCache: A Universal Inference Acceleration Technique for Diffusion Transformers
topic Machine Learning
url https://arxiv.org/abs/2411.10510