DiffSpeaker: Speech-Driven 3D Facial Animation with Diffusion Transformer

Zhiyuan Ma, Xiangyu Zhu, Guojun Qi, Chen Qian, Zhaoxiang Zhang, Zhen LeiarXiv 2024 · DOI

TL;DR

This paper introduces DiffSpeaker, a novel approach that combines Diffusion models and Transformers for speech-driven 3D facial animation. By developing "biased conditional attention" modules, DiffSpeaker effectively addresses the challenge of limited paired audio-4D data, achieving state-of-the-art results with significantly faster inference speeds compared to previous methods.

What Problem Does This Paper Address?

Creating realistic 3D facial animations that accurately sync with speech is crucial for applications like virtual assistants, video games, and movies. While both Diffusion models and Transformer architectures have shown promise individually, simply combining them hasn't yielded optimal results. The authors hypothesize this is due to a scarcity of paired audio-4D data, which is essential for Transformers to function effectively as denoisers within a Diffusion framework. Existing methods often struggle with either capturing the complex, dynamic relationship between speech and facial expressions or suffer from slow, sequential generation processes.

Methods

DiffSpeaker's core innovation lies in its biased conditional attention mechanism, which replaces traditional self/cross-attention in Transformers. These novel modules are designed to guide the attention mechanisms to focus on both task-specific (speech, speaking style) and diffusion-related (noise level at each step) conditions.

The overall architecture uses a Diffusion-based iterative denoising process. A Transformer encoder-decoder network takes noisy facial motion sequences, audio, speaking style, and the current diffusion step as input. The biased conditional attention layers within the Transformer are key:

  • Biased Conditional Cross-Attention: This ensures that facial motion at a specific frame primarily attends to its corresponding speech representation, along with the speaking style and diffusion step. This is crucial for accurate temporal synchronization.
  • Biased Conditional Self-Attention: This helps the facial motion sequence to self-reflect while being guided by the speaking style and diffusion step, and also constrains attention to a focused temporal range to mitigate noise effects.

The training objective includes both a reconstruction loss (to recover the original facial motion from noisy input) and a velocity loss (to ensure smooth motion and reduce jitter).

Datasets

The paper uses two publicly available datasets for training and evaluation:

  • BIWI: Contains 40 unique sentences spoken by 14 subjects, with emotional and neutral recordings.
  • VOCASET: Features 480 paired audio and 3D facial motion sequences from 12 subjects.

The authors follow established practices for splitting these datasets into training, validation, and testing sets, including seen and unseen speakers for evaluation.

Key Insights and Ideas

  • The "Data Scarcity" Bottleneck: The paper strongly suggests that the limited availability of high-quality paired audio-4D data is a major hurdle for Transformer-based diffusion models in this domain.
  • Attention is Not Enough (Without Guidance): Simply using standard Transformer attention mechanisms within a diffusion framework is insufficient. The proposed biased conditional attention is crucial for effectively integrating diverse conditioning signals.
  • Balancing Lip Sync and Expression: The research explores the trade-off between precise lip synchronization and more expressive, potentially less speech-correlated facial movements, demonstrating that their approach can achieve a good balance.
  • Parallel Generation is Key to Speed: By processing the entire facial motion sequence in parallel (within the diffusion steps), DiffSpeaker achieves significantly faster inference than sequential methods.

Key Results

  • State-of-the-Art Performance: DiffSpeaker achieves state-of-the-art results on existing benchmarks, outperforming methods like FaceFormer, CodeTalker, and FaceDiffuser in terms of Lip Vertex Error (LVE) and Facial Dynamics Deviation (FDD). For example, on the BIWI dataset, DiffSpeaker achieved an LVE of 4.5556 ± 9.4441 × 10⁻⁷ mm and an FDD of 3.6823 ± 4.8427 × 10⁻⁶ mm.
  • Fast Inference: The model demonstrates significantly faster inference speeds, especially for longer audio clips, as visualized in Figure 5. This is a major advantage over many existing methods that rely on sequential processing.
  • Qualitative Improvements: Visual comparisons (Figure 3) show DiffSpeaker generating more accurate lip movements, better anticipation of pronunciations, and more natural mouth closing and lip pouting compared to baselines.

Limitations and Future Work

  • Unconditional Guidance Trade-off: The paper discusses the impact of unconditional guidance, which can improve facial expression naturalness (FDD) but at the cost of lip-sync accuracy (LVE). The authors opted against it to prioritize lip-sync, suggesting future work could explore better ways to balance these.
  • Fixed Biases: While effective, the static biases are a simplification. Future work could explore dynamic or learned biases for even greater adaptability.
  • Dataset Limitations: The reliance on existing datasets, while necessary for comparison, might limit the exploration of extremely diverse speaking styles or expressions.

The authors suggest that their approach, particularly the biased conditional attention, is a promising direction for future research in speech-driven 3D facial animation, especially in scenarios with limited data.

Summary updated

BibTeX
@misc{ma2024diffspeaker,
  author = {Zhiyuan Ma and Xiangyu Zhu and Guojun Qi and Chen Qian and Zhaoxiang Zhang and Zhen Lei},
  title = {{DiffSpeaker: Speech-Driven 3D Facial Animation with Diffusion Transformer}},
  year = {2024},
  eprint = {2402.05712},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.05712},
}
Figure