TL;DR
OSP-Next introduces a highly efficient framework for text-to-video generation that breaks the computational bottlenecks of Diffusion Transformers (DiTs). By combining a spatially aware 2D sparse attention mechanism, a novel sequence parallelism strategy that slashes communication overhead by 75%, and low-precision 8-bit quantization, it achieves up to a 2.27× speedup. Crucially, it maintains or even exceeds the generation quality of full-attention baselines by leveraging reinforcement learning for preference alignment.
What Problem Does This Paper Address?
Diffusion Transformers (DiTs) have become the state-of-the-art backbone for high-quality video generation. However, their reliance on full self-attention introduces a quadratic computational cost ($O(N^2)$) relative to the sequence length. Given the massive number of tokens required to represent spatio-temporal video data, generating even a short 5-second 720p video can take up to an hour on a single high-end GPU.
Prior attempts to solve this via sparse attention, linear attention, or 8-bit quantization (like FP8) introduce severe trade-offs. They often require custom, hardware-specific attention kernels, cause workload imbalances across parallel GPUs, or significantly degrade the visual quality of the output. OSP-Next tackles these challenges simultaneously, providing a co-designed solution spanning attention architecture, distributed parallelism, quantization, and post-training alignment.
Methods
The authors propose a multi-layered optimization stack built on top of the Wan2.1 architecture:
- Skiparse-2D Attention: Instead of flattening a video into a 1D sequence (which destroys spatial relationships), OSP-Next applies skip-sparse attention orthogonally along the height and width dimensions. It alternates between token-wise and group-wise sparse attention patterns. Because it avoids dynamic mask generation, it remains natively compatible with standard, highly optimized FlashAttention kernels.
- Sparse Sequence Parallelism (SSP): Standard sequence parallel methods (like DeepSpeed Ulysses) require heavy All-to-All communication for queries, keys, values, and outputs. SSP exploits a mathematical property called local equivalence in the Skiparse layout. Ranks can rearrange data locally before executing just a single All-to-All communication step per block, maintaining perfect load balance.
- HiF8 Quantization: OSP-Next integrates Huawei’s proprietary HiF8 8-bit floating-point format. Unlike standard FP8 (E4M3/E5M2) which uses a fixed exponent/mantissa split, HiF8 dynamically shifts bits using a tapered precision profile that perfectly mirrors the Gaussian distribution of neural network weights. This allows stable joint training using simple per-tensor scaling.
- Mix-GRPO Post-Training: To close the quality gap caused by sparsification and quantization, the authors use a hybrid reinforcement learning strategy. It applies stochastic SDE sampling in early denoising steps (where global layout is determined) and switches to deterministic ODE sampling in later steps, drastically reducing the cost of video RL rollouts.
Datasets
- Training: The model was fine-tuned using an internally collected dataset of high-quality videos, filtered to remove static scenes and low-resolution clips. The training target was fixed at 81 frames with a resolution of 720 × 1280.
- Evaluation: The primary quantitative benchmark used is VBench, a comprehensive suite designed to evaluate video generative models across dimensions like semantic consistency, motion smoothness, and algorithmic quality.
Key Insights and Ideas
- Exploiting 2D Spatial Locality: Flattening video tokens into 1D sequences breaks spatial context. Applying sparse patterns independently across H and W dimensions mimics 3D full attention much more effectively, preserving structural integrity at higher sparsity ratios.
- Communication Reduction via Local Equivalence: The "aha moment" for parallelism is that switching between token-wise and group-wise sparse patterns can be done almost entirely locally on each GPU rank. This reduces the distributed communication volume by 75% compared to Ulysses SP.
- Tapered Precision Fits Deep Learning: Fixed FP8 formats waste code points on redundant representations (like $\pm0$). HiF8's redundancy-free, variable-width encoding concentrates precision where the data actually lives, eliminating the need for complex per-block or per-token rescaling.
Key Results
- Quality Improvements: OSP-Next achieved a total VBench score of 83.73%, outperforming the full-attention Wan2.1 baseline (83.69%). The 8-bit quantized version, OSP-Next-HiF8, maintained an impressive 83.29%, representing less than a 0.4% quality drop.
- NVIDIA H200 Performance: OSP-Next delivered up to a 1.64× single-GPU speedup and over a 1.52× 8-GPU speedup under 768P unpadded video settings.
- Ascend 950PR Performance: Leveraging native HiF8 hardware execution, OSP-Next-HiF8 achieved a massive 2.27× speedup on a single Ascend NPU.
Limitations and Future Work
Despite the impressive speedups, the authors note an initialization gap: when directly converting a pretrained full-attention model to a sparse architecture, zero-shot performance drops significantly. OSP-Next mitigates this by using a "spindle-shaped" architecture (keeping full attention in the first and last layers), but it still requires a dedicated fine-tuning phase to recover quality.
Additionally, due to limited hardware availability during testing, multi-node scaling results for the Ascend 950PR platform were not explored. Future work will likely focus on scaling these sparse parallel primitives to even larger model sizes and longer video durations.
Summary updated