Forecast the Principal, Stabilize the Residual: Subspace-Aware Feature Caching for Efficient Diffusion Transformers
Guantao Chen, Shikang Zheng, Yuqi Lin, Linfeng Zhang
TL;DR
Diffusion transformers incur high computational cost during iterative denoising. We introduce SVD-Cache, a subspace-aware feature caching framework that decomposes diffusion features into a dominant principal subspace and an orthogonal residual, predicting the principal component with exponential moving average and reusing the residual. A one-time SVD offline on a reference prompt yields a universal subspace basis enabling fast reconstruction of the low-rank component from cached components. The final feature combines the EMA-predicted principal part with the reused residual. Experiments show robust, near-lossless speedups on image and video diffusion tasks and compatibility with quantization, distillation, and sparse attention, offering a practical plug-and-play path to accelerate diffusion transformer inference.
Abstract
Diffusion Transformer (DiT) models have achieved unprecedented quality in image and video generation, yet their iterative sampling process remains computationally prohibitive. To accelerate inference, feature caching methods have emerged by reusing intermediate representations across timesteps. However, existing caching approaches treat all feature components uniformly. We reveal that DiT feature spaces contain distinct principal and residual subspaces with divergent temporal behavior: the principal subspace evolves smoothly and predictably, while the residual subspace exhibits volatile, low-energy oscillations that resist accurate prediction. Building on this insight, we propose SVD-Cache, a subspace-aware caching framework that decomposes diffusion features via Singular Value Decomposition (SVD), applies exponential moving average (EMA) prediction to the dominant low-rank components, and directly reuses the residual subspace. Extensive experiments demonstrate that SVD-Cache achieves near-lossless across diverse models and methods, including 5.55$\times$ speedup on FLUX and HunyuanVideo, and compatibility with model acceleration techniques including distillation, quantization and sparse attention. Our code is in supplementary material and will be released on Github.
