Learning Generalizable Human Motion Generator with Reinforcement Learning

Yunyao Mao, Xiaoyang Liu, Wengang Zhou, Zhenbo Lu, Houqiang LiarXiv 2024 · DOI

TL;DR

This paper introduces InstructMotion, a novel reinforcement learning framework for generating human motion from text descriptions. It addresses the critical issue of generalization in text-to-motion models, which often overfit to training data. By formulating motion generation as a Markov Decision Process and using a carefully designed reward function based on pre-trained encoders, InstructMotion achieves superior performance in generating novel and complex motion sequences, even without ground-truth motion data.

What Problem Does This Paper Address?

Creating realistic human motion from textual descriptions is a key challenge in computer graphics and animation. While existing methods have improved performance on specific datasets, they often struggle to generalize to new or combined motion descriptions. This limitation stems from the scarcity of paired text-motion data and the inherent many-to-many relationship between text and motion. Acquiring large, diverse datasets of motion-text pairs is expensive and time-consuming. Consequently, current models tend to overfit, failing to produce accurate motions for prompts that combine familiar elements in novel ways.

Methods

InstructMotion tackles the generalization problem by framing text-to-motion generation as a Markov Decision Process (MDP) and employing reinforcement learning (RL). This approach is inspired by Reinforcement Learning from Human Feedback (RLHF) used in large language models.

Here's a breakdown of their approach:

  • Autoregressive Transformer-based Motion Generator: They leverage a pre-trained text-to-motion generator, specifically an autoregressive transformer model (similar to T2M-GPT), which predicts motion sequences token by token. This autoregressive nature naturally lends itself to an MDP formulation.
  • Reinforcement Learning (RL) Fine-tuning: The core of InstructMotion is fine-tuning this pre-trained generator using RL. This allows the model to learn from trial and error, improving its ability to generate motions that better align with textual descriptions.
  • Reward Design: A crucial component is the reward function, which guides the RL training. Instead of relying on human feedback (which is costly), InstructMotion uses pre-trained contrastive text and motion encoders. These encoders map text and motion into a shared embedding space. The reward is designed to measure the semantic alignment between the generated motion and the input text. They specifically use the negative Euclidean distance between text and motion embeddings. For paired data, they also incorporate a motion-to-motion alignment metric.
  • Synthetic Text-Only Data Generation: To address the scarcity of paired data, they propose a method to generate synthetic text-only descriptions. This involves using large language models (LLMs) to decompose existing motion descriptions into "meta-motions," and then recombining these meta-motions to create novel, complex textual prompts. This allows the RL agent to learn to generate motions for unseen descriptions without needing corresponding ground-truth motions.
  • Proximal Policy Optimization (PPO): They employ the PPO algorithm for the RL training, which is a standard and effective method for policy optimization.

Datasets

  • HumanML3D [16]: A prevalent benchmark dataset for text-driven human motion generation.
  • KIT-ML [36]: Another standard dataset used for evaluating text-to-motion models.
  • Synthesized Unpaired Dataset: The authors generate their own dataset of text-only motion descriptions using LLMs. This dataset is crucial for training the model to generalize to novel prompts without ground-truth motion supervision.

Key Insights and Ideas

  • RL for Generalization: The paper demonstrates that reinforcement learning, traditionally used for tasks like game playing or robotics, can be effectively applied to improve the generalization capabilities of generative models like text-to-motion generators.
  • Leveraging Pre-trained Encoders for Rewards: Moving away from expensive human annotation for reward signals is a significant practical advantage. Using contrastive text-motion encoders provides a scalable way to define a meaningful reward function.
  • LLM-Assisted Data Augmentation: The use of LLMs to generate novel, compositional textual descriptions is a clever way to overcome data scarcity and train models for unseen scenarios. This highlights the growing synergy between different AI modalities.
  • MDP Formulation is Key: Framing the autoregressive generation process as an MDP is essential for applying RL techniques, making the problem tractable for standard RL algorithms.

Key Results

  • Quantitative Improvements: InstructMotion significantly outperforms state-of-the-art methods like T2M-GPT and MoMask on standard benchmarks (HumanML3D and KIT-ML) in terms of R-Precision and FID scores. For example, on HumanML3D, their method achieves an R-Precision of 0.505 and an FID of 3.028, surpassing T2M-GPT (0.492 R-Precision, 3.109 FID) and MoMask (0.521 R-Precision, 2.958 FID).
  • Qualitative Superiority: Figure 4 and Figure 1 showcase qualitative results where InstructMotion accurately interprets and generates complex, novel motion compositions that other methods struggle with. For instance, it correctly handles expressions like "swinging arms back and forth" and combines actions like "walk forward" with "jump over something."
  • Human Evaluation: User studies indicate that InstructMotion achieves higher human preference scores compared to MoMask and T2M-GPT, especially when evaluated on novel and unpaired prompts. This directly validates its improved generalization capability.
  • Ablation Studies: The paper shows that both motion-to-text and motion-to-motion alignment in the reward function contribute to performance. They also found that sharing critic network layers with the actor network improves computational efficiency without sacrificing performance.

Limitations and Future Work

  • Reward Model Reliance: The generalization capability of InstructMotion is still constrained by the quality of the reward model, which is trained on limited paired data.
  • Semantic Alignment vs. Fine-grained Details: The current reward model prioritizes semantic alignment, potentially at the expense of fine-grained motion details.
  • Future Directions:
    • Exploiting synthesized paired data (e.g., through motion stitching) to train the reward model for better generalization.
  • Further improving the reward model to capture more fine-grained motion details.
  • Exploring more sophisticated LLM-based data generation techniques.

Summary updated

BibTeX
@misc{mao2024learning,
  author = {Yunyao Mao and Xiaoyang Liu and Wengang Zhou and Zhenbo Lu and Houqiang Li},
  title = {{Learning Generalizable Human Motion Generator with Reinforcement Learning}},
  year = {2024},
  eprint = {2405.15541},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.15541},
}
Figure