MG-Cache: Multi-Granularity Caching for Accelerating Diffusion Transformer Inference
Abstract
Diffusion Transformer (DiT) models, while having become a powerful backbone for generative synthesis, suffer from high inference cost on generating high-resolution images. Diffusion caching has emerged as a promising acceleration technique to reduce inference cost. However, existing caching strategies fail to accurately identify the varying importance of different computational modules and rarely coordinate cache reusing across the timestep and layer granularities, making it difficult to control error accumulation. To address these limitations, we propose multi-granularity caching (MG-Cache) for DiTs, a novel and fully training-free approach to exploit computational redundancy both on timesteps and Transformer layers. Our core innovation contains a two-stage caching strategy: an offline timestep profiling analysis that identifies redundant timesteps for cache reuse, followed by an adaptive layer-wise caching strategy that combines input stability with importance of each Transformer layer to selectively cache stable Attention and MLP submodules. Extensive experiments on mainstream open-source DiT models validate the effectiveness of our approach, achieving significant acceleration while maintaining high fidelity to the uncached output, with up to a 4.18x acceleration on HunyuanVideo.
Create a lesson
Related papers
RadAG: Reward-Adversarial Attention Guidance for Efficient Inference-Time Alignment of Diffusion Models
Shared title terminology · Hyeongchan Jeon, Kwanyoung Kim
Stein Guidance without Gradients: Discretization Uniform Diffusion Inference Time Scaling beyond Particle SMC
Shared title terminology · Youheng Zhu, Chenyang Wang, Minshuo Chen et al.
THETA: Heat Diffusion as a Structural Prior for Cross-Domain Transfer in Graph Foundation Models
Shared title terminology · Haonan Liu, Shuo Wang, Zhao Kang
Ziv Meets Sumcheck: Zero-Knowledge Proofs of Floating-Point LLM Inference
Shared title terminology · Hassan Khodaiemehr, Khadijeh Bagheri, Chen Feng
S^2LMR: Supervised Sequential Long-Context Multi-Step Retriever
Shared title terminology · Qiang Hu, Kaiyi Ji
Dynamic Model Merging with Multi-Layer Aggregated Routing Evidence
Shared title terminology · Yuxi Li, Jiacong Hu, Jie Song et al.