Skip to main content
QUICK REVIEW

[Paper Review] FateZero: Fusing Attentions for Zero-shot Text-based Video Editing

Chenyang Qi, Xiaodong Cun|arXiv (Cornell University)|Mar 16, 2023
Generative Adversarial Networks and Image SynthesisComputer Science10 citations
TL;DR

FateZero presents zero-shot video editing by fusing attention maps from DDIM inversion with cross-attention blending and spatial-temporal attention, enabling consistent style, attribute, and shape editing using pre-trained image diffusion models without per-prompt training.

ABSTRACT

The diffusion-based generative models have achieved remarkable success in text-based image generation. However, since it contains enormous randomness in generation progress, it is still challenging to apply such models for real-world visual content editing, especially in videos. In this paper, we propose FateZero, a zero-shot text-based editing method on real-world videos without per-prompt training or use-specific mask. To edit videos consistently, we propose several techniques based on the pre-trained models. Firstly, in contrast to the straightforward DDIM inversion technique, our approach captures intermediate attention maps during inversion, which effectively retain both structural and motion information. These maps are directly fused in the editing process rather than generated during denoising. To further minimize semantic leakage of the source video, we then fuse self-attentions with a blending mask obtained by cross-attention features from the source prompt. Furthermore, we have implemented a reform of the self-attention mechanism in denoising UNet by introducing spatial-temporal attention to ensure frame consistency. Yet succinct, our method is the first one to show the ability of zero-shot text-driven video style and local attribute editing from the trained text-to-image model. We also have a better zero-shot shape-aware editing ability based on the text-to-video model. Extensive experiments demonstrate our superior temporal consistency and editing capability than previous works.

Motivation & Objective

  • Motivate zero-shot text-driven editing of real-world videos without per-prompt training.
  • Preserve temporal consistency by leveraging attention maps from inversion during editing.
  • Reduce semantic leakage from source content through cross-attention guided masking.
  • Enhance shape-aware and style/attribute editing using pre-trained image diffusion models.
  • Demonstrate broad editing capabilities (style, attributes, local edits, and shapes) on real videos.

Proposed method

  • Store self- and cross-attention maps at each DDIM inversion step.
  • Fuse inversion attention maps with editing-stage denoising via an Attention Fusion operation.
  • Use cross-attention maps of edited words as a spatial mask to blend self-attentions and prevent semantic leakage.
  • Introduce a spatial-temporal self-attention formulation to improve frame-to-frame consistency.
  • Reform self-attention into spatial-temporal attention by incorporating neighboring frames without retraining the model.
  • Apply the method to both appearance/style editing with image diffusion models and shape editing with video diffusion models.

Experimental results

Research questions

  • RQ1Can zero-shot text-driven editing be achieved for real-world videos without per-prompt optimization or masks?
  • RQ2Does incorporating inversion-time attention fusion improve temporal consistency and structural fidelity compared to standard frame-wise editing?
  • RQ3How can cross-attention-based masking mitigate semantic leakage during editing while preserving unedited regions?
  • RQ4Does a spatial-temporal attention formulation enhance temporal coherence in edited videos?
  • RQ5What are the editing capabilities and limitations for style/attribute vs. shape editing on video data?

Key findings

  • Achieves temporal-consistent zero-shot video edits for style, attributes, and shapes using pre-trained image and video diffusion models.
  • Attention fusion during inversion plus editing preserves motion and structure better than naive inversion-then-edit approaches.
  • Cross-attention-based masking (Attention Blending) reduces semantic leakage and improves shape editing results.
  • Spatial-temporal self-attention enhances frame-to-frame coherence without additional training.
  • Outperforms baselines in temporal consistency and editing fidelity, as shown in qualitative assessments and user studies.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.