Organizations: SKLCCSE, School of Computer Science and Engineering, Beihang University · Zhongguancun Academy · School of Computer Science, Peking University · Beihang University · the State Key Laboratory of Multimodal Artificial Intelligence Systems, Institute of Automation, Chinese Academy of Sciences · School of Information Science and Technology, University of Science and Technology of China · BNRist, Tsinghua University
Diffusion Transformers (DiTs) achieve strong video generation quality but suffer from high inference cost due to dense 3D attention, motivating sparse attention techniques for improving efficiency. However, existing training-free sparse attention methods for video generation still face two unresolved limitations: ignoring layer heterogeneity in attention pruning and ignoring query-key coupling in block partitioning, which hinder a better quality-speedup trade-off. In this work, we uncover a critical insight: attention sparsity is an intrinsic layer-wise property, with only minor variation across different inputs. Motivated by this observation, we propose SVOO, a training-free sparse attention framework for fast video generation via offline layer-wise sparsity profiling and online bidirectional co-clustering. Specifically, SVOO adopts a two-stage paradigm: (i) offline layer-wise sensitivity profiling to derive intrinsic per-layer pruning levels, and (ii) online block-wise sparse attention via a bidirectional co-clustering algorithm. Extensive experiments on seven widely used video generation models demonstrate that SVOO achieves a superior quality-speedup trade-off over state-of-the-art methods, delivering up to 1.93x speedup while maintaining a PSNR of up to 29 dB on Wan2.1. Code is available at: https://github.com/Mutual-Luo/SVOO.
Figures & tables
Figure 1: An example acceleration comparison on the Wan2.1-T2V-1.3B ( Wan et al., 2025 ) . All experiments are conducted on a single NVIDIA H200 GPU at a 720p resolution with 81 frames.
Figure 2: Layer-wise attention sparsity across different models. The figure shows that attention density varies substantially across layers ( layer-wise heterogeneity ), while remaining highly stable for each layer across different inputs ( layer-wise stability ) .
Figure 3: Illustration of query-key coupling in block partitioning, which is important for block-wise sparse attention. The example shows that the optimal partitioning of Keys is Query-dependent , as different Queries induce different optimal groupings of Keys.
Figure 4: The framework of SVOO consists of two stages for accelerating video generation. Offline stage (left): we profile the intrinsic attention sparsity of each transformer layer and derive a layer-wise sparsity schedule. Online stage (right): we perform bidirectional co-clustering to partition queries and keys into coupled blocks, and then select salient block pairs according to the offline schedule.
Model
Config
Baseline
Quality
Efficiency
PSNR ↑
SSIM ↑
LPIPS ↓
ImageQual ↑
AesQual ↑
SubConsist ↑
BackConsist ↑
Latency
Speedup
Wan2.1
1.3B-720P-T2V
Origin
-
-
-
66.58%
64.47%
96.74%
97.30%
417s
1.00 ×
SpargeAttn
25.137
0.801
0.234
63.08%
62.75%
95.79%
97.09%
288s
1.45 ×
SVG1
25.712
0.811
0.230
63.26%
61.14%
94.27%
91.16%
266s
1.56 ×
SVG2
29.268
0.886
0.127
61.83%
60.15%
95.88%
96.47%
241s
1.73 ×
Radial
26.305
0.829
0.182
63.67%
62.76%
96.56%
97.07%
257s
1.62 ×
Table 1: Quality and efficiency benchmarking results of our proposed SVOO and baselines on Text-to-Video Task.
Model
Config
Baseline
Quality
Efficiency
PSNR ↑
SSIM ↑
LPIPS ↓
ImageQual ↑
AesQual ↑
SubConsist ↑
BackConsist ↑
Latency
Speedup
Wan2.1
14B-720P-I2V
Origin
-
-
-
71.52%
61.86%
94.98%
95.37%
1658s
1.00 ×
SpargeAttn
21.557
0.691
0.297
70.83%
61.77%
95.81%
95.04%
1124s
1.48 ×
SVG1
24.262
0.825
0.174
70.93%
61.02%
94.42%
94.51%
1047s
1.58 ×
SVG2
27.324
0.856
0.125
70.76%
61.45%
95.72%
94.93%
998s
1.66 ×
Radial
23.673
0.759
0.189
70.91%
61.62%
94.52%
95.36%
1046s
1.58 ×
Table 2: Quality and efficiency benchmarking results of our proposed SVOO and baselines on Image-to-Video Task.
Figure 5: The ablation study of our proposed SVOO.
Figure 6: Examples of videos generated by our proposed SVOO and dense attention on Wan and HunyuanVideo models.
Figure 7: Quality-efficiency trade-off of SVOO.
Figure 8: Analysis of clustering result across diffusion steps.
Figure 9: Attention recall comparison between SVOO and SVG2.
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 10: Additional layer-wise attention sparsity across different models.
Figure 11: Layer attention sparsity across different steps of representative models.
Diffusion Transformers (DiTs) dominate video generation but suffer from high inference cost due to the quadratic complexity of self-attention. Sparse attention mitigates this by skipping unnecessary computation in the attention matrix, but existing methods apply a fixed sparsity ratio throughout denoising and struggle to accurately determine which computations to skip. To address these limitations, we analyze attention dynamics through attention entropy and mean attention distance, and find that attention becomes increasingly concentrated across denoising steps. We further observe that blocks selected early continue to capture a large fraction of the total attention weight at later steps. These findings suggest two acceleration opportunities: the sparsity ratio should grow as denoising progresses, and earlier search results can be reused to reduce the search space. Based on these findings, we propose Growing Sparsity and Reduced Search (GSRS), a training-free framework that retains more computation early and progressively reduces it later, while restricting subsequent searches to an early candidate set to reduce search overhead. GSRS adopts Top-p selection for adaptive sparsity control, supported by a precise evaluation scheme that computes exact attention weights within the FlashAttention computation at negligible overhead. Experiments on HunyuanVideo and Wan 2.1 validate that GSRS achieves 1.55×--2.21× speedup while maintaining generation quality comparable to full attention.
Diffusion transformers have achieved remarkable success in high-quality video generation, yet their reliance on spatiotemporal 3D full attention incurs prohibitive computational cost due to the quadratic complexity of attention. Block sparse attention is a common approach to mitigate this by focusing computation on important regions. However, attention maps in DiTs exhibit inherently dynamic and fine-grained sparsity, which causes existing block sparse attention methods to degrade significantly in quality, especially at high sparsity ratios. In this paper, we revisit block sparse attention and derive a theoretical lower bound on attention recall to characterize the key factors governing its effectiveness. Guided by these insights, we propose DFSAttn, a training-free sparse attention framework that enables dynamic, fine-grained sparsification efficiently. DFSAttn incorporates three core designs: Hilbert curve-based token reordering to achieve fine-grained sparsity while preserving efficient GPU execution, hierarchical block scoring for accurate block importance estimation, and sparse mask caching with adaptive ratios to balance accuracy and efficiency. Experimental results demonstrate that DFSAttn consistently outperforms prior methods under high sparsity, achieving up to 2.1× end-to-end speedup while maintaining high generation quality. Our code is open-sourced and available at https://github.com/jessica-hujie/DFSAttn.
Diffusion transformers are essential for high-fidelity video generation, but long token sequences make attention a dominant inference bottleneck. Training-free dynamic sparse attention alleviates this bottleneck by computing only selected key-value blocks, yet existing methods struggle to sparsify attention both efficiently and accurately for two reasons: (1) Rigid, unpredictable, and costly routing: selecting a fixed fraction of top-ranked blocks by proxy score imposes fixed budgets, whereas retaining blocks to reach a target cumulative proxy probability mass yields dynamic but potentially imbalanced budgets; both incur non-negligible overhead from computing and materializing proxy scores. (2) Lossy keep-or-drop sparsification: unselected blocks are discarded entirely, degrading accuracy under aggressive sparsity. These limitations motivate cheaper dynamic-budget routing while limiting accuracy degradation. In this paper, we introduce training-free Sol-Attn (Sparsifying online attention), which unifies dynamic routing, sparse computation, and approximation correction in a single online-softmax pass, achieving a better accuracy-efficiency trade-off in sparse attention. The core of Sol-Attn is on-the-fly block thresholding with proxy-score reuse, which selects critical blocks by comparing block proxy scores against a threshold during online softmax. This design enables dynamic yet controllable block budgets without materializing the proxy map, while directly reusing the proxy scores of unselected blocks to approximate their contribution. Experiments across image and video generation tasks show that Sol-Attn advances the quality-efficiency frontier of training-free sparse attention, delivering 2.1 times and 2.3 times end-to-end speedups for video generation and editing, respectively, while preserving visual quality.