ERTACache: Error Rectification and Timesteps Adjustment for Efficient Diffusion

Xurui Peng, Chenqian Yan, Hong Liu, Rui Ma, Fangmin Chen, Xing Wang, Zhihua Wu, Songwei Liu, Mingbao Lin

TL;DR

ERTACache is a training-free acceleration framework that slashes the computational cost of diffusion models by up to 50% without sacrificing visual quality. By decomposing cache-induced errors into "feature shift" and "step amplification," the authors introduce a system that combines offline profiling, dynamic timestep adjustment, and a closed-form error correction model to achieve a 2× speedup on state-of-the-art video models like Wan2.1.

The Bottleneck in Diffusion Models

Diffusion models—the engines behind tools like Midjourney and Sora—are notoriously slow because they generate content through an iterative denoising process. For video generation, this is a massive bottleneck; synthesizing just six seconds of video can take several minutes on high-end GPUs.

One popular way to speed this up is feature caching: reusing the intermediate outputs of the neural network from a previous step instead of recomputing them. However, "naïve" caching is a double-edged sword. It introduces errors that compound over time, leading to "drift" in the generation trajectory. This results in blurry textures, warped motion, or a loss of fine detail. Current methods often rely on "online heuristics" (guessing when to cache on-the-fly), which can be unreliable and inconsistent across different prompts.

Methods: The ERTACache Framework

The authors propose ERTACache, which tackles these issues through a three-pronged strategy designed to jointly rectify both feature shift and step amplification errors.

Overview of the ERTACache framework, detailing offline policy calibration, timestep adjustment, and inference with error rectification.
  1. Offline Policy Calibration: Instead of making caching decisions on-the-fly, the researchers found that cache-error patterns are surprisingly consistent across different prompts. They use a small "calibration set" to pre-calculate an optimal schedule of which steps to compute and which to cache (shown in part a of the figure).
  2. Trajectory-Aware Timestep Adjustment: When we reuse a cached feature, we aren't following the "true" path of the generation. ERTACache introduces a correction coefficient ($\phi_i$) that dynamically shrinks or grows the integration interval (the "step size" of the solver) to keep the generation on the right track (shown in part b of the figure).
  3. Explicit Error Rectification: This is the most novel part. The authors analytically model the error introduced by the cache. They use a closed-form residual linearization model—essentially a lightweight mathematical "patch"—to approximate and subtract the expected error from the cached output during inference (shown in part c of the figure). This allows for aggressive caching while maintaining high fidelity.

Key Insights and Ideas

  • Error Decomposition: The paper identifies that caching fails for two distinct reasons: Feature Shift Error (the cached data is slightly inaccurate) and Step Amplification Error (the error gets magnified because the time-steps are fixed). Fixing one without the other is insufficient.
  • Consistency is Key: A major "aha" moment was discovering that while every image or video is unique, the error patterns of the model's internal layers are stable across different prompts. This justifies using an offline "profile" rather than expensive online computation.
  • Better than the Original? Surprisingly, in some tests, ERTACache actually improved visual quality metrics compared to the full-computation baseline. This suggests that the error rectification might act as a form of "denoising" for the model's own internal approximations.

Key Results

The researchers evaluated ERTACache on several heavy-hitting, state-of-the-art models, including Open-Sora 1.2, CogVideoX, Wan2.1, and Flux-dev 1.0.

  • 2× Speedup: On the Wan2.1 video model, ERTACache achieved a 2.17× speedup while maintaining a VBench score of 80.73% (nearly identical to the 81.30% baseline).
  • Superior Fidelity: Compared to other popular caching methods like TeaCache, ERTACache consistently showed higher PSNR and lower LPIPS. For example, on CogVideoX, ERTACache achieved a PSNR of 26.44 vs. TeaCache’s 20.97 at similar speeds.
  • Low Overhead: The error rectification and timestep adjustment are mathematically simple (closed-form solutions), meaning they add less than 0.5% to the total computational cost.

Limitations and Future Work

  • Offline Dependency: While the offline profiling is efficient, the "optimal" cache schedule is specific to the model architecture and the number of sampling steps. If you change your sampler or step count, you need to re-run the calibration.
  • Flow-Matching Focus: The current derivation is heavily optimized for Flow-Matching frameworks (like SD3, Flux, and Wan2.1). While the principles apply to standard DDPM/DDIM diffusion, the specific linearization math might need adjustment for those older architectures.
  • Future Directions: The authors suggest exploring more complex non-linear models for error rectification, though they caution that this might increase the computational overhead that caching is meant to solve.

Summary updated

BibTeX
@inproceedings{peng2026ertacache,
  author = {Xurui Peng and Chenqian Yan and Hong Liu and Rui Ma and Fangmin Chen and XING WANG and Zhihua Wu and Songwei Liu and Mingbao Lin},
  title = {{ERTACache: Error Rectification and Timesteps Adjustment for Efficient Diffusion}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=InvyBiYcK5},
}
Figure