Text-based Talking Video Editing with Cascaded Conditional Diffusion

Bo Han, Heqing Zou, Haoyang Li, Guangcong Wang, Chng Eng SiongarXiv 2024 · DOI

Abstract

This paper presents a novel two-stage cascaded diffusion framework designed for high-fidelity, text-based editing of talking-head videos. By decoupling the process into audio-to-motion and motion-to-video stages, the proposed method leverages in-context information from surrounding frames to ensure seamless transitions and robust identity preservation. Unlike existing optimization-based methods, this approach operates in a zero-shot manner, eliminating the need for expensive per-person fine-tuning while achieving state-of-the-art performance in visual quality and temporal consistency.

Introduction

Editing a talking-head video—such as inserting a new sentence or substituting a specific word—is a notoriously difficult task. The edited segment must not only synchronize perfectly with the new audio but also maintain the speaker's unique identity, head pose, and expressions. Crucially, the transition between original and edited frames must be imperceptible to avoid jarring "jump cuts."

Example of text-based video editing where a specific phrase is modified while maintaining visual consistency.

Current approaches generally fall into two categories, both with significant drawbacks. Optimization-based models (such as those using NeRFs) require hours of training for every individual speaker. Conversely, generative models like GANs or standard Diffusion often fail to maintain identity consistency or produce jittery transitions because they lack the necessary temporal context from the surrounding video.

Methodology: The Cascaded Approach

The authors propose a Cascaded Conditional Diffusion framework that splits the editing problem into two manageable steps:

Stage 1: Audio to Dense-Landmark Motion

Instead of predicting sparse landmark coordinates, the model utilizes dense landmarks (468 points) represented as images. This allows the model to leverage the spatial reasoning capabilities of Diffusion Models. To ensure the edited motion blends perfectly with the original video, the model employs Dynamic Weighted In-Context Diffusion. By taking the landmark images from the frames immediately before and after the edit as conditions, the model "anchors" the generated motion, forcing it to start and end exactly where the original video left off.

Stage 2: Motion to Video

Once the motion is generated, it must be converted into realistic pixels while preserving the speaker's identity.

  1. ID-Preserving Interpolation-Warping (IPIW): The model creates "coarse" frames by interpolating between the boundary frames and warping them using optical flow guided by the landmarks from Stage 1. This step ensures that identity-specific details like skin texture and hair remain intact.
  2. Warping-Guided Conditional Diffusion: A final diffusion refinement module takes these coarse frames and the edited audio to fill in details, fix warping artifacts, and ensure a high-resolution, temporally consistent output.

Key Results and Evaluation

The proposed method was evaluated using the HDTF (High-Definition Talking Face) dataset, utilizing an "identity-first" split to test zero-shot capabilities on unseen speakers.

Sequence of generated frames showing consistent identity and smooth motion across different speakers.

Performance Metrics

  • Visual Fidelity: The model significantly outperformed baselines (DiffTalk, GeneFace++, AniPortrait) in PSNR (26.47) and SSIM (0.9375), indicating superior reconstruction of the speaker's appearance.
  • Temporal Smoothness: Using a specialized F-SSIM metric to measure continuity across transition boundaries, the model demonstrated its ability to eliminate jump cuts.
  • Efficiency: By operating in a zero-shot manner, the framework avoids the hours of per-person fine-tuning required by NeRF-based methods, making it a practical tool for rapid video editing.

Conclusion and Future Work

By treating landmarks as spatial images and explicitly conditioning the diffusion process on boundary frames, this framework solves the "trilemma" of talking video editing: generalizability, seamless transitions, and identity preservation. While currently focused on linguistic editing, future research will look toward unifying facial attribute editing (such as lighting and style) with text-based content modification and improving robustness against audio domain shifts from TTS systems.

Summary updated

BibTeX
@misc{han2024text,
  author = {Bo Han and Heqing Zou and Haoyang Li and Guangcong Wang and Chng Eng Siong},
  title = {{Text-based Talking Video Editing with Cascaded Conditional Diffusion}},
  year = {2024},
  eprint = {2407.14841},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.14841},
}
Figure