DSV:利用动态稀疏性加速大规模视频DiT训练
DSV: Exploiting Dynamic Sparsity to Accelerate Large-Scale Video DiT Training
AI总结:
DSV通过动态稀疏性技术提升视频DiT训练效率,实现3.02倍吞吐量提升,适用于大规模高分辨率视频训练。
摘要:
扩散变换器(DiTs)在生成高质量视频方面表现出色。然而,3D全注意力的二次复杂性仍然是扩大DiT训练规模的瓶颈,尤其是在高分辨率、长视频的情况下,它可能消耗高达95%的处理时间,并要求专门的上下文并行性。本文介绍了DSV,通过利用我们实证观察到的动态注意力稀疏性来加速视频DiT训练。DSV使用两阶段算法通过低秩近似原始查询和键来捕捉动态稀疏性模式。它采用自定义内核高效地识别关键键值对并计算稀疏注意力。为了适应新的稀疏性维度,DSV采用了一种混合稀疏性感知上下文并行性,重新平衡由于稀疏性异质性导致的注意力头和块之间的偏斜工作负载。DSV在128个GPU和520k个token长度上实现了高达3.02倍的训练吞吐量,且无质量损失。
英文摘要:
Diffusion Transformers (DiTs) have shown remarkable performance in generating high-quality videos. However, the quadratic complexity of 3D full attention remains a bottleneck in scaling DiT training, especially with high-definition, lengthy videos, where it can consume up to 95% of processing time and demand specialized context parallelism. This paper introduces DSV to accelerate video DiT training by leveraging the dynamic attention sparsity we empirically observe. DSV uses a two-stage algorithm to capture the dynamic sparsity patterns via low-rank based approximation of the original query and key. It employs custom kernels to efficiently identify critical key-value pairs and compute the sparse attention. To accommodate the new sparsity dimension, DSV adopts a hybrid sparsity-aware context parallelism that re-balances the skewed workload across attention heads and blocks due to sparsity heterogeneity. DSV achieves up to 3.02x higher training throughput, scaling to 128 GPUs and 520k token lengths, without quality loss.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。