HuggingFace Daily Papers·· 2 天前
AB-Attention:用精确块注意力加速视频扩散 Transformer
AB-Attention: Accurate Block Attention for Accelerating Video Diffusion Transformers
AI 导读
AB-Attention 是一种免训练方法,通过块内聚类选择器(IBCS)低成本评估块重要性,并用包含概率加权采样(SIP)按比例采样块、以逆概率重加权,从而在高稀疏度下逼近稠密注意力。在 Wan2.1 和 HunyuanVideo 上,它跳过 89–92% 的注意力计算,基线计算量是其 1.8–3.6 倍,PSNR 最高提升 4.4 dB,端到端加速最高 2.23 倍。代码已开源。
正文 · 原文
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 this https URL.
| Comments: | 20 pages, 5 figures, 3 tables |
| Subjects: | Computer Vision and Pattern Recognition (cs.CV) |
| Cite as: | arXiv:2610.39663 [cs.CV] |
| (or arXiv:2610.39663v1 [cs.CV] for this version) | |
| https://doi.org/10.48550/arXiv.2610.39663 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Bin Xu [view email]
[v1]
Thu, 29 Oct 2026 09:15:39 UTC (23,576 KB)
来源:HuggingFace Daily Papers · arxiv.org