MonarchRT: Efficient Attention for Real-Time Video Generation
Krish Agarwal ⋅ Zhuoming Chen ⋅ cheng Luo ⋅ Yongqi Chen ⋅ Haizhong Zheng ⋅ Xun Huang ⋅ Atri Rudra ⋅ Beidi Chen
Abstract
Video generation with Diffusion Transformers is bottlenecked by the quadratic cost of 3D self-attention, especially in real-time settings that are both few-step and autoregressive, where errors compound across time and each denoising step carries substantially more information. In this regime, prior sparse-attention approximations break down despite showing strong results for bidirectional, many-step diffusion. Specifically, we observe that video attention is not reliably sparse and instead combines periodic spatiotemporal structure with dynamic, sparse semantic interactions, exceeding the representational capacity of even oracle top-$k$ attention. Building on this insight, we introduce MonarchRT, a structured attention parameterization for video diffusion models that factorizes attention using Monarch matrices. Through appropriately aligned block structure and an extended tiled Monarch parameterization, we achieve high expressivity while preserving computational efficiency. We further overcome the overhead of parameterization through finetuning and optimized CUDA/Triton kernels. When applied to autoregressive Self-Forcing, MonarchRT achieves approximately 95% effective attention sparsity with no loss in quality, making MonarchRT a pioneering work on high-quality sparse attention parameterization for real-time video generation. Our optimized implementation outperforms FlashAttention-2, FlashAttention-3, and FlashAttention-4 kernels on RTX 5090, H100, and B200 GPUs, respectively, providing kernel speedups in the range of 1.79–5.28$\times$ in the autoregressive setting and up to 13.6$\times$ in the bidirectional setting. This enables us to achieve true real-time video generation with Self-Forcing at 16 FPS on a single RTX 5090.
Successful Page Load