稀疏性应由输出分配:面向视频扩散Transformer的免训练块稀疏注意力分配

·

研究论文 · 2026/10/22

视频扩散Transformer中全3D注意力计算成本高昂,块稀疏注意力通过仅计算选定的注意力块来降低成本。然而,现有方法要么忽略了优化稀疏分配的可能性,要么依赖启发式规则或局部指标来指导分配。本文观察到,在不同层和不同去噪步骤中稀疏化注意力对最终视频保真度的影响程度差异显著,但最敏感的层-步骤对的身份在不同输入间几乎不变。基于这些发现,我们提出了ALLOT(通过输出测试分配层-步骤延迟),一种无需训练的稀疏分配方法。ALLOT将每个层-步骤对视为一个单元,通过(i)单元探测和(ii)轨迹校准来估计每个单元对最终视频误差的贡献,然后在实测延迟预算下联合优化单元密度。它保留了现有的选择策略和内核,仅替换分配组件。在相同或更短的墙钟时间下,ALLOT在使用XAttention时优于所有比较的分配策略,在HunyuanVideo上PSNR增益达11.8 dB。在Wan2.1、Wan2.2和HunyuanVideo上的四个额外已发表流程的广泛实验表明,ALLOT在所有九个设置中均优于或持平默认方法。

该论文提出了一种无需训练的稀疏注意力分配方法,能显著提升视频生成质量(PSNR增益11.8 dB),且易于集成到现有流程中,对视频扩散Transformer的高效推理具有重要价值。

Full 3D attention is costly in video Diffusion Transformers. Block-sparse attention reduces this cost by computing only selected attention blocks. However, existing methods either overlook the potential to optimize sparsity allocation or rely on heuristic rules or local metrics to guide it. In this work, we observe that sparsifying attention in different layers and at different denoising steps affects final-video fidelity to substantially different degrees. Yet the identities of the most sensitive layer-step pairs remain nearly unchanged across inputs. Building on these findings, we propose Allocating Layer-step Latency by Output Tests (ALLOT), a training-free sparsity allocation method. Treating each layer-step pair as a cell, ALLOT estimates each cell's contribution to final-video error through (i) cell probing and (ii) trajectory calibration, then jointly optimizes cell densities under a measured-latency budget. It preserves existing selection strategies and kernels, replacing only the allocation component. At equal or shorter wall-clock time, ALLOT outperforms every compared allocation strategy with XAttention, with an 11.8 dB PSNR gain on HunyuanVideo. Extensive experiments across four additional published pipelines on Wan2.1, Wan2.2, and HunyuanVideo show that ALLOT outperforms or ties the default in all nine settings.

阅读原文

参与讨论