Sol: Accelerating Video Diffusion for Free via Hierarchical Sparse Attention Routing
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
Abstract
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 Sol, 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 Sol achieves 86% attention sparsity and delivers a attention speedup while preserving quality. Our code is available at https://github.com/FofGofx/sol3.
Figures & tables
| 1: | |
| 2: | |
| 3: | |
| 4: | |
| 5: | // high block-center correlation |
| 6: | // screen by approximation difficulty |
| 7: |
Appendix figures & tables14 assets
Supplementary material from the paper’s appendix.
Appendix
| 1: | |
| 2: | // save scores for token selection |
| 3: | |
| 4: | end for |
| 5: | |
| 6: | |
| 7: | // one threshold across Mixed blocks |
| 1: | |
| 2: | |
| 3: | |
| 4: | // online softmax over representatives |
| 5: | |
| 6: | // weight by the remaining token count |
| 7: |
Diffusion Model Inference Acceleration
Diffusion model inference acceleration reduces the time and compute needed to generate or reconstruct outputs while preserving quality.
See all 567 papers