Skip to main content
QUICK REVIEW

[论文解读] FLATTEN: optical FLow-guided ATTENtion for consistent text-to-video editing

Yuren Cong, Mengmeng Xu|arXiv (Cornell University)|Oct 9, 2023
Video Analysis and SummarizationComputer Science被引用 10
一句话总结

FLATTEN 在扩散基础的文本到视频编辑中引入基于光流的注意力,使在光流轨迹上的补丁级一致性在不进行训练的情况下实现,在 TGVE 基准上达到 state-of-the-art(最新最佳)结果。

ABSTRACT

Text-to-video editing aims to edit the visual appearance of a source video conditional on textual prompts. A major challenge in this task is to ensure that all frames in the edited video are visually consistent. Most recent works apply advanced text-to-image diffusion models to this task by inflating 2D spatial attention in the U-Net into spatio-temporal attention. Although temporal context can be added through spatio-temporal attention, it may introduce some irrelevant information for each patch and therefore cause inconsistency in the edited video. In this paper, for the first time, we introduce optical flow into the attention module in the diffusion model's U-Net to address the inconsistency issue for text-to-video editing. Our method, FLATTEN, enforces the patches on the same flow path across different frames to attend to each other in the attention module, thus improving the visual consistency in the edited videos. Additionally, our method is training-free and can be seamlessly integrated into any diffusion-based text-to-video editing methods and improve their visual consistency. Experiment results on existing text-to-video editing benchmarks show that our proposed method achieves the new state-of-the-art performance. In particular, our method excels in maintaining the visual consistency in the edited videos.

研究动机与目标

  • 通过利用帧之间的时间一致性解决文本到视频编辑中的视觉不一致性。
  • 引入与预训练 T2I 扩散模型兼容的无训练流程引导注意力机制(FLATTEN)。
  • 在保持每帧特征分布的同时,通过光流轨迹增强跨帧一致性。
  • 证明 FLATTEN 能提升编辑质量并可接入现有的 T2V 编辑方法。

提出的方法

  • 沿时间轴对预训练的文本到图像扩散 U-Net 进行膨胀,构建一个 T2V 编辑框架。
  • 用基于光流的注意力(FLATTEN)替代稠密时空注意力;该注意力使用由光流引导的补丁轨迹。
  • 通过 RAFT 估计的流在潜在空间分辨率下下采样来计算补丁轨迹,并从同一轨迹处聚集 K/V 以用于注意力中的 Q/K/V。
  • 在 DDIM 反演和采样过程中应用 FLATTEN,以在不进行训练的前提下提升时间一致性。
  • 在采样过程中按照图像编辑实践注入扩散特征,以增强每帧的一致性。
  • 不引入新的可训练参数;FLATTEN 复用现有的投影层和注意力块。

实验结果

研究问题

  • RQ1在不进行模型训练的情况下,光流引导如何提升文本到视频编辑中的跨帧一致性?
  • RQ2在扩散模型的 T2V 编辑中集成基于光流的注意力,是否比基线方法在视觉一致性与文本保真度方面有提升?
  • RQ3FLATTEN 是否可以接入到其他基于扩散的 T2V 方法以提升性能?
  • RQ4在 DDIM 反演阶段应用 FLATTEN 与仅在采样阶段应用有什么影响?

主要发现

  • FLATTEN 在 TGVE-D 与 TGVE-V 基准上在文本对齐和编辑质量方面达到新的 state-of-the-art。
  • 在 TGVE-D 上,FLATTEN 的分数为 CLIP-F 92.49、PickScore 20.95、CLIP-T 28.05、E warp 4.92、S_edit 57.01;在 TGVE-V 上,CLIP-F 96.75、PickScore 20.63、CLIP-T 26.70、E warp 3.16、S_edit 84.49。
  • FLATTEN 在报道的方法中提供最佳或并列最佳的 CLIP-T 与 S_edit 分数,并在相对于基线的 E warp 方面保持竞争力,同时保持 CLIP-F 的竞争力。
  • 将 FLATTEN 插入 ControlVideo 可显著提升视觉一致性,将 E_warp 从 6.81 降低到 4.78,将 S_edit 从 40.70 提升至 56.42。
  • 消融实验显示,将 DSTA 与 FLATTEN(方法 II)结合在一起,在 S_edit 上取得显著提升,并相对于单独使用任一方法时降低时间不一致性。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。