HyperVAttention: Efficient Sparse Attention with Spatio-Temporal Clustering for Video Diffusion

2026-07-03Computer Vision and Pattern Recognition

Computer Vision and Pattern RecognitionArtificial IntelligenceMachine Learning
AI summary

The authors focus on improving a method called Video Diffusion Transformers (VDiTs) used for generating videos, which struggle with creating long videos efficiently because their attention calculations are very slow. They introduce HyperVAttention (HVA), a new technique that speeds up this process by grouping video parts in smarter ways and using hardware-friendly tricks to run faster on GPUs without extra training. Their design reduces unnecessary work during video generation and makes better use of computing resources, leading to faster video creation and higher quality compared to previous sparse attention methods. Tests on text-to-video tasks show their method significantly improves speed and output quality.

Video Diffusion TransformersSparse AttentionSelf-AttentionClusteringSpatio-temporal LocalityGPU KernelTriton KernelText-to-Video GenerationDenoisingParallel Agglomerative Merging
Authors
Dongyeun Lee, Amir Zandieh, Vahab Mirrokni, Junmo Kim, Insu Han
Abstract
Video Diffusion Transformers (VDiTs) have demonstrated significant capabilities in high-fidelity video generation. However, their ability to produce long-duration videos is fundamentally constrained by the quadratic complexity of the self-attention mechanism. Recent clustering-based sparse attention methods improve the quality-speed trade-off by grouping semantically similar tokens, but their practical efficiency remains limited by two bottlenecks: substantial clustering overhead and low CTA utilization caused by irregular cluster-induced blocks. We propose HyperVAttention (HVA), a training-free sparse attention framework that addresses both bottlenecks jointly. To reduce clustering overhead, we introduce 3D local-window clustering, which exploits the spatio-temporal locality of video tokens to restrict centroid search to fixed local neighborhoods, and implement it with a custom Triton kernel for efficient execution. We further propose a hybrid clustering strategy that performs full clustering only at anchor steps and updates only subset tokens at intermediate steps, leveraging the temporal stability of cluster assignments across denoising steps. To improve CTA utilization, we present hardware-aware cluster merging that minimizes CTA-aligned execution cost through parallel agglomerative merging, improving block density and approximation fidelity by utilizing idle tile capacity. Together, these components reduce clustering overhead, avoid redundant updates, and better align sparse attention with the fixed tile structure of modern GPU kernels. Experiments on Text-to-Video generation show that HVA establishes a new Pareto frontier for training-free sparse attention in video diffusion, reducing end-to-end latency by up to $2.13\times$ while improving fidelity over existing training-free sparse attention baselines.