Ditto: Motion-Space Diffusion for Controllable Realtime Talking Head Synthesis

Tianqi Li, Ruobing Zheng, Minghui Yang, Jingdong Chen, Ming Yang 0007

TL;DR

Ditto is a novel diffusion-based framework for generating talking head videos that offers fine-grained control over facial motion and achieves real-time inference. By leveraging a dedicated motion space and a conditional diffusion transformer, Ditto addresses limitations in existing methods regarding controllability and speed, making it suitable for interactive applications.

What Problem Does This Paper Address?

Creating realistic talking head videos from audio has seen significant progress with diffusion models, which excel at capturing subtle expressions and head movements synchronized with speech. However, two major challenges hinder their widespread adoption:

  1. Lack of Control: Current methods offer limited control over the generated facial motion. Users cannot easily adjust specific aspects like facial movements, emotions, or head rotations, often requiring regeneration to achieve desired results, which can be time-consuming and unpredictable.
  2. Slow Inference Speed: Most diffusion-based methods are too slow for real-time applications, such as AI assistants or live video streaming, typically requiring more than a single GPU. While some approaches have achieved real-time inference, they often sacrifice controllability.

Ditto aims to bridge this gap by providing a framework that is both controllable and fast enough for real-time use.

Methods

Ditto introduces several key methodological advancements:

  • Motion-Space Diffusion: Instead of directly generating images in a general latent space, Ditto utilizes a specialized "motion space." This space is designed to disentangle motion from identity, making it easier for the diffusion model to learn and generate universal motion patterns.
  • Conditional Diffusion Transformer (DiT): The core of the motion generation is a DiT that takes audio features and several auxiliary conditional signals as input. These signals include:
  • Canonical Keypoints (Cref): Identity-specific facial keypoints to ensure generated motions are appropriate for the target identity.
  • Emotion Labels (s): Explicit emotion signals for direct control over expressions.
  • Eye State (e): Information about eye blinking and gaze.
  • Reference Initial Motion (mref): A short motion sequence to guide the initial generation and improve temporal continuity.
  • Identity-Adaptive Motion Representation: The framework uses an off-the-shelf motion extractor to generate identity-agnostic motion representations (keypoints, expression deformations, head poses). This representation is then used by the DiT to predict audio-driven motion.
  • Holistic Framework Optimization: Ditto jointly optimizes the entire pipeline, including audio feature extraction (using HuBERT with KV caching for real-time processing), motion generation (DiT with optimized inference steps), and video synthesis (a fast, TensorRT-optimized face renderer). This optimization enables streaming processing, low first-frame delay, and real-time inference.
  • Gaze Adjustment: A specific technique is introduced to decouple gaze direction from head pose, allowing avatars to maintain eye contact with the camera, leading to more natural interactions.
  • Adaptive Loss Weights: A novel training strategy dynamically adjusts loss weights for different motion components, improving the convergence and quality of generated motion by addressing variations in movement patterns.

Datasets

The paper mentions using the following datasets:

  • Talk9 dataset: Used for primary quantitative comparison, consisting of 9 videos from various sources.
  • HDTF100 dataset: Used for additional quantitative comparison, containing 100 videos sampled from the HDTF dataset.
  • Broadcast scene videos: Approximately 50 hours of videos from 330 identities were collected and cleaned for training data.

Key Insights and Ideas

  • Motion Space is Key: Disentangling motion from identity into a dedicated motion space is crucial for achieving both controllability and efficient diffusion model training for talking head synthesis.
  • Conditional Signals Enhance Control: The use of diverse conditional signals (canonical keypoints, emotion labels, eye state, reference motion) allows for fine-grained control over the generated facial expressions and movements, going beyond simple audio-driven generation.
  • Real-time Diffusion is Achievable: By optimizing each module of the pipeline and reducing diffusion steps, Ditto demonstrates that real-time inference for diffusion-based talking head synthesis is feasible without significant quality degradation.
  • Gaze Control Matters for Naturalness: Decoupling gaze from head pose is essential for creating natural eye contact, a subtle but important aspect of realistic avatar interaction.
  • Adaptive Training Improves Robustness: Dynamically weighting loss components during training helps the model better handle the diverse characteristics of different facial motion components.

Key Results

  • Quantitative Performance: Ditto achieves state-of-the-art results on the Talk9 and HDTF100 datasets across metrics like FID, FVD, CSIM, Sync-C, and Sync-D. Notably, it achieves the lowest FID and FVD, indicating superior frame quality and inter-frame continuity.
  • Real-time Inference: The framework achieves real-time inference with a Real-Time Factor (RTF) below 1 and a First-Frame Delay (FFD) under 400ms, making it suitable for interactive applications. This is significantly faster than many existing diffusion-based methods.
  • Controllability: Qualitative results demonstrate fine-grained control over gaze, emotion, and pose, as shown in Figure 4 and Figure 5. The method also handles diverse portrait styles and scales effectively.
  • User Study: A blind user study confirmed Ditto's superiority in visual quality and lip synchronization compared to other methods.

Limitations and Future Work

  • Naturalness of Facial Expressions/Head Movement: The authors acknowledge that Ditto performs slightly weaker in "naturalness of facial expressions and head movement." They attribute this to the motion representation potentially attenuating high-frequency motion information, suggesting this is an area for future optimization.
  • High-Frequency Motion Information: The paper implies that further work is needed to fully capture and reproduce all high-frequency motion details for maximum naturalness.
  • Generalization to Extreme Cases: While the paper shows good results across diverse styles, further exploration of generalization to more extreme or unusual facial expressions and poses might be beneficial.

Summary updated

BibTeX
@inproceedings{li2024ditto,
  author = {Tianqi Li and Ruobing Zheng and Minghui Yang and Jingdong Chen and Ming Yang},
  title = {{Ditto: Motion-Space Diffusion for Controllable Realtime Talking Head Synthesis}},
  booktitle = {ACM Multimedia},
  year = {2024},
}
Figure