Sol3: Accelerating Video Diffusion for Free via Hierarchical Sparse Attention Routing
Authors: Guoxin Fan, Weilun Feng, Chuanguang Yang, Mingqiang Wu, Xiaokun Liu, Jitao Lu, Zhulin An, Libo Huang, Boyu Diao, Di Gao, Yongjun Xu
Organizations: State Key Laboratory of AI Safety, Institute of Computing Technology, Chinese Academy of Sciences · University of Chinese Academy of Sciences · Hangzhou Institute for Advanced Study, University of the Chinese Academy of Sciences · Xiamen Institute of Data Intelligence, Xiamen, China
Sol-Attn (Sparsifying online attention) combines sparse exact computation with low-cost representative approximation to accelerate training-free inference in diffusion video models. However, intra-block attention can focus on only a few tokens. While preserving these key interactions exactly, the block-level decision incurs the cost of evaluating many low-response members. We propose Sol3, a training-free hierarchical sparse attention method that further refines how exact computations are allocated. First, we introduce Gaussian-guided hierarchical routing, which determines the scope of exact computation step by step, from blocks to tokens, using statistical thresholds at each level. Only a subset of members within Mixed blocks that require refinement is selected for exact computation, while representative terms approximate the remaining members. We further design heterogeneous routing statistics that combine block-center correlations with variations in Key and Value within blocks to identify blocks that are difficult to approximate. Among these Mixed blocks, we uniformly compare raw token relevance to select members requiring exact computation. Experiments on video generation, audio-video co-generation, and world simulation tasks demonstrate that Sol3 achieves 86% attention sparsity and delivers a 3.07× attention speedup while preserving quality. Our code is available at https://github.com/FofGofx/sol3.
Figures & tables
Figure 2: Overview of the Sol 3 framework. (Top) Heterogeneous Routing Statistics (HRS) computes block-center correlation from block means, combines it with key variance in the query direction and within-block value dispersion, and uses these signals to assess representative approximation difficulty while comparing raw token relevance across Mixed blocks. (Bottom) Gaussian-Guided Hierarchical Routing (GHR) selects Full blocks in sequence and filters Mixed blocks using scores at each level and statistical thresholds; it then selects tokens from the Mixed blocks for exact computation while approximating the remaining interactions with representative items.
Figure 3: Illustration of a few dominant features across and within blocks. In the left figure, attention focuses on a few blocks; the right figure shows a close-up of a block marked in the left figure, where the overall response is subtle, yet attention within that block remains focused on a few tokens.
Figure 4: Block-center correlations and representative approximation errors. (Left) A and B have similar correlations but different errors. (Middle) We use the first-order Wasserstein distance W1 to measure differences between blocks in the distribution of raw token relevance. (Right) Token regions for A and B.
Figure 5: Visualization of the relationship between representative approximation difficulty and approximation error. We show the relationship between block-center correlation, value-aware, key-aware, and full-score measures and approximation error, and report the rank correlation coefficient ρ .
Figure 6: Illustration of raw token relevance scores and filtering thresholds for key tokens across different Mixed blocks within the same query group. The left figure shows query group Q with A and B; the middle and right figures show the relevance of the two blocks to Q. Although A is locally prominent, it is weaker than B, which is not locally prominent. Therefore, unified filtering across Mixed blocks retains B rather than A.
Figure 7: Visualization of retained key interactions. Using the Mass oracle as a reference, we show filtering results across the entire block, individual blocks, and uniformly across Mixed blocks.
Figure 8: Visualization of the distribution of three-level routing scores. We compare the standardized distribution of the three-level scores with a standard Gaussian reference.
Figure 9: Calibration of the Gaussian threshold selection ratio. Compare the Gaussian reference selection ratios at the three routing levels with the actual selection ratios at different thresholds.
1:
Input: Q,K,V;bq,bkv;β1,β2,β3.
2:
Partition Q,K,V; precompute block statistics.
3:
for each query group Qi do
4:
Ci(1)←all KV block indices.
5:
Fi←GHR(Ci(1),si(1),β1). // high block-center correlation
6:
Ci(2)←Ci(1)∖Fi. // screen by approximation difficulty
7:
Mi←GHR(Ci(2),si(2),β2)(Eq.\eqrefeq:source97).
Algorithm 1 Sol 3 Framework
Figure 10: Visual comparison on Wan2.2, H3-Base , and SANA-WM.
Appendix figures & tables14 assets
Supplementary material from the paper’s appendix.
Appendix
1:
for each (i,j) with j∈Mi in parallel do
2:
si,Bj(3)←KBjqˉi/d // save scores for token selection
τi(3)←μi(3)+β3σi(3) // one threshold across Mixed blocks
Appendix
Algorithm 2 Mixed-Block Score Reuse and CSR Construction
1:
for each query q∈Qi across all groups i in parallel do
2:
Ei←idx[ptri:ptri+1]
3:
(oex,Lex)←ExactWithLSE(q,K,V,Ei)
4:
(u,z,a)←(−∞,0,0) // online softmax over representatives
5:
for each j with rij>0 do
6:
s←ℓij(q)+logrij,u′←max(u,s) // weight by the remaining token count
7:
α←eu−u′,p←es−u′
Appendix
Algorithm 3 Indexed Exact Attention and Representative Aggregation
Figure F1 : Additional examples of attention concentration across and within blocks.
Figure F2 : Comparison of the distribution of three-level routing scores for additional models with a Gaussian reference.
Figure F3 : Actual selection ratios versus Gaussian reference ratios for additional models.
Figure G1 : Additional examples of block pairs in additional models that have similar block-center correlations but represent different levels of approximation error.
Figure G2 : Visualizations of representative approximation difficulty and approximation error in additional models.
Figure G3 : Token selection results for block-by-block filtering and unified filtering across Mixed blocks on additional models.
Figure G4 : Visualization of how different filtering methods preserve key interactions across multiple models.
Figure G5 : Fraction of attention mass retained and relative L2 output error for different filtering methods across multiple models.
Figure H1 : Additional visual comparisons between Sol 3 and existing methods.
Figure H2 : Additional visual comparisons between Sol 3 and existing methods.
Figure H3 : Additional visual comparisons between Sol 3 and existing methods.
Figure H4 : Additional visual comparisons between Sol 3 and existing methods.
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.
Video diffusion transformers generate high-quality videos, but attention over long spatiotemporal sequences makes inference computationally expensive. Sparse attention reduces this cost by computing only a subset of query-key interactions exactly, and recent training-free methods further approximate the remaining interactions. These methods, however, degrade quickly at high sparsity, which limits the achievable speedup. We present ESTRA (Extreme Sparsity Through Refined Attention), a training-free acceleration method that preserves generation quality even at extreme sparsity. ESTRA concentrates exact attention computation on a small set of important key-value tokens and approximates the remaining contributions with cluster representatives. To identify these tokens efficiently, it groups similar queries and uses their representatives to score individual keys. A variance-based correction further refines the attention weights of the cluster representatives, improving the accuracy of the approximation. Experiments on Wan2.1-14B and HunyuanVideo-13B show that ESTRA establishes a new quality-efficiency frontier for training-free sparse attention, achieving 3.26× and 4.71× end-to-end speedups at 5% attention density while surpassing Sol-Attn and SVG-EAR in fidelity to dense generation and on most VBench dimensions. Even at 1% density, ESTRA remains more faithful to dense generation than Sol-Attn at 12.5%, while reaching up to 5.39× speedup.
Long video sequences make attention a substantial cost in video diffusion models. Block sparse attention (BSA) reduces this cost by computing selected blocks exactly while compressing the remaining blocks. However, fixed token grouping can place tokens with dissimilar attention preferences in the same group, while uniform key averaging can underestimate the attention mass of compressed blocks. We introduce Spark-Attn, a training-free BSA method comprising Spark-Reblock and Spark-Reweight. Spark-Reblock recursively groups tokens by attention preference while preserving regular block shapes for efficient GPU execution. Spark-Reweight uses the global mean query as an anchor to construct attention-weighted key-value representations and logit biases for the compressed blocks, calibrating their attention mass. We instantiate Spark-Attn in MiniMax-H3 as Spark-H3. At 10% exact-block density, Spark-H3 delivers a 2.49× DiT speedup and reaches 24.81 dB PSNR against the corresponding dense outputs on MiniMax-H3 (20 denoising steps, 345 frames, 1344×768). Increasing the density to 20% further improves PSNR to 26.76 dB while still achieving a 2.26× DiT speedup. These results demonstrate that Spark-H3 achieves a state-of-the-art quality-efficiency trade-off for training-free BSA on video diffusion models.