DraftAttention: Fast Video Diffusion via Low-Resolution Attention Guidance

Xuan Shen, Chenxia Han, Yufa Zhou, Yanyue Xie, Yifan Gong +5 more
5/17/2025
25 citations
cs.CVcs.AI
diffusion-flowtransformer-attention

Official code: shawnricecake/draft-attention (104 stars, Python, last commit 2025-05-22).

Abstract

Diffusion transformer-based video generation models (DiTs) have recently attracted widespread attention for their excellent generation quality. However, their computational cost remains a major bottleneck-attention alone accounts for over 80% of total latency, and generating just 8 seconds of 720p video takes tens of minutes-posing serious challenges to practical application and scalability.

Show full abstract

To address this, we propose the DraftAttention, a training-free framework for the acceleration of video diffusion transformers with dynamic sparse attention on GPUs. We apply down-sampling to each feature map across frames in the compressed latent space, enabling a higher-level receptive field over the latent composed of hundreds of thousands of tokens. The low-resolution draft attention map, derived from draft query and key, exposes redundancy both spatially within each feature map and temporally across frames. We reorder the query, key, and value based on the draft attention map to guide the sparse attention computation in full resolution, and subsequently restore their original order after the attention computation. This reordering enables structured sparsity that aligns with hardware-optimized execution. Our theoretical analysis demonstrates that the low-resolution draft attention closely approximates the full attention, providing reliable guidance for constructing accurate sparse attention. Experimental results show that our method outperforms existing sparse attention approaches in video generation quality and achieves up to 1.75x end-to-end speedup on GPUs. Code: https://github.com/shawnricecake/draft-attention

View on arXivView PDF

Code Implementations(1)

Code for Draft Attention

1043Python, ShellMay 10, 20251 years ago

Similar Papers

Cite this paper

@article{shen2025draftattention,
  title  = {DraftAttention: Fast Video Diffusion via Low-Resolution Attention Guidance},
  author = {Xuan Shen and Chenxia Han and Yufa Zhou and Yanyue Xie and Yifan Gong and Quanyi Wang and Yiwei Wang and Yanzhi Wang and Pu Zhao and Jiuxiang Gu},
  year   = {2025},
  eprint = {2505.14708},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.14708v1}
}

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/2505.14708.svg)](https://codeofpaper.com/paper/2505.14708)

Discussion