EpaCache: Error-Propagation-Aware Caching for Accelerating Diffusion-Based Visual Generation

Yuhan Liu, Zongwei Hong, Jinglun Li, Linze Li, Shen Zhang, Yao TangarXiv 2026

TL;DR

EpaCache is a training-free caching policy that accelerates diffusion-based image and video generation by accounting for how approximation errors propagate across the sampling trajectory. By dynamically lowering caching thresholds at high-impact timesteps and relaxing them at low-impact ones, it achieves superior latency-fidelity trade-offs compared to prior state-of-the-art methods without requiring model retraining.

What Problem Does This Paper Address?

Diffusion models and Diffusion Transformers (DiTs) generate high-quality visual content but suffer from high computational costs due to their iterative, multi-step sampling processes. Caching methods try to solve this by reusing intermediate network outputs across adjacent timesteps to save time.

However, existing approaches decide when to cache based purely on local temporal changes between consecutive steps. They overlook a critical fact: an error introduced at one step doesn't stay local—it propagates through the remaining steps. Errors injected early in the generation process or at highly sensitive timesteps can drastically compound and degrade final image or video quality, a trajectory-level phenomenon that local-only cache controllers fail to manage.

Figure 2: L1 deviation trajectories caused by cache-induced approximation error at selected denoising steps s. Darker curves indicate larger terminal deviations.

Methods

EpaCache introduces an Error-Propagation-Aware Caching strategy that shifts the focus from local variation to downstream impact:

  1. Error-Propagation Profiling: In a one-time offline calibration phase, EpaCache injects an isolated cache-reuse perturbation at a specific timestep $t$ and measures the resulting relative $L_1$ deviation in the final latent state across a small set of calibration prompts.
  2. Timestep-Specific Threshold Allocation: Using this profile, EpaCache converts the final deviation into an allocation weight. Timesteps with a high downstream impact (large final deviation) are assigned smaller reuse thresholds (conservative caching), while low-impact timesteps get larger thresholds (aggressive caching). This redistributes a user-defined global caching budget intelligently across the entire trajectory.
  3. Online Cache Decision: During inference, EpaCache tracks local temporal variation using a lightweight input proxy. It reuses the cached residual only if the accumulated local variation stays below the dynamically allocated timestep-specific threshold.
  4. Sparse-Step Interpolation: To minimize the profiling overhead, the authors introduce an optimization where only a fraction of timesteps (e.g., 1 out of every 4 or 8) are explicitly profiled, and the rest are filled in using interpolation.
EpaCache workflow converting final step deviation profiles into adaptive thresholds.

Datasets

The authors evaluated EpaCache across multiple image and video generative models using the following datasets:

  • DrawBench: Used to evaluate text-to-image generation performance on the FLUX.1-dev model (200 prompts).
  • VBench: Used to evaluate text-to-video generation performance on Wan2.1-1.3B and HunyuanVideo models (944 prompts).
  • T2V-CompBench: A subset of 20 prompts was selected from this benchmark to serve as the default calibration set for profiling.

Key Insights and Ideas

  • Trajectory-Level Impact Matters: The cost of cache reuse isn't just about how much the model's features change from step $t$ to step $t+1$; it's about how that change amplifies over the next 40+ steps.
  • Asymmetry of Error Injection: Errors introduced early in the denoising trajectory have more time to compound, leading to massive final deviations, whereas errors introduced near the end have minimal impact.
  • Non-Uniform Sensitivity: Even among neighboring steps, some timesteps are significantly more sensitive to perturbations than others due to the underlying structural formation of the visual content.

Key Results

EpaCache consistently improves the latency–fidelity trade-off over existing state-of-the-art caching methods:

  • FLUX.1-dev (Text-to-Image): At an aggressive ~70% skip rate, EpaCache reduces inference time from 11.7 seconds (SeaCache) to 11.3 seconds while boosting PSNR from 21.4 to 22.8.
  • HunyuanVideo (Text-to-Video): It achieves a 2.63× speedup over uncached inference. At matched latency, it improves the structural similarity index (SSIM) from 0.891 (SeaCache) to 0.905 and eliminates watermark-like artifacts introduced by baseline methods.
  • Wan2.1-1.3B: Delivers a PSNR of 30.47 compared to SeaCache's 29.60 at a comparable latency (~212 seconds).
Figure 1: (a) PSNR–latency trade-off compared with Vanilla, TaylorSeer, TeaCache, and SeaCache, where the upper-left direction indicates better performance. (b) A representative case on FLUX.1-dev.

Limitations and Future Work

  • Calibration Overhead: Although training-free, EpaCache requires an offline profiling step with a set of calibration prompts to map out the error propagation profile for a new model backbone. However, the authors show that sparse-step interpolation can reduce this overhead to as low as 2.45× the cost of a single standard inference run per prompt.
  • Prompt Dependency in Small Calibration Sets: While the default calibration set ($N=20$) provides a stable profile, very small calibration sets ($N=1$ or $5$) can lead to prompt-dependent, unstable threshold allocations.
  • Future Directions: The authors suggest that integrating this error-propagation awareness into other types of acceleration techniques, such as token pruning or quantization, could yield further synergistic speedups.

Summary updated

BibTeX
@misc{liu2026epacache,
  author = {Yuhan Liu and Zongwei Hong and Jinglun Li and Linze Li and Shen Zhang and Yao Tang},
  title = {{EpaCache: Error-Propagation-Aware Caching for Accelerating Diffusion-Based Visual Generation}},
  year = {2026},
  eprint = {2608.29264},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.29264},
}
Figure