TL;DR
Generative Pretrained Controllers (GPC) brings the large language model (LLM) paradigm—tokenization and next-token prediction—to physics-based character animation. By learning a discrete "motion vocabulary" via Finite Scalar Quantization (FSQ) and training a GPT-style autoregressive transformer, GPC creates a highly robust motor prior from massive motion datasets. This prior can be efficiently adapted to diverse downstream tasks using less than 1% additional parameters while preserving natural, resilient emergent behaviors like fall recovery.
What Problem Does This Paper Address?
Creating virtual characters that move naturally and respond realistically to physical environments is a holy grail for video games, film, and extended reality (XR). Traditional physics-based character controllers often rely on continuous latent spaces (like VAEs or GANs) to model motor skills. However, continuous spaces are notoriously prone to mode collapse, drift, and instability when dealing with highly dynamic motions or massive, diverse datasets.
Discrete latent models (like VQ-VAEs) offer a promising alternative by mapping continuous data into distinct codes, but they suffer from "codebook collapse" and require complex training heuristics to ensure all codes are utilized. Furthermore, scaling these models to hundreds of hours of diverse motion data while maintaining an efficient way to adapt the learned skills to new downstream tasks remains an open challenge.
Methods
GPC tackles these challenges using a clean, three-stage pipeline that mirrors modern LLM pretraining and fine-tuning:
- Skill Quantization: Instead of using a traditional VQ-VAE, the authors employ Finite Scalar Quantization (FSQ). FSQ eliminates the need for a learned codebook by rounding continuous encoder features into fixed scalar levels, completely avoiding codebook collapse. Crucially, the encoder and decoder are trained end-to-end using Reinforcement Learning (PPO) with a motion-tracking reward, ensuring the discrete tokens correspond strictly to physically executable actions.
- Generative Controller Training: The discrete tokens are grouped to shorten sequence lengths. A GPT-style autoregressive transformer decoder is then trained via causal self-attention and cross-entropy loss to predict the next skill token, conditioned on the character's current physical state.
- Task Adaptation: To transfer the pretrained model to new tasks without destroying its natural behaviors, GPC introduces Conditional Low-rank Adaptation (CoLA). CoLA builds on DoRA (Weight-Decomposed Low-Rank Adaptation) by adding task-conditioned Feature-wise Linear Modulation (FiLM) layers to the low-rank space. This allows the model to learn new tasks while keeping the core generative transformer frozen.
Datasets
The authors trained and evaluated GPC on a mix of large-scale and specialized motion capture datasets:
- Bones: A massive dataset containing approximately 343,000 clips totaling over 680 hours of diverse everyday and highly dynamic behaviors.
- AMASS: A standard motion aggregation dataset (~40 hours) used for baseline comparisons and ablations.
- LAFAN1: A high-quality dataset (4.6 hours) featuring standard locomotion and fall recoveries.
- Beyond: A parkour-style locomotion dataset (10.3 minutes) used to test dynamic scene interactions.
Key Insights and Ideas
- End-to-End RL Tokenization is Key: Training the tokenizer directly within the physics simulator via RL—rather than purely on kinematic data—ensures that the learned discrete codes are inherently stable and well-suited for physics-based control.
- FSQ Scales Where VQ-VAE Fails: By removing the need for auxiliary commitment losses and dead-code re-initialization heuristics, FSQ provides a highly stable bottleneck capable of scaling to a 680-hour dataset seamlessly.
- Preserving Stochastic Diversity: Unlike continuous priors that often collapse to a single deterministic strategy when optimized for a downstream task, GPC's autoregressive token-sampling nature allows characters to solve the same task using highly diverse, natural trajectories.
- Emergent Safety Behaviors: Because the transformer is trained on next-token prediction across a vast dataset, robust recovery behaviors (like rolling out of a fall or taking corrective steps after a massive push) emerge organically without explicit reward shaping.
Key Results
- 99.98% Tracking Success: On the massive Bones dataset, the FSQ tracking controller successfully reproduced almost all motion clips, outperforming VQ-VAE alternatives in tracking accuracy (MPJPE).
- Unmatched Robustness: Under a severe push impulse of 9.8 m/s, GPC maintained a 52.5% survival rate (frequently recovering after being knocked down), whereas a continuous CVAE baseline collapsed completely to a 3.1% survival rate.
- Parameter-Efficient Tuning: Using CoLA, GPC successfully adapted to downstream tasks like joystick steering, trajectory following, and obstacle navigation while adding less than 1% additional parameters, achieving a 94.20% success rate on goal-reaching tasks.
Limitations and Future Work
While GPC demonstrates remarkable robustness, the authors note a few limitations:
- Locomotion Focus: The current framework is primarily evaluated on locomotion and navigating simple environmental geometries (like platforms and barriers).
- Multimodal Control: Future work could integrate text-based conditioning or vision models directly into the token-prediction pipeline for more intuitive, high-level control.
- Object Interaction: Extending the discrete token paradigm to human-object manipulation tasks remains an open and promising frontier.
Summary updated