Bidirectional Sparse Attention for Faster Video Diffusion Training
Chenlu Zhan ⋅ Wen Li ⋅ Jun Zhang ⋅ chuyu shen ⋅ Lele Cheng
Abstract
Video diffusion Transformers (DiTs) produce high-quality videos, but the quadratic cost of full attention limits training on long spatiotemporal sequences. We propose Bidirectional Sparse Attention (BSA), a trainable attention framework that reduces computation on both the query and key–value sides. BSA skips locally redundant query computations, selects relevant key–value blocks using a per-query statistical threshold, and fills skipped attention outputs to preserve the original token layout. Custom Triton forward and backward kernels translate this structured sparsity into practical acceleration. At 153,600 tokens on Wan2.1-1.3B, BSA reduces forward attention-matmul FLOPs by approximately $20\times$ and achieves a reported attention-operator speedup of $17.79\times$. In a separate complete optimization-step benchmark on one H100-80GB GPU, it reduces step time from 10.40 s to 1.68 s ($6.20\times$), including selection, token filling, backward computation, and optimizer overhead. BSA maintains comparable overall generation quality: VBench-Total is 81.36 versus 81.43 for full attention, with small improvements in four reported submetrics. Additional experiments examine convergence, sparse-gradient correctness, token-filling error, and the role of sparsity annealing.
Successful Page Load