MonarchRT: Efficient Attention for Real-Time Video Generation
Krish Agarwal, Zhuoming Chen, cheng Luo, Yongqi Chen, Haizhong Zheng, Xun Huang, Atri Rudra, Beidi Chen
NeurIPS page · OpenReview · Open on the map
Category: Video Understanding & Generation › Efficient Video Diffusion Attention · Type: new method · Keywords: real-time video generation, attention efficiency, Monarch matrices, sparse attention, diffusion transformers, Triton kernels
Areas: Model Architectures & Sequence Modeling › World Modeling Architectures › Sparse Attention for Video Diffusion; Generative Models (Diffusion & Flows) › Video Generation › Efficient Video Diffusion
Summary
MonarchRT introduces a structured attention parameterization using Monarch matrices to enable efficient real-time video generation with high sparsity and speedups over existing attention kernels.
Explained to a 5-year-old
People want to watch short movies that appear instantly on their screen. Usually, making these videos takes a long time because the computer has to compare many parts of the picture over and over. The researchers noticed that the usual shortcuts for making this faster don't work well for quick videos. They discovered that the way the computer looks at the picture has a pattern that repeats like a rhythm. By using this pattern, they built a new method that speeds up the process while keeping the video clear.
Explained to a 5-year-old, longer
Imagine you want to watch a short movie that appears instantly on your screen. Usually, making such videos takes a long time because the computer has to compare many parts of the picture over and over. The researchers noticed that the usual shortcuts for making this faster don't work well for these quick videos. They discovered that the way the computer looks at the picture has a pattern that repeats like a rhythm. By using this pattern, they built a new method that speeds up the process while keeping the video clear. The new method also uses less computer power, so it can run on a regular graphics card. This means you can create videos quickly without needing a super-expensive machine. It also helps artists and designers make live visual effects. The approach works with the best video models already out there. It can even beat the speed of popular fast-computing tricks. Overall, the work makes real-time video creation more practical for everyday use.
For a technical reader
The paper addresses the quadratic cost of 3D self-attention in diffusion transformers for video generation. It shows that traditional sparse-attention tricks are insufficient for real-time, few-step autoregressive settings. The authors propose a structured factorization using Monarch matrices that preserves expressivity while allowing up to 95% sparsity. Custom Triton kernels reduce overhead, delivering 1.4-11.8× speedups over existing attention kernels and enabling 16 FPS generation on a single consumer GPU.
Problem
Real-time video generation using diffusion transformers is limited by the quadratic cost of 3D self-attention. In few-step autoregressive regimes, errors compound over time and each denoising step must carry more information, making efficient attention crucial.
Method
The approach factorizes attention using Monarch matrices with aligned block structure and an extended tiled parameterization to preserve expressivity while maintaining computational efficiency. It is further optimized with custom Triton kernels to reduce overhead.
Results
The approach achieves up to 95% attention sparsity without quality loss and provides kernel speedups of 1.4-11.8× over FlashAttention-2/3/4 on various GPUs, enabling real-time generation at 16 FPS on a single RTX 5090.
Contributions
It introduces a structured attention parameterization based on Monarch matrices that maintains high expressivity while allowing extreme sparsity, and it provides optimized Triton kernels that enable real-time video generation. The work also demonstrates superior performance over existing sparse attention methods and attention kernels.
Practical relevance
It makes real-time video synthesis feasible on consumer GPUs, opening up applications such as interactive content creation and live visual effects.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction