Radial Attention: $O(n\log n)$ Sparse Attention with Energy Decay for Long Video Generation

Xingyang Li, Muyang Li, Tianle Cai, Haocheng Xi, Shuo Yang +9 more
6/24/2025
cs.CVcs.AIcs.LG

Official code: mit-han-lab/radial-attention (604 stars, Apache-2.0, last commit 2025-11-11).

Abstract

Recent advances in diffusion models have enabled high-quality video generation, but the additional temporal dimension significantly increases computational costs, making training and inference on long videos prohibitively expensive. In this paper, we identify a phenomenon we term Spatiotemporal Energy Decay in video diffusion models: post-softmax attention scores diminish as spatial and temporal distance between tokens increase, akin to the physical decay of signal or waves over space and time in nature. Motivated by this, we propose Radial Attention, a scalable sparse attention mechanism with $\mathcal{O}(n \log n)$ complexity that translates energy decay into exponentially decaying compute density, which is significantly more efficient than standard $\mathcal{O}(n^2)$ dense attention and more expressive than linear attention. Specifically, Radial Attention employs a simple, static attention mask where each token attends to spatially nearby tokens, with the attention window size shrinking with temporal distance. Moreover, it allows pre-trained video diffusion models to extend their generation length with efficient LoRA-based fine-tuning. Extensive experiments show that Radial Attention maintains video quality across Wan2.1-14B, HunyuanVideo, and Mochi 1, achieving up to a 1.9$\times$ speedup over the original dense attention. With minimal tuning, it enables video generation up to 4$\times$ longer while reducing training costs by up to 4.4$\times$ compared to direct fine-tuning and accelerating inference by up to 3.7$\times$ compared to dense attention inference. Code is released at \href{https://github.com/mit-han-lab/radial-attention}{https://github.com/mit-han-lab/radial-attention}.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

[NeurIPS 2025] Radial Attention: O(nlogn) Sparse Attention with Energy Decay for Long Video Generation

60434Shell, PythonJun 19, 202511 months agoApache-2.0
diffusion-modelsefficientmlhunyuan-videomochisparse-attention+1 more

Cite this paper

@article{li2025radial,
  title  = {Radial Attention: $O(n\log n)$ Sparse Attention with Energy Decay for Long Video Generation},
  author = {Xingyang Li and Muyang Li and Tianle Cai and Haocheng Xi and Shuo Yang and Yujun Lin and Lvmin Zhang and Songlin Yang and Jinbo Hu and Kelly Peng and Maneesh Agrawala and Ion Stoica and Kurt Keutzer and Song Han},
  year   = {2025},
  eprint = {2506.19852},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.19852v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.19852.svg)](https://codeofpaper.com/paper/2506.19852)

Discussion