PQRS:面向视频扩散Transformer的逐查询路由稀疏注意力加速方法
Every Query Routes Itself: Accelerating Video Diffusion Transformers with Per-Query Routed Sparse Attention
一种免训练稀疏注意力方法PQRS只对key聚类,让每个query独立选择key簇,并用簇质心补偿未选中的簇,从而避免query聚类带来的精度损失。在Wan与HunyuanVideo系列的四个文生视频、图生视频模型上,PQRS是所评估稀疏注意力方法中最快且最接近稠密输出的方案,Wan2.1-T2V达28.9 dB PSNR、HunyuanVideo达35.4 dB,端到端加速1.66–2.10倍。
arXiv:2611.24479v1 Announce Type: new 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\times$ end-to-end speedup.
来源:arXiv (AI + Vision + Imaging) · arxiv.org