2025-02-11 · 专家 · 计算机视觉

Efficient-vDiT: Efficient Video Diffusion Transformers With Attention Tile

本文提出了一种高效的视频扩散Transformer (EFFICIENT-VDIT),通过发现并利用视频数据中注意力图的重复“瓦片”模式,并结合多步一致性蒸馏,实现了在视频生成速度上的显著提升,同时保持了较高的视频质量。

更新于 2025-02-12。作者:Hangliang Ding、Dacheng Li、Runlong Su、Peiyuan Zhang、Zhijie Deng、Ion Stoica、Hao Zhang。

中文摘要

尽管扩散变换器 (DiT) 具有合成高保真视频的潜力,但由于注意力计算的复杂性和大量的采样步骤,其三维全注意力机制导致推理成本高昂。例如,流行的 Open-Sora-Plan 模型生成单个 29 帧视频需要超过 9 分钟。本文从两个方面解决了效率问题:1) 基于视频数据中的冗余性,对三维全注意力进行剪枝;我们识别出视频数据的三维注意力图中普遍存在的瓦片式重复模式,并提出了一种新的稀疏三维注意力机制,该机制具有关于视频帧数的线性复杂度。2) 通过采用现有的多步一致性蒸馏来缩短采样过程;我们将整个采样轨迹分成几个部分,并在每个部分内进行一致性蒸馏,以激活少步生成能力。我们进一步设计了一个三阶段训练流程,以结合低复杂度注意力和少步生成能力。值得注意的是,仅使用 0.1% 的预训练数据,我们将 Open-Sora-Plan-1.2 模型转换为高效模型,其生成 29 帧和 93 帧 720p 视频的速度提高了 7.4 倍到 7.8 倍,同时在 VBench 中性能损失微乎其微。此外,我们证明了我们的方法适用于分布式推理,在使用 4 个 GPU 进行序列并行计算时,速度提高了 3.91 倍。

英文摘要

Despite the promise of synthesizing high-fidelity videos, Diffusion Transformers (DiTs) with 3D full attention suffer from expensive inference due to the complexity of attention computation and numerous sampling steps. For example, the popular Open-Sora-Plan model consumes more than 9 minutes for generating a single video of 29 frames. This paper addresses the inefficiency issue from two aspects: 1) Prune the 3D full attention based on the redundancy within video data; We identify a prevalent tile-style repetitive pattern in the 3D attention maps for video data, and advocate a new family of sparse 3D attention that holds a linear complexity w.r.t. the number of video frames. 2) Shorten the sampling process by adopting existing multi-step consistency distillation; We split the entire sampling trajectory into several segments and perform consistency distillation within each one to activate few-step generation capacities. We further devise a three-stage training pipeline to conjoin the low-complexity attention and few-step generation capacities. Notably, with 0.1% pretraining data, we turn the Open-Sora-Plan-1.2 model into an efficient one that is 7.4x -7.8x faster for 29 and 93 frames 720p video generation with a marginal performance trade-off in VBench. In addition, we demonstrate that our approach is amenable to distributed inference, achieving an additional 3.91x speedup when running on 4 GPUs with sequence parallelism.

解读

一句话总结

本文提出了一种高效的视频扩散Transformer (EFFICIENT-VDIT),通过发现并利用视频数据中注意力图的重复“瓦片”模式,并结合多步一致性蒸馏,实现了在视频生成速度上的显著提升,同时保持了较高的视频质量。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源