Driving the Style: Velocity-Conditioned Whole-Body Control from Motion Demonstrations
Achieving human-like behavior on humanoid robots has advanced rapidly by leveraging motion-capture demonstrations rather than hand-crafted cost functions. Adversarial imitation supplies a style signal that lets a policy fulfill a task while adhering to a desired style, but is difficult to transfer to hardware.
From the abstract. Our summary is in progress.
Full paper
Driving the Style: Velocity-Conditioned Whole-Body Control from Motion Demonstrations
Published under CC BY-NC-SA 4.0. Reproduced with attribution; original at arXiv:2611.20888 (PDF).
Abstract
Achieving human-like behavior on humanoid robots has advanced rapidly by leveraging motion-capture demonstrations rather than hand-crafted cost functions. Adversarial imitation supplies a style signal that lets a policy fulfill a task while adhering to a desired style, but is difficult to transfer to hardware. Whole-body tracking through reinforcement learning instead deploys reliably and imitates demonstrations faithfully, but the resulting policies are conditioned on the future reference, so they require a reference trajectory at runtime and can fail when the motion differs from the training data. We train a humanoid policy directly with whole-body tracking rewards while restricting its actor to compact locomotion commands and robot observations. Reference motion supervises the reward and privileged critic, without supplying reference joint trajectories to the actor or requiring teacher distillation. The demonstrated style is thereby encoded in the policy through the tracking reward, so the robot reproduces the whole-body style under commanded velocities. Trained on a single random-walk motion and commanded with velocity profiles from held-out motions, our policy reaches at least 98% success in simulation and completes every trial on the Unitree G1. On held-out slow walking, whole-body tracking drops to 2% success and command-conditioned distillation to 56%, and both fail on the real robot. On the trained motions, the joint position error of our policy stays within 8% of whole-body tracking, and it has a higher style coverage than adversarial motion priors (AMP), which fell on the real robot without a safety crane.
I Introduction
Humanoid robots have shown the ability to successfully perform a variety of tasks by imitating human motions [1, 2]. This has motivated the capture and generation of extensive motion datasets through motion-capture systems [3, 4, 5]. However, these datasets do not account for the physical constraints of the robot, such as its kinematic and dynamic limits [6]. As a result, imitating the datasets directly through supervised learning yields policies that fail to execute reliably on the robot. Reinforcement learning (RL), on the other hand, is able to learn locomotion policies through exploration that exploits the robot’s own dynamics and kinematics [7, 8, 9, 10, 11]. This has made RL a promising approach for learning stylized locomotion behaviors from motion references [12, 13, 14].
Existing pipelines for learning stylized locomotion follow one of three strategies. Adversarial training provides the RL agent with a reward signal about the style [12, 15, 16, 17]. Whole-body tracking instead combines multiple rewards to imitate the reference motion by tracking joint positions, joint velocities, and the positions and velocities of key body links [6, 13, 18, 14]. A third strategy distills a privileged, reference-conditioned teacher into a student that observes only deployable inputs together with a history of past observations [19]. Each of them has a cost in reliability, in controllability, or in how the policy is trained.
Adversarial approaches have seen great success in computer graphics [12, 16]: beyond imitating a style, they allow the policy to be driven at runtime without a reference trajectory. However, their deployment to the real world is challenging because of the weighting between the style reward and the task reward. Emphasizing the style can lead to unsuccessful deployment on the real robot (e.g. jittery motions and stumbling), while emphasizing the task reward enables successful deployment at the cost of weaker style imitation. Whole-body tracking, on the other hand, can deploy reliably on real robots while imitating the reference motion to a great extent. However, these policies are conditioned on the future reference of joint positions and velocities, so they require the reference trajectory at runtime and the whole-body motion must come from a recorded clip. Command-conditioned distillation can give the student a low-dimensional command interface, but the student learns by imitating the actions of a reference-conditioned teacher rather than from the task reward, so its behavior is limited by what the teacher does.
To close this gap, we present a velocity-conditioned whole-body controller that deploys reliably and can be steered at runtime, without distillation from a privileged teacher. We train a tracking policy with an asymmetric actor-critic: the critic observes the full reference motion, while the actor observes only proprioception, the anchor orientation error, and a planar base velocity command. The demonstrated style is thereby encoded in the policy through the tracking reward, so the robot reproduces the whole-body style under a commanded velocity (Fig. 1). Our key observation is that different locomotion motions often share the base velocities of the training motion while their joint trajectories differ: forward walking, sidesteps, and turning all reduce to base-level goals. A policy conditioned on the velocity command, and not on the reference joints, is therefore less dependent on the joint trajectories of the training clip and can transfer to such motions. At deployment, its inputs can be computed from the base trajectory of a motion clip or, without a clip, from a gamepad. In our experiments, we drive it with velocity profiles from held-out motion clips, so that tracking and style can be measured against ground truth. We compare our approach with all baselines on the Unitree G1, in simulation and on real hardware..
In summary, our contributions are:
- A velocity-conditioned whole-body tracking policy, trained directly with RL and an asymmetric actor-critic, whose actor observes only proprioception, the anchor orientation error, and a planar velocity command, without distillation from a privileged teacher.
- Simulation and hardware results. Trained on a random walk and commanded with the velocity profiles of three held-out motions, our policy reaches at least 98% success in simulation and completes every hardware trial, while whole-body tracking and command-conditioned distillation fail on slow walking. Compared with AMP, our policy runs on the real robot without support, while AMP fell in both attempts without a safety crane, and it tracks the reference more closely with a higher style coverage. On the trained motions, its mean joint position error stays within about
8\%of the reference-conditioned tracker. - An analysis of the policy inputs, showing that 87 to 100% of the held-out velocity commands lie close to the training data, compared with 19 to 87% of the reference joint frames, together with ablations on mirrored data, symmetry training, and smoothed, gamepad-like motions.
II Related Work
II-A Humanoid Whole-Body Motion Tracking
RL-based motion tracking has shown great success recently in imitating natural human movements on humanoids. [13] presented an RL framework that trains policies to imitate recorded motions via a set of rewards for tracking the positions and velocities of selected body links. [14] generated motions that preserve the interactions with the environment, including the objects to be interacted with, so that tracking policies can learn to interact with the environment while imitating the motions. [20] added a residual action model to account for the dynamics mismatch between simulation and the real world and improve sim-to-real transfer. [6] applied motion filtering, feet contact masks, and adaptive rewards to enable learning of highly dynamic motions. [21] combined adaptive sampling of motions based on difficulty with a virtual assistive wrench to help stabilize the training of athletic moves. [19] applied a teacher-student DAgger [22] with historical observations to learn the motions from a privileged teacher, and also let a joystick command the root velocity and pose, while the policy still receives the whole-body joint and keypoint targets. These approaches imitate the recorded motions faithfully, but the policies require the reference trajectory at runtime. Different from these approaches, our goal is a policy that is controlled by a velocity command and does not need a reference trajectory at deployment.
II-B Style Imitation from Demonstrations
On the other hand, several works aimed to make the imitation controllable without a reference trajectory at runtime. [12] utilized adversarial training to make physically simulated characters imitate a given style without the need for reward shaping. Rather than imitating a single clip, [16, 15] learned reusable motion priors that encode a repertoire of skills from large unstructured datasets, via a latent skill embedding and a score-matching (diffusion-based) prior respectively, which a downstream controller can then use to perform new tasks. However, [17] showed that adversarial training requires careful tuning of the task and style rewards to avoid sub-optimal behaviors; the authors formulated the problem as a constrained Markov decision process and deployed it on a real quadruped. This tuning is even harder on humanoids: [23] reported that adding an adversarial style reward leads to stumbling and jittering that is not feasible for sim-to-real transfer. [24] distilled an RL velocity-tracking teacher into a student with discriminators against both the teacher and motion-capture data, but the style still relies on adversarial rewards that must be balanced against the task.
To make the imitation robust for deployment, other works used hybrid controllers that split the body. [23] trained the lower body to track a base velocity robustly while the upper body imitates a reference motion. [25] applied a similar split, where the lower body tracks a velocity command and the upper body tracks a motion, using adversarial learning between the two policies so each stays robust to the other’s movements. These controllers deploy reliably and can be steered through the velocity command, but the style is limited to the upper body while the lower body follows a plain velocity-tracking objective. Unlike these approaches, we train the whole body with the dense tracking rewards of [13], so the style is reproduced across the whole body, and we condition the policy on the base velocity commands to keep it steerable at deployment.
III Approach
Our pipeline has two stages: (i) we record human motions with a motion-capture system and retarget them to the robot, and (ii) we train a whole-body tracking policy with reinforcement learning under an asymmetric actor–critic, where the actor is restricted to deployable observations conditioned on a base-velocity command. At deployment the velocity command is supplied online (e.g. from a game-pad) to steer the robot while it reproduces the demonstrated style.
III-A Motion Acquisition and Retargeting
We record source motions with a motion-capture system and retarget them to the robot with GMR [26], which solves an inverse-kinematics problem mapping the captured human trajectory onto the robot kinematics while respecting its joint limits. For each clip this yields a per-frame reference trajectory of joint positions and velocities and of the position, orientation, and linear/angular velocity of a set of tracked bodies, expressed in the world frame. A designated anchor body (the pelvis) defines the reference base frame.
III-B Problem Formulation
We formulate whole-body tracking as a Markov decision process (\mathcal{S},\mathcal{A},p,r,\gamma) and solve it with proximal policy optimization (PPO) [27]. The policy runs at 50\,\mathrm{Hz} (simulation timestep 5\,\mathrm{ms}, decimation 4) and maximizes the discounted return \mathbb{E}\!\left[\sum_{t}\gamma^{t}r_{t}\right].
Actions.
The action a_{t}\in\mathbb{R}^{n} is a target for the n actuated joints, added to the default joint configuration and tracked by joint-level PD controllers.
Observations (asymmetric actor–critic).
The critic receives privileged, simulation-only information while the actor receives only inputs available on the real robot. The critic observation comprises the full reference: anchor position and orientation error, per-body positions and orientations, and reference base linear and angular velocity, together with proprioception. The actor observation is
x_{t}=\big[\,v^{\text{cmd}}_{t},\;R^{\text{anchor}}_{t},\;\omega_{t},\;q_{t}-q_{\text{def}},\;\dot{q}_{t}-\dot{q}_{\text{def}},\;a_{t-1}\,\big],where v^{\text{cmd}}_{t}=(v_{x},v_{y},\omega_{z})\in\mathbb{R}^{3} is the reference planar base velocity and yaw rate expressed in the robot base frame (the online steering command), R^{\text{anchor}}_{t} is the anchor orientation error defined below, \omega_{t} the base angular velocity, q_{t},\dot{q}_{t} the joint positions/velocities from the encoders, and a_{t-1} the previous action.
The anchor orientation error is the orientation of a target frame relative to the robot pelvis (the anchor body):
R^{\text{anchor}}_{t}=\big(R^{\text{robot}}_{t}\big)^{\top}R^{\text{target}}_{t},where R^{\text{robot}}_{t} is the measured pelvis orientation. The actor receives the first two columns of R^{\text{anchor}}_{t} (6 values). In training, the target is the orientation of the reference pelvis, R^{\text{target}}_{t}=R^{\text{ref}}_{t}.
The actor therefore never observes the reference joints or body poses. The task is given only through the base motion: the velocity command v^{\text{cmd}}_{t} and the target orientation R^{\text{target}}_{t}. The demonstrated style is absorbed into the policy weights through the tracking reward. This is what makes the policy steerable online without a reference trajectory at runtime.
Steering at deployment.
At deployment, the policy needs the velocity command v^{\text{cmd}}_{t}=(v_{x},v_{y},\omega_{z}) and the target orientation R^{\text{target}}_{t}, which can be obtained in two ways. (i) From a motion clip: v^{\text{cmd}}_{t} is the planar velocity and yaw rate of the reference pelvis, and R^{\text{target}}_{t}=R^{\text{ref}}_{t} is its orientation, as in training. Only the base trajectory is used, and the joint trajectories of the clip are never given to the policy. (ii) From a gamepad: the sticks give the velocity command, scaled to the range of velocities seen in training, and the target is an upright frame, R^{\text{target}}_{t}=R_{z}(\psi_{t}), where R_{z}(\psi) is a rotation by \psi about the vertical axis. Its heading starts at the robot heading, \psi_{0}=\psi^{\text{robot}}_{0}, and is integrated with the commanded yaw rate,
\psi_{t+1}=\psi_{t}+\omega_{z}\Delta t,\qquad\Delta t=0.02\,\mathrm{s},so no motion clip is needed. This online target keeps the heading error, which steers the robot, and drops only the roll and pitch of the reference pelvis. In our experiments (Sec. IV), we use option (i) with held-out motions, so that tracking and style can be measured against their references.
III-C Reward
The reward combines exponential tracking terms of the form w_{i}\exp(-\lVert e_{i}\rVert^{2}/\sigma_{i}^{2}) with regularization penalties. Table I lists all terms.
- Tracking (exponential)
- Anchor position
- global anchor pos. error
- 1.0
- 0.3
- Anchor orientation
- global anchor ori. error
- 1.0
- 0.4
- Body position
- per-body rel. pos. error
- 0.7\!\to\!1.0
- 0.3
- Body orientation
- per-body rel. ori. error
- 0.7\!\to\!1.0
- 0.4
- Body linear velocity
- global body lin. vel. error
- 0.7\!\to\!1.0
- 1.0
- Body angular velocity
- global body ang. vel. error
- 0.7\!\to\!1.0
- 3.14
- Lateral deviation
- lateral base drift
- 0.5
- 0.2
- Regularization (penalty)
- Action rate
- \lVert a_{t}-a_{t-1}\rVert^{2}
- -0.1
- —
- Joint acceleration
- \lVert\ddot{q}_{t}\rVert^{2}
- -10^{-5}
- —
- Joint-limit violation
- soft-limit excess
- -2.0
- —
- Self-collision
- pelvis self-contact
- -5.0
- —
III-D Initialization and Curriculum
Initialization and sampling.
Episodes are initialized by reference-state initialization (RSI) [13], resetting the robot to a reference frame of the clip (with small pose and velocity perturbations) so the policy learns all phases of the motion in parallel rather than only from the start. We select the start frame with the failure-based adaptive sampler of [18], which partitions the clip into one-second bins and concentrates episodes on the bins where the policy terminates most often, with a uniform floor that preserves exploration over all bins. This focuses training on the segments the policy struggles with while still revisiting the full motion.
Standing-start stabilization.
The real robot always begins from a neutral standing pose, a state RSI never produces. To close this gap we initialize a fraction p_{\text{stand}}=0.3 of episodes from the robot’s default standing state while anchoring the reference at the first motion frame. These standing-start episodes are eased into tracking in two phases governed by two parameters:
- Stabilization (
N_{\text{stab}}=30steps): the reference is held frozen at the first frame so the robot can settle from standing into the initial pose before the motion begins to play. - Transition (
N_{\text{trans}}=60steps): the reference then begins to advance while the body-tracking reward weights ramp linearly from0.7to1.0, smoothly handing control from “stabilize” to “fully track.”
Formally, a per-episode progress signal \phi_{t}=\mathrm{clip}\!\big((t-N_{\text{stab}})/N_{\text{trans}},\,0,\,1\big) scales the body-tracking weights as w=w_{\text{init}}+(w_{\text{final}}-w_{\text{init}})\,\phi_{t}. For ordinary RSI episodes \phi_{t}\equiv 1, so these two parameters affect only the standing-start subset. We use this procedure so that the policy is trained on starts from rest, as on the real robot.
IV Results
We compare our policy with three baselines in simulation and on the Unitree G1. We first evaluate all methods on the motions they were trained on and on held-out motions, in simulation (Sec. IV-B) and on the real robot (Sec. IV-C). We then compare the inputs of our policy and of the whole-body tracking policy with the training data (Sec. IV-D). Finally, we present two ablations, each in simulation and on the real robot: mirrored training data and symmetry training (Sec. IV-E), and training on smoothed motions (Sec. IV-F).
IV-A Experimental Setup
- Teacher [18]
- next step
- no
- no
- tracking reward
- free
- Distill
- no
- yes
- 10 steps
- Teacher actions
- free
- AMP [12]
- no
- yes
- no
- AMP reward
- crane
- Ours
- no
- yes
- no
- tracking reward
- free
Baselines.
Table II summarizes the compared methods.
- Teacher: the whole-body tracking policy of BeyondMimic [18], using its implementation in mjlab. At each step
tit observes the reference joint positions and velocities of the next stept+1. - Distill: a command-conditioned distillation baseline that follows the teacher-student training of ExBody2 [19]. The student has the same inputs as our policy together with a history of the last 10 observations, and it does not observe the reference joints. It is trained from the final Teacher policy with DAgger [22]: the student is rolled out in simulation, the Teacher computes its action
\hat{a}_{t}for every visited state, and the student is updated to minimize the mean squared error\lVert a_{t}-\hat{a}_{t}\rVert^{2}between its own actiona_{t}and the Teacher action. Training continues until the loss stops changing, which took about 20k iterations. Unlike ExBody2, where the student also receives the motion targets, our student receives only the velocity command, so Distill is a teacher-student version of our policy. - AMP [12]: adversarial motion priors. A discriminator is trained to tell apart state transitions of the reference motion from those of the policy, and its output is used as a style reward. The policy maximizes this style reward together with a task reward for following the velocity command, so it does not track the reference frame by frame.
All methods are trained with the same number of parallel environments, the same domain randomization, and the same number of iterations. The only exception is Distill, which is trained from the final Teacher policy as described above.
Motions and protocol.
In distribution, each policy is trained and evaluated on the same motion: random walk, backward, side, slow, and jog in simulation, and random walk, slow, and jog on the real robot. For generalization, the policies are trained on the random walk and evaluated on the held-out backward, side, and slow walking motions. The velocity commands are taken from the held-out clips, so the reference joints are available to measure tracking and style. In simulation, each motion is rolled out in 128 parallel environments for two passes of the clip. On the real robot, each motion is run in three trials. Trials that were interrupted by problems unrelated to the policy, such as communication disconnections, were repeated. Without support, AMP fell in both of two attempts on the real robot, so its trials were run on a safety crane.
Metrics.
- Success: in simulation, the percentage of environments that do not terminate during the two passes of the clip. The tracking-based methods terminate when the anchor height, the anchor orientation, or the ankle and wrist heights deviate too far from the reference (
0.25\,\mathrm{m}for the heights). AMP terminates on falls (tilt above70^{\circ}or pelvis height below0.5\,\mathrm{m}); we checked offline that the AMP rollouts also pass the tracking terminations on every motion. On the real robot, success is the number of successful trials out of three. - MJPE and MJVE: the mean absolute joint position and velocity errors per joint, averaged over the 29 joints and all frames.
- MMD (minimum matching distance) and COV (coverage): compare the distribution of the generated joint velocities with the reference. Both sets are projected onto the first three principal components of the reference joint velocities and then standardized with the reference statistics. MMD is the mean nearest-neighbor distance between the two sets in both directions, and COV is the share of reference samples that are the nearest neighbor of at least one generated sample.
All methods are evaluated against the same motion recordings; command-conditioned methods receive the corresponding planar velocity profiles and start from the same pose.
IV-B Comparison in Simulation
- Random walk
- AMP
- 100%
- 6.64
- 0.63
- 0.14
- 0.39
- Teacher
- 100%
- 2.77
- 0.32
- 0.11
- 0.46
- Distill
- 100%
- 2.95
- 0.34
- 0.11
- 0.46
- Ours
- 100%
- 3.07
- 0.34
- 0.10
- 0.47
- Backward
- AMP
- 100%
- 5.06
- 0.46
- 0.13
- 0.29
- Teacher
- 100%
- 2.64
- 0.23
- 0.10
- 0.38
- Distill
- 100%
- 2.86
- 0.24
- 0.10
- 0.40
- Ours
- 100%
- 2.90
- 0.26
- 0.10
- 0.38
- Side
- AMP
- 100%
- 2.85
- 0.25
- 0.17
- 0.33
- Teacher
- 100%
- 2.41
- 0.16
- 0.14
- 0.42
- Distill
- 100%
- 2.53
- 0.18
- 0.15
- 0.44
- Ours
- 100%
- 2.52
- 0.19
- 0.15
- 0.42
- Slow
- AMP
- 100%
- 4.85
- 0.15
- 0.11
- 0.24
- Teacher
- 100%
- 2.66
- 0.13
- 0.09
- 0.29
- Distill
- 100%
- 2.68
- 0.14
- 0.10
- 0.29
- Ours
- 100%
- 2.78
- 0.15
- 0.12
- 0.28
- Jog
- AMP
- 100%
- 6.58
- 1.10
- 0.24
- 0.17
- Teacher
- 100%
- 3.30
- 0.53
- 0.13
- 0.34
- Distill
- 100%
- 3.39
- 0.54
- 0.13
- 0.35
- Ours
- 100%
- 3.62
- 0.56
- 0.12
- 0.33
- Avg.
- AMP
- 100%
- 5.20
- 0.52
- 0.16
- 0.28
- Teacher
- 100%
- 2.76
- 0.28
- 0.11
- 0.38
- Distill
- 100%
- 2.88
- 0.29
- 0.11
- 0.39
- Ours
- 100%
- 2.98
- 0.30
- 0.12
- 0.38
- Backward
- AMP
- 100%
- 5.48
- 0.45
- 0.12
- 0.29
- Teacher
- 98%
- 3.27
- 0.35
- 0.14
- 0.36
- Distill
- 99%
- 4.21
- 0.43
- 0.18
- 0.32
- Ours
- 100%
- 4.05
- 0.41
- 0.14
- 0.34
- Side
- AMP
- 100%
- 4.88
- 0.30
- 0.18
- 0.33
- Teacher
- 100%
- 3.01
- 0.24
- 0.17
- 0.41
- Distill
- 98%
- 3.58
- 0.29
- 0.17
- 0.40
- Ours
- 100%
- 3.34
- 0.27
- 0.17
- 0.39
- Slow
- AMP
- 100%
- 5.65
- 0.15
- 0.12
- 0.19
- Teacher
- 2%
- 4.71
- 0.40
- 0.30
- 0.25
- Distill
- 56%
- 6.88
- 0.48
- 0.42
- 0.23
- Ours
- 98%
- 6.20
- 0.43
- 0.35
- 0.25
- Avg.
- AMP
- 100%
- 5.34
- 0.30
- 0.14
- 0.27
- Teacher
- 67%
- 3.66
- 0.33
- 0.20
- 0.34
- Distill
- 85%
- 4.89
- 0.40
- 0.26
- 0.32
- Ours
- 99%
- 4.53
- 0.37
- 0.22
- 0.32
In distribution.
All methods succeed on every motion (Table III), so the comparison is about tracking and style. The Teacher tracks best, with an average MJPE of 2.76^{\circ} and MJVE of 0.28\,\mathrm{rad/s}. Distill and our policy follow with 2.88^{\circ} and 2.98^{\circ}, which is 4.3\% and 8.0\% above the Teacher, although our policy has no observation history and no reference joint input. AMP, which is trained for style rather than for tracking, has about twice the error (5.20^{\circ}). In style, our policy is close to the Teacher (MMD 0.12 vs. 0.11, COV 0.38 for both). Compared with AMP, it lowers MMD by 26\% and raises COV by 32\%, so under the same commands it reproduces the reference more closely in both tracking and style.
Generalization.
On backward and side walking all methods succeed in at least 98\% of the environments (Table IV). The held-out slow walking separates them: success is 2\% for the Teacher, 56\% for Distill, 98\% for our policy, and 100\% for AMP. Our policy is therefore the only tracking-based method with at least 98\% success on every held-out motion. On backward and side walking, the Teacher tracks best (MJPE 3.27^{\circ} and 3.01^{\circ}), followed by our policy (4.05^{\circ} and 3.34^{\circ}), Distill (4.21^{\circ} and 3.58^{\circ}), and AMP (5.48^{\circ} and 4.88^{\circ}), so our policy also tracks the held-out references more closely than AMP. Transfer comes with a lower fidelity: on slow walking, the MJPE of our random-walk policy is 6.20^{\circ}, compared with 2.78^{\circ} for our policy trained on slow walking. Our policy has a higher COV than AMP on all three held-out motions, while AMP has a lower MMD on slow walking (0.12 vs. 0.35). On slow walking, the metrics of the Teacher and Distill come only from the 2 and 72 of 128 environments that succeeded.
Tracking versus generalization.
The Teacher tracks best wherever it succeeds, but it fails on the held-out slow walking. Distill, which is distilled from the Teacher, fails less often but remains well below our policy. Our policy gives up some tracking accuracy and in return reaches at least 98\% success on every held-out motion. Since our goal is a policy that keeps working on motions it was not trained on, we treat success on held-out motions as the main measure and tracking error as secondary.
IV-C Comparison on the Real Robot
- Jog
- AMP1
- 3/3
- 7.53\pm0.12
- 1.23\pm0.03
- 0.26\pm0.01
- 0.20\pm0.01
- Teacher
- 3/3
- 3.78\pm0.03
- 0.63\pm0.00
- 0.16\pm0.00
- 0.30\pm0.00
- Distill
- 3/3
- 4.53\pm0.13
- 0.68\pm0.01
- 0.17\pm0.00
- 0.29\pm0.01
- Ours
- 3/3
- 4.00\pm0.01
- 0.66\pm0.00
- 0.16\pm0.00
- 0.27\pm0.00
- Slow
- AMP1
- 3/3
- 5.59\pm0.22
- 0.21\pm0.01
- 0.21\pm0.02
- 0.31\pm0.02
- Teacher
- 3/3
- 2.77\pm0.01
- 0.13\pm0.00
- 0.10\pm0.00
- 0.39\pm0.00
- Distill
- 3/3
- 2.90\pm0.04
- 0.15\pm0.00
- 0.12\pm0.00
- 0.37\pm0.01
- Ours
- 3/3
- 2.96\pm0.01
- 0.14\pm0.00
- 0.12\pm0.00
- 0.37\pm0.00
- Random walk
- AMP1
- 3/3
- 6.65\pm0.02
- 0.66\pm0.01
- 0.15\pm0.00
- 0.39\pm0.00
- Teacher
- 3/3
- 3.03\pm0.01
- 0.35\pm0.00
- 0.14\pm0.00
- 0.43\pm0.00
- Distill
- 3/3
- 3.33\pm0.01
- 0.37\pm0.00
- 0.13\pm0.00
- 0.43\pm0.00
- Ours
- 3/3
- 3.68\pm0.04
- 0.41\pm0.00
- 0.13\pm0.00
- 0.42\pm0.00
- Avg.
- AMP1
- 100%
- 6.59
- 0.70
- 0.21
- 0.30
- Teacher
- 100%
- 3.19
- 0.37
- 0.13
- 0.37
- Distill
- 100%
- 3.59
- 0.40
- 0.14
- 0.37
- Ours
- 100%
- 3.55
- 0.40
- 0.14
- 0.36
- Backward
- AMP1
- 3/3
- 5.46\pm0.02
- 0.42\pm0.00
- 0.13\pm0.00
- 0.29\pm0.00
- Teacher
- 3/3
- 3.51\pm0.03
- 0.35\pm0.01
- 0.12\pm0.00
- 0.42\pm0.00
- Distill
- 3/3
- 4.10\pm0.02
- 0.41\pm0.01
- 0.13\pm0.00
- 0.41\pm0.01
- Ours
- 3/3
- 4.09\pm0.02
- 0.40\pm0.01
- 0.12\pm0.00
- 0.40\pm0.01
- Side
- AMP1
- 3/3
- 4.82\pm0.03
- 0.27\pm0.01
- 0.20\pm0.01
- 0.34\pm0.01
- Teacher
- 3/3
- 2.88\pm0.02
- 0.22\pm0.00
- 0.15\pm0.00
- 0.46\pm0.00
- Distill
- 3/3
- 3.37\pm0.01
- 0.23\pm0.00
- 0.15\pm0.00
- 0.41\pm0.01
- Ours
- 3/3
- 3.29\pm0.02
- 0.23\pm0.00
- 0.15\pm0.00
- 0.43\pm0.01
- Slow
- AMP1
- 3/3
- 5.58\pm0.12
- 0.19\pm0.01
- 0.18\pm0.00
- 0.30\pm0.01
- Teacher
- 0/3
- –
- –
- –
- –
- Distill
- 1/3
- 6.14
- 0.37
- 0.36
- 0.32
- Ours
- 3/3
- 5.96\pm0.14
- 0.39\pm0.02
- 0.37\pm0.03
- 0.34\pm0.01
- Avg.
- AMP1
- 100%
- 5.29
- 0.29
- 0.17
- 0.31
- Teacher
- 67%
- 3.20
- 0.28
- 0.14
- 0.44
- Distill
- 78%
- 4.54
- 0.34
- 0.22
- 0.38
- Ours
- 100%
- 4.45
- 0.34
- 0.22
- 0.39
Without support, AMP fell in both of two attempts, so its trials were run on a safety crane. The crane allowed us to measure the tracking and style of AMP without damaging the robot. AMP completed all three trials on the crane on every motion, but since the crane would stop a fall, its success (marked with footnote 1 in the tables) is not directly comparable with the other three methods, which ran without support.
In distribution.
The Teacher, Distill, and our policy complete all three trials on every motion (Table V), and the ranking from simulation holds. The Teacher tracks best (MJPE 3.19^{\circ}), our policy and Distill have similar means (3.55^{\circ} and 3.59^{\circ}), and AMP has the largest error (6.59^{\circ}), as in simulation. On the same motions, the MJPE of our policy on hardware is 0.2^{\circ} to 0.6^{\circ} higher than in simulation. In style, our policy (MMD 0.14, COV 0.36) is close to the Teacher (0.13, 0.37) and Distill (0.14, 0.37).
Generalization.
Our policy completes all three trials on backward, side, and slow walking (Table VI), and it is the only method to do so without support. The Teacher fails all three trials on slow walking and Distill completes one, which matches the simulation results. On backward and side walking, the Teacher tracks best (MJPE 3.51^{\circ} and 2.88^{\circ}), our policy (4.09^{\circ} and 3.29^{\circ}) is similar to Distill (4.10^{\circ} and 3.37^{\circ}), and AMP has the largest error (5.46^{\circ} and 4.82^{\circ}). Our policy has a higher COV than AMP on all held-out motions and a lower MMD on backward and side walking. On slow walking, AMP has a lower MMD (0.18 vs. 0.37), but it ran on the crane.
IV-D Input Coverage
87 to 100\% of the held-out frames inside the training support, which matches its success on all of them.To understand why our policy keeps working on the held-out motions while the Teacher fails on slow walking, we compare the inputs of both policies with the training data. Our policy receives the planar velocity command (v_{x},v_{y},\omega_{z}), while the Teacher receives the reference joint positions and velocities (58 dimensions). We count a held-out frame as inside the support of the training motion if its nearest random-walk frame is not farther than the distance between random-walk frames that are more than 2\,\mathrm{s} apart (95th percentile of these distances). This threshold is computed separately for each input space. The analysis uses only the motion clips and no policy.
Fig. 2 shows the result. For the velocity command, 87\%, 100\%, and 100\% of the backward, side, and slow frames are inside the support. For the Teacher input, these values are 59\%, 87\%, and 19\%. The largest gap is on slow walking, which is also where the Teacher fails. Fig. 3 shows that this gap comes from the joint positions: none of the slow-walking frames are inside the support for the reference joint positions, while 99\% are inside for the reference joint velocities. Fig. 4 shows the velocity commands. Slow and side walking use small forward velocities that the random walk covers. Backward walking uses negative forward velocities, which make up only 14\% of the random walk but span the same range, so 87\% of the backward frames still have a close training frame.
IV-E Ablation: Mirrored Data and Symmetry
- Plain
- B0
- 100%
- 3.07
- 0.34
- 0.10
- 0.47
- B1
- 100%
- 3.09
- 0.35
- 0.10
- 0.47
- B2
- 100%
- 3.06
- 0.34
- 0.10
- 0.47
- B3
- 100%
- 3.17
- 0.35
- 0.10
- 0.47
- Mirrored
- B0
- 54%
- 6.14
- 0.80
- 0.20
- 0.40
- B1
- 100%
- 3.14
- 0.35
- 0.10
- 0.47
- B2
- 100%
- 3.06
- 0.34
- 0.10
- 0.48
- B3
- 100%
- 3.17
- 0.35
- 0.10
- 0.47
- Avg.
- B0
- 77%
- 4.61
- 0.57
- 0.15
- 0.43
- B1
- 100%
- 3.12
- 0.35
- 0.10
- 0.47
- B2
- 100%
- 3.06
- 0.34
- 0.10
- 0.47
- B3
- 100%
- 3.17
- 0.35
- 0.10
- 0.47
- Plain
- B0
- 3/3
- 3.68\pm0.04
- 0.41\pm0.00
- 0.13\pm0.00
- 0.42\pm0.00
- B1
- 3/3
- 3.54\pm0.03
- 0.41\pm0.01
- 0.11\pm0.00
- 0.49\pm0.01
- B2
- 3/3
- 3.44\pm0.01
- 0.39\pm0.00
- 0.11\pm0.00
- 0.47\pm0.00
- B3
- 3/3
- 3.56\pm0.01
- 0.39\pm0.00
- 0.11\pm0.00
- 0.45\pm0.01
- Mirrored
- B0
- 0/3
- –
- –
- –
- –
- B1
- 3/3
- 3.56\pm0.01
- 0.41\pm0.00
- 0.11\pm0.00
- 0.48\pm0.01
- B2
- 3/3
- 3.42\pm0.01
- 0.39\pm0.00
- 0.11\pm0.00
- 0.47\pm0.00
- B3
- 3/3
- 3.57\pm0.01
- 0.40\pm0.00
- 0.11\pm0.00
- 0.45\pm0.01
- Avg.
- B0
- 50%
- 3.68
- 0.41
- 0.13
- 0.42
- B1
- 100%
- 3.55
- 0.41
- 0.11
- 0.48
- B2
- 100%
- 3.43
- 0.39
- 0.11
- 0.47
- B3
- 100%
- 3.56
- 0.39
- 0.11
- 0.45
We train four variants of the random-walk policy. B0 is trained on the original random walk only, and is the policy used in the main comparison. B1 is trained on the original random walk and its left-right mirrored copy. B2 uses the symmetry training of [28], which combines a symmetry loss with symmetry data augmentation. The symmetry loss is added to the PPO loss, with weight 0.5 in our case, and penalizes the difference between the action for a mirrored observation and the mirrored action. With data augmentation, every PPO batch is extended with its mirrored copy, where the observations and actions are mirrored, so the policy is also updated on the mirrored samples. B2 is trained on the original random walk only. B3 combines both: it uses the symmetry training of B2 and is trained on the original and the mirrored random walk as B1. We evaluate all variants on the plain random walk and on its left-right mirror.
Simulation.
On the plain motion, all variants succeed in every environment and their MJPE is between 3.06^{\circ} and 3.17^{\circ} (Table VII). On the mirrored motion, B0 fails in almost half of the environments (success 54\%), while B1, B2, and B3 reach 100\% with the same error as on the plain motion. Either the mirrored training data or the symmetry training is enough to avoid the failure of B0 on the mirrored motion.
Real robot.
B1, B2, and B3 complete all three trials on both the plain and the mirrored random walk (Table VIII). B0 completes none of the three trials on the mirrored random walk, as expected from its low success in simulation. The tracking differences between B1, B2, and B3 are small (MJPE 3.43^{\circ} to 3.56^{\circ} on average), with B2 the lowest. These results agree with the simulation.
IV-F Ablation: Smoothed Motions
- Random walk
- P\rightarrowP
- 100%
- 3.07
- 0.34
- 0.10
- 0.47
- S\rightarrowS
- 100%
- 3.46
- 0.37
- 0.12
- 0.44
- Backward
- P\rightarrowP
- 100%
- 4.05
- 0.41
- 0.14
- 0.34
- S\rightarrowS
- 99%
- 4.71
- 0.49
- 0.16
- 0.32
- Side
- P\rightarrowP
- 100%
- 3.34
- 0.27
- 0.17
- 0.39
- S\rightarrowS
- 100%
- 3.99
- 0.33
- 0.19
- 0.38
- Slow
- P\rightarrowP
- 98%
- 6.20
- 0.43
- 0.35
- 0.25
- S\rightarrowS
- 98%
- 6.31
- 0.46
- 0.38
- 0.23
- Avg.
- P\rightarrowP
- 100%
- 4.16
- 0.36
- 0.19
- 0.36
- S\rightarrowS
- 99%
- 4.62
- 0.41
- 0.21
- 0.34
- Random walk
- P\rightarrowP
- 3/3
- 3.68\pm0.04
- 0.41\pm0.00
- 0.13\pm0.00
- 0.42\pm0.00
- S\rightarrowS
- 3/3
- 3.90\pm0.01
- 0.46\pm0.00
- 0.13\pm0.00
- 0.45\pm0.01
- Backward
- P\rightarrowP
- 3/3
- 4.09\pm0.02
- 0.40\pm0.01
- 0.12\pm0.00
- 0.40\pm0.01
- S\rightarrowS
- 3/3
- 4.74\pm0.04
- 0.45\pm0.01
- 0.14\pm0.01
- 0.36\pm0.00
- Side
- P\rightarrowP
- 3/3
- 3.29\pm0.02
- 0.23\pm0.00
- 0.15\pm0.00
- 0.43\pm0.01
- S\rightarrowS
- 3/3
- 3.88\pm0.02
- 0.30\pm0.01
- 0.16\pm0.00
- 0.41\pm0.01
- Slow
- P\rightarrowP
- 3/3
- 5.96\pm0.14
- 0.39\pm0.02
- 0.37\pm0.03
- 0.34\pm0.01
- S\rightarrowS
- 3/3
- 5.65\pm0.12
- 0.34\pm0.01
- 0.29\pm0.02
- 0.34\pm0.00
- Avg.
- P\rightarrowP
- 100%
- 4.26
- 0.36
- 0.20
- 0.39
- S\rightarrowS
- 100%
- 4.54
- 0.39
- 0.18
- 0.39
The base velocity of the recorded motions oscillates with the gait, while a gamepad command is smooth. We therefore also train our policy on the random walk with a smoothed base trajectory. As for the plain policy, the random walk is the only training motion, and backward, side, and slow walking are held out. We smooth the base position and the frame-to-frame base rotation of each clip with a Savitzky-Golay filter [29] (window of 100 frames), and keep the joint trajectories unchanged. The joint errors are therefore computed against the same targets. Smoothing changes the velocity command and also the reference base position and orientation. Each policy is evaluated on the four motions with the base trajectory it was trained with: plain motions for the plain policy (P\rightarrowP) and smoothed motions for the smoothed policy (S\rightarrowS).
Simulation.
Success remains high for both policies (Table IX; 100\% for the plain and 99\% for the smoothed policy on average). With smoothed training, MJPE rises by 11\% (4.16^{\circ} to 4.62^{\circ}), MJVE rises by 14\%, and the style changes slightly (MMD 0.19 to 0.21, COV 0.36 to 0.34).
Real robot.
Both the plain and the smoothed policy complete all three trials on the random walk and on the three held-out motions (Table X). As in simulation, the smoothed policy tracks slightly worse on average (MJPE 4.54^{\circ} vs. 4.26^{\circ}) with a similar style (COV 0.39 for both, MMD 0.18 vs. 0.20). On slow walking, the smoothed policy has a lower MJPE (5.65^{\circ} vs. 5.96^{\circ}), MJVE, and MMD, and a similar COV. Training on smoothed motions therefore costs little tracking accuracy and gives a policy that can follow smooth, gamepad-like velocity commands.
V Conclusion
We presented a velocity-conditioned whole-body tracking policy that is trained directly with RL and an asymmetric actor-critic. The critic and the tracking reward use the full reference motion, while the actor observes only proprioception, the anchor orientation error, and a planar velocity command. On the motions it was trained on, our policy stays close to whole-body tracking, with a mean joint position error about 8\% higher in simulation. When trained on the random walk and commanded with velocity profiles from held-out motions, it is the only tracking-based method that keeps working on all of them, in simulation and on the Unitree G1, while whole-body tracking and command-conditioned distillation fail on slow walking. Compared with AMP, our policy has a higher style coverage and runs on the real robot without a safety crane. The input analysis shows that most velocity commands of the held-out motions are close to the training data, while far fewer of the reference joint frames are. In the ablations, mirrored training data or symmetry training, alone or combined, avoids the failure of the baseline policy on mirrored motions, and training on a smoothed base trajectory costs little tracking accuracy, in simulation and on the real robot.