NTH

AB-Attention: Accurate Block Attention for Accelerating Video Diffusion Transformers

AuthorsBin Xu, Mo Zhang, Zhengfeiyang Zhang, Xinfeng Yang, Yixing Ma, Wei Wang, HeXin Wang, Pengfei Zhou, Wangbo Zhao

AffiliationsInf Rec · The Chinese University of Hong Kong, Shenzhen · Shandong University · The University of Tokyo · Fudan University · University of California, Berkeley · The Hong Kong University of Science and Technology · National University of Singapore

October 30, 2026 2 min read
Watch on YouTube
The one-line take

AB-Attention speeds up video generation by skipping most attention computations while more accurately estimating the attention it omits.

Key results

89.16%
Wan2.1 attention skipped

Attention sparsity achieved on both Wan2.1 models.

92.35%
HunyuanVideo attention skipped

Attention sparsity achieved on HunyuanVideo-T2V-13B.

2.23
Maximum end-to-end speedup

Maximum speedup reported across the evaluated models.

4.4
Maximum PSNR improvement

Maximum improvement over the strongest baseline, in dB.

41%
Attention-output error reduction

Reduction versus oracle top-k selection at the same block size.

600
Penguin Benchmark prompts

Prompt count used in the main evaluation.

What the paper found

AB-Attention is a training-free method for making video diffusion transformers faster without simply discarding low-scoring attention blocks. Its Intra-Block Clustering Selector groups similar queries within each query block to estimate which key/value blocks matter, without globally clustering or reordering tokens. Sampling with Inclusion-Probability Weighting then samples blocks according to those estimates and corrects each sampled block using its inverse inclusion probability, so a single sparse attention pass estimates both the attention numerator and softmax normalizer. A custom kernel gathers fine-grained blocks into full tensor-core tiles. On Wan2.1 and HunyuanVideo, evaluated with 600 Penguin Benchmark prompts on NVIDIA H20 GPUs, it skips 89.16% of attention for Wan2.1 and 92.35% for HunyuanVideo, while improving PSNR over the strongest baseline by up to 4.4 dB and reaching up to 2.23× end-to-end speedup. SIP also reduces attention-output error by 41% compared with oracle top-k selection at the same block size. The results show that carefully correcting sampled attention can preserve video fidelity at high sparsity, while the tiled execution design keeps the computation hardware-friendly alongside systems such as FlashAttention-3.

Original 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$\times$ as much, yet it still improves PSNR by up to 4.4~dB over the strongest baseline and achieves up to 2.23$\times$ end-to-end speedup. Our code is available at https://github.com/InfRec-Cardinal/AB-Attention.

Read the original paper

More in Efficient AI

Browse all 70 papers →
02Efficiency

Rethinking Sequence Compression with Test-time Regression

Sihan Yang, Jie Huang, Hanxuan Li, Yifan Guo, Weigao Sun, Yiran Zhong, Weiyang Liu

A new regression-based compressor aims to keep language and vision models efficient while preserving more useful information in fewer tokens.

Read analysis