arXiv(opens in a new tab)cs.AIAug 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2608.29264

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

Yuhan Liu, Zongwei Hong, Jinglun Li, Linze Li, Shen Zhang, Yao Tang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Diffusion-based visual generative models deliver strong image and video synthesis quality but incur high inference costs because sequential samplers repeatedly evaluate large networks. Caching-based methods reduce inference latency by reusing intermediate computations across adjacent timesteps. However, existing cache controllers rely primarily on local temporal variation and overlook the trajectory-level consequences of cache reuse. We introduce Error-Propagation-Aware Cache (EpaCache), a training-free caching policy that adaptively allocates the reuse budget on timesteps with lower downstream impact. Experiments on image and video synthesis models demonstrate that EpaCache consistently improves the latency-fidelity trade-off over existing caching methods. On FLUX.1-dev, EpaCache outperforms the prior state-of-the-art caching method in both latency and fidelity, reducing inference time from 11.7 s to 11.3 s while improving PSNR from 21.4 to 22.8. On HunyuanVideo, EpaCache achieves a 2.63×2.63\times speedup over uncached inference and improves SSIM from 0.891 to 0.905 over the prior state-of-the-art method at matched latency.

Introduction

Recent visual generative models have achieved strong performance in image and video synthesis (Zheng et al. 2024; Peng et al. 2025; Kong et al. 2024; Labs 2024; Yang et al. 2024; Hong et al. 2022; Rombach et al. 2022). As model backbones evolve from U-Net architectures (Ronneberger, Fischer, and Brox 2015) to Diffusion Transformer (DiT) (Peebles and Xie 2023), generation quality continues to improve, but inference becomes increasingly expensive because each sample is produced through a sequential multi-step sampling process. This repeated model evaluation is especially costly for high-resolution image and video generation, where latency, memory use, and computation directly limit practical deployment.

Existing acceleration techniques reduce this cost from different perspectives. Step reduction and distillation methods can shorten the sampling trajectory (Salimans and Ho 2022; Meng et al. 2023; Sauer et al. 2024), while post-training quantization reduces the cost of individual model evaluations (Chen et al. 2025; Liu et al. 2021). However, these

a) Our Methods compared with State-of-the-art Methods on Flux.1-dev

Figure

b) Selected Cases on Flux.1-dev

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.

methods often require additional training, extra fine-tuning data, or model-specific engineering. Caching-based acceleration instead provides a complementary training-free alternative by reusing model outputs or intermediate computations across adjacent timesteps, thereby exploiting temporal redundancy along the sampling trajectory without modifying the original model weights. Existing caching methods (Selvaraju et al. 2024; Zhao et al. 2025; Zou et al. 2025; Liu et al. 2025a,b; Chung et al. 2026) typically employ static thresholds, fixed skip intervals, or finely handcrafted rules to determine when cached computations should be reused, with their decisions driven primarily by temporal changes between adjacent sampling steps.

However, such local reuse criteria do not explicitly account for how a cache-induced approximation propagates through the remaining sampling trajectory and ultimately affects generation quality. As observed in Fig. 2, cache errors injected at different timesteps exhibit substantially different propagation effects. An error introduced early in the trajectory can be carried through many subsequent updates and may cause a large final deviation, whereas a cache injected later near the end has fewer opportunities to propagate. Moreover, at some timesteps, error caused by caching propagates more rapidly and can lead to larger final deviations than reuse at their neighboring timesteps. Therefore, the cost of cache reuse is not determined only by the local variation between adjacent

†^{\dagger}Corresponding author.

†^{†}Project leader.

Figure

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

steps; it also depends on how strongly an cache injected at that timestep affects the downstream trajectory. This observation raises a simple question: can we design a caching policy that explicitly accounts for timestep-dependent error propagation and allocates the caching budget accordingly?

Motivated by this observation, we propose EpaCache, a training-free, error-propagation-aware caching policy. EpaCache calibrates the downstream impact of cache reuse at each cacheable timestep by injecting an isolated reuse perturbation and measuring the resulting final-state deviation. Given a user-specified global mean tolerance, it then redistributes the tolerance across timesteps: high-impact timesteps receive smaller thresholds and are refreshed more conservatively, whereas low-impact timesteps receive larger thresholds and permit more aggressive cache reuse.

Our main contributions are threefold.

• Observation: We identify and analyze error propagation in cache-based acceleration, showing that cache-induced approximation errors not only propagate through subsequent denoising steps but also vary substantially in their downstream impact depending on when they are introduced.

• Method: We propose an error-propagation-aware caching policy, termed EpaCache. EpaCache adaptively assigns smaller reuse tolerances to high-impact timesteps and larger tolerances to low-impact timesteps, enabling efficient, high-fidelity diffusion model acceleration.

• Performance: Extensive experiments on multiple image and video generative models show that EpaCache reduces final deviation and improves reconstruction fidelity across different acceleration budgets, while maintaining a strong latency-quality trade-off over prior caching baselines.

References (65)