Improving Video Sparse Attention with Fine-grained Router and Sparse Rebasing
Organizations: University of California, San Diego · Work done during an internship at ByteDance Seed · ByteDance Seed · University of California, Berkeley ·
Abstract
We present VSA2, a frontier trainable sparse attention for video DiTs. VSA2 includes a variety of new architectural features and training procedures that we apply across all stages of the DiT development cycle, including pretraining, RL, and inference, to produce a DiT with comparable or better quality than a full attention counterpart. Architecturally, VSA2 introduces a fine-grained router that improves the precision of identifying critical tokens and supports dynamic computation by allowing each query to attend to a variable number of key-value pairs. In training, we identify a Hard-to-Easy Curriculum, where models trained under high sparsity and later evaluated with lower sparsity during inference not only generalize effectively, but also outperform models trained with full attention in motion quality. VSA2 is also flexible: it can replace full attention during the middle of progressive low-to-high resolution pretraining, rebasing early-stage full-attention checkpoints. Experiments show that VSA2 reduces attention computation by half over VSA with lower loss. On 720p videos, it accelerates attention by 8.9x and end-to-end generation by 4.62x compared to the FlashAttention-3 baseline, while achieving comparable or better video quality.
Figures & tables
| Exp | Stage | Configuration | T2V | I2V | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Train TopK | Infer TopK | Attn Sparsity | E2E Speedup | Motion | Following | Aesthetics | Motion | Following | ||
| 1 | 480p | 64 | 64 | 0.90 | 2.09 | -1.34% | 1.34% | -0.67% | 8.72% | 1.34% |
| 2 | 480p | 64 | 128 | 0.82 | 1.92 | 22.1% | -3.36% | -4.7% | 6.71% | -8.72% |
| 3 | 480p | 32 | 128 | 0.82 | 1.92 | 7.38% | -15.4% | -4.7% | 11.4% | -9.4% |
| 4 | 480p | 32 | 64 | 0.90 | 2.09 | 12.1% | -10.1% | -7.38% | 4.03% | -4.03% |
| 5 | 480p RL | 64 | 64 | 0.90 | 2.09 | -4.03% | 1.34% | -2.01% | 8.05% | -4.7% |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
Sparse Attention
Sparse attention reduces the token interactions computed by Transformers to lower the cost of long-context modeling and inference.
See all 245 papers