OSP-Next: 结合稀疏序列并行、HiF8量化和强化学习的高效高质量视频生成
OSP-Next: Efficient High-Quality Video Generation with Sparse Sequence Parallelism, HiF8 Quantization, and Reinforcement Learning
AI总结:
提出OSP-Next文本到视频生成模型,通过混合全稀疏注意力架构、稀疏序列并行(SSP)、HiF8量化和混合GRPO后训练,在保持高质量的同时显著提升效率,在NVIDIA H200和Ascend 950PR上实现1.5倍以上加速。
摘要:
扩散Transformer在视频生成中取得了高质量,但全注意力的二次成本限制了效率。我们提出OSP-Next,一种高效的文本到视频生成模型,集成了稀疏注意力、并行、量化和强化学习。OSP-Next采用混合全稀疏注意力架构,其中稀疏组件通过Skiparse-2D注意力实现。这种固定模式机制沿空间维度应用逐token和逐组的稀疏注意力,利用局部性同时保持与FlashAttention内核的原生兼容性。基于Skiparse-2D注意力中重排的局部等价性,我们进一步提出稀疏序列并行(SSP),它将子序列划分到多个rank,并通过一次All-to-All通信切换稀疏模式。与Ulysses序列并行(SP)相比,SSP为稀疏注意力提供了原生并行策略,并将通信量减少了75%。OSP-Next还引入了HiF8量化,以实现8位量化和稀疏微调的稳定联合训练,并应用Mix-GRPO后训练来提升稀疏模型的性能。实验表明,OSP-Next的VBench总得分为83.73%,超过了Wan2.1基线。在5秒720P和5秒768P设置下,OSP-Next在NVIDIA H200 GPU上实现了高达1.64倍的单GPU加速和超过1.52倍的八GPU加速。此外,在VBench总分仅下降0.4%的情况下,OSP-Next-HiF8在单个Ascend 950PR上分别实现了1.69倍和2.27倍的加速,展示了OSP-Next跨硬件平台的效率和性能。
英文摘要:
Diffusion Transformers achieve strong video generation quality, but the quadratic cost of full attention limits efficiency. We introduce OSP-Next, an efficient text-to-video generation model that integrates sparse attention, parallelism, quantization, and reinforcement learning. OSP-Next uses a hybrid full-sparse attention architecture, where the sparse component is implemented with Skiparse-2D Attention. This fixed-pattern mechanism applies token-wise and group-wise sparse attention along spatial dimensions, leveraging locality while maintaining native compatibility with FlashAttention kernels. Based on the local equivalence of rearrangement in Skiparse-2D Attention, we further propose Sparse Sequence Parallelism (SSP), which partitions subsequences across ranks and switches sparse patterns through a single All-to-All communication. Compared with Ulysses Sequence Parallelism (SP), SSP provides a native parallel strategy for sparse attention and reduces communication volume by 75%. OSP-Next also incorporates HiF8 quantization to enable stable joint training with 8-bit quantization and sparse fine-tuning, and applies Mix-GRPO post-training to improve the performance of the sparse model. Experiments show that OSP-Next achieves a VBench total score of 83.73%, surpassing the Wan2.1 baseline. Under the 5-second 720P and 5-second 768P settings, OSP-Next achieves up to 1.64$\times$ single-GPU speedup and over 1.52$\times$ eight-GPU speedup on NVIDIA H200 GPUs. In addition, with only a 0.4% drop in VBench total score, OSP-Next-HiF8 achieves 1.69$\times$ and 2.27$\times$ speedups under the two settings on a single Ascend 950PR, demonstrating the efficiency and performance of OSP-Next across hardware platforms.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。