From Local Mismatch to Global Impact: Optimizing Cache Reuse Policy for Efficient Diffusion

Xichen Ye, Yifan Wu, Zhikang Xie, Xiangyu Yue, Cheng Jin, Weizhong ZhangarXiv 2026

TL;DR

Existing cache-reuse methods for accelerating diffusion models rely on local similarity heuristics that poorly predict final generation quality. To fix this, Global-Impact Cache (GCache) models how errors accumulate globally across the entire denoising trajectory using a bilevel optimization framework. GCache delivers up to a 3× speedup on state-of-the-art image and video diffusion models while dramatically reducing perceptual artifacts compared to prior caching methods.

What Problem Does This Paper Address?

Diffusion models generate stunning images and videos, but they are computationally expensive because they require iteratively solving Ordinary Differential Equations (ODEs)—meaning dozens of sequential neural network evaluations for a single output.

To speed this up, researchers often use cache-based acceleration. Because intermediate features (residuals) change slowly between consecutive denoising steps, you can skip full network computations by reusing cached residuals from previous steps.

However, current methods decide when to reuse the cache based on local similarity metrics (like the relative $\ell_1$ distance between the current and cached step). The authors reveal a fundamental flaw here: local error spikes do not cleanly align with final generation quality. As shown in Figure 1, a massive spike in local error around step 19 results in almost zero degradation in final visual quality (measured by LPIPS). Conversely, small errors introduced early in the denoising process can snowball, leading to severe global distortion.

Figure 1: Comparison between local mismatch and global impact (lower is better). We conduct a series of independent experiments in which a cached residual is reused at exactly one specific timestep. For each timestep, the blue marker (Rel- L1) measures the local discrepancy between the ground-truth residual and the cached residual from the preceding step, while the red marker (LPIPS) reflects the resulting impact on final generation quality.

Methods

The authors introduce GCache (Global-Impact Cache) to bridge the gap between local caching decisions and global generation impact.

  1. Theoretical Error Bound: The authors first mathematically derive an analytical upper bound for how single-step and multi-step cache errors propagate through the ODE solver trajectory.
  2. Bernstein Polynomial Reparameterization: Pure worst-case theoretical bounds are often too pessimistic for highly non-convex diffusion dynamics. To make the bound practical, GCache parameterizes the error propagation exponent using a smooth, flexible Bernstein polynomial function.
  3. Bilevel Optimization Framework: GCache treats the cache policy search as a two-tier optimization problem:
  4. Inner Loop (Dynamic Programming): For a given set of polynomial parameters, it finds the mathematically optimal cache-reuse schedule (which steps to compute fully vs. which to cache) under a fixed computational budget $K$. This is efficiently solved as a shortest-path problem on a directed acyclic graph.
  5. Outer Loop (Bayesian Optimization): It tunes the Bernstein polynomial coefficients to directly minimize an empirical perceptual loss function—a hybrid objective combining LPIPS (perceptual fidelity) and SSIM (structural integrity)—over a small training set.
  6. Pre-calculation Trick: To avoid running slow diffusion models thousands of times during optimization, GCache pre-computes local approximation errors on a small training subset. This decouples error measurement from policy search, shrinking optimization time from hours to minutes.

Datasets

The authors evaluated GCache across diverse architectures and modalities:

  • Video Generation: Evaluated on Open-Sora 1.2, CogVideoX-2B, and Wan2.1-1.3B using the official 946 prompts from the VBench benchmark.
  • Image Generation: Evaluated on the strong text-to-image model Flux-dev 1.0 using 30,000 prompts from the COCO validation set.

Key Insights and Ideas

  • The "Positional" Impact of Error: Perturbations injected early in the denoising trajectory amplify exponentially over time, whereas errors injected near the end have negligible impact. Caching policies must prioritize full computation during these highly sensitive early stages.
  • Theory Meets Practice via Bilevel Optimization: Purely theoretical bounds tend to cluster all cache reuses at the very end of the trajectory. By using empirical data to "tighten" the bound via bilevel optimization, GCache discovers a balanced policy that prevents late-stage error spikes (see Figure 3a).
Figure 3: Analysis of cache policies and error estimation. (a) Policy comparison. Reconstruction error across the denoising process. The theoretical policy (orange) is overly pessimistic in early stages, leading to late-stage error spikes; GCache (green) balances computation to achieve the lowest final error. (b) Estimation fidelity. Comparison of error propagation profiles. The analytical bound (red) provides a conservative upper limit, while GCache’s optimized weighting (green) aligns tightly with the empirical ground truth (blue).
  • Zero-Shot Generalization: Once GCache learns a caching policy for a specific model backbone, that policy generalizes robustly across different prompt distributions (static vs. dynamic scenes) and scales seamlessly across different spatial resolutions (e.g., from $256\times256$ up to $1024\times1024$) without any re-tuning.

Key Results

GCache consistently achieves a superior speed-versus-quality trade-off compared to state-of-the-art baselines like TeaCache and ERTACache:

  • Wan2.1-1.3B (Video): At a 2.17× speedup, GCache-slow slashes the LPIPS error from 0.1095 (ERTACache) to 0.0316 while improving the VBench score. GCache-fast pushes the model to a 3.01× speedup while still maintaining better visual quality than ERTACache at 2.17×.
  • Flux-dev 1.0 (Image): At a 2.87× speedup, GCache achieves an LPIPS of 0.1825, significantly outperforming ERTACache (0.2658) and TeaCache (0.4427).
  • No Inference Overhead: Unlike methods that require auxiliary "corrector" networks to fix caching artifacts, GCache optimizes the schedule itself, meaning its quality gains come with zero extra computation at inference time.

Detailed quantitative metrics across video models are compiled in the paper's main evaluation table:

Table 1: Quantitative evaluation of efficiency and visual quality for video generation across different methods on three leading text-to-video diffusion models. Bold denotes the best performance under similar acceleration ratios. ↑indicates higher is better, and ↓indicates lower is better.

Limitations and Future Work

While highly effective, GCache currently operates under a fixed refresh budget ($K$) determined before inference. This means it applies the same sequence of caching steps regardless of whether an input prompt describes a simple static scene or a highly complex, fast-moving action sequence.

The authors note that promising future directions include developing sample-adaptive scheduling (dynamically adjusting the cache budget based on input complexity) and exploring more diverse perceptual objectives to further boost temporal consistency in video generation.

Summary updated

BibTeX
@misc{ye2026from,
  author = {Xichen Ye and Yifan Wu and Zhikang Xie and Xiangyu Yue and Cheng Jin and Weizhong Zhang},
  title = {{From Local Mismatch to Global Impact: Optimizing Cache Reuse Policy for Efficient Diffusion}},
  year = {2026},
  eprint = {2608.13043},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.13043},
}
Figure