arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.06664cs.CVcs.AI
收藏

通过全局时间索引的序列-并行3D位置编码加速视频生成推理

Accelerating Video Generation Inference with Sequential-Parallel 3D Positional Encoding Using a Global Time Index

Chao Yuan, Pan Li

AI总结:

通过全局时间索引的序列-并行3D位置编码优化视频生成推理,实现亚秒首帧延迟和近实时性能。

摘要:

基于扩散变换器(DiT)的视频生成模型固有地存在长视频合成和实时推理的瓶颈,这可以归因于全时空注意力机制的使用。具体而言,这种机制导致了爆炸性的O(N²)内存消耗和高首帧延迟。为了解决这些问题,我们为因果自回归视频生成流水线实现了系统级推理优化。我们适应了Self-Forcing因果自回归框架以实现序列并行推理,并实现了我们称之为Causal-RoPE SP的序列并行因果旋转位置嵌入变体。这种适应使计算局部化并减少了序列并行执行中的跨rank通信。此外,通过操作融合和RoPE预计算优化了计算和通信流水线。在八块A800集群上进行的实验表明,优化后的系统实现了与生成质量相当、亚秒首帧延迟和接近实时的推理速度。对于生成五秒480P视频,实现了1.58倍的加速,从而为实时交互应用提供了有效的支持。

英文摘要:

Diffusion Transformer (DiT)-based video generation models inherently suffer from bottlenecks in long video synthesis and real-time inference, which can be attributed to the use of full spatiotemporal attention. Specifically, this mechanism leads to explosive O(N^2) memory consumption and high first-frame latency. To address these issues, we implement system-level inference optimizations for a causal autoregressive video generation pipeline. We adapt the Self-Forcing causal autoregressive framework to sequence parallel inference and implement a sequence-parallel variant of the causal rotary position embedding which we refer to as Causal-RoPE SP. This adaptation enables localized computation and reduces cross-rank communication in sequence parallel execution. In addition, computation and communication pipelines are optimized through operator fusion and RoPE precomputation. Experiments conducted on an eight GPU A800 cluster show that the optimized system achieves comparable generation quality, sub-second first-frame latency, and near real-time inference speed. For generating five second 480P videos, a 1.58x speedup is achieved, thereby providing effective support for real-time interactive applications.

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

↑