arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.16260cs.CVcs.AI
收藏

Video-Infinity:分布式长视频生成

Video-Infinity: Distributed Long Video Generation

National University of Singapore(新加坡国立大学)

Zhenxiong Tan, Xingyi Yang, Songhua Liu, Xinchao Wang

AI总结:

针对单GPU长视频生成内存与时间成本高、多GPU方案存在通信和模型适配问题,该研究提出含片段并行与双范围注意力的Video-Infinity分布式推理流水线,实现了百倍于现有方法的长视频生成速度。

摘要:

扩散模型近期在视频生成领域取得了显著成果。尽管表现令人鼓舞,但生成的视频通常帧数有限,仅能产出持续数秒的片段。生成更长视频的主要挑战包括单GPU下内存需求过高、处理时间过长。一种直接的解决方案是将工作负载拆分到多个GPU上,但这会引发两个问题:(1)确保所有GPU有效通信以共享时序和上下文信息;(2)在无需额外训练的前提下,改造通常基于短序列训练的现有视频扩散模型,使其能够生成更长的视频。为解决这些问题,本文提出了Video-Infinity,这是一种支持多GPU并行处理的长视频生成分布式推理流水线。具体而言,我们提出了两种协同机制:片段并行(Clip parallelism)和双范围注意力(Dual-scope attention)。片段并行优化了GPU间上下文信息的收集与共享,最大限度降低了通信开销;双范围注意力则对时序自注意力进行调制,在各设备间高效平衡局部与全局上下文。两种机制协同作用,实现了工作负载的分布式分配,可快速生成长视频。在8张Nvidia 6000 Ada GPU(48G)的配置下,我们的方法可在约5分钟内生成多达2300帧的视频,长视频生成速度是现有方法的100倍。

英文摘要:

Diffusion models have recently achieved remarkable results for video generation. Despite the encouraging performances, the generated videos are typically constrained to a small number of frames, resulting in clips lasting merely a few seconds. The primary challenges in producing longer videos include the substantial memory requirements and the extended processing time required on a single GPU. A straightforward solution would be to split the workload across multiple GPUs, which, however, leads to two issues: (1) ensuring all GPUs communicate effectively to share timing and context information, and (2) modifying existing video diffusion models, which are usually trained on short sequences, to create longer videos without additional training. To tackle these, in this paper we introduce Video-Infinity, a distributed inference pipeline that enables parallel processing across multiple GPUs for long-form video generation. Specifically, we propose two coherent mechanisms: Clip parallelism and Dual-scope attention. Clip parallelism optimizes the gathering and sharing of context information across GPUs which minimizes communication overhead, while Dual-scope attention modulates the temporal self-attention to balance local and global contexts efficiently across the devices. Together, the two mechanisms join forces to distribute the workload and enable the fast generation of long videos. Under an 8 x Nvidia 6000 Ada GPU (48G) setup, our method generates videos up to 2,300 frames in approximately 5 minutes, enabling long video generation at a speed 100 times faster than the prior methods.

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

↑