Research map / Architectures and efficiency / Attention and transformers
Sparse VideoGen2: Accelerate Video Generation with Sparse Attention via Semantic-Aware Permutation
Read the paperCheck your idea against 108,967 papers
AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Training-free sparse attention for video DiTs that clusters Q/K tokens semantically with k-means, permutes them into contiguous blocks, and selects critical clusters by top-p budget with a custom dynamic-block-size kernel.
Problem
Sparse attention for video diffusion transformers loses generation quality at a given compute budget because position-based block identification is inaccurate and scattered critical tokens waste GPU computation on padding.
Approach
Cluster Q and K tokens by semantic similarity with k-means, permute tokens so each cluster is contiguous (output-equivalent), estimate cluster criticality from centroids, select clusters via top-p, and run a customized dynamic-block-size sparse attention kernel with a centroid cache to amortize k-means.
Key results
- On HunyuanVideo, SVG2 reaches 2.30x end-to-end speedup with PSNR 30.452 at 25.45% density, versus SVG's 1.91x with PSNR 29.157.
- On Wan2.1-I2V-14B, SVG2 reaches PSNR 26.562 at 31.28% density (1.58x), versus SVG's PSNR 24.059 at 30.25% density; the Turbo variant gives 1.84x speedup.
- The centroid cache reduces k-means latency by up to 76x, and the dynamic-block kernel achieves an average 1.48x computation reduction over FlashInfer.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| Use SVG2 instead of SVG | Wan 2.1 I2V, 14B · Wan 2.1 I2V, 14B, 720P, 30% warmup | PSNR: 24.059 -> 26.562 | Helped |
| Use SVG2 instead of SVG | Wan 2.1 T2V, 14B · Wan 2.1 T2V, 14B, 720P, 30% warmup | PSNR: 22.989 -> 25.808 | Helped |
| Use SVG2 instead of SVG | HunyuanVideo 13B · Hunyuan T2V, 13B, 720P, 30% warmup | PSNR: 29.157 -> 30.452 | Helped |
| Add Turbo configuration | SVG2 on Wan 2.1 I2V · Wan 2.1 I2V, 14B, 720P, 30% warmup | speedup: $1.58\times$ -> $1.84\times$ | Helped |
| Add Turbo configuration | SVG2 on Wan 2.1 T2V · Wan 2.1 T2V, 14B, 720P, 30% warmup | speedup: $1.60\times$ -> $1.89\times$ | Helped |
| Add semantic-aware permutation (ablation) | SVG2 sparse attention · Attention recall across varying densities | attention recall | Helped |
| Add semantic-aware permutation to make critical tokens contiguous (ablation) | SVG2 sparse attention · Sparse attention computation | computation overhead: 36% | Helped |
| Use 250 rather than 500 K clusters (ablation) | SVG2 on Wan 2.1 I2V · Wan 2.1 I2V, 14B | PSNR: 26.128 -> 25.497 | Hurt |
| Use 1000 rather than 500 K clusters (ablation) | SVG2 on Wan 2.1 I2V · Wan 2.1 I2V, 14B | PSNR: 26.128 -> 26.276 | Helped |
| Use 50 rather than 100 Q clusters (ablation) | SVG2 on Wan 2.1 I2V · Wan 2.1 I2V, 14B | PSNR: 26.128 -> 22.561 | Hurt |
| Use 200 rather than 100 Q clusters (ablation) | SVG2 on Wan 2.1 I2V · Wan 2.1 I2V, 14B | PSNR: 26.128 -> 26.213 | Helped |
| Use 400 rather than 100 Q clusters (ablation) | SVG2 on Wan 2.1 I2V · Wan 2.1 I2V, 14B | speedup: 1.89x -> 1.25x | Hurt |
Surprising findings
- Using the same clustering for Q and K (shared permutation or shared QK embedding) degrades PSNR substantially, with independent Q and K clustering being necessary (average ARI of 0.345 between Q and K clusters).
Limitations
- Evaluation limited to DiT-based video generation; extension to other attention mechanisms is not discussed or evaluated.
- Quality metrics (PSNR/SSIM/LPIPS) measure similarity to dense attention rather than absolute quality; VBench differences are small.
- Wan 2.1 shows lower PSNR than HunyuanVideo across all methods, attributed to numerical sensitivity, and XAttention was not evaluated on Wan 2.1.
Experimental setup
Datasets: VBench prompts Penguin Benchmark prompts
Benchmarks: VBench
Metrics: PSNR SSIM LPIPS VBench density FLOPs speedup attention recall
Baselines: SpargeAttention Sparse VideoGen (SVG) XAttention FlashInfer
Builds on: Sparse VideoGen SpargeAttention FlashInfer FlashAttention-3 MMInference
Closest papers by meaning
- Sparse Video-Gen: Accelerating Video Diffusion Transformers with Spatial-Temporal Sparsity (ICML 2025 · similarity 0.93)
- iCATS: Fast Video Generation via Interaction-Aware Sparse Attention and Timestep-Adaptive Sparsity (NeurIPS 2026 · similarity 0.89)
- Training-Free Efficient Video Generation via Dynamic Token Carving (NeurIPS 2025 · similarity 0.89)
- MonarchRT: Efficient Attention for Real-Time Video Generation (NeurIPS 2026 · similarity 0.88)
- HyperVAttention: Efficient Sparse Attention with Spatio-Temporal Clustering for Video Diffusion (NeurIPS 2026 · similarity 0.88)
- Faster Video Diffusion with Trainable Sparse Attention (NeurIPS 2025 · similarity 0.88)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.
