高效模型与推理加速 · CVPR2026 ·2026.06.03

VMonarch:面向高效视频扩散 Transformer 的结构化注意力

VMonarch: Efficient Video Diffusion Transformers with Structured Attention

Cheng Liang、Haoxian Chen、Liang Hou、Qi Fan、Gangshan Wu、Xin Tao 等 7 人

与你有关的部分

把 Monarch 结构化矩阵引入视频 DiT 的时空注意力,用交替最小化在线拟合动态稀疏模式,并配合重计算与在线熵估计融合进 FlashAttention,可直接替换长视频生成中的全注意力层,在 90% 稀疏度下仍优于现有稀疏注意力方法。

原文依据 reduces attention FLOPs by a factor of 17.5, and achieves a speedup of over 5 times in attention computation for long videos
可迁移到 视频生成扩散模型推理加速长序列注意力

摘要译文

由模型翻译 · 术语统一 · 请对照原文核对关键结论

注意力机制的二次复杂度严重限制了视频扩散 Transformer(DiT)的上下文可扩展性。我们发现,视频 DiT 中呈现的高度稀疏的时空注意力模式可以自然地由 Monarch 矩阵表示。Monarch 矩阵是一类具有灵活稀疏性的结构化矩阵,可通过交替最小化算法实现亚二次复杂度的注意力计算。据此,我们提出 VMonarch,一种面向视频 DiT 的新型注意力机制,借助结构化 Monarch 矩阵在动态稀疏模式上实现高效计算。首先,我们采用时空 Monarch 分解,以显式刻画视频数据的帧内与帧间相关性。其次,我们引入重计算策略,以缓解 Monarch 矩阵交替最小化过程中的不稳定性所导致的伪影。第三,我们提出一种新的在线熵算法并将其融合进 FlashAttention,从而支持长序列下 Monarch 矩阵的快速更新。大量实验表明,VMonarch 仅需极少微调即可在 VBench 上取得与全注意力相当或更优的生成质量。它突破了视频 DiT 中的注意力瓶颈,将注意力浮点运算量降低 17.5 倍,并在长视频的注意力计算上实现超过 5 倍的加速,在 90% 稀疏度下优于最优的稀疏注意力方法。

英文原文摘要 1415 字符

The quadratic complexity of the attention mechanism severely limits the context scalability of Video Diffusion Transformers (DiTs). We find that the highly sparse spatio-temporal attention patterns exhibited in Video DiTs can be naturally represented by the Monarch matrix. It is a class of structured matrices with flexible sparsity, enabling sub-quadratic attention via an alternating minimization algorithm. Accordingly, we propose VMonarch, a novel attention mechanism for Video DiTs that enables efficient computation over the dynamic sparse patterns with structured Monarch matrices. First, we adapt spatio-temporal Monarch factorization to explicitly capture the intra-frame and inter-frame correlations of the video data. Second, we introduce a recomputation strategy to mitigate artifacts arising from instabilities during alternating minimization of Monarch matrices. Third, we propose a novel online entropy algorithm fused into FlashAttention, enabling fast Monarch matrix updates for long sequences. Extensive experiments demonstrate that VMonarch achieves comparable or superior generation quality to full attention on VBench after minimal fine-tuning. It overcomes the attention bottleneck in Video DiTs, reduces attention FLOPs by a factor of 17.5, and achieves a speedup of over 5 times in attention computation for long videos, surpassing state-of-the-art sparse attention methods at 90% sparsity.

标签

会议 CVPR2026
页码 4613-4623
Bibkey
来源 CVF Open Access