VMonarch: Efficient Video Diffusion Transformers with Structured Attention
Cheng Liang, Haoxian Chen, Liang Hou, Qi Fan, Gangshan Wu, Xin Tao, Limin Wang
TL;DR
VMonarch tackles the attention bottleneck in Video Diffusion Transformers by representing sparse spatio-temporal attention with Monarch matrices and optimizing them via alternating minimization. It couples a spatio-temporal Monarch factorization with a First-Frame Recomputation strategy and a novel Online-Entropy FlashAttention kernel to enable fast updates for long video sequences while preserving generation quality. Empirically, VMonarch achieves comparable or superior quality to full attention on VBench, while delivering up to $17.5\times$ reduction in attention FLOPs and over $5\times$ kernel speedups for long videos, outperforming state-of-the-art sparse methods at $90\%$ sparsity. The approach generalizes across model scales and longer sequence lengths, offering a practical path toward scalable diffusion-based video generation.
Abstract
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 tuning. It overcomes the attention bottleneck in Video DiTs, reduces attention FLOPs by a factor of 17.5, and achieves a speedup of over 5x in attention computation for long videos, surpassing state-of-the-art sparse attention methods at 90% sparsity.
