MG-Cache: Multi-Granularity Caching for Accelerating Diffusion Transformer Inference

Zesen Chen, Youxuan Xu, Shigang Li
11/8/2026
cs.LGcs.PF
diffusion-flowtransformer-attention

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{chen2026mgcache,
  title  = {MG-Cache: Multi-Granularity Caching for Accelerating Diffusion Transformer Inference},
  author = {Zesen Chen and Youxuan Xu and Shigang Li},
  year   = {2026},
  eprint = {2611.11365},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.11365v1}
}

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

Discussion