TL;DR
ProCache is a training-free, plug-and-play framework that accelerates Diffusion Transformers (DiTs) by up to 2.90× with negligible quality loss. It achieves this by replacing rigid, uniform feature caching schedules with customized, non-uniform schedules and selectively updating only the most critical deep layers and high-importance tokens.
What Problem Does This Paper Address?
Diffusion Transformers (DiTs) have set new standards for high-fidelity image and video generation. However, their massive computational overhead makes real-time deployment difficult. Because the iterative denoising process exhibits high temporal redundancy, researchers often use feature caching—reusing computed features from previous timesteps—to skip expensive transformer block computations.
Existing feature caching methods suffer from two major flaws:
- Uniform Intervals: They recompute features at rigid, fixed intervals (e.g., every $N$ steps), ignoring the fact that a model's features evolve at different speeds throughout the generation process.
- Naive Reuse: Reusing stale features over long intervals causes severe error accumulation, leading to noticeable drops in image quality.
ProCache addresses these gaps by analyzing how errors propagate across both time (diffusion steps) and space (network depth), introducing a dynamic schedule that computes features only when and where it matters most.
Methods
ProCache is entirely training-free and consists of two primary components:
- Constraint-Aware Caching Pattern Search: Instead of a one-size-fits-all uniform schedule, ProCache uses a lightweight, offline random sampling pipeline to find an optimal, non-uniform binary sequence $\mathbf{s}$ (where $1$ means compute and $0$ means cache). This search is governed by three practical constraints:
- Budget: Restricts the total number of computation steps to meet a target speedup.
- Monotonicity: Enforces longer caching intervals in early, stable denoising stages and more frequent updates in fast-changing later stages.
- Boundedness: Prevents excessively long caching intervals that cause irreversible error drift.
- Selective Computation: To mitigate error accumulation during long caching blocks without triggering full recomputation, ProCache injects partial updates at regular intervals. It selectively recomputes features only for:
- Deep Blocks: Layers where high-level semantic refinement happens and where errors accumulate most aggressively.
- High-Importance Tokens: Tokens experiencing the largest feature changes. To remain compatible with hardware-optimized kernels like FlashAttention, ProCache uses a "score-free" proxy—the $\ell_2$-norm of the attention module's value projection vector—to rank token importance efficiently.
Datasets
The authors evaluated ProCache across three state-of-the-art vision generative models using standard benchmarks:
- ImageNet (1,000-class): 50,000 images generated at $256 \times 256$ resolution to evaluate DiT-XL/2.
- MS-COCO2017: 30,000 randomly selected captions from the validation set used to evaluate PixArt-$\alpha$ at $256 \times 256$ resolution.
- PartiPrompts: 1,632 text prompts used to evaluate high-resolution ($1024 \times 1024$) generation on FLUX.1-dev and FLUX.1-schnell.
Key Insights and Ideas
- The Depth-Error Discrepancy: Feature errors do not propagate evenly across a transformer. Shallow layers remain remarkably stable across timesteps, while deeper layers exhibit massive error accumulation. Uniform caching strategies waste compute on stable shallow layers while starving volatile deep layers.
- Exponential Temporal Dynamics: Measuring the difference between consecutive denoising steps reveals that feature divergence is nearly flat during the early and middle stages of generation, but spikes exponentially at the very end. This confirms that uniform caching schedules are fundamentally suboptimal.
- FlashAttention Compatibility: Prior token-caching methods required access to full attention maps to calculate token importance, which breaks when using fast, memory-efficient kernels like FlashAttention. ProCache's value-vector norm proxy bypasses this limitation entirely, introducing only about 3% additional latency.
Key Results
- DiT-XL/2 (ImageNet): ProCache achieved a 2.90× speedup while obtaining the best Fréchet Inception Distance (FID) of 2.96, significantly outperforming uniform caching baselines like FORA (2.76× speedup, 3.88 FID).
- PixArt-$\alpha$ (MS-COCO): Delivered a 1.96× speedup with an FID of 27.66, outperforming other training-free acceleration methods in both speed and image fidelity.
- FLUX.1-dev: Achieved a 1.54× speedup on high-resolution text-to-image generation while slightly improving the human-preference Image Reward score over the baseline.
Limitations and Future Work
- Ultra-Step Models: The constraint-aware pattern search relies on having a reasonable trajectory of denoising steps (e.g., 20–50 steps). For ultra-fast models like FLUX.1-schnell, which generate images in only 4 steps, the pattern search strategy is ineffective, forcing the authors to fall back on a fixed 2-step interval.
- Extension to Video: While the paper focuses strictly on image generation, extending this depth- and time-varying caching framework to video diffusion models (where temporal redundancy is even higher) represents a promising but unexplored direction.
Summary updated