UniCP: A Unified Caching and Pruning Framework for Efficient Video Generation

Wenzhang Sun, Qirui Hou, Donglin Di, Jiahui Yang, Yongjia Ma +1 more
2/6/2025
cs.CV

No confident code implementation found for this paper.

Abstract

Diffusion Transformers (DiT) excel in video generation but encounter significant computational challenges due to the quadratic complexity of attention. Notably, attention differences between adjacent diffusion steps follow a U-shaped pattern. Current methods leverage this property by caching attention blocks, however, they still struggle with sudden error spikes and large discrepancies. To address these issues, we propose UniCP a unified caching and pruning framework for efficient video generation. UniCP optimizes both temporal and spatial dimensions through. Error Aware Dynamic Cache Window (EDCW): Dynamically adjusts cache window sizes for different blocks at various timesteps, adapting to abrupt error changes. PCA based Slicing (PCAS) and Dynamic Weight Shift (DWS): PCAS prunes redundant attention components, and DWS integrates caching and pruning by enabling dynamic switching between pruned and cached outputs. By adjusting cache windows and pruning redundant components, UniCP enhances computational efficiency and maintains video detail fidelity. Experimental results show that UniCP outperforms existing methods in both performance and efficiency.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{sun2025unicp,
  title  = {UniCP: A Unified Caching and Pruning Framework for Efficient Video Generation},
  author = {Wenzhang Sun and Qirui Hou and Donglin Di and Jiahui Yang and Yongjia Ma and Jianxun Cui},
  year   = {2025},
  eprint = {2502.04393},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.04393v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.04393.svg)](https://codeofpaper.com/paper/2502.04393)

Discussion