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

更快的图像到视频生成:深入探讨 CLIP 图像嵌入对时空交叉注意力的影响

Faster Image2Video Generation: A Closer Look at CLIP Image Embedding's Impact on Spatio-Temporal Cross-Attentions

The University of Western Australia(西澳大学);Munich Center for Machine Learning(慕尼黑机器学习中心);Technical University of Munich(慕尼黑工业大学);The University of Melbourne(墨尔本大学);School of Information(信息学院);Department of Electrical, Electronics and Computer Engineering, The University of Western Australia(西澳大学电气、电子与计算机工程系)

Ashkan Taghipour, Morteza Ghahremani, Mohammed Bennamoun, Aref Miri Rekavandi, Zinuo Li, Hamid Laga, Farid Boussaid

AI总结:

本文提出免训练方法 VCUT,通过消除时间交叉注意力并用一次性计算的线性层替代空间交叉注意力,显著降低了 SVD 框架的计算负荷与延迟。

摘要:

本文研究了 CLIP 图像嵌入在 Stable Video Diffusion (SVD) 框架中的作用,重点关注其对视频生成质量和计算效率的影响。我们的研究结果表明,CLIP 嵌入虽然对美学质量至关重要,但并不显著促进视频输出的主体和背景一致性。此外,计算成本高昂的交叉注意力机制可以有效地被一个更简单的线性层所取代。该线性层仅在第一个扩散推理步骤时计算一次,其输出随后被缓存并在整个推理过程中重复使用,从而在保持高质量输出的同时提高了效率。基于这些见解,我们引入了 VCUT,这是一种针对 SVD 架构效率进行优化的免训练方法。VCUT 消除了时间交叉注意力,并用一次性计算的线性层取代了空间交叉注意力,显著降低了计算负荷。VCUT 的实施使得每个视频的 Multiple-Accumulate Operations (MACs) 减少高达 322T,模型参数减少高达 50M,与基线相比实现了 20% 的延迟降低。我们的方法证明,在 Semantic Binding 阶段进行条件控制即已足够,从而无需在所有推理步骤中进行连续计算,为高效视频生成确立了新标准。

英文摘要:

This paper investigates the role of CLIP image embeddings within the Stable Video Diffusion (SVD) framework, focusing on their impact on video generation quality and computational efficiency. Our findings indicate that CLIP embeddings, while crucial for aesthetic quality, do not significantly contribute towards the subject and background consistency of video outputs. Moreover, the computationally expensive cross-attention mechanism can be effectively replaced by a simpler linear layer. This layer is computed only once at the first diffusion inference step, and its output is then cached and reused throughout the inference process, thereby enhancing efficiency while maintaining high-quality outputs. Building on these insights, we introduce the VCUT, a training-free approach optimized for efficiency within the SVD architecture. VCUT eliminates temporal cross-attention and replaces spatial cross-attention with a one-time computed linear layer, significantly reducing computational load. The implementation of VCUT leads to a reduction of up to 322T Multiple-Accumulate Operations (MACs) per video and a decrease in model parameters by up to 50M, achieving a 20% reduction in latency compared to the baseline. Our approach demonstrates that conditioning during the Semantic Binding stage is sufficient, eliminating the need for continuous computation across all inference steps and setting a new standard for efficient video generation.

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

↑