SparkDiffusion: 265x Faster AI Video Generation by Solving the High-Sparsity Trap
SparkDiffusion, an open-source framework from Peking University, Tsinghua, and Alibaba, solves the high-sparsity trap in diffusion transformers by integrating sparse attention (RoLA), trajectory-mixed distillation (CrossDistill), and FP8 quantization, achieving 265x speedup on RTX 5090 for 720P video generation while maintaining quality.
Reading font

AI video generation models like Sora and Runway face slow generation speeds and high compute barriers. A 5-second 720P video traditionally takes over an hour to generate via diffusion, limiting real-time creation and consumer-hardware deployment.
The High-Sparsity Trap
Researchers discovered a counterintuitive phenomenon: pushing sparsity from 90% to 97% (reducing compute to 3%) caused training loss to decrease while generated video quality collapsed — characters fragmented, backgrounds distorted, temporal coherence lost. Extending training, enlarging datasets, or increasing compensation-branch capacity failed to fix it.
The team named this the High-Sparsity Trap : under extreme sparsity, step-wise supervised sparse video DiTs enter a failure mode where single-step validation loss improves but terminal generation quality stagnates or degrades, and prolonged step-wise training cannot substantially recover terminal quality.
Root Cause: Error Accumulation in High-Noise Stage
Diffusion models generate video along a denoising trajectory. Traditional step-wise supervision (e.g., Flow Matching) only requires correct velocity prediction at a given noise timestep, without constraining what the final output will be after composing subsequent steps.
An Oracle intervention experiment at 97% sparsity replaced the sparse student's predictions with the dense teacher's at different sampling intervals:
Correcting only the highest-noise 5 steps removed most terminal error.
Correcting only the lowest-noise 5 steps yielded limited improvement.
Conclusion: structural errors in the high-noise stage are amplified by later steps, causing terminal quality collapse.
Solution: Terminal-Aligned Supervision
Instead of supervising only per-step accuracy, SparkDiffusion introduces Terminal-Aligned Supervision , constraining during training what each step will ultimately generate, thereby preventing error accumulation at its source.
A 2D sequential distribution experiment on six distributions confirmed: a 95% sparse model trained only step-wise showed trajectory endpoints deviating from the data distribution; adding terminal-aligned distillation brought the few-step student's endpoints back close to the dense teacher.
Method Design: RoLA + CrossDistill + FP8
Staged Strategy: Adapt Then Correct
SparkDiffusion employs a three-stage pipeline:
RoLA (Rotary-Positioned Low-Rank Linear Attention) retains global information at extreme sparsity. It combines a block-sparse branch preserving high-energy query-key interactions with a rotary-positioned low-rank linear branch that recovers global context discarded by sparsification.
CrossDistill (Trajectory-Level Hybrid Few-Step Distillation) balances quality and diversity in 3 steps without CFG. It sets a crossover point on the noise trajectory:
High-noise stage: 1 PCM consistency step follows the teacher's coarse structure and motion trajectory while preserving diversity from different random seeds.
Low-noise stage: 2 DMD distribution-matching steps directly correct visible terminal errors, enhancing detail and realism.
Both PCM and DMD objectives use subsequent trajectory or final output for supervision, constituting terminal-aligned supervision.
FP8 quantization combined with custom fused kernels converts theoretical compute gains into actual latency reduction.
Experimental Results
On a single RTX 5090, SparkDiffusion achieves 265× speedup (720P, 14B model, 18 seconds for 5-second video). On H100, the same configuration yields 220× speedup (8 seconds). Quality remains high: VBench-2.0 drops only 0.5 points (60.2 → 59.77).
Key performance data:
At 90% sparsity: SparkDiffusion surpasses FastWan and TurboDiffusion across all metrics.
At 97% sparsity: quality slightly declines but stays near dense baseline; speedup rises from 201× to 265×.
Higher resolution benefits more: 720P frames have 2.25× more tokens than 480P; attention compute is O(L²), so redundancy skipped by RoLA grows >5×, explaining why 720P-14B reaches 265× vs 480P-1.3B at 140×.
Open-Source Release
SparkDiffusion is fully open-sourced:
Model weights
Sparse fine-tuning and distillation training code
Inference scripts for RTX 5090 and H100
Unified acceleration framework integrating sparsity, distillation, and quantization
Cross-model support (Wan2.1/Wan2.2, T2V/I2V, 480P/720P)
Resources: Project page: https://sparkdiffusion.github.io/, GitHub: https://github.com/AlibabaResearch/SparkDiffusion, Weights: https://huggingface.co/collections/alibabagroup/sparkdiffusion, Paper: https://arxiv.org/abs/2609.23153, RoLA paper: https://arxiv.org/abs/2609.06712, CrossDistill paper: https://arxiv.org/abs/2609.14725.
Summary and Outlook
Core contributions:
First identification and naming of the High-Sparsity Trap — step-wise training failure at extreme sparsity.
Diagnosis of root cause — structural errors in high-noise stage accumulate along trajectory.
Staged solution — sparse warm-up establishes coarse prior, then trajectory-mixed distillation corrects terminal distribution.
Unified framework — first open-source system integrating sparsity, distillation, and quantization.
Future work: extending to autoregressive video generation (where cross-frame error accumulation is the next target for terminal-aligned supervision) and omni-modal generation (larger sparse optimization space in cross-modal, ultra-long sequences).
Code example
来源:机器之心
本文
约2300字
,建议阅读
5
分钟
本文介绍了 SparkDiffusion 框架,破解稀疏陷阱,实现 AI 视频百倍级极速生成。For questions about attribution, corrections or content rights, please contactand we will review it promptly.