Reproduce “VSA: Faster Video Diffusion with Trainable Sparse Attention” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Peiyuan Zhang, Yongqi Chen, Haofeng Huang, Will Lin, Zhengzhong Liu, Ion Stoica, Eric Xing, Hao Zhang
VSA reduces video diffusion attention cost by selecting cubes through coarse global attention, then applying fine attention only to selected blocks while retaining a global output. In a 410M-parameter video DiT at 16,384 tokens, it achieved nearly the same training loss as full attention at 87.5% sparsity, using 2.53× fewer training FLOPs; optimal sparsity depends on sequence length and compute.
Key insights
- Trainable, data-dependent sparse attention, learned end-to-end during training, fundamentally outperforms fixed-pattern or post-hoc sparsity methods for video DiTs.
- Achieving practical speedups without compromising quality requires co-designing the sparse attention mechanism with GPU hardware, utilizing block-sparse layouts (e.g., tile size 64).
- A coarse-to-fine attention flow effectively predicts critical tokens without incurring quadratic cost, with mean pooling for aggregation and dynamic Top-K selection proving most effective.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.