paper-with-me

Papers

Accelerating Diffusion Transformers with Dual Feature Caching

2024-12-25 · Chang Zou, Evelyn Zhang, Runlin Guo, Haohang Xu, Conghui He, Xuming Hu, Linfeng Zhang

Diffusion Transformers (DiT) have become the dominant methods in image and video generation yet still suffer substantial computational costs. As an effective approach for DiT acceleration, feature caching methods are designed to cache the features of DiT in previous timesteps and reuse them in the next timesteps, allowing us to skip the computation in the next timesteps. However, on the one hand, aggressively reusing all the features cached in previous timesteps leads to a severe drop in generation quality. On the other hand, conservatively caching only the features in the redundant layers or tokens but still computing the important ones successfully preserves the generation quality but results in reductions in acceleration ratios. Observing such a tradeoff between generation quality and acceleration performance, this paper begins by quantitatively studying the accumulated error from cached features. Surprisingly, we find that aggressive caching does not introduce significantly more caching errors in the caching step, and the conservative feature caching can fix the error introduced by aggressive caching. Thereby, we propose a dual caching strategy that adopts aggressive and conservative caching iteratively, leading to significant acceleration and high generation quality at the same time. Besides, we further introduce a V-caching strategy for token-wise conservative caching, which is compatible with flash attention and requires no training and calibration data. Our codes have been released in Github: \textbf{Code: \href{https://github.com/Shenyi-Z/DuCa}{\texttt{\textcolor{cyan}{https://github.com/Shenyi-Z/DuCa}}}}

📄 PDF Abstract BibTeX arXiv:2412.18911

Code (3)

shenyi-z/duca 공식 구현 pytorch
Shenyi-Z/TaylorSeer pytorch
Shenyi-Z/ToCa pytorch

Tasks

Video Generation

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음

Similar Papers 제목 키워드 기반

Accelerating Diffusion Transformers with Token-wise Feature Caching

2024-10-05 · Chang Zou, Xuyang Liu, Ting Liu, Siteng Huang 외

Diffusion transformers have shown significant effectiveness in both image and video synthesis at the expense of huge computation costs. To address this problem, feature caching methods have been introduced to accelerate …

Video Generation

Compute Only 16 Tokens in One Timestep: Accelerating Diffusion Transformers with Cluster-Driven Feature Caching

2025-09-12 · Zhixin Zheng, Xinyu Wang, Chang Zou, Shaobo Wang 외 arxiv

Diffusion transformers have gained significant attention in recent years for their ability to generate high-quality images and videos, yet still suffer from a huge computational cost due to their iterative denoising proc…

Text-to-Video Generation

FreqCa: Accelerating Diffusion Models via Frequency-Aware Caching

2025-10-09 · Jiacheng Liu, Peiliang Cai, Qinming Zhou, Yuqi Lin 외 arxiv

The application of diffusion transformers is suffering from their significant inference costs. Recently, feature caching has been proposed to solve this problem by reusing features from previous timesteps, thereby skippi…

Frequency-Aware Error-Bounded Caching for Accelerating Diffusion Transformers

2026-03-05 · Guandong Li arxiv

Diffusion Transformers (DiTs) have emerged as the dominant architecture for high-quality image and video generation, yet their iterative denoising process incurs substantial computational cost during inference. Existing …

Video Generation

Relational Feature Caching for Accelerating Diffusion Transformers

2026-02-23 · Byunggwan Son, Jeimin Jeon, Jeongwoo Choi, Bumsub Ham arxiv

Feature caching approaches accelerate diffusion transformers (DiTs) by storing the output features of computationally expensive modules at certain timesteps, and exploiting them for subsequent steps to reduce redundant c…