ControlVAE: Model-Based Learning of Generative Controllers for Physics-Based Characters

Heyuan Yao, Zhenhua Song, Baoquan Chen, Libin Liu

TL;DR

ControlVAE is a novel model-based framework that allows physics-based characters to learn a diverse "vocabulary" of skills from unorganized motion data. By combining a Variational Autoencoder (VAE) with a learnable world model, the system enables characters to perform complex tasks—like jumping, running, and recovering from falls—while training significantly faster than traditional reinforcement learning methods.

What Problem Does This Paper Address?

In character animation, there is a long-standing divide between kinematic synthesis (generating realistic-looking motion) and physics-based control (making a character move within a simulated world with gravity and collisions).

While generative models like VAEs have become excellent at learning "latent spaces" of human motion from data, applying them to physics simulations is difficult. Most physics engines are "black boxes"—they aren't easily differentiable, meaning you can't simply "backpropagate" an error through the simulation to tell the controller how to improve. Consequently, most researchers rely on model-free Reinforcement Learning (RL), which is notoriously slow, sample-inefficient, and often requires training a new controller from scratch for every new task.

Methods

The authors introduce ControlVAE, which uses three clever components to solve these issues:

  1. A Learnable World Model: Instead of treating the physics engine as a black box, they train a neural network to approximate the simulation's dynamics. This "World Model" is differentiable, acting as a bridge that allows gradients to flow from the motion objectives directly back to the control policy.
  2. State-Conditional Prior: Standard VAEs usually sample from a "standard normal distribution" (a simple bell curve). ControlVAE instead uses a prior distribution that depends on the character's current state ($p(z_t | s_t)$). This means the "latent skill" sampled is context-aware; for example, the model knows that "jumping" is a valid skill when standing, but "getting up" is the priority when lying on the ground.
  3. Model-Based High-Level Control: Because the world model is differentiable, the authors can optimize high-level task policies (like "walk toward that target") using gradient-based methods or efficient Model Predictive Control (MPC), rather than slow trial-and-error RL.

Datasets

The researchers primarily used the LaFAN dataset, an open-source motion capture library. They selected four long, unorganized sequences (walking, running, jumping, and getting up) which were downsampled to 20 fps and augmented with mirrored versions to create roughly 30 minutes of high-quality training data. To test generalization, they also evaluated the model on the SFU motion capture dataset, using motions (like stylized walking or stomping) that were not present in the initial training set.

Key Insights and Ideas

  • The "Aha" Moment for Stability: The authors found that using a state-conditional prior was the secret sauce for stability. Without it, characters often performed "jerky" movements or fell over because the latent space didn't account for the character's current physical pose.
  • Direct Supervision: By using the World Model, the system can provide "direct supervision" to the latent space. It doesn't just ask "did the character reach the goal?" but rather "how should the character adjust its joints right now to match this specific motion?"
  • Skill Reuse: Once the ControlVAE is trained, the latent space $Z$ becomes a reusable library. A high-level "brain" can simply pick a point in this 64-dimensional space to execute a complex physical maneuver without needing to know the low-level joint torques.

Key Results

  • Training Speed: ControlVAE is remarkably efficient. A high-level task policy can be trained to a high level of performance in just 30 minutes, whereas a standard model-free RL approach (like PPO) takes significantly longer to reach a comparable level of quality.
  • Robustness: The system naturally discovers recovery strategies. If a character is pushed or falls during a "heading control" task, it automatically uses its learned "get up" skill to recover and continue the task.
  • Qualitative Variety: The model successfully handles a wide range of transitions, moving seamlessly between walking, running, and jumping based on user-defined targets or directions.

Limitations and Future Work

  • Data Sparsity: The model struggles with tasks where the required motion is sparse in the dataset. For example, if the character needs to turn sharply but the dataset only contains straight-line walking, the controller may fail or look unnatural.
  • Static Environments: Currently, the world model only accounts for the character's own body. It does not yet "see" or interact with external objects or uneven terrain.
  • Scaling: While it works well on 30 minutes of data, the authors note that scaling up to massive, multi-hour datasets might require more complex network architectures to avoid "forgetting" or blending distinct skills too much.

Summary updated

BibTeX
@article{yao2022controlvae,
  author = {Heyuan Yao and Zhenhua Song and Baoquan Chen and Libin Liu},
  title = {{ControlVAE: Model-Based Learning of Generative Controllers for Physics-Based Characters}},
  journal = {ACM Trans. Graphics},
  year = {2022},
  doi = {10.1145/3550454.3555434},
}
Figure