# Z-Cache: Accelerating Diffusion Transformers via Self-Reflection

*Zegang Cheng, Zhikai Wang, Jiacheng Liu, Xiaobing Tu, Chang Zhou, Junjie Chen, Yue Ma, Zhiyuan Ma, Jinkui Ren, Likai Zou, Linfeng Zhang*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/156017) · [Open on the map](../papers.html#p156017)

Category: [Diffusion & Image Generation](../pcat/5.md) › [Diffusion Model Acceleration](../pgroup/211.md) · Type: new method · Keywords: diffusion transformers, feature caching, self-reflection, acceleration, text-to-image generation

Areas: [Generative Models (Diffusion & Flows)](../areas/generative-models.md) › Diffusion Language Modeling › Diffusion Model Caching

## Summary
Z-Cache accelerates diffusion transformers by using self-reflection to correct cached features, preserving generation quality while achieving up to 6.22× speedup on text-to-image tasks.

## Explained to a 5-year-old
Computers draw pictures by following a step-by-step recipe called diffusion. To save time, they remember some of the work and reuse it later. However, remembering can sometimes make the picture a little blurry. The new idea is like a smart helper that looks at the blurry parts and fixes them by doing a little extra work. This helps the pictures stay clear while the computer works faster.

## Explained to a 5-year-old, longer
Computers can draw pictures by following a step-by-step recipe. The recipe is called diffusion, and it works a lot like mixing colors gradually. When the computer draws a picture, it does a lot of calculations each step. To save time, it can remember some of the calculations and reuse them later. However, remembering can sometimes make the picture a little fuzzy. The new idea is like a little checker that looks at the fuzzy parts. It first guesses what the future steps should look like. Then it does a full fresh calculation to see what the correct answer should be. After that, it goes back to the remembered steps and fixes them using the fresh calculation. This fixing makes the picture clearer while still being faster. The result is a picture that looks just as good as before but is produced quicker. This helps people get nice images without waiting a long time.

## For a technical reader
The paper addresses the high computational cost of diffusion transformers by caching intermediate features across inference steps. It observes that caching errors diminish after a full recomputation, enabling a self-reflection correction loop. The approach first predicts future cached features, performs a complete forward pass, then revisits the cached steps to adjust those predictions. This correction maintains generation quality while providing substantial speedups, demonstrated on a text-to-image model. The implementation is open-sourced, allowing practitioners to integrate the acceleration into existing diffusion pipelines.

## Problem
Diffusion transformers for visual generation require massive computation at each inference step, making real-time or efficient deployment challenging. Existing feature caching methods reduce computation but often degrade generation quality.

## Method
The approach predicts future cached features, performs a full computation, then revisits the cached steps to correct those predictions using the previous and current computations, thereby refining the cached features.

## Results
The approach yields comparable generation quality to the original model while providing a 6.22× speedup on FLUX-dev for text-to-image generation.

## Contributions
A self-reflection based feature caching method that maintains high generation quality during acceleration, and experimental validation showing significant speedups on a diffusion transformer model.

## Practical relevance
The method enables faster inference for diffusion transformers, making high-quality visual generation more accessible on limited hardware.

## Research questions this paper is counted under

- [How can diffusion transformers be made more computationally efficient without sacrificing output quality?](../q/91.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/156017)
