MotionGPT: Human Motion as a Foreign Language

Biao Jiang, Xin Chen, Wen Liu, Jingyi Yu, Gang Yu, Tao Chen

Abstract

Recent advancements in Large Language Models (LLMs) have transformed natural language processing, yet integrating 3D human motion remains a significant challenge due to its continuous, high-dimensional nature. We present MotionGPT, a unified multimodal framework that treats human motion as a "foreign language." By leveraging a Vector Quantized Variational Autoencoder (VQ-VAE) to tokenize motion into discrete units, MotionGPT aligns motion with text in a shared vocabulary. Through a three-stage training process—including motion-language pre-training and instruction tuning—MotionGPT achieves state-of-the-art performance across diverse tasks such as text-to-motion generation, motion captioning, and action prediction, all within a single, prompt-based architecture.

Introduction

While LLMs have revolutionized text, image, and code processing, human motion has traditionally been treated as a niche modality requiring specialized, task-specific architectures. The primary obstacle lies in the discrepancy between the continuous signal of 3D joint movements and the discrete tokens of human language. Existing models often struggle with generalization and require strictly paired datasets to function.

MotionGPT addresses this by asking a fundamental question: What if we treated motion as a language with its own grammar and vocabulary? By conceptualizing motion as "body language," the framework leverages the reasoning and generative power of LLMs to bridge the gap between physical movement and semantic description.

Methodology

The MotionGPT architecture consists of two primary components: a Motion Tokenizer and a Motion-aware Language Model.

Motion Tokenization

To convert continuous 3D motion into a format compatible with LLMs, the researchers employ a Vector Quantized Variational Autoencoder (VQ-VAE). This component "compresses" complex joint trajectories into a sequence of discrete "motion tokens." This process effectively creates a dictionary of movement snippets, allowing the model to process motion as a sequence of discrete units, much like words in a sentence.

Unified Vocabulary and Model Backbone

The motion tokens are integrated into a standard text vocabulary based on the T5 model. This unified vocabulary enables the model to treat motion and text tokens interchangeably. The training process follows three distinct stages:

  1. Tokenizer Training: Optimizing the VQ-VAE to learn the most representative discrete representations for 3D motion.
  2. Motion-Language Pre-training: The T5-based model is trained on both raw motion data (to learn the "syntax" of movement) and paired text-motion data (to learn the "translation" between modalities).
  3. Instruction Tuning: Following the paradigm of models like InstructGPT, the model is fine-tuned on a wide variety of prompt-based tasks. This allows the model to respond to natural language instructions, such as "Generate a motion where a person kneels."

Experimental Setup

The model was evaluated using several benchmark datasets:

  • HumanML3D: A large-scale dataset featuring over 14,000 motion sequences and 44,000 natural language descriptions.
  • KIT Motion-Language: A dataset comprising 3,911 motions and 6,353 descriptions.
  • AMASS: A massive collection of motion-capture data used for unsupervised pre-training to improve the model's understanding of physical plausibility.

Key Results

MotionGPT demonstrates superior performance across multiple benchmarks, establishing itself as a versatile "Swiss Army Knife" for motion tasks.

Text-to-Motion Generation

On the HumanML3D dataset, MotionGPT achieved an R-Precision (Top-1) of 0.492 and a Frechet Inception Distance (FID) of 0.232. These metrics indicate that the generated motions are not only high-quality and physically realistic but also highly aligned with the provided text descriptions.

Motion Captioning

The model significantly outperformed existing baselines like TM2T in motion captioning. It achieved a Cider score of 29.2, nearly doubling the 16.8 score of previous models. This suggests a much higher level of linguistic accuracy and grammatical coherence in the model's descriptions of movement.

Computational Efficiency

Despite its multimodal capabilities, the "Base" version of MotionGPT (220M parameters) is highly efficient. It can generate motion at over 220 Frames Per Second (FPS) on a single GPU, making it suitable for real-time applications in virtual reality and gaming.

Discussion and Insights

The success of MotionGPT highlights the semantic coupling between motion and language. By treating motion tokens as a language, the model inherits the pre-existing reasoning capabilities of the LLM backbone. Furthermore, the researchers found that unsupervised pre-training on raw motion data (AMASS) was crucial for learning the "grammar" of movement, similar to how pre-training on text helps LLMs learn syntax before specific facts.

Limitations

While a significant step forward, MotionGPT has several limitations:

  • Granularity: The model focuses on the primary human skeleton and does not yet account for finger dexterity or facial expressions.
  • Social Interaction: It is currently limited to single-person motions and does not model interactions between multiple individuals.
  • Environmental Context: The model lacks spatial awareness of its environment, meaning it cannot yet coordinate movements with specific objects, such as sitting in a chair or picking up a cup.
  • Data Scaling: Interestingly, increasing the model size to "Large" (770M) did not yield significant gains, likely due to the relatively small size of current motion datasets compared to text corpora.

Conclusion

MotionGPT demonstrates that treating human motion as a foreign language is a powerful paradigm for multimodal AI. By unifying motion and text into a single generative framework, it paves the way for more intuitive and versatile human-computer interaction in animation, robotics, and the metaverse.

Summary updated

BibTeX
@inproceedings{jiang2023motiongpt,
  author = {Biao Jiang and Xin Chen and Wen Liu and Jingyi Yu and Gang YU and Tao Chen},
  title = {{MotionGPT: Human Motion as a Foreign Language}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=WqiZJGNkjn},
}
Figure