VMoBA: Mixture-of-Block Attention for Video Diffusion Models
VMoBA提出了一种针对视频扩散模型的混合块注意力机制,显著提高了训练效率,同时保持了或提高了生成质量。
更新于 2025-07-03。作者:Jianzong Wu、Liang Hou、Haotian Yang、Xin Tao、Ye Tian、Pengfei Wan、Di Zhang、Yunhai Tong。
中文摘要
全注意力机制的双曲复杂性对旨在生成长时、高分辨率视频的视频扩散模型(VDMs)构成了显著的瓶颈。虽然已经提出了各种稀疏注意力方法,但许多方法被设计为无需训练的推理加速器,或者在没有本地训练的情况下,无法最佳地捕捉视频数据中固有的独特时空特征。本文介绍了视频混合块注意力机制(VMoBA),这是一种专门为VDMs设计的创新稀疏注意力机制。受对预训练视频转换器内部注意力模式深入分析的启发,该分析揭示了强烈的时空局部性、变化的查询重要性和头部特定的集中水平,VMoBA通过以下三个关键改进增强了原始的MoBA框架:(1)层内循环块分区方案(1D-2D-3D),以动态适应各种时空注意力模式并提高效率;(2)全局块选择,以优先考虑整个注意力头部中最显著的查询-键块交互;(3)基于阈值的块选择,根据其累积相似度动态确定所关注块的数量。广泛的实验表明,VMoBA显著加速了VDMs在更长序列上的训练,实现了2.92倍的FLOPs和1.48倍的延迟速度提升,同时达到了与全注意力相当甚至更优的生成质量。此外,VMoBA在无需训练的推理中表现出竞争力,为高分辨率视频生成提供了2.40倍的FLOPs和1.35倍的延迟速度提升。
英文摘要
The quadratic complexity of full attention mechanisms poses a significant bottleneck for Video Diffusion Models (VDMs) aiming to generate long-duration, high-resolution videos. While various sparse attention methods have been proposed, many are designed as training-free inference accelerators or do not optimally capture the unique spatio-temporal characteristics inherent in video data when trained natively. This paper introduces Video Mixture of Block Attention (VMoBA), a novel sparse attention mechanism specifically adapted for VDMs. Motivated by an in-depth analysis of attention patterns within pre-trained video transformers, which revealed strong spatio-temporal locality, varying query importance, and head-specific concentration levels, VMoBA enhances the original MoBA framework with three key modifications: (1) a layer-wise recurrent block partition scheme (1D-2D-3D) to dynamically adapt to diverse spatio-temporal attention patterns and improve efficiency; (2) global block selection to prioritize the most salient query-key block interactions across an entire attention head; and (3) threshold-based block selection to dynamically determine the number of attended blocks based on their cumulative similarity. Extensive experiments demonstrate that VMoBA significantly accelerates the training of VDMs on longer sequences, achieving 2.92x FLOPs and 1.48x latency speedup, while attaining comparable or even superior generation quality to full attention. Furthermore, VMoBA exhibits competitive performance in training-free inference, offering 2.40x FLOPs and 1.35x latency speedup for high-res video generation.
解读
一句话总结
VMoBA提出了一种针对视频扩散模型的混合块注意力机制,显著提高了训练效率,同时保持了或提高了生成质量。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:视频扩散模型(VDMs)在生成高分辨率、长时视频时,全注意力机制的二次复杂度导致计算量巨大,限制了长序列的处理能力。
- 现有方案不足:现有的稀疏注意力机制大多用于无监督的推理加速,或在训练时未能有效捕捉视频数据的时空特性。
- 研究目标:提出VMoBA,一种针对VDMs训练的稀疏注意力机制,以加速训练并保持或提高生成质量。
问题2:论文的核心创新点是什么?
- 技术创新:1-2-3D块分区方案,动态适应不同的时空注意力模式并提高效率;全局块选择,优先考虑整个注意力头中最显著的查询-键块交互;阈值基于的块选择,根据累积相似度动态确定关注块的数目。
- 方法改进:VMoBA通过以上改进,有效地降低了计算复杂度,同时提高了生成质量。
- 优势:与全注意力机制相比,VMoBA在长序列上训练时速度提升了2.92倍,延迟降低了1.48倍,同时在无监督推理中也表现出色。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在Koala-36M数据集上进行的训练和推理实验。
- 性能提升:VMoBA在长序列上训练时,实现了2.92倍的FLOPs和1.48倍的延迟速度提升,同时保持了与全注意力机制相当的生成质量。
- 对比结果:VMoBA在VBench指标上优于或等同于全注意力机制和基线稀疏注意力方法。
问题4:这个研究的实际应用价值是什么?
- 应用场景:视频生成、视频编辑、视频理解等。
- 实施建议:VMoBA可以应用于需要高分辨率、长时视频生成的场景,以降低计算成本和提高效率。
- 局限与展望:VMoBA在短序列上的加速效果不如长序列显著,未来可以探索更有效的硬件优化和内存分配策略。