Parameterized Stripe Attention for Efficient Video Generation
xingyu jia, Baole Ai, Ang Wang, Kang Zhao, Yong Li
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: Video Understanding & Generation › Efficient Video Diffusion Attention · Type: new method · Keywords: video generation, sparse attention, stripe attention, efficient kernel, speedup
Areas: Model Architectures & Sequence Modeling › World Modeling Architectures › Sparse Attention for Video Diffusion; Generative Models (Diffusion & Flows) › Video Generation › Efficient Video Diffusion; Computer Vision & 3D › Visual Diffusion and Restoration › Video Generation
Summary
PSA introduces a parameterized stripe attention that captures periodic diagonal stripe patterns in video DiT attention, enabling a single efficient kernel and achieving 1.57×-1.37× speedups over FlashAttention-3.
Explained to a 5-year-old
Computers can create new videos by using a technique called diffusion transformers. This technique works by looking at many parts of the video at once. Looking at everything takes a lot of computer time, so the videos are slow to make. Some scientists tried to make the looking faster by only looking at a few parts. This helps videos be made more quickly while still looking good.
Explained to a 5-year-old, longer
Computers can create new videos by using a technique called diffusion transformers. This technique works by looking at many parts of the video at once. Looking at everything takes a lot of computer time, so the videos are slow to make. Some scientists tried to make the looking faster by only looking at a few parts. But those fast methods either could not see all the important parts or were complicated to run. The researchers found that the way the original method looks at video forms repeating diagonal stripes. They used this stripe pattern to design a new way to look at video that follows the stripes. This new way lets the computer focus on the right parts quickly. It uses a single piece of code that works for many stripe patterns. They also created a simple method to choose how many parts to look at without training a new model. When they tested it, the new method made videos about 1.5 times faster than the old method. The videos still looked good, only a little bit less perfect. This makes it possible to generate videos more quickly for everyday use.
For a technical reader
The paper addresses the high latency of full spatio-temporal attention in video diffusion transformers. It observes that attention patterns in video DiTs follow periodic diagonal stripe structures and proposes a parameterized representation to encode these patterns. A single CUDA kernel processes all patterns, and an offline search selects sparsity per head without training. Experiments show 1.57×-1.37× speedups on two video generation models while maintaining visual quality.
Problem
Video diffusion transformers (DiTs) generate high-quality video but suffer from high inference latency due to expensive full spatio-temporal attention. Existing sparse attention methods either have rigid masks or runtime masks that trade flexibility for efficiency, lacking a unified structural characterization.
Method
The approach identifies periodic diagonal stripe structures in video DiT attention and encodes them with a parameterized representation that can generate diverse sparse masks. A single hardware-efficient CUDA kernel processes all patterns, and a training-free offline search selects optimal sparsity per attention head under an error tolerance.
Results
The approach achieves 1.57× and 1.37× end-to-end speedups on HunyuanVideo and Wan 2.1 respectively over FlashAttention-3 baselines, with acceptable visual quality degradation.
Contributions
The paper provides a unified structural characterization of video DiT attention, a parameterized stripe attention representation that enables a single efficient kernel, and a training-free sparsity search algorithm. Together these contributions yield significant speedups while preserving visual quality.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction