[Paper Review] FLATTEN: optical FLow-guided ATTENtion for consistent text-to-video editing
FLATTEN introduces flow-guided attention into diffusion-based text-to-video editing, enabling patch-level consistency along optical-flow trajectories without training, achieving state-of-the-art results on TGVE benchmarks.
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.
Motivation & Objective
- Address visual inconsistency in text-to-video editing by leveraging temporal coherence across frames.
- Introduce a training-free flow-guided attention mechanism (FLATTEN) compatible with pre-trained T2I diffusion models.
- Preserve per-frame feature distributions while enhancing cross-frame consistency through optical-flow trajectories.
- Demonstrate that FLATTEN improves editing quality and can plug into existing T2V editing methods.
Proposed method
- Inflate a pre-trained text-to-image diffusion U-Net along the temporal axis to create a T2V editing framework.
- Replace dense spatio-temporal attention with flow-guided attention (FLATTEN) that uses patch trajectories guided by optical flow.
- Compute patch trajectories via RAFT-estimated flow downsampled to latent space resolution and gather K/V from the same trajectory for Q/K/V in attention.
- Apply FLATTEN during DDIM inversion and sampling to improve temporal consistency without training.
- Inject diffusion features during sampling following image-editing practice to enhance per-frame consistency.
- No new trainable parameters are introduced; FLATTEN reuses existing projection layers and attention blocks.
Experimental results
Research questions
- RQ1How can optical flow guidance improve cross-frame consistency in text-to-video editing without model training?
- RQ2Does integrating flow-guided attention into diffusion-based T2V editing improve visual consistency and textual fidelity compared to baselines?
- RQ3Can FLATTEN be plugged into other diffusion-based T2V methods to boost performance?
- RQ4What is the impact of applying FLATTEN during DDIM inversion versus only during sampling?
Key findings
- FLATTEN achieves new state-of-the-art performance on TGVE-D and TGVE-V benchmarks in textual alignment and editing quality.
- On TGVE-D, FLATTEN records CLIP-F 92.49, PickScore 20.95, CLIP-T 28.05, E warp 4.92, S_edit 57.01; on TGVE-V, CLIP-F 96.75, PickScore 20.63, CLIP-T 26.70, E warp 3.16, S_edit 84.49.
- FLATTEN provides the best or tied-best CLIP-T and S_edit scores among reported methods, and maintains competitive CLIP-F while reducing warping error (E warp) relative to baselines.
- Plugging FLATTEN into ControlVideo improves visual consistency, reducing E_warp from 6.81 to 4.78 and raising S_edit from 40.70 to 56.42.
- Ablation shows combining DSTA with FLATTEN (approach II) yields strong gains in S_edit and reduces temporal inconsistency compared to using either alone.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.