2025-07-01 · 进阶 · 计算机视觉 · 机器学习

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:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源