TL;DR
Sol-Attn accelerates Diffusion Transformer (DiT) inference by fusing dynamic attention routing, sparse computation, and approximation correction into a single online-softmax pass. By dynamically thresholding key-value blocks and reusing below-threshold scores to approximate skipped context, it delivers over 2× end-to-end speedups for video generation and editing without noticeable quality degradation.
What Problem Does This Paper Address?
Diffusion Transformers (DiTs) have become the state-of-the-art backbone for high-fidelity image and video generation. However, generating high-resolution or long-duration videos creates massive token sequences, making the quadratic complexity of self-attention a severe inference bottleneck.
While training-free dynamic sparse attention can mitigate this by only computing a subset of critical key-value blocks, existing methods suffer from two major limitations:
- Rigid and Costly Routing: Standard strategies like top-k enforce a rigid budget across all queries, while top-p can cause severe budget imbalances. Both require materializing a massive proxy score map in High Bandwidth Memory (HBM), creating heavy memory traffic.
- Lossy Sparsification: Unselected blocks are dropped entirely. Under aggressive sparsity, discarding these blocks degrades generation accuracy, leading to visual artifacts or text distortion.
Methods
The authors introduce Sol-Attn (Sparsifying online attention), a training-free approach that unifies routing, sparse computation, and error correction into a single streaming operator. It relies on three core techniques:
- Query-Dependent Thresholding: The authors discovered that pre-softmax block-proxy attention logits consistently follow a near-Gaussian distribution. Instead of sorting or filtering the entire map, Sol-Attn computes a lightweight row-wise mean ($\mu_i$) and variance ($\sigma_i^2$) to set a dynamic threshold ($\tau_i = \mu_i + \beta\sigma_i$). This allows a single hyperparameter ($\beta$) to stably control overall model sparsity.
- On-the-Fly Sparsification: During the online-softmax pass, query blocks scan pooled keys chunk-by-chunk. Scores above the threshold are immediately sent to a nested sparse attention loop over the original high-resolution key-value tiles. This eliminates the need to store full proxy maps or routing indices in HBM.
- Proxy-Score Reuse as Approximate Correction: Instead of discarding below-threshold blocks, Sol-Attn keeps their proxy scores in registers. It uses a zeroth-order Taylor expansion to approximate their contribution to the softmax numerator and denominator at a negligible computational cost, recovering lost context.
Datasets
The method was evaluated across multiple generative tasks using established benchmarks and state-of-the-art models:
- Text-to-Video Generation: Evaluated on VBench using Wan2.1-14B, HunyuanVideo-13B, and LTX 2.3-22B.
- Video-to-Video Editing & Refinement: Evaluated on Bernini-Bench using Bernini-14B and a one-minute video refinement task using SANA-WM Refiner.
- Text-to-Image Generation: Evaluated on Qwen-Image-Bench using Ideogram 4 for native 2K resolution generation.
Key Insights and Ideas
-
The Gaussian Shortcut: The realization that attention logits are near-Gaussian (shown below) is the "aha" moment of the paper. It shifts the problem from an expensive global sorting operation (top-k/top-p) to a cheap, local statistical calculation.
Gaussian-calibrated density control showing near-Gaussian distribution of standardized block-proxy logits. -
Free Routing via Algorithmic Overlap: Because the token-to-block score tile needed for approximation correction is mathematically identical to the data needed for routing, the authors successfully fused the two steps. Routing overhead is effectively absorbed into the approximation pipeline.
Key Results
- End-to-End Speedups: Sol-Attn achieved 2.1× end-to-end speedup for video generation (HunyuanVideo) and 2.3× for video editing (Bernini). When integrated into NVIDIA's full-stack Sol-Engine, it delivered up to a 5.1× speedup.
- Kernel Efficiency: At a sequence length of 128K tokens and 90% sparsity, Sol-Attn achieves a 5.41× kernel-level speedup over FlashAttention-3.
- System Overhead Reduction: Compared to traditional routing, Sol-Attn's threshold routing is 11.5× faster than top-k and 32.7× faster than top-p. It maintains a peak memory footprint nearly identical to dense attention, whereas competing sparse methods like SVG2 require up to 8× more memory due to permutation buffers.
Limitations and Future Work
Despite the impressive speedups, the authors note a few limitations:
- Hardware Optimization: The current custom kernel does not yet fully exploit the architectural potential of NVIDIA's latest Blackwell (B200) GPUs.
- Inference Only: Sol-Attn currently only supports forward inference and lacks backward pass support for training.
- Scope: The evaluation is strictly confined to bidirectional, diffusion-based visual generation and does not yet cover autoregressive video models. Future work will focus on extending the kernel to autoregressive architectures and developing a trainable implementation.
Summary updated