Abstract
MotionChain is a novel conversational framework designed to control virtual human movements through multi-turn, multimodal dialogues. By treating human motion as a discrete sequence of tokens—effectively a "foreign language"—and integrating it into a Large Language Model (LLM), the system generates continuous, context-aware animations from text, images, or previous motion sequences. This approach enables more intuitive and step-by-step control of humanoid agents compared to traditional single-turn generation models.
Introduction
While Large Language Models (LLMs) have revolutionized text-based interaction by maintaining complex context over multiple turns, this "conversational memory" has been largely absent in the field of human motion generation. Existing models typically operate on a "one-turn" basis: a user provides a prompt, and the model generates a single isolated clip. However, real-world applications—such as controlling humanoid robots or interactive game agents—require a seamless, iterative process. For instance, if a user instructs an agent to "walk to the door" and subsequently to "open it," the system must understand the final state of the first action to generate a physically plausible second action. MotionChain addresses these challenges by providing a unified architecture for multi-turn motion reasoning and generation.
Methodology
The MotionChain architecture consists of three primary components designed to bridge the gap between linguistic reasoning and physical movement:
1. Multimodal Tokenizers
To process diverse inputs, the framework employs specialized tokenizers:
- Motion Tokenizer: A Vector Quantized Variational Autoencoder (VQ-VAE) converts raw 3D motion data into discrete "motion tokens." This creates a finite motion vocabulary that the LLM can process similarly to words.
- Vision Tokenizer: A pre-trained CLIP encoder, paired with a Perceiver module, transforms images or video frames into visual embeddings, allowing the model to "see" and react to visual context.
2. Vision-Motion-aware Language Model
Built upon the Flan-T5 architecture, the model merges standard text vocabulary with the newly defined motion vocabulary. This integration allows the model to process interleaved sequences of text, images, and motion tokens interchangeably, facilitating tasks like motion-to-text (description) and text-to-motion (generation).
3. Tokens-joint Composition
A significant technical hurdle in multi-turn generation is the "jumpiness" or lack of physical continuity between segments. MotionChain introduces a Tokens-joint Composition technique, which concatenates motion tokens from previous turns with current generation targets in the latent space before decoding. This ensures that the VQ-VAE decoder can synthesize smooth, physically plausible transitions between distinct actions, such as transitioning from a run into a jump.
Training Strategy
The model is trained in three distinct stages:
- Stage 1: Pre-training the motion tokenizer to ensure high-fidelity reconstruction.
- Stage 2: Pre-training the language model on single-turn tasks, such as text-to-motion and motion-to-text, to align the different modalities.
- Stage 3: Instruction tuning on a specialized multi-turn conversation dataset to develop dialogue and reasoning capabilities.
Datasets and Benchmarking
The researchers utilized foundational datasets including HumanML3D and AMASS for 3D motion, BABEL for action-to-motion tasks, and BEDLAM for image-conditioned generation.
To address the scarcity of conversational motion data, the authors introduced a new multi-modal motion conversation benchmark. Using ChatGPT and the TMR (Text-Motion Retrieval) model, they synthesized thousands of multi-turn dialogues. These dialogues cover motion reasoning (e.g., "What is this person doing?"), motion editing ("Make that movement faster"), and complex temporal compositions.
Key Insights
- Motion as Language: Treating 3D joint sequences as tokens allows the model to leverage the inherent reasoning and instruction-following capabilities of LLMs for physical tasks.
- Perception-Driven Reasoning: Unlike standard LLMs that might guess a scenario based on text alone, MotionChain perceives the actual motion tokens. This leads to superior performance in motion reasoning tasks, such as identifying specific muscle groups used in a movement.
- Latent Continuity: By performing the "stitching" of animations in the latent token space rather than the raw coordinate space, the model can effectively "hallucinate" natural transition frames.
Results
MotionChain demonstrates significant improvements over existing benchmarks:
- Motion Reasoning: It outperformed much larger models like Llama-2-7b and Vicuna-13b on linguistic metrics (Bleu, Rouge, Cider) because it possesses direct perception of motion data.
- Temporal Composition: On the BABEL dataset, MotionChain achieved a 71% reduction in error (MPJPE) compared to the previous state-of-the-art model, TEACH, while maintaining higher motion diversity.
- Efficiency: The base version (280M parameters) can generate motion at 75 Frames Per Second (FPS) on a single V100 GPU, suggesting viability for real-time interactive applications.
Limitations and Future Work
Despite its successes, MotionChain currently focuses on major body joints and lacks the fine-grained detail required for intricate hand or facial expressions. Additionally, the model does not explicitly calculate physical collisions, which can occasionally result in "clipping" through virtual floors or objects. Future research will focus on integrating complex scene interactions and improving the precision of hand and face animations.
Summary updated