Generating Human Motion from Textual Descriptions with Discrete Representations

Jianrong Zhang, Yangsong Zhang, Xiaodong Cun, Yong Zhang, Hongwei Zhao, Hongtao Lu, Xi Shen, Shan Ying · DOI

TL;DR

This paper introduces T2M-GPT, a simple yet effective framework for generating human motion from text descriptions using a combination of Vector Quantized Variational Autoencoders (VQ-VAE) and Generative Pre-trained Transformers (GPT). T2M-GPT achieves state-of-the-art results, outperforming recent diffusion-based methods on key metrics, demonstrating that classic VQ-VAE approaches remain highly competitive for this task.

What Problem Does This Paper Address?

Generating realistic and coherent 3D human motion from natural language descriptions is a challenging task with applications in gaming, animation, and robotics. Traditional methods like motion capture are expensive and time-consuming. While recent advancements have explored complex models like diffusion models, this paper argues that simpler, established frameworks can still yield superior results. The core problem is to bridge the gap between the semantic understanding of text and the complex, temporal nature of human movement, ensuring generated motions are both visually plausible and accurately reflect the input description, especially for longer and more intricate commands.

Methods

The T2M-GPT framework comprises two main modules:

  1. Motion VQ-VAE: This module is responsible for learning a discrete representation of human motion. It uses a 1D convolutional neural network architecture within a VQ-VAE framework. The VQ-VAE encodes motion sequences into a series of discrete "code indices" and can decode these indices back into motion. To address the common issue of "codebook collapse" during VQ-VAE training, the authors employ standard techniques like Exponential Moving Average (EMA) for codebook updates and "Code Reset" to reinitialize inactive codes. They also investigate different reconstruction losses and hyperparameter settings for this module.
  2. T2M-GPT: This module takes the discrete motion representations (code indices) generated by the VQ-VAE and learns to predict them autoregressively, conditioned on text embeddings. It leverages a Generative Pre-trained Transformer (GPT) architecture. To mitigate the discrepancy between training (where correct indices are available) and inference (where predictions are sequential and can accumulate errors), the authors introduce a "corruption strategy" during training, where a percentage of ground-truth code indices are randomly replaced. This helps the model become more robust to imperfect input during generation.

Datasets

The paper uses two standard datasets for text-driven motion generation:

  • HumanML3D [22]: This is described as the largest dataset for this task, containing 14,616 human motions and 44,970 text descriptions.
  • KIT Motion-Language (KIT-ML) [54]: This dataset includes 3,911 human motion sequences and 6,278 textual annotations.

The authors follow the evaluation protocols established in [22] for both datasets, splitting them into training, validation, and test sets.

Key Insights and Ideas

  • Simplicity is Powerful: The paper demonstrates that a well-tuned VQ-VAE combined with a standard GPT architecture can achieve state-of-the-art results, challenging the notion that only highly complex models like diffusion models are sufficient for high-quality motion generation.
  • VQ-VAE is Still Competitive: Despite the rise of other generative models, the VQ-VAE framework, when trained with effective strategies like EMA and Code Reset, can produce high-quality discrete representations crucial for motion synthesis.
  • Corruption Strategy for Robustness: Introducing random corruption of code indices during GPT training significantly improves the model's ability to handle potential errors in sequential predictions during inference, leading to better text-motion consistency.
  • Dataset Size Matters: The analysis strongly suggests that larger datasets are beneficial for improving both the quality and the text-motion consistency of generated motions, indicating that further progress might be unlocked by larger, more diverse motion datasets.

Key Results

  • State-of-the-Art Performance: On the HumanML3D dataset, T2M-GPT achieved an FID of 0.116, significantly outperforming MotionDiffuse (0.630) and showing comparable R-Precision (text-motion consistency). Similar competitive results were observed on the KIT-ML dataset.
  • Reconstruction Quality: The VQ-VAE module, when trained with EMA and Code Reset, achieved reconstruction FID scores close to "real motion," indicating high-quality discrete representations.
  • Corruption Strategy Benefits: The corruption strategy with $\tau=0.5$ (replacing 50% of indices) showed significant improvements in Top-1 accuracy and FID compared to no corruption ($\tau=0$).
  • Architecture Choices: The paper found that a larger transformer architecture (18 layers, 16 heads, 1024 dimensions) yielded better results for T2M-GPT. For VQ-VAE, L1 Smooth loss with $\alpha=0.5$ was found to be optimal for reconstruction.

Limitations and Future Work

  • Long Text Descriptions: For excessively long text descriptions, the generated motion might miss some fine-grained details. This is noted as a limitation shared by other competitive approaches.
  • Jittering Motion: Some generated motion sequences exhibit slight jittering in leg and hand movements. The authors hypothesize this stems from the VQ-VAE architecture and suggest that a better-designed architecture or a post-processing temporal smoothing filter could alleviate this issue.
  • Dataset Size: The paper explicitly states that dataset size is a limitation, and performance can be further improved with larger datasets. This suggests future work could focus on curating or utilizing even larger motion datasets.

Summary updated

BibTeX
@inproceedings{zhang2023generating,
  author = {Jianrong Zhang and Yangsong Zhang and Xiaodong Cun and Yong Zhang and Hongwei Zhao and Hongtao Lu and Xi Shen and Shan Ying},
  title = {{Generating Human Motion from Textual Descriptions with Discrete Representations}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  doi = {10.1109/cvpr52729.2023.01415},
}
Figure