DSA: Efficient Inference For Video Generation Models via Distributed Sparse Attention

Shenggui Li, Runyu Lu, qiaoling chen, Haiyan Yin, Yueming Lyu, Yonggang Wen, Ivor Tsang, Tianwei ZhangICLR 2026

TL;DR

DSA (Distributed Sparse Attention) is a novel inference framework designed to break the "quadratic bottleneck" of modern video generation models. By combining sparse attention patterns with a clever "Mixed Parallelism" strategy, DSA achieves up to a 10.79× speedup over single-GPU inference and significantly outperforms existing distributed methods—all while maintaining high video quality.

The Attention Bottleneck in Video Generation

Diffusion Transformer (DiT) models, such as OpenAI’s Sora or the open-source Wan2.1, represent the current state-of-the-art for video generation. However, they face a massive scaling wall: the attention mechanism.

In video generation, every frame is flattened into a sequence of "tokens." A high-resolution, 5-second video can result in over 300,000 tokens. Because standard attention computation scales quadratically with sequence length, the computational cost explodes. Generating a short 720p video can take over 30 minutes on a single high-end GPU. As shown below, attention operations consume the vast majority of execution time in large models.

Execution time breakdown showing attention dominating computation

While researchers have attempted to use "Sequence Parallelism" (splitting the workload across multiple GPUs), these methods often scale sub-linearly. The GPUs end up spending too much time communicating with each other rather than computing. DSA aims to resolve this by making the attention mechanism both sparse and distributed-friendly.

Core Innovations: Sparsity and Mixed Parallelism

To make distributed inference efficient, the authors introduce three core innovations:

1. Sparsity Pattern Matching Video attention isn't random; it typically follows two distinct patterns: Spatial (tokens attending to nearby pixels in the same or adjacent frames) and Temporal (tokens attending to the same pixel location across different frames). DSA uses a "majority voting" mechanism across GPUs to dynamically decide which attention heads should utilize which pattern.

Crucially, the authors identify an "Attention Sink" phenomenon, where the first few tokens (often text prompts) act as sinks that every other token must attend to. DSA preserves these sinks globally to maintain context.

Spatial and Temporal attention patterns with an Attention Sink

2. Mixed Parallelism (MP) Instead of a one-size-fits-all parallelism approach, DSA treats spatial and temporal patterns differently:

  • Spatial Sequence Parallelism: Because spatial attention is highly local, GPUs only need to communicate with their immediate neighbors (using a Partial-ring communication setup). This drastically cuts down on data transfer overhead.
  • Temporal Sequence Parallelism: Since temporal patterns require a more global view, DSA uses Ulysses-style parallelism (all-to-all communication) but applies sparse computation to keep the process fast.

3. Dynamic Attention Scheduling (DAS) Not all layers in a model are identical—some are "spatial-heavy" while others are "temporal-heavy." DAS reorders the execution of these tasks to "hide" communication time behind computation time, ensuring that the GPUs are never sitting idle.

Key Insights and Performance

The researchers evaluated DSA using three state-of-the-art video models: Wan2.1-1.3B, Wan2.1-14B, and Hunyuan-Video. They measured quality using VBench (evaluating temporal consistency and spatial relationships) alongside standard image metrics like PSNR, SSIM, and LPIPS.

  • Massive Speedups: On an 8-GPU setup, DSA achieved a 10.79× speedup compared to a single-GPU baseline.
  • Super-linear Scaling: One of the most surprising results is that DSA achieved "super-linear" scaling on larger models. Doubling the GPUs more than doubled the performance because the sparse strategy reduces the workload so significantly that the overhead of adding hardware is completely offset.
  • Beating the Competition: DSA was 1.43× faster than the current industry-standard distributed method (USP/xDiT) on the Wan2.1-14B model.
  • Quality Preservation: Quantitative scores showed that DSA maintains nearly identical quality to "dense" (full-attention) models. For example, on Wan2.1-14B, the "Overall Consistency" score remained at 0.171, virtually unchanged from the dense baseline of 0.170. This is largely due to DSA's decoupled sparsity, which allows temporal attention to be much sparser (up to 95%) than spatial attention without degrading the output.

Limitations and Future Work

While highly effective, the authors noted a few areas for future improvement. For smaller models (like the 1.3B version), the overhead of sharding computation across many GPUs can actually hurt efficiency, indicating that DSA is best optimized for massive models. Additionally, the system currently relies on multiple separate kernel launches. Future work will focus on developing custom CUDA kernels to fuse computation and communication further, as well as exploring adaptive, "on-the-fly" sparsity patterns that react to the specific content of the video being generated.

Summary updated

BibTeX
@inproceedings{li2026dsa,
  author = {Shenggui Li and Runyu Lu and qiaoling chen and Haiyan Yin and Yueming Lyu and Yonggang Wen and Ivor Tsang and Tianwei Zhang},
  title = {{DSA: Efficient Inference For Video Generation Models via Distributed Sparse Attention}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=1ZmdfDzGE1},
}
Figure