Research ·
AB-Attention: Accurate Block Attention for Accelerating Video Diffusion Transformers
AB-Attention is a training-free sparse attention method for video diffusion transformers that skips 89–92% of attention computation while improving fidelity over prior block-sparse baselines, achieving up to 2.23x end-to-end speedup on Wan2.1 and HunyuanVideo.

AB-Attention is a new training-free method for accelerating video diffusion transformers, which are dominated at inference time by the quadratic cost of 3D full attention. It improves on dynamic block-sparse attention, whose fidelity degrades under aggressive sparsity because blocks are scored from coarse summaries or costly global clustering, pruned blocks disappear from the softmax, and entire tiles are kept or dropped even when only a few keys matter.
The method has three parts. An Intra-Block Clustering Selector estimates block importance cheaply by clustering queries only within each query block, without permuting tokens. Sampling with Inclusion-Probability Weighting then samples blocks in proportion to those estimates and reweights them by inverse inclusion probability, so a single pass estimates dense attention rather than truncating it. Finally, the 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 while baselines compute 1.8–3.6 times as much, yet it improves PSNR by up to 4.4 dB over the strongest baseline and delivers up to 2.23x end-to-end speedup. Code is available on GitHub. For builders of video generation pipelines, it offers a drop-in, training-free way to cut inference cost without retraining, and the PSNR gains suggest quality holds up where earlier sparse methods degrade.
References
- Hugging Face · huggingface.co
Read the full story at Hugging Face ↗Like, save or discuss on Buzz