Skip to content
Robotics.world

Research

Whole-Body Humanoid Control via Stochastic Motion Tokenization

Velocity commands are a poor interface for humanoids that must dance, fight, or transition between behaviors, and existing motion-tracking policies know little about the motion that is coming next.

The paper’s first page · arXiv:2610.36452
arXiv
2610.36452 · Preprint · not peer-reviewed
Published
2026-10-27
Authors
Michael Drolet, Oleg Arenz, Jan Peters

In plain words

Velocity commands are a poor interface for humanoids that must dance, fight, or transition between behaviors, and existing motion-tracking policies know little about the motion that is coming next.

AI summary

Overview

Research area: Robotics — reinforcement learning for whole-body humanoid control, with discrete motion tokenization and autoregressive motion generation.

Technical level: Intermediate (accessible to readers familiar with basic reinforcement learning and autoencoders; heavy math is skimmable).

Scope: A three-stage pipeline that tokenizes humanoid motion into discrete latents with a stochastic autoencoder, generates long motion sequences with a transformer, and tracks them on a physical 29-DoF Unitree G1 with a single RL policy.

What This Paper Is About

Velocity commands are a poor interface for humanoids that must dance, fight, or transition between behaviors, and existing motion-tracking policies know little about the motion that is coming next. The authors build a compact discrete "motion vocabulary" that a high-level generative model can compose and that a low-level RL policy can read directly, so that behavior can be specified at an abstract level (a label or text command) rather than frame by frame. The goal is a single tracking policy that can realize a wide repertoire of generated whole-body motions on real hardware.

Key Contributions

  1. Stochastic motion tokenizer for the 29-DoF Unitree G1. The authors apply DAPS — a discrete variational autoencoder with a factorized autoregressive categorical encoder and controlled entropy — to whole-body motion, and compare it against FSQ and VQ-VAE at a matched 160-bit bottleneck across two motion datasets and five seeds.

  2. Context-conditioned TrajectoryGPT. A second-stage transformer generates whole-body motion autoregressively, one token chunk at a time, conditioned on a behavior label (one-hot class for LAFAN1, text embedding for BONES-SEED) plus latent history, including generation from scratch via a learned start token.

  3. A shared discrete interface between generation and control. A single PPO tracking policy consumes a rolling buffer of latent chunks rather than raw reference poses, with wildcard tokens marking transition intervals where no kinematic reference is prescribed.

  4. Real-robot deployment. Policies trained entirely in simulation executed generated dance, fight, and walk motions of 16.8 s each, plus a 35 s fight-to-dance sequence with a wildcard bridge, on a physical Unitree G1.

Main Findings

  • DAPS reconstructs better than FSQ and VQ-VAE at matched bits. Validation joint-position MSE (units of 10^-3, mean ± std over five seeds): on BONES-SEED, 7.1 ± 0.3 for DAPS versus 9.0 ± 0.4 for FSQ and 11.5 ± 1.7 for VQ-VAE; on LAFAN1, 14.4 ± 1.0 versus 19.0 ± 1.5 and 28.3 ± 3.0.

  • DAPS also wins on conditional log-likelihood. BONES-SEED: −910.4 ± 1.3 versus −919.0 ± 1.8 (FSQ) and −930.6 ± 7.7 (VQ-VAE). LAFAN1: −936.7 ± 4.6 versus −949.3 ± 4.0 and −994.7 ± 16.7. The advantage held on training splits as well.

  • Temperature gives a controllable diversity–fidelity dial. Over all 5.58 million BONES-SEED validation segments, the fraction of token positions differing from the deterministic T=0 encoding rose from 0% at T=0 to 31.8% at T=0.25, 52.4% at T=0.5, 74.8% at T=1, and 81.0% at T=1.25 — while normalized reconstruction RMSE moved only from 0.2476 to 0.2488 at T=1 and 0.2512 at T=1.25 (relative increases of roughly 0.5% and 1.4%).

  • Reconstruction quality on a held-out window. On a G1 validation window spanning 3.2 s of consecutive chunks, the discrete code tracked whole-body structure closely, with overall standardized RMSE ≈ 0.20.

  • The latent buffer is bit-efficient. At 160 bits per 0.8 s chunk (200 bits/s), a three-chunk buffer summarizes 2.4 s of intended motion in 480 bits — 0.8 s to mimic and 1.6 s to anticipate — without exposing raw reference poses to the actor.

  • Hardware execution succeeded. Three latent-conditioned PPO policies were trained on different motion banks: 25 diverse generated motions, three base motions plus all nine transition pairings, and a smaller bank of five motions. The five-motion policy ran generated dance, fight, and walk motions of 16.8 s each at 50 Hz while staying upright; the stitching policy completed the full fight-to-dance sequence, including the 1.6 s wildcard interval.

  • Cross-entropy is not treated as a motion-quality metric. The authors note that low Stage-2 loss can be consistent with memorization, so they use Stage 2 to produce long references rather than as a standalone diagnostic.

Methodology in Plain English

The pipeline is trained in three sequential stages, each frozen before the next begins.

Stage 1 — turning motion into words. Motion from LAFAN1 and BONES-SEED, already retargeted to the 29-DoF G1, is resampled to 30 Hz and cut into 24-frame windows of 0.8 s. Each window is described by a 162-dimensional feature vector: the 36-dimensional robot configuration (root pose plus 29 joint angles) plus 126 numbers encoding the positions and orientations of 14 body sites relative to the root. An encoder compresses a window into 16 tokens drawn from a vocabulary of 1024 — 160 bits total. Unlike VQ-VAE or FSQ, the encoder outputs a genuine probability distribution over tokens rather than a single deterministic code, and it is trained as a trust-region policy search (REPS) with a KL penalty, adapting its step size online to keep a target effective sample size. The decoder predicts joint configurations for all 24 frames and then runs differentiable forward kinematics to obtain the body-site terms, so the output is guaranteed to lie on the robot's kinematic manifold.

Stage 2 — composing motions. With the tokenizer frozen, a 12-layer, 384-dimensional encoder-decoder transformer is trained to predict the next chunk of tokens given a context: a behavior label (one-hot for LAFAN1, text embedding for BONES-SEED) plus the previous eight chunks. Because the tokenizer is stochastic, the training objective compares distributions rather than point predictions, matching the tokenizer's full posterior instead of just its most likely code. A temperature parameter controls how deterministic the tokenization targets are. Occasionally the latent history is replaced with a start token, so at inference the model can begin a rollout with no motion context at all.

Stage 3 — executing the plan. A single PPO policy is trained on decoded references using a DeepMimic-style exponential-kernel reward over joint positions and velocities, root-relative site positions, orientations and velocities, and planar root velocity. Notably, there is no explicit planar root-position term, so locomotion is driven by physics rather than pinned to a global path. The actor sees proprioception, a phase variable, and a rolling three-chunk latent buffer. Training uses 2048 parallel environments on one GPU with domain randomization over actuator gains, link masses, friction, and pushes, plus joint-acceleration and torque penalties to soften the motion for sim-to-real transfer. Episodes start from a random standing pose or a reference state; in the standing case the policy receives a wildcard chunk and must learn to transition into the reference on its own. Everything runs in JAX with XLA on a single GPU with 24–80 GB of VRAM.

Why This Matters

Impact on research. The paper argues that the recipe behind GPT-style language models can carry over to humanoid control: a stochastic tokenizer defines a motion vocabulary, a transformer composes behavior token by token, and one tracking policy reads the stream on the robot. It also supplies a clean matched-capacity comparison showing that the choice of tokenizer — not just the downstream policy — materially affects whole-body motion quality, and it shows that separating error sources (reconstruction, autoregression, physical execution) is possible with a shared discrete interface.

Real-world applications:

  • Character animation and game/virtual-production pipelines where a single learned controller drives many expressive behaviors from a label or text prompt.
  • Humanoid robots in entertainment, performance, and public-facing settings that need dance or fight choreography rather than flat-ground walking.
  • Teleoperation and motion authoring, where a compact token interface could let a human specify long-horizon behavior at a high level.
  • Future navigation and service tasks, if the authors' suggested goal- or path-conditioned extension is added, since tokens currently specify style but not a global route.

Industry relevance. The method removes the need for per-motion specialist policies and for raw reference poses in the deployed observation space; the actor only needs a new 160-bit chunk every 0.8 s, which keeps the deployment loop light and makes asynchronous high-level planning feasible. Offline generation of reference banks also means the heavy generative model need not run in the 50 Hz control loop.

Future Directions

  1. Closing the loop between planner and policy. TrajectoryGPT is not conditioned on the low-level robot state, so its look-ahead is preplanned rather than replanned. Because both levels share a token space, the authors suggest re-encoding measured motion with the frozen DAPS encoder and feeding those tokens back — though they caution that re-encoded robot motion could fall outside the training distribution.

  2. Ablating the three timing variables. Chunk duration (0.8 s), latent history length (N=8), and latent buffer length (L=3) all interact with reconstruction error and generation smoothness; the authors flag these as unresolved design choices.

  3. A scaling study on repertoire size and transition difficulty, reporting per-motion tracking performance rather than aggregate success.

  4. Held-out latent schedules at evaluation. Training policies on some latent buffer sequences and introducing unseen ones only at test time would distinguish genuine reuse of motion skills from memorization of complete schedules seen during training. The authors also note human-preference metrics or RL-based Stage-2 optimization as alternatives to supervised cross-entropy.

Target Audience

Robotics researchers and graduate students working on humanoid whole-body control, physics-based motion imitation, and generative models of motion. It is also useful for practitioners in graphics and character animation who are interested in discrete motion representations, and for engineers evaluating whether a token-based interface is practical for real hardware deployment. Readers need comfort with variational autoencoders and policy-gradient RL to follow the method section in detail, but the experimental comparisons and deployment results stand on their own.

Authors’ abstract

While velocity-commanded RL policies are effective for controlling quadrupeds, they are a limited interface for humanoids that need to perform complex whole-body motions. Furthermore, RL tracking policies for whole-body motions typically have limited information about the desired future motion, preventing them from performing controlled deviations to achieve long-term task success; such information is particularly relevant when a controller must prepare for transitions…

The full abstract on arXiv
Read the original paper

Related papers