AB-Attention: Accurate Block Attention for Accelerating Video Diffusion Transformers
Bin Xu, Mo Zhang, Zhengfeiyang Zhang, Xinfeng Yang, Yixing Ma, Wei Wang, HeXin Wang, Pengfei Zhou, Wangbo Zhao
Abstract
Video diffusion transformers generate high-quality videos, but the quadratic cost of 3D full attention dominates their inference. Dynamic block-sparse attention reduces this cost by computing exact attention only on key/value blocks selected from current activations. However, its fidelity degrades under aggressive sparsity: blocks are scored from coarse summaries or formed by costly global clustering, pruned blocks vanish from the softmax, and whole tiles are kept or dropped even when only a few of their keys matter. To address these limitations, we propose Accurate Block Attention (AB-Attention), a training-free method that accurately approximates dense attention at high sparsity. Its Intra-Block Clustering Selector (IBCS) estimates block importance faithfully yet cheaply by clustering queries only within each query block, without permuting tokens. Sampling with Inclusion-Probability Weighting (SIP) then samples blocks in proportion to these estimates and reweights them by inverse inclusion probability, so that one pass estimates dense attention rather than truncating it. Finally, its kernel gathers key/value blocks much smaller than a tile into full tensor-core tiles, refining selection at no extra tensor-core cost. On Wan2.1 and HunyuanVideo, AB-Attention skips 89--92\% of attention, whereas the baselines compute 1.8--3.6 as much, yet it still improves PSNR by up to 4.4~dB over the strongest baseline and achieves up to 2.23 end-to-end speedup. Our code is available at https://github.com/InfRec-Cardinal/AB-Attention.
Create a lesson
Metadata
- Comments
- 20 pages, 5 figures, 3 tables
Related papers
Running a 20B Video Diffusion Transformer on Consumer Hardware: A Deployment and Measurement Report for MiniMax H3 on Apple Silicon
Shared title terminologycs.CVZhenzhou, Shi, Yizhe et al.
Diffutoon-2: Toon Shading with Video Diffusion Models
Shared title terminologycs.CVYuze Sun, Zhongjie Duan, Yingda Chen et al.
DyLoMo-DiT: Dynamic Looped Mixture-of-Experts Diffusion Transformers
Shared title terminologycs.CVLernie Li, Yuanliu Liu, Pengfei Xiong et al.
ViDiHand2: Unifying Video Diffusion Priors and Hand Geometry for 3D Hand Motion Reconstruction in the Wild
Shared title terminologycs.CVYuxi Wang, Yufei Liu, Chengkai Jin et al.
UniCaMo: Unified Camera and Motion Control for Video Diffusion Models
Shared title terminologycs.CVLong Vu, Tan Ngo, Animesh Karnewar et al.
SASFormer: Stage-Aware Selective Attention Transformer for All-in-One Blind Image Restoration
Shared title terminologycs.CVXiangpeng Tian, Mingyang Li, Fajing Liu et al.