Every Query Routes Itself: Accelerating Video Diffusion Transformers with Per-Query Routed Sparse Attention

Zhen Huang, Shuwei Li, Ruizhe Yao, Xinrui Chen, Danyi Liu +7 more
11/18/2026
cs.CVcs.LG
diffusion-flowtransformer-attention

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{huang2026every,
  title  = {Every Query Routes Itself: Accelerating Video Diffusion Transformers with Per-Query Routed Sparse Attention},
  author = {Zhen Huang and Shuwei Li and Ruizhe Yao and Xinrui Chen and Danyi Liu and Haoyuan Liang and Zhiyu Ye and Qiuyan Sun and Bingwei Chen and Yiyuan Li and Xu Zhou and Haohuan Fu},
  year   = {2026},
  eprint = {2611.24479},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.24479v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.24479.svg)](https://codeofpaper.com/paper/2611.24479)

Discussion