MDT-A2G: Exploring Masked Diffusion Transformers for Co-Speech Gesture Generation

Xiaofeng Mao, Zhengkai Jiang, Qilin Wang, Chencan Fu, Jiangning Zhang, Jiafu Wu, Yabiao Wang, Chengjie Wang, Wei Li, Mingmin Chi · DOI

TL;DR

This paper introduces MDT-A2G, a novel Masked Diffusion Transformer for co-speech gesture generation that significantly improves learning speed and gesture realism by incorporating masked modeling and multi-modal inputs. It also proposes an efficient sampling strategy that speeds up inference by over 5x with minimal performance loss.

What Problem Does This Paper Address?

Generating realistic and diverse human gestures that synchronize with speech (co-speech gesture generation) is crucial for creating engaging virtual avatars and interactive experiences. While diffusion models have shown great promise in other generative tasks like image and video synthesis, their application to co-speech gesture generation has been limited. Existing methods often rely on Convolutional Neural Networks (CNNs) or simpler transformer architectures, and struggle with issues like poor gesture diversity, slow training convergence, and inefficient inference. The paper aims to bridge this gap by exploring the effectiveness of advanced transformer architectures, specifically masked diffusion transformers, for this task, while also addressing the need for faster training and inference.

Methods

The core of MDT-A2G is a Masked Diffusion Transformer (MDT). Unlike standard diffusion models that operate on the entire input, MDT-A2G employs a mask modeling scheme. During training, a portion of the gesture sequence is masked, and the model learns to reconstruct these masked parts while simultaneously performing the denoising process. This approach is inspired by masked autoencoders in vision and language, and is hypothesized to enhance the learning of temporal relationships and semantic understanding within gesture sequences.

Key methodological contributions include:

  • Masked Diffusion Transformer (MDT): Directly applies denoising on gesture sequences, enhanced by a mask modeling strategy to improve temporal relation learning and expedite training.
  • Multi-modal Integration: Incorporates not just audio, but also text, emotion, and speaker identity as conditioning inputs to generate more contextually rich and realistic gestures.
  • Composite Multi-modal Feature Extractor: A simplified yet effective feature fusion module that integrates time embeddings with emotion, ID, text, audio, and gesture features.
  • Scaling-aware Accelerated Sampling Process: A novel inference strategy that leverages previously computed diffused results to significantly reduce the number of sampling steps required, leading to faster generation without substantial performance degradation.

Datasets

The primary dataset used is the BEAT dataset. This dataset is noted for being comprehensive, containing motion capture data (at 120Hz) and audio from 30 speakers, along with annotations for text, identity, emotion, and facial expressions. The authors split the dataset into 70% for training, 10% for validation, and 20% for testing.

Key Insights and Ideas

  • Masking for Temporal Coherence: The paper hypothesizes and demonstrates that masking, a technique successful in NLP and vision, can significantly improve the learning of temporal relationships in gesture sequences, leading to more coherent and realistic motions.
  • Multi-modal Fusion is Key: Simply concatenating features from different modalities is insufficient. The paper emphasizes the importance of a well-designed fusion strategy to effectively capture the complex interplay between speech, text, emotion, and identity for generating nuanced gestures.
  • Inference Speedup is Achievable: The proposed accelerated sampling process shows that significant speedups in gesture generation are possible without sacrificing quality, addressing a major bottleneck in real-time applications.
  • Transformer Architecture's Potential: The work highlights that transformers, when adapted with techniques like masking, are highly effective for co-speech gesture generation, surpassing previous CNN-based or simpler transformer approaches.

Key Results

  • Training Speed: MDT-A2G achieves a learning speed that is over 6x faster than traditional diffusion transformers.
  • Inference Speed: The proposed accelerated sampling process provides a 5.7x speedup compared to standard diffusion models.
  • Quantitative Performance: MDT-A2G-B (base model) outperforms state-of-the-art methods like DSG+, CaMN, and MDM across various metrics, including Frechet Gesture Distance (FGD), Diversity Score, Semantic-Relevant Gesture Recall (SRGR), and Beat Alignment Score. For instance, it achieves the lowest FGD for both upper body (77.79) and whole body (46.42) gestures.
  • Qualitative Performance: Visual comparisons (Figure 3) show that MDT-A2G generates gestures that are more realistic and less monotonous than CaMN, and more accurate and less anatomically incorrect than DSG+.

Limitations and Future Work

  • Scalability: The authors note that while Diffusion Transformers (DiT) are known for their scalability, they haven't yet observed significant scalability benefits with MDT-A2G. They hypothesize that this might be due to insufficient training data, suggesting that larger datasets are needed to fully leverage the model's complexity.
  • Data Requirements: The paper implies that more data would be beneficial for further improving performance and exploring scalability.
  • Future Directions: The paper opens avenues for future research in co-speech gesture generation, particularly in exploring the full potential of masked diffusion transformers and addressing the data limitations for scalability.

Summary updated

BibTeX
@inproceedings{mao2024mdt,
  author = {Xiaofeng Mao and Zhengkai Jiang and Qilin Wang and Chencan Fu and Jiangning Zhang and Jiafu Wu and Yabiao Wang and Chengjie Wang and Wei Li and Mingmin Chi},
  title = {{MDT-A2G: Exploring Masked Diffusion Transformers for Co-Speech Gesture Generation}},
  booktitle = {ACM Multimedia},
  year = {2024},
  doi = {10.1145/3664647.3680684},
}
Figure