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

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Sun, Wenzhang, Hou, Qirui, Di, Donglin, Yang, Jiahui, Ma, Yongjia, Cui, Jianxun
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866917915290238976
author Sun, Wenzhang
Hou, Qirui
Di, Donglin
Yang, Jiahui
Ma, Yongjia
Cui, Jianxun
author_facet Sun, Wenzhang
Hou, Qirui
Di, Donglin
Yang, Jiahui
Ma, Yongjia
Cui, Jianxun
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2502_04393
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle UniCP: A Unified Caching and Pruning Framework for Efficient Video Generation
Sun, Wenzhang
Hou, Qirui
Di, Donglin
Yang, Jiahui
Ma, Yongjia
Cui, Jianxun
Computer Vision and Pattern Recognition
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.
title UniCP: A Unified Caching and Pruning Framework for Efficient Video Generation
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2502.04393