Z-Cache: Accelerating Diffusion Transformers via Self-Reflection
Zegang Cheng, Zhikai Wang, Jiacheng Liu, Xiaobing Tu, Chang Zou, Junjie Chen, Yue Ma, Zhiyuan Ma,
Key points
From the paper's conclusion- Experiments demonstrate that with Z-Cache, diffusion transformers achieve comparable generation quality to the original model but with faster inference speed, for instance, 6.22X acceleration on FLUX-dev for text-to-image generation.
Abstract
Diffusion transformers have become the most powerful models for visual generation, but still suffer from massive computation costs. To solve this problem, feature caching has been proposed to cache the features of diffusion models in the previous computation steps and then reuse them in the following caching steps, which brings significant acceleration but also degradation in generation quality. To address this problem, this paper proposes Z-cache as a feature caching method that can maintain high-quality generation through self-reflection. Concretely, we observe that the error from feature caching tends to be sharply reduced after each full computation. Based on this observation, Z-Cache is designed to first predict the features in the future caching steps and then perform a full computation. After that, Z-Cache returns to the caching steps and re-predicts them based on the previous and the current computation steps, which brings correction in features. Experiments demonstrate that with Z-Cache, diffusion transformers achieve comparable generation quality to the original model but with faster inference speed, for instance, 6.22X acceleration on FLUX-dev for text-to-image generation. Our code is released on GitHub.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- CalibCache: Cache-to-Full Feature Dynamics Calibration for Diffusion TransformersarXiv · 2026
- OnCache: Learning Dynamic Caching Schedules for Efficient Diffusion InferencearXiv · 2026
- SoftCache: Adaptive Step Size Caching for Diffusion TransformersarXiv · 2026
- Rethinking What to Cache in Few-Step Diffusion Transformers: Solver-Aware Target SelectionarXiv · 2026
- CacheScope: Exact-Compute Allocation for Training-Free Diffusion AccelerationarXiv · 2026
- IdealCache: Rethinking Cache Scheduling in Diffusion Transformers via Ideal TrajectoriesarXiv · 2026