From Reusing to Forecasting: Accelerating Diffusion Models with TaylorSeers

Jiacheng Liu, Chang Zou, Yuanhuiyi Lyu, Junjie Chen, Linfeng Zhang

TL;DR

Diffusion models are powerful but computationally expensive. This paper introduces TaylorSeer, a novel "cache-then-forecast" approach that uses Taylor series expansion to predict future features, significantly accelerating diffusion models without requiring additional training and outperforming previous methods, especially at high acceleration ratios.

What Problem Does This Paper Address?

Diffusion Transformers (DiTs) have revolutionized generative AI, producing impressive image and video synthesis. However, their computational demands are a major bottleneck for real-time applications. Existing acceleration techniques often rely on "feature caching," where intermediate features from previous timesteps are reused. While effective for small time gaps, this approach suffers from rapidly increasing errors as the timestep interval grows, limiting its utility for high acceleration ratios. This paper addresses the challenge of achieving significant speedups in diffusion models without sacrificing generation quality, particularly when skipping many timesteps.

Methods

The core innovation of TaylorSeer is its "cache-then-forecast" paradigm, moving beyond the traditional "cache-then-reuse." Instead of simply reusing cached features, TaylorSeer leverages the observation that diffusion model features evolve smoothly over time. It uses Taylor series expansion to predict features at future timesteps based on features from previous ones.

The method starts by caching features and their temporal differences. For a linear prediction (Order=0, essentially naive caching), it uses cached features. For Order=1, it estimates feature trajectories using first-order finite differences. The key advancement is the use of higher-order Taylor expansions (Order=M) to capture more complex, non-linear feature dynamics. This involves approximating higher-order derivatives using finite differences. The formula for predicting future features is derived from the Taylor series expansion, incorporating these finite difference approximations. This approach allows for predicting features at intermediate timesteps using a limited number of fully computed timesteps, balancing efficiency and accuracy.

Datasets

The paper evaluates TaylorSeer on several established benchmarks:

  • FLUX.1-dev: For text-to-image generation.
  • HunyuanVideo: For text-to-video generation.
  • ImageNet: For class-conditional image generation using the DiT-XL/2 model.

The authors also refer to existing evaluation frameworks like DrawBench for text-to-image prompts and VBench for video generation.

Key Insights and Ideas

  • Feature Trajectories are Predictable: The paper's central insight is that diffusion model features, even their derivatives, exhibit stable trajectories across timesteps. This predictability is the foundation for forecasting rather than just reusing features.
  • "Cache-then-Forecast" is Superior to "Cache-then-Reuse": By actively predicting future states based on past dynamics, TaylorSeer overcomes the error accumulation inherent in simply reusing features, especially at large timestep intervals.
  • Taylor Series for Feature Forecasting: The application of Taylor series expansion provides a principled mathematical framework for modeling these feature trajectories and making accurate predictions.
  • Higher-Order Derivatives Capture Non-Linearity: While first-order prediction offers improvements, higher-order Taylor expansions are crucial for accurately modeling the complex, non-linear evolution of features, leading to better quality at high acceleration.
  • Training-Free Acceleration: A significant advantage is that TaylorSeer achieves acceleration without any additional training, making it easily applicable to existing diffusion models.

Key Results

TaylorSeer demonstrates impressive performance across various tasks and models:

  • Text-to-Image (FLUX.1-dev): Achieves a 4.99x acceleration with an Image Reward of 0.9953, significantly outperforming previous methods that suffer severe quality degradation at similar speeds. It also shows better PSNR, SSIM, and LPIPS.
  • Text-to-Video (HunyuanVideo): Achieves 5.00x acceleration with a VBench score of 79.93%, outperforming ToCa and DuCa. It maintains high-quality generation with minimal degradation in PSNR, SSIM, and LPIPS.
  • Class-Conditional Image Generation (DiT-XL/2): Achieves a 4.53x acceleration with an FID of 2.65, outperforming state-of-the-art methods. At higher acceleration ratios (N=5 or 6), TaylorSeer consistently maintains superior performance where other methods degrade significantly.
  • Qualitative Results: Visualizations show TaylorSeer preserving critical details like text, colors, and motion blur, while other methods exhibit errors such as text misspellings, missing objects, and loss of detail.

Limitations and Future Work

  • Order Selection: While higher-order Taylor expansions generally improve accuracy, the paper notes that improvements saturate beyond the third order (O ≥ 3). The optimal order might depend on the specific model and desired trade-off between accuracy and computational cost.
  • Error Bounds: The paper provides error bounds, indicating a trade-off between the prediction order and the caching interval. While TaylorSeer is effective, the analysis suggests that for very large intervals, some error is unavoidable.
  • Future Work: The authors hope TaylorSeer will shift the paradigm of feature caching from "reusing" to "forecasting." Future work could explore more sophisticated methods for predicting feature trajectories or adaptive strategies for selecting the optimal Taylor expansion order.

Summary updated

BibTeX
@inproceedings{liu2025from,
  author = {Jiacheng Liu and Chang Zou and Yuanhuiyi Lyu and Junjie Chen and Linfeng Zhang},
  title = {{From Reusing to Forecasting: Accelerating Diffusion Models with TaylorSeers}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure