Abstract
Physics-based character control is essential for realistic animation, yet traditional methods often require fragmented, task-specific models and complex reward engineering. We present MaskedMimic, a unified framework that treats character control as a "motion inpainting" task. By training a single transformer-based model to reconstruct full-body motion from randomly masked multi-modal inputs—such as sparse joint targets, text, or objects—MaskedMimic creates a versatile controller capable of diverse behaviors, including VR tracking and complex object interactions, within a single robust system.
Introduction
In character animation, physics-based controllers are the gold standard for realism, ensuring characters interact naturally with their environment by preventing artifacts like floor clipping or floating. However, developing these controllers is traditionally a fragmented process. Creating a character that can walk, sit, and track VR sensors typically requires training three separate models with meticulously engineered reward functions for each task.
Existing unified models often rely on abstract latent spaces that are difficult for humans to control intuitively. MaskedMimic addresses this by formulating control as a robust reconstruction problem, allowing a single system to handle diverse instructions—ranging from "follow this 3D path" to "sit on that chair"—while maintaining physical plausibility across irregular terrains.
Methods
The core innovation of MaskedMimic is the formulation of control as Masked Motion Inpainting. The framework utilizes a two-stage training pipeline:
- Stage 1: The Teacher ($\pi^{FC}$): A "Fully-Constrained" controller is trained using Reinforcement Learning to perfectly track full-body motion capture (mocap) data across flat and irregular terrains. This model learns the complex motor actuations (torques) required for movement.
- Stage 2: The Student ($\pi^{PC}$): The MaskedMimic model is distilled from the teacher using a Conditional Variational Autoencoder (C-VAE). During training, the model is presented with a target motion where significant portions are "masked" (hidden). It may only receive a head position or a text prompt like "a person walks." The model must learn to "inpaint" the missing joints and movements to match the teacher's output.
At inference time, users perform "goal-engineering"—analogous to prompt engineering in large language models. By providing partial constraints (e.g., specific coordinates for a hand), the model treats the rest of the body as missing data and fills it in realistically based on physical constraints.
Datasets and Environment
The model was trained on an aggregation of major datasets, including AMASS for general movement, HumanML3D for text-to-motion descriptions, and SAMP for human-object interactions. Training occurred in a simulated environment featuring flat ground, irregular terrain (stairs, slopes, rubble), and an "object playground."
Key Insights
- Control as Inpainting: By viewing different tasks (walking vs. sitting) as the same task with different missing data, the model benefits from positive transfer. Physics learned during locomotion helps the model understand balance during object interaction.
- Structured Masking: To prevent jittery motion, the authors implemented a "temporally consistent" masking scheme. If a joint is hidden in one frame, it remains hidden for several subsequent frames, forcing the model to rely on long-term physical consistency.
- Residual VAE Architecture: Modeling the encoder as a residual to the prior ensures the latent space remains grounded, facilitating realistic motion sampling at runtime.
Results
MaskedMimic demonstrates impressive versatility, often outperforming specialized state-of-the-art models:
- VR Tracking: Reconstructing full-body motion from only head and hand sensors, MaskedMimic achieved a 98.1% success rate, significantly higher than specialized baselines like PULSE (93.4%).
- Generalization: The model can combine modalities on the fly, such as "Text-Stylized Path Following," where a character follows a 3D path while performing a text-commanded action like "raising hands."
- Object Interaction: It achieved a 96.9% success rate in sitting on unseen objects (chairs, sofas) even when placed on irregular, sloped terrain—scenarios never encountered during training.
Limitations and Future Work
While successful, the authors identified areas for further development. Some generated motions exhibit minor jitter, which might be mitigated by adding discriminative rewards (e.g., GAIL). Additionally, the model currently lacks the high-level planning required for complex, multi-step text commands (e.g., "walk four steps, then wave, then sit"). Future work will focus on dynamic object manipulation and multi-agent interactions to move beyond reactive control toward proactive planning.
Summary updated