arXiv:2610.36452cs.ROOct 2026

Manuscript Offprint

arXiv:2610.36452

Whole-Body Humanoid Control via Stochastic Motion Tokenization

Michael Drolet, Oleg Arenz, Jan Peters

Michael Drolet 1^{1}, Oleg Arenz 1^{1}, and Jan Peters 1,2,3,4^{1,2,3,4}

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 between behaviors. We address these challenges using concise motion representations that can be generated by a high-level controller, given a behavior label or text command. These representations can be fed directly into a tracking policy to provide a detailed motion reference. Our method exhibits a high degree of flexibility in performing real-world robot motions such as dancing, fighting, or walking based on conditional information. At matched capacity, our adopted stochastic motion tokenizer reconstructs motions from the Unitree G1 at a level that exceeds state-of-the-art approaches such as finite scalar quantization (FSQ) and the vector-quantized autoencoder (VQ-VAE). The resulting discrete interface conditions whole-body tracking policies that execute generated dance, fight, and walk motions lasting 16.8 s each and a 35 s fight-to-dance sequence on a physical Unitree G1.

I. INTRODUCTION

Whole-body humanoid motion is high-dimensional and, at any instant, admits many plausible continuations: from mid-stride, a human may keep walking, turn, gesture, or transition into an entirely different behavior. Classical humanoid control builds on dynamic models and optimization [1]–[3] or motion primitives [4], while RL-based approaches [5], [6] can exhibit emergent behaviors but require reward specification, which is challenging to define explicitly for tasks such as human-like locomotion. Controllers built around fixed gait generators or single-clip tracking fail to capture this multiplicity, ultimately reproducing only one trajectory or motion style well. At the same time, methods based on maximum likelihood, such as behavioral cloning, require action labels via methods such as teleoperation or kinesthetic teaching, which is difficult to scale and infeasible for dynamic locomotion behaviors. Furthermore, maximum likelihood is mode averaging, leading to muddied behaviors on unimodal policies.

A natural question is how to resolve the dilemma of choosing between a specialist policy that can perform one task very well and a generalist policy that can perform many tasks less effectively. We address this problem by grouping motion into larger chunks and providing them as concise motion representations to a reinforcement learning policy, enabling it

Figure

Fig. 1. The Unitree G1 executing behaviors synthesized by our three-stage, next-token-prediction framework and tracked by a single policy.

to focus on a particular motion that can be decided at a higher abstraction level. This separation is inspired by motor learning theory [7], which argues that, through practice, motor skills become grouped to abstract away nuances exhibited at each timestep. This principle also appears in robot learning: Diffusion Policy and ACT both predict chunks of future actions rather than isolated commands [8], [9], leading to better performance than traditional imitation-learning methods [10]. We therefore view it as a necessity to understand how to group motions in an unsupervised and efficient way, similar to the problem of tokenizing sentences in natural language processing. Ideally, the abstracted representations should be i) compact for computational efficiency and generative utility, ii) seamlessly composable for long-horizon tasks, and iii) expressive enough to capture a wide range of sequences. Our proposed framework is tailored to humanoid whole-body motion; however, the same key principles can be extended to other embodiments and problem settings.

To achieve these desirable characteristics, we use a motion tokenizer in the form of a discrete variational autoencoder (VAE). Discrete VAEs offer high bit-efficiency compared to their continuous counterparts, and their categorical representations make them amenable to downstream generative tasks through the cross-entropy loss, which naturally leads to multimodal posterior sampling. However, popular discrete tokenizers, such as FSQ and VQ-VAE, are either deterministic or limited to simplified distributions based on the mean-field assumption, which prevents them from correlating different tokens. Furthermore, unlike their continuous counterparts, which aim at generative modeling, they are motivated from a compression perspective and are unable to control their entropy for optimizing the evidence lower bound (ELBO). Instead, we adopt DAPS [11] for the first stage of our pipeline, which is a stochastic discrete autoencoder whose encoder admits a categorical distribution that is factorized autoregressively and has controlled entropy. When using DAPS to encode (or tokenize) motions to discrete latents (or tokens), we find that reconstruction is consistently better.

1^{1}Technical University of Darmstadt; 2^{2}German Research Center for AI (DFKI); 3^{3}hessian.AI; 4^{4}Robotics Institute Germany (RIG). Corresponding author: Michael Drolet michael.drolet@tu-darmstadt.de.

at matched bottleneck capacity. Building upon this stage, we propose a second-stage model, TrajectoryGPT, to generate a motion sequence autoregressively, and train it using the frozen VAE to encode prediction targets for autoregressive next-token prediction, as is common in related work [12]. TrajectoryGPT enables us to schedule and sequence units of motion, all of which would be plausible under the distribution of trajectories in the training dataset. Because TrajectoryGPT is additionally conditioned on a context that describes the motion, it serves as an interface between the human and the robot. This general interface can be extended beyond labels or text to include goal-conditioned information or vision input. Finally, we realize these units of motion using a low-level tracking policy, as part of our third stage. The tracking policy receives a buffer of latent codes—where tokens in the buffer can be set to special wildcard tokens for transitions—to help inform the policy of the upcoming intended behavior. In this regard, the policy can be seen as a decoder responsible for realizing the physical motion (under domain randomization for sim-to-real transfer). In short, our contributions are:

• A novel application of a stochastic motion tokenizer for the 29-DoF Unitree G1 with a matched comparison against existing state-of-the-art methods [13], [14], across two motion datasets with multiple seeds.

• A context-conditioned TrajectoryGPT that generates whole-body humanoid motion autoregressively, including from scratch, i.e., with no prior motion context.

• Deployment on a physical Unitree G1 (Fig. 1) of tracking policies trained entirely in simulation on a repertoire of behaviors sampled from our expressive model.

References (43)