arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2505.21070cs.CV
收藏

具有双重并行性的分钟级长视频生成

Minute-Long Videos with Dual Parallelisms

National University of Singapore(国立新加坡大学);Xidian University(西安电子科技大学);Huazhong University of Science and Technology(华中科技大学)

Zeqing Wang, Bowen Zheng, Xingyi Yang, Zhenxiong Tan, Yuecong Xu, Xinchao Wang

AI总结:

针对长视频扩散模型延迟与内存开销过高的问题,提出DualParal分布式推理策略,通过跨GPU并行时间帧与模型层并辅以块状去噪和特征缓存,在8块RTX 4090上实现1025帧视频生成且大幅降低延迟与内存。

摘要:

基于Diffusion Transformer (DiT)的视频扩散模型能够大规模生成高质量视频,但对于长视频会产生极高的处理延迟和内存开销。为了解决这个问题,我们提出了一种名为DualParal的新型分布式推理策略。其核心思想是,不再在单个GPU上生成整个视频,而是跨GPU将时间帧和模型层同时并行化。然而,这种划分的直接实现面临一个关键限制:由于扩散模型要求各帧之间具有同步的噪声水平,该实现会导致原有并行性的串行化。我们利用块状去噪方案来处理此问题。即,我们通过流水线处理一系列帧块,且噪声水平逐渐降低。每个GPU处理特定的块和层子集,同时将先前结果传递给下一个GPU,从而实现异步计算与通信。为进一步优化性能,我们引入了两项关键增强。首先,在每个GPU上实现特征缓存,以存储并重用来自前一个块的特征作为上下文,从而最小化GPU间通信和冗余计算。其次,我们采用协调的噪声初始化策略,通过跨GPU共享初始噪声模式来确保全局一致的时间动态,且无需额外资源开销。这些机制共同实现了快速、无伪影且无限长的视频生成。应用于最新的扩散Transformer视频生成器,我们的方法在8块RTX 4090 GPU上高效生成了1,025帧视频,延迟降低高达6.54倍,内存开销降低1.48倍。

英文摘要:

Diffusion Transformer (DiT)-based video diffusion models generate high-quality videos at scale but incur prohibitive processing latency and memory costs for long videos. To address this, we propose a novel distributed inference strategy, termed DualParal. The core idea is that, instead of generating an entire video on a single GPU, we parallelize both temporal frames and model layers across GPUs. However, a naive implementation of this division faces a key limitation: since diffusion models require synchronized noise levels across frames, this implementation leads to the serialization of original parallelisms. We leverage a block-wise denoising scheme to handle this. Namely, we process a sequence of frame blocks through the pipeline with progressively decreasing noise levels. Each GPU handles a specific block and layer subset while passing previous results to the next GPU, enabling asynchronous computation and communication. To further optimize performance, we incorporate two key enhancements. Firstly, a feature cache is implemented on each GPU to store and reuse features from the prior block as context, minimizing inter-GPU communication and redundant computation. Secondly, we employ a coordinated noise initialization strategy, ensuring globally consistent temporal dynamics by sharing initial noise patterns across GPUs without extra resource costs. Together, these enable fast, artifact-free, and infinitely long video generation. Applied to the latest diffusion transformer video generator, our method efficiently produces 1,025-frame videos with up to 6.54$\times$ lower latency and 1.48$\times$ lower memory cost on 8$\times$RTX 4090 GPUs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑