Every Query Routes Itself: Accelerating Video Diffusion Transformers with Per-Query Routed Sparse Attention
Zhen Huang, Shuwei Li, Ruizhe Yao, Xinrui Chen, Danyi Liu, Haoyuan Liang, Zhiyu Ye, Qiuyan Sun, Bingwei Chen, Yiyuan Li, Xu Zhou, Haohuan Fu
Abstract
Self-attention over long token sequences dominates the inference cost of video diffusion transformers. Clustering-based sparse attention clusters both queries and keys and lets all queries in a cluster share one selection of key clusters. We show that this sharing limits accuracy: with key clusters and density fixed, attention grows more accurate as the query clusters are refined, and is most accurate when each query selects on its own, which needs no query clustering at all. We therefore propose Per-Query Routed Sparse Attention (PQRS), a training-free method that clusters only keys, lets each query select its own key clusters, and compensates for the unselected ones with their centroids. Per-query selections leave no query tile with a shared key list, so PQRS traverses key clusters instead of queries, buckets queries with identical selections into dense tasks, and merges their partial results in one pass under a fixed softmax offset carried from the previous denoising step. On four text-to-video and image-to-video models from the Wan and HunyuanVideo families, PQRS is the fastest of all the sparse attention methods we evaluate and the closest to the dense output, reaching 28.9 dB PSNR on Wan2.1-T2V and 35.4 dB on HunyuanVideo at 1.66--2.10× end-to-end speedup.
Create a lesson
Related papers
Spark-H3: Adaptive Block Sparse Attention for Video Diffusion Models
Shared title terminology · Zecheng Tang, Jiaye Fu, Youtian Lin et al.
One Prior, Two Dynamics: Repurposing Video Diffusion Transformers for Self-Supervised Latent Action Learning
Shared title terminology · Yuxin Jiang, Wenqiang Sun, Jiaqi Li et al.
GAAFormer: Geometry-Anchored Attention Transformer for Joint Point Cloud Denoising and Upsampling
Shared title terminology · Haoxi Tian
Hindsight Forcing: Learning Better History from the Future in Autoregressive Video Diffusion
Shared title terminology · Haonan An, Yihang Tao, Yu Guo et al.
V2VFusion: Text-Controlled Video-to-Video Diffusion for Degradation-Aware Video Fusion
Shared title terminology · Jiajun Chen, Han Xu, Yunfei Huang et al.
Tokenize Moments, Not Frames: Tokenizer-Aware Budget Allocation for Training-Free Video LLM Acceleration
Shared title terminology · Zirui Zhao, Kai Liu, Linghe Kong