Bidirectional Sparse Attention for Faster Video Diffusion Training

Chenlu Zhan, Wen Li, Chuyu Shen, Jun Zhang, Suhui Wu, Hao Zhang · DOI

Abstract

Video Diffusion Transformers (DiTs) have established themselves as the state-of-the-art for high-fidelity video generation. However, their reliance on standard attention mechanisms creates a quadratic computational bottleneck ($O(L^2)$) as sequence lengths increase. We introduce Bidirectional Sparse Attention (BSA), a novel framework designed to accelerate DiT training by identifying and pruning redundancy in both Query and Key-Value (KV) tensors. BSA achieves a 17.79× training speedup and a 20× reduction in FLOPs while preserving or enhancing visual quality across standard benchmarks.

Introduction

The transition from image to video generation involves a massive increase in token count. A single high-resolution video clip can consist of hundreds of thousands of tokens, making standard dense attention computationally prohibitive. While previous research has explored KV pruning, these methods often overlook the redundancy inherent in the Queries—where many tokens, particularly in static backgrounds, perform nearly identical computations. Furthermore, static sparsity patterns fail to adapt to the dynamic content of video sequences.

Methodology: Bidirectional Sparsity

BSA addresses these limitations through a two-pronged approach to attention pruning:

1. Query Sparsity and Token Filling

BSA partitions video sequences into 3D spatiotemporal blocks. Within each block, a "critical token" is identified. Tokens semantically similar to this central reference are pruned, focusing computation on the most informative regions. To maintain architectural compatibility for subsequent layers, the pruned positions are populated using the output of the critical token, ensuring the sequence length remains constant.

2. Dynamic KV Sparsity

Unlike fixed-ratio pruning, BSA employs a dynamic thresholding mechanism. By calculating a statistical threshold based on the mean and standard deviation of attention scores, the model adaptively allocates its computational budget. This allows the mechanism to retain more KV pairs for complex, high-motion scenes while aggressively pruning simpler, static frames.

3. Hardware Optimization

To translate theoretical FLOP reductions into actual wall-clock speedups, the authors implemented custom Triton kernels. These kernels enable the GPU to bypass pruned blocks efficiently, mirroring the optimization strategies used in FlashAttention.

Experimental Results

The BSA framework was evaluated using the Wan2.1 architecture (1.3B and 14B parameters) trained on 300,000 videos from the Vchitect T2V DataVerse.

Efficiency and Speedup

On sequences of 153K tokens, BSA demonstrated a 17.79× speedup in attention training and a 20× reduction in FLOPs. The overhead for the sparsification logic remained negligible, accounting for less than 0.1% of total computation. For inference, the method achieved a 6.2× end-to-end speedup on H100 GPUs.

Figure 1: Performance comparison showing (a) speedup ratio and FLOP reduction, and (b) VBench indicator scores for Full vs. Sparse Attention.

Visual Quality and Consistency

Evaluation on the VBench suite confirms that BSA maintains high performance across key metrics, including Text Consistency and Image Quality. In several instances, BSA slightly outperformed full attention, likely due to the pruning mechanism's ability to filter out noise and focus on salient foreground objects.

Figure 2: Sample frame (Frame 23) from a generated video demonstrating temporal consistency and visual fidelity maintained by BSA.

Conclusion

Bidirectional Sparse Attention represents a significant step forward in making long-form video generation viable. By addressing redundancy on both sides of the attention mechanism and employing dynamic content-aware pruning, BSA offers a scalable solution for the next generation of Video DiTs. Future work will explore more sophisticated token-filling strategies and broader cross-architecture validation.

Summary updated

BibTeX
@inproceedings{zhan2026bidirectional,
  author = {Chenlu Zhan and Wen Li and Chuyu Shen and Jun Zhang and Suhui Wu and Hao Zhang},
  title = {{Bidirectional Sparse Attention for Faster Video Diffusion Training}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=Es6mFi84XA},
}
Figure