Model Reveals What to Cache: Profiling-Based Feature Reuse for Video Diffusion Models

Xuran Ma, Yexin Liu, Liu Yaofu, Xianfeng Wu, Mingzhe Zheng, Zihao Wang, Ser-Nam Lim, Harry Yang

TL;DR

This paper tackles the computational cost of video diffusion models by introducing "ProfilingDiT," a novel adaptive caching strategy. It intelligently reuses features by distinguishing between foreground and background elements, leading to significant speedups (up to 2.01x) without sacrificing visual quality.

What Problem Does This Paper Address?

Generating high-quality videos with diffusion models, particularly those based on the Diffusion Transformer (DiT) architecture, is computationally intensive. This is because the iterative denoising process requires significant computation at each step and for each block within the model. While feature caching has been explored to reduce this burden, existing methods often treat all features equally, leading to suboptimal reuse and potential degradation in video quality. The core challenge is to efficiently reuse computations without losing critical information, especially for dynamic foreground elements.

Methods

ProfilingDiT introduces a "dual-granularity caching strategy" that operates at both the block and temporal (step) levels.

  • Block-Level Caching: The authors analyze attention distributions in DiT models and observe that different blocks consistently focus on either foreground or background regions. ProfilingDiT leverages this by selectively caching features from blocks that primarily attend to the background, while preserving full computation for foreground-focused blocks. This is achieved by analyzing attention scores and segmenting regions using PCA and SAM2.
  • Step-Level Caching: They observe that the similarity between predicted noise in consecutive denoising steps is low initially and then stabilizes. Based on this, ProfilingDiT implements a temporal caching strategy. Caching is disabled in the early steps to ensure precise updates, and then gradually enabled as the denoising process progresses and predictions become more stable. This is controlled by an adaptive caching interval that becomes more frequent over time.

Datasets

The paper uses existing video generation datasets for evaluation. Specifically, they mention:

  • HunyuanVideo: Used for experiments and comparisons.
  • Wan2.1: Used for experiments and comparisons.

No new datasets are introduced.

Key Insights and Ideas

  • Semantic Separation in Blocks: A key observation is that DiT blocks exhibit a consistent preference for attending to either foreground or background regions. This semantic specialization is crucial for targeted caching.
  • Temporal Noise Similarity Evolution: The similarity of predicted noise between consecutive denoising steps is not constant. It starts low and then stabilizes, providing a temporal signal for when caching is beneficial.
  • Foreground vs. Background Caching Trade-off: Caching background features is more effective for maintaining visual quality because background elements are often more spatially localized and less temporally variant. Foreground elements, being dynamic, require more computation.
  • Dual-Granularity is Key: Combining block-level semantic awareness (foreground/background) with step-level temporal stability analysis allows for a more nuanced and effective caching strategy.

Key Results

ProfilingDiT achieves significant improvements in both efficiency and visual quality:

  • Speedup: Up to 2.01x speedup on the Wan2.1 model and 1.87x speedup on HunyuanVideo (720p) compared to baselines.
  • Visual Quality:
    • On HunyuanVideo, ProfilingDiT achieves an LPIPS of 0.1203, PSNR of 26.44, and SSIM of 0.8445, outperforming TeaCache variants.
  • On Wan2.1, it achieves an LPIPS of 0.1256, PSNR of 22.02, and SSIM of 0.7899.
  • Efficiency: The method maintains competitive latency while drastically reducing computation. For instance, it achieves a latency of 932s on HunyuanVideo, a significant reduction from the baseline's 1745s.

Limitations and Future Work

  • Limitations: The paper acknowledges that while their method improves efficiency, there's still a trade-off to consider between speed and absolute perceptual quality. The "Split" pattern in block reuse provides better consistency by stabilizing background modeling, but "Alternate" reuse offers more adaptability. The effectiveness of caching can also be influenced by the complexity of the scene (e.g., multi-object videos).
  • Future Work: The authors plan to extend and deploy ProfilingDiT across a broader range of video diffusion models to prove its generalizability and enhance its robustness in diverse scenarios. They also aim to further investigate its applicability in multi-object scenarios.

Summary updated

BibTeX
@inproceedings{ma2025model,
  author = {Xuran Ma and Yexin Liu and LIU Yaofu and Xianfeng Wu and Mingzhe Zheng and Zihao Wang and Ser-Nam Lim and Harry Yang},
  title = {{Model Reveals What to Cache: Profiling-Based Feature Reuse for Video Diffusion Models}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
  url = {https://openreview.net/forum?id=mdpDFbAtHi},
}
Figure