Parameterized Stripe Attention for Efficient Video Generation
Abstract
Diffusion Transformers (DiTs) enable high-quality video generation but suffer from substantial inference latency, primarily attributable to the computationally expensive full spatio-temporal attention. While sparse attention methods offer potential solutions, existing approaches face an inherent flexibility--efficiency dilemma: predefined masks lack the flexibility to capture diverse attention patterns, while runtime-determined masks introduce overheads and sacrifice hardware efficiency. We identify the lack of a unified structural characterization of DiT attention as a key limitation of existing methods, and establish that video DiT attention exhibits \textbf{periodic diagonal stripe structures} along both temporal and spatial dimensions. To formally encode these structured patterns within a single efficient kernel, we present {\bf PSA}, a parameterized stripe attention that formalizes the observed stripe regularity, unifying diverse attention patterns for efficient mask generation. This unified representation enables a single hardware-efficient CUDA kernel to process all sparse patterns, achieving FlashAttention-3-level Model FLOPs Utilization. To determine optimal sparsity configurations, we propose a training-free offline search algorithm that automatically maximizes sparsity under a specified error tolerance for each attention head. Experiments on HunyuanVideo and Wan~2.1 demonstrate that PSA achieves 1.57 and 1.37 end-to-end speedups over FlashAttention-3 baselines, with acceptable visual quality degradation.
Create a lesson
Metadata
- Categories
- cs.CV, cs.AI
Related papers
LiveVAE: Causal Window Attention Makes Efficient Streaming Video VAE
Shared title terminologycs.CVJiachen An, Sijie Zhao, Le Li et al.
SPARC: Geometry-Guided Attention Pruning for Long-Horizon Camera-Controlled Video Generation
Shared title terminologycs.CVZesong Yang, Weikai Chen, Liyuan Cui et al.
AnyCam: Anything Can Represent Camera for Video Generation
Shared title terminologycs.CVWeijie Lyu, Zhixin Shu, Yuntian Ke et al.
Agentic LongLive: Asynchronous Agentic Memory for Long Video Generation
Shared title terminologycs.CVShaoteng Liu, Shuai Yang, Wei Huang et al.
WorldInteract: Controllable Streaming Video Generation for Multi-Material Interactions
Shared title terminologycs.CVAhmed Hatem, Caoliwen Wang, Robert Hoang et al.
Neural Rendering Compiler: Generative Video Models as Programmable Renderers
Shared title terminologycs.CVYuxia Zhu, Xinglong Xu, Hao Liang et al.