Whole-body control: a universal tracker, command masks and a simulator correction
In lesson 6.2, a tracker reproduced a single motion recording almost frame for frame, but such trackers are trained one policy per recording, and H2O was left with about 8,500 recordings after filtering. H2O (2024) put the target frame itself into the policy's input, and a single policy learned to reproduce any recording, including the pose of a person standing in front of an ordinary camera, in real time. H2O throws out the recordings that even a tracker with access to the robot's full state can't reproduce. OmniH2O trains the robot's policy to imitate such a tracker and controls the robot from three points given by a VR headset: the head and the two hands. HOVER trains a single policy that accepts motion specified in any of the earlier ways: body points, joint angles or pelvis velocity. ASAP learns a correction to the simulator from data recorded on the real robot and fine-tunes the policy in the corrected simulator, and BeyondMimic builds a diffusion model on top of trackers that takes new tasks right at inference. In this lesson, you'll check ten recordings with physics, compare one policy for all command modes with single-mode policies and close the gap between the simulator and the real Ada.
One policy for thousands of recordings: the target frame in the input
In lesson 6.2, a tracker reproduced a single walking recording almost frame for frame, and an AMP policy took the style from the recordings and adjusted its steps to the command. Both learned from one recording. A tracker with a phase knows where in the recording it is, but not which recording it is, so a new motion needs a new policy. AMP takes many recordings at once, but on large datasets, according to its authors, it imitates only some of them. Meanwhile, the AMASS library holds 40 hours of motion capture, and after retargeting and filtering, H2O was left with about 8,500 recordings. Training a separate policy for each of them would take too long and cost too much. And teleoperation also requires reproducing motions that aren't in any recording: a person in front of the camera is making them right now.
Ada is the course's home humanoid; since lesson 6.1, she has legs instead of a wheeled base. More about her and her home in lesson 0.1.
H2O (He, Luo et al., CMU, 2024) does without a phase and gives the policy what it has to reproduce: the positions of eight body points from the next frame of the recording (the shoulders, elbows, hands and ankles), the difference between them and the same points on the robot, and their velocities. A policy that gets the target frame as part of its command and reproduces any recording fed to it, frame by frame, will be called a universal tracker. The recordings can come from a library or arrive in real time from a camera. The policy outputs target angles for the 19 joints of the Unitree H1 robot for PD controllers, as in lesson 6.1, and it is trained with PPO from lesson 5.2 with a reward for how close all the links are to the recording. The policy's input has 138 numbers. On the robot, everything runs as a chain: an ordinary webcam and a human pose estimator produce frames 30 times a second, the policy updates the target angles 50 times a second, and the PD controllers compute torques 200 times a second. The pelvis velocity, which is hard to measure on board, came to the robot from a motion capture system.
Training started with selecting the recordings. H2O first ran all the retargeted recordings through a tracker with privileged information: it sees the positions, rotations and velocities of all the links, like the teacher from lesson 5.5, and it has no dynamics randomization. Recordings that even this tracker fails on are considered infeasible for the robot and are thrown out. Of AMASS's 13,000 recordings, retargeting kept 10,000, and the filter about 8,500. In simulation, on all 10,000 recordings, the policy trained on the cleaned dataset reproduced 72.5% of the recordings without failure, and the one trained on the uncleaned dataset 67.9%, even though it had more data. A failure is the moment when the mean distance between the robot's links and the recording exceeds 0.5 m. The authors explain the difference this way: implausible motions may cause the policy “to waste resources trying to achieve them.” Among the infeasible motions, they name cartwheels and steps wider than the robot's legs are long. In lesson 6.2, retargeting respected the joint limits and put the feet on the floor, but checked the center of mass only in the frames of the recording. What else does a run in physics weed out?
Recording filter: what Ada can reproduce
Ten recordings went through retargeting with the third method from lesson 6.2, so Ada's joints are within their limits and her feet stand on the floor. Some of them are ordinary household motions, some are hard and some are abrupt. A teacher with privileged information will try to reproduce them. It knows the model of Ada's body, her masses and the limits of her actuators, and it sees the whole recording ahead, so in the simulator it reproduces recordings better than any policy that has only sensors. A recording fails if Ada falls or if her head, a hand or a foot is ever more than 20 cm away from the recording. First mark your forecast in the recording cards, then run the teacher and see why recordings fail.
Side view: Ada moves forward, the camera follows her pelvis, and the marks on the floor are 0.5 m apart. The pale Ada shows the frame of the recording, and the bright one shows Ada in the simulator under the teacher's control. A circle with a cross marks the center of mass, a dashed line shows its projection onto the floor, and segments under the standing feet show the support: they're green when the center of mass is over the support and red when it isn't. A red ring on a joint means that its actuator is at the torque limit or that a support-leg joint is at its velocity limit, and a red cross marks a fall. Until the teacher has run, the scene shows the frames of the recording without physics.
Under the hood: the body, the physics, the teacher and the recordings
Body. The model is flat, seen from the side, and Ada's dimensions are the same as in lesson 6.1: a 0.46 m torso, a thigh and a shin of 0.30 m each, the ankle 5 cm above the sole, the heel 6 cm behind the ankle and the toe 12 cm in front of it. The shoulder joint sits 0.368 m above the pelvis, the upper arm is 0.20 m long, and the forearm with the hand 0.17 m. The mass is 28 kg: the torso with the head weighs 14.4 kg, each arm 1.8 kg, a thigh 2.6 kg and a shin with its foot 2.4 kg. There are nine joints: the ankle of the support leg, the shoulder and elbow of each arm, and the hip and knee of each leg. The leg limits are the same as in lesson 6.1 (hip from −57 to 86°, knee from 0 to 132°, ankle ±52°), and the arm limits are the same as in lesson 6.2. The feet are always parallel to the floor.
Physics. It's our own for this lesson and simpler than in lesson 6.1. The support foot stays in place, and the actuators move the body above it. The support-leg joints work as servos: each moves toward its target angle no faster than 6 rad/s, and if the gravity torque on the knee or the hip exceeds the actuator's limit, the joint sags. The leg in the air, the swing leg, and the arms are links with inertia, viscous friction, gravity torque and a PD actuator with a torque limit: 90 N·m for the hips and knees, 30 N·m for the shoulders and 20 N·m for the elbows. Which foot stands when is set by the recording's step schedule: a foot lands on the floor when the schedule says so and its sole is near the floor, and it lifts off when the schedule says so. Balance is checked by the center of mass: if it stays more than 1 cm outside the support for longer than 0.25 s, Ada falls. The physics step is 4 ms, and the policy runs 50 times a second.
Teacher. It knows the body model and the whole recording ahead. For the swing leg and the arms, it computes the torques that produce the recording's accelerations from the body's equations of motion, sets the PD controller's target angle so that the actuator delivers that torque, and adds feedback on the error. It holds the torso with the support leg's hip and puts the swing foot where it is in the recording relative to the support foot. The support ankle follows the recording, but if the center of mass comes closer than 2 cm to the edge of the support, the teacher tilts the ankle by up to 0.2 rad to bring the center of mass back.
Recordings. These are our own curves, not motion capture. Walking is built from the foot positions with a step period, a step length and a foot clearance, and the other motions are built from key poses: the pelvis height, the torso pitch, the foot positions relative to the pelvis and the arm angles. Between poses, the parameters change smoothly, and the leg angles come from the inverse kinematics of lesson 0.3. The fast kick moves the foot 47 cm forward and lifts it 40 cm above the floor in 0.07 s. The fast bow tilts the torso to 46° in 0.15 s. When running at 2.2 m/s, a 44 cm step takes 0.2 s. The back bend tilts the torso 32° backward, and the far reach tilts it 54° forward with the arms stretched out and the legs straight. The tempo changes the recording's duration: at 0.5×, the same recording lasts twice as long.
The same in any browser. The engine's exponential, logarithm, sine, cosine and arctangent are built from additions and multiplications, as in lessons 5.2–6.2, so Node, Chrome and Safari compute exactly the same thing.
The teacher reproduced five recordings out of ten. The “arabesque on one leg” and the “squat on one leg” look the hardest, but the actuators cope with them, and the center of mass stays over the foot. The ones that failed are the fast kick (the foot moves 24.8 cm away from the recording because the hip actuator lacks torque), the fast bow (the head lags 27.9 cm behind as the support leg's hip hits its velocity limit), running at 2.2 m/s, the back bend (Ada falls backward at 1.02 s) and the far forward reach (Ada falls forward at 0.76 s). The check from lesson 6.2, the center of mass over the support in the recording's frames, would have found only the back bend and the reach among them, and it would have rejected running together with ordinary walking: in walking, too, the center of mass leaves the support between steps. The fast kick and the fast bow look harmless in the frames. At 0.7×, both pass, while the back bend and the reach don't pass at any tempo: balance doesn't care how fast the pose is reached.
H2O's filter doesn't fix recordings, it throws them out. The teacher can reproduce the feasible ones because it knows everything about the body and the world and sees the whole recording ahead. On the robot, the policy has only its sensors, and in teleoperation it also doesn't know what the person will do in the next second. How do you transfer the teacher's skill to such a policy?
Teacher and student: what the policy sees on the robot
In H2O, the tracker with privileged information only filtered the recordings. H2O trained the robot's policy separately, with reinforcement learning and directly on what the robot has, and a motion capture system measured the pelvis velocity for it. The authors of OmniH2O (He, Luo et al., CMU and SJTU, 2024) write that H2O “requires MoCap during test time, only supports simple mobility tasks, and lacks the precision for dexterous manipulation tasks.” They give two reasons: pose estimation from an RGB camera lags and is inaccurate, and the policy needs the pelvis velocity in world coordinates. OmniH2O brings the teacher back into training. First, a teacher is trained with reinforcement learning: it sees the positions, rotations and velocities of all the robot's links and the whole target pose of the next frame, 913 numbers in all. Then a student is trained, and it gets only what the robot will have: three points from a VR headset (the head and the two hands) and the last 25 steps of its own joints, the torso's angular velocity, the direction of gravity and its past actions. The pelvis velocity isn't in the input: as the authors write, the student learns to estimate it from the history. The student is trained with DAgger from lesson 1.2, just as in lesson 5.5: the student moves on its own in simulation, the teacher says in each of its states which action it would choose, and the student learns to repeat that action. Transferring the skill of one policy to another this way is called distillation.
Why not train the student with reinforcement learning right away, like H2O? Table 1 of the OmniH2O paper answers this question. Hover over a row or click it.
Simulation, 14,000 recordings. The error is the mean distance between the robot's links and the recording in world coordinates (Eg-mpjpe in the paper). The numbers come from Table 1 of the OmniH2O paper.
The OmniH2O student reproduces 94.10% of the recordings versus 94.77% for the teacher, and without DAgger, with reinforcement learning and the same history, only 47.11%. Three points instead of 22 cost little: 94.10% versus 94.72%. On the real Unitree H1 robot with hands, OmniH2O's error on 20 standing motions is 47.94 mm in world coordinates, and H2O's is 87.33 mm. A student without history has an error of 83.26 mm, even though in simulation there's almost no difference. The whole system runs with a latency of 20 ms, and the policy outputs actions 50 times a second. One and the same policy controls the robot from a VR headset, from a camera, from a phrase like “raise your right hand” that a motion generator turns into target poses, and from commands by GPT-4o, which picks one of several prepared motions. From 40 minutes of teleoperation on six tasks, the authors trained a policy that gives the student the three points itself, based on the image from a camera on the robot's head. On four tasks, such a policy built with Diffusion Policy from lesson 1.5 succeeded in 8 attempts out of 10 on average, and one trained with plain behavior cloning and a ResNet network in only one.
Each interface specifies motion in its own way. A VR headset gives three points, a camera gives points across the whole body, a joystick sets the body's velocity, and a motion capture suit records joint angles. Does this mean you need to train a separate policy for each of them?
HOVER: one policy for all command modes
Different systems structure the command differently. ExBody from lesson 6.2 gives the H1 robot the arm joint angles and the pelvis velocity, height and tilt. H2O gives the positions of points across the whole body, OmniH2O gives only the head and hands, and HumanPlus (Fu et al., 2024; lesson 6.4) gives the angles of all the joints plus the pelvis. A way of specifying motion will be called a command mode. A policy trained for a single mode will be called a specialist. HOVER (He, Xiao et al., NVIDIA and CMU, 2024) gathers all the modes into one command space. The body is split into the upper and lower body, and each has three options: keypoint positions, joint angles and root motion, that is, the pelvis velocity, height and tilt. The command mask tells the policy which parts of the command are given: it's a set of bits, one per part. A part that's switched off arrives as zeros. All the earlier systems turn out to be special cases: each simply has its own set of bits switched on.
HOVER is trained the same way as OmniH2O. First, a teacher is trained with reinforcement learning: it reproduces AMASS recordings with the whole body and sees the robot's full state. Then DAgger transfers its skill to the student, and the mask is chosen at random at the start of each episode: each bit is drawn from a Bernoulli distribution with probability 0.5, and the mask stays the same until the episode ends. The teacher always sees the whole frame, and the student sees only the parts the mask allows. A policy that learns on all the combinations at once this way will be called a generalist. The authors count more than 15 useful modes for a robot with 19 degrees of freedom. The diagram shows how training works and how the same policy runs on the robot with a VR headset.
The HOVER generalist was compared with specialists in each mode of the earlier systems. The authors trained the specialists with reinforcement learning and gave them only the command parts their mode needs. In simulation, the generalist beats the specialist in every mode on at least 7 of 12 metrics: in the ExBody mode, the error of link positions in world coordinates drops from 275 to 185 mm, and in the OmniH2O mode from 149 to 128 mm. The authors hypothesize that the generalist wins thanks to “shared physical knowledge across modes, such as maintaining balance, human-like motion, and precise limb control.” But the generalist was trained by distillation and the specialists with reinforcement learning, so part of the gain may come from the training method itself. The authors themselves write that even in a single mode, distillation from a teacher turns out better than reinforcement learning. The paper has no specialists trained by distillation. It does have a policy with the same random masks trained with reinforcement learning from scratch, and the generalist beats it on all four metrics in all eight modes tested. On the H1 robot, it beats the specialists on 11 of 12 metrics and switches modes in the middle of walking, for example from the ExBody mode to the H2O mode. Let's check on Ada what one policy for all modes gives and what it costs.
Command modes: the generalist and the specialists
Ada's command has five parts: the arm joint angles, the head and hand positions, the leg joint angles, the foot positions and the pelvis (velocity, height and torso pitch). Positions are given horizontally relative to the pelvis and vertically as the height above the floor. The generalist learned from the teacher of Lab 1 with a mask chosen at random in every episode, as in HOVER. Four specialists learned from the same teacher on the same recordings for the same number of episodes, but each only in one mode of the earlier systems. In the browser, their training would take several minutes, so all five policies were trained in advance in Node with the same engine and embedded in the page. Both Adas on the scene repeat the same new recording, which wasn't in training, with the same command.
Side view; the camera for each Ada follows her own pelvis. The Ada with the orange outline is controlled by the generalist, and the Ada with the blue outline by the specialist of the chosen mode. The pale figure behind shows the frame of the recording. Purple rings mark the head, hand and foot positions given by the command, and a purple arrow above the pelvis shows the given velocity if the pelvis is part of the command. Under each Ada is the mean error of the head, hand and foot positions.
Under the hood: the command, the student, training and the table of modes
What the student sees. The observation has 36 numbers, and it contains only what Ada measures herself: the angles of the nine joints and their velocities, the previous action, the foot contacts, the pelvis height and velocity from the kinematics of the support leg, the torso pitch and its rate, the offset of the center of mass from the middle of the support and the support's width, plus which foot carries the weight. The command has 44 numbers: five mask bits and five parts. These are the angles and velocities of the arm joints (8 numbers), the positions and velocities of the head and hands (12), the angles and velocities of the leg joints (8), the positions and velocities of the feet (8), and the pelvis velocity, its height and the torso pitch (3). All values are taken from the next frame of the recording. A part that's switched off arrives as zeros:
HOVER does the same: , where the mode mask picks the option for the upper and the lower body, and the sparsity mask switches off individual points, for example one hand.
Student and training. An 80 → 64 → 64 → 9 network with leaky ReLU outputs a correction to the previous action. DAgger runs for 30 rounds. Each round has 20 episodes on random training recordings: in the first round the teacher is in control, after that the student, and the teacher labels every step. After the episodes, 400 Adam steps on mini-batches of 48 pairs minimize
over all the accumulated pairs. The generalist's episode mask is random: each bit comes from Bernoulli(0.5), and at least one part is switched on. The specialist's mask is always the same. All five policies have the same budget: 600 episodes, about 85,000 pairs. There are 15 training recordings and 6 test recordings, which the scene uses and which weren't in training. The weights are embedded in the engine at half precision (Float16), and all the lesson's numbers were computed with these weights.
The table of modes on seed 1. The mean error of the head, hand and foot positions in centimeters on the training and test recordings. In the “all angles and pelvis” mode, the generalist's error is 2.31 and 4.43 cm, and that mode's specialist's is 1.29 and 2.04 cm. In the “hands and feet” mode, it's 2.83 and 4.44 cm versus 1.34 and 4.03 cm, in the “head and hands” mode 3.54 and 5.28 cm versus 1.68 and 5.05 cm, and in the “arm angles and pelvis” mode 2.98 and 4.95 cm versus 1.59 and 5.14 cm. In other modes, the specialists' error ranges from 4.3 to 21.5 cm. In the “hands and feet” mode, the generalist falls once, on the test recording where Ada waves her far arm while walking.
Ten seeds. On seeds 1–10, all five policies were trained from scratch. On all ten seeds, the specialist in its own mode is more accurate than the generalist on the training recordings in all four modes and on the new squat in the “hands and feet” mode. The generalist's error on the test recordings is 3.3–6.3 cm in all modes, and over all 840 runs it fell 8 times. In other modes, the specialists' error on the training recordings is 3.1–22.7 cm, except for the “head and hands” specialist in the “hands and feet” mode, where its three points are given too. The “hands and feet” specialist with the “arm angles and pelvis” command errs at least three times as much as the generalist on all ten seeds. On the bow in the “head and hands” mode, on 9 seeds out of 10, the generalist's head and hands are within 6 cm of the recording while the leg angles differ by more than 10°. It gets through the mode switch while walking without falling and with an error under 5 cm on all ten seeds.
In its own mode, the specialist is more accurate: on the new squat with outstretched arms, its error is 1.62 cm versus 2.83 cm for the generalist. It doesn't have to share its network among 31 combinations of command parts, and both have the same teacher. In another mode, the “hands and feet” specialist errs by 10.84 cm, and the generalist by 2.87 cm. In the “head and hands” mode on the bow, the generalist's head and hands are 4.53 cm from the recording on average, while the leg angles differ by 21°: three points don't determine the leg pose, and the policy chooses it itself. The generalist gets through the switch from the “arm angles and pelvis” mode to “hands and feet” while walking without falling, with an error of 3.63 cm. A specialist would have to be swapped for another network on the move, and the “arm angles and pelvis” specialist errs by 14.82 cm with the new command parts. In the end, on the training recordings, the generalist falls short of the specialist trained by the same teacher in every mode. On new recordings, the difference is smaller, and in the “arm angles and pelvis” mode the generalist is even slightly more accurate: 4.95 cm versus 5.14 cm. And it works in all modes at once.
Both the generalist and the specialists were trained and tested in the same simulator. A real robot is heavier or lighter than its model, its actuators are weaker than their specs, and the command reaches them late. What will happen to the policy when it runs on the robot?
ASAP: a simulator correction learned from robot data
A policy that confidently reproduces recordings in the simulator reproduces them worse on the robot. The link masses, the strength and response of the actuators, the delays and the joint mechanics of a real robot are different, and the sim-to-real gap from lesson 0.2 appears. For slow motions, the difference is tolerable, but jumps and kicks, according to the authors of ASAP (He, Gao, Xiao, Zhang et al., CMU and NVIDIA, 2025), run into “the dynamics mismatch between simulation and the real world.” We already know the two usual answers. You can fit the simulator's parameters to measurements, that is, perform system identification (SysID) from lesson 4.5, or you can randomize the dynamics, as in lesson 5.4. The ASAP authors write that SysID requires a predefined set of parameters and torque measurements that many robots don't have, while randomization makes the policy overly conservative and robs it of agility.
ASAP works in two stages. First, a tracker is trained in the simulator on recordings of human motion and run on the Unitree G1 robot (23 degrees of freedom, 1.35 m tall). During the runs, motion capture and the robot's own sensors record its state. From these data, a delta action model is trained: a correction to the action with which the simulator, starting from the recorded state, ends up where the robot did. It's trained with reinforcement learning, with a reward for the next simulated state being close to the recorded one. Then the delta model's weights are fixed, the model is built into the simulator, , and the tracker is fine-tuned in it. The policy goes to the robot without the correction. The authors explain the intuition this way: if the simulated robot can jump because its motor strength is overestimated, while the real one can't, the delta model will learn to weaken the leg actions.
In the transfer from IsaacGym to IsaacSim, replaying the recorded commands without feedback for 1 s drifted from the recording by 80.8 mm in the simulator as is, by 77.6 mm after SysID and by 37.9 mm with the delta model. On hard motions in Genesis, fine-tuning with the correction raised the share of reproduced recordings from 82.9 to 100% and cut the link position error from 175 to 129 mm. On the G1 robot, the kick error fell from 61.2 to 50.2 mm, and the error on LeBron James's “Silencer”, a motion that wasn't in the data for the delta model, from 159 to 112 mm. The price is data from the robot. A full model for 23 joints needs more than 400 recorded runs, the motors overheated quickly, and two G1 robots broke during data collection. So the authors settled for a correction for the four ankle joints, where the linkage mechanics create a large gap, and 100 runs. Let's do the same for Ada: transfer the generalist to the “real” Ada and see what the delta model finds.
Delta model: teaching the simulator to behave like Ada
The “real” Ada is the same model with different parameters, unknown to the policy. She is 15% heavier, her actuators are 10% weaker, the stiffness of the PD controllers is 15% lower, the joint friction is one and a half times higher, the ankle's zero is offset, and the command reaches the actuators 20 ms late. We'll transfer the generalist from Lab 2 in the “all angles and pelvis” mode and test it on 21 recordings, training and test ones. First, we transfer it without corrections, then record runs of the real Ada, fit the simulator's parameters to them, train a correction and fine-tune the policy. All of this is computed in the browser in seconds.
Side view; the camera for each Ada follows her own pelvis. The Ada with the blue outline runs in the simulator, and the Ada with the orange outline is the real Ada; both are controlled by the same policy. The pale figure shows the frame of the recording. Under each Ada is the mean error of the head, hand and foot positions over the recording.
Summary. In the “policy error” view, the horizontal axis lists the policies: without fine-tuning, and fine-tuned in the plain simulator, with fitted parameters and with the delta model. The blue bar shows the mean error of the head, hand and foot positions over 21 recordings in the simulator, and the orange one on the real Ada, in centimeters. In the “step prediction” view, the bars show how many degrees, averaged over the joints, the prediction of the real Ada's next step is off when it's computed with the simulator as is, with fitted parameters or with the delta model.
Under the hood: the real Ada, the recorded runs, SysID, the delta model and fine-tuning
The real Ada. The link masses are multiplied by 1.15, the actuator torque limits and the velocity limit of the support-leg joints by 0.9, the PD stiffness and the bandwidth of the support-leg servos by 0.85, and the viscous joint friction by 1.5. The ankle's zero is offset by 0.03 rad (1.7°). The 20 ms command delay equals five physics steps: for the whole next policy step, the actuators are still executing the previous command. The policy doesn't know this. Its observation contains the previous command, the one it issued itself.
Recorded runs and step prediction. The generalist goes through the 15 training recordings on the real Ada, and at every step the state, the command and the next state are recorded, 2,180 steps in all. To check the simulator, we take one step in it from each recorded state with the recorded command and compare the joint angles with the recorded ones.
SysID. It tries 18 combinations of multipliers: mass 1, 1.15 or 1.3, friction 1, 1.5 or 2, and actuator stiffness and strength 0.85 or 1. The best combination is the one with the smallest step error. The command delay and the zero offset aren't on this list.
Delta model. For each recorded step, we look for the correction such that the simulator, starting from the recorded state with the command , gives the recorded angles. We compute the sensitivity of the angles to the command with finite differences for each joint and find the correction by regularized least squares, taking two Gauss–Newton steps. Then we train a model on these corrections. In ASAP, it's a network trained with reinforcement learning; ours is a linear model for each joint , found by ridge regression:
where , and are the new command, the previous command and the joint angle as fractions of the half-width of the joint's range , and is the scaled velocity. The coefficients are found in a fraction of a second, and you can read them.
Fine-tuning. DAgger starts from the generalist's weights and runs 8 rounds of 12 episodes on the training recordings, with 300 Adam steps at half the learning rate after each round. In the simulator with the correction, is added to every command of the policy. For each simulator, we choose the teacher from two: one responds to the current state, and the other first runs a step ahead in the same simulator and sets the target angles for that state and the next frame of the recording. We take the one that reproduces eight training recordings more accurately. For comparison, we fine-tune a copy of the generalist the same way in the plain simulator and in the simulator with the SysID parameters.
Ten seeds. On fine-tuning seeds 1–10, the policy fine-tuned with the delta model errs on the real Ada by 2.67–3.40 cm and fails 5–9 of 21 recordings. After ordinary fine-tuning, the policy errs by 3.71–4.84 cm and fails 10–13 recordings, and after fine-tuning with SysID it errs by 3.35–4.40 cm and fails 9–12 recordings. On all ten seeds, the policy with the correction is more accurate than after ordinary fine-tuning, after fine-tuning with SysID and without fine-tuning. The teacher that runs a step ahead is better in the simulator with the correction, and the one that responds to the current state is better in the plain one and in the one with SysID, again on all ten seeds. In the simulator itself, the policy with the correction errs by 2.36–2.60 cm, and after ordinary fine-tuning by 1.87–2.01 cm.
On the real Ada, the generalist's mean error grew from 2.92 to 4.90 cm, and it failed 13 recordings out of 21 versus 6 in the simulator. Walking suffers the most, although Ada never fell. First, let's check how accurately the different versions of the simulator predict the real Ada's next step.
| Simulator version | Step error, ° |
|---|---|
| Unchanged | 1.39 |
| With the SysID parameters | 1.09 |
| With the delta model | 0.57 |
SysID found mass ×1.3 and unchanged friction, while in fact the mass is ×1.15 and the friction ×1.5. Parameter fitting reduces the error, but it explains the discrepancy only with what's on its list.
The delta model's ankle correction came out as −0.95 × new command + 0.83 × previous command plus small corrections. The new command is almost canceled and the previous one comes back: the model found the command delay on its own, even though nobody told it about any delay. Its constant offset of 1.6° almost matched the ankle's zero offset of 1.7°.
Now let's compare fine-tuning the policy in the three versions of the simulator. We test all the policies on the real Ada.
| Fine-tuning simulator | Error, cm | Failed recordings out of 21 |
|---|---|---|
| Plain simulator | 4.07 | 13 |
| With the SysID parameters | 3.65 | 10 |
| With the delta model | 2.77 | 6 |
In the simulator with the correction, the teacher that runs a step ahead turned out best, and the policy learned to send commands ahead of time. In the plain simulator and in the one with SysID, responding to the current state pays off more. The improvement on the real Ada comes with a loss of accuracy in the simulator itself: the policy with the correction has an error of 2.38 cm versus 1.98 cm for the one fine-tuned in the plain simulator.
ASAP and all the trackers in this lesson train a separate policy, or fine-tune one, for each set of tasks, and each paper tunes its tracking reward anew. Can a single tracking recipe serve any motion, with new tasks like “go to a point” or “walk around an obstacle” set without new training?
BeyondMimic: one tracking recipe and diffusion on top of it
The H2O, OmniH2O and ASAP trackers were trained with rewards made of many terms, heavy randomization and carefully chosen inputs, and they were tuned again for new motions. BeyondMimic (Liao, Truong, Huang, Gao, Tevet, Sreenath, Liu; Berkeley and Stanford, 2025) shows that a compact recipe is enough. Each motion is still learned by its own policy, but the task formulation and the hyperparameters are shared by all of them.
The task reward is made of four identically built terms for how close the positions, rotations, and linear and angular velocities of the bodies are to the recording. Only three penalties are added to it: for joints approaching their limits, for abrupt changes of the action and for the body touching itself.
The actuators are modeled carefully: the PD stiffness is set by a natural frequency of 10 Hz with a damping ratio of 2, and the rotor inertia is taken into account. The software on the robot is written so that there are no extra delays. Only the friction and restitution of the floor, the joint zero offsets and the position of the torso's center of mass are randomized. During training, the robot is also pushed with random changes of velocity.
With this recipe, the Unitree G1 robot does an aerial cartwheel, spin kicks and sprints. The results show both the agility of the motions and their sensitivity to delays, the same problem we saw with Ada in Lab 3.
| Test | Result |
|---|---|
| Aerial cartwheel on Unitree G1 | Peak acceleration of 31 m/s²; pelvis angular velocity of up to 20 rad/s |
| Ronaldo's celebration with a jump and a turn | Five repetitions in a row; in ASAP, the robot performed it once |
| Survey of 77 people: comparison with Unitree's stock controller | BeyondMimic's motions judged more natural in 70.8% of pairs |
| One martial-arts motion, 5 ms delay | One failure in three attempts |
| The same motion, 10 ms delay | Two failures in three attempts |
On top of the trackers, BeyondMimic builds one model for many tasks. Training proceeds in sequence:
- A variational autoencoder, like the CVAE in lesson 1.7, learns by distillation from the trackers to compress the tracking command into a latent vector of 32 numbers. A light decoder takes this vector together with the sensor readings and outputs the action.
- A diffusion model learns from the runs of these policies to predict future states together with their latent vectors. These data contain no tasks, only motions.
| Parameter | Value |
|---|---|
| Architecture | Transformer with 19.8 million parameters |
| History | 4 steps |
| Prediction horizon | 16 steps ahead, that is, 0.64 s |
A new task is set at inference by guidance with the gradient of a cost (classifier guidance). The task is written as a differentiable cost of the plan : for example, the difference between the planar velocity and the joystick command, the distance to a point or the closeness to an obstacle. At every denoising step, the gradient shifts the plan toward completing the task.
In lesson 1.4, classifier-free guidance required a model trained with a condition. Here there's no condition in training at all, and the cost can be invented after training. This way, one model walks and runs on joystick commands (running more than 50 m without stopping), walks to a point and goes around an obstacle. Given keyframes of a cartwheel every 0.2 s, it fills in the rest of the motion and returns to walking.
The latent vector matters for executing the motion, while denoising time limits how often the trackers for this model can run. These two results are checked separately:
| Test or component | Result or setting |
|---|---|
| Cartwheel in the MuJoCo simulation without the latent vector | Success in 5% of attempts |
| Cartwheel in the MuJoCo simulation with the latent vector | Success in 95% of attempts |
| Twenty denoising steps | About 20 ms on a laptop RTX 4060 GPU |
| Trackers for the diffusion model | Trained and run 25 times a second rather than 50 |
| Light decoder | Computes the action on the CPU |
The authors name the limitations themselves: a 0.64 s horizon is too short for long plans, sensor errors go straight into the plan, and the guidance weights still need some tuning.
The whole-body tracker as the humanoid's low level
The works in this lesson add up to a common pipeline. Human recordings are transferred to the robot by retargeting, infeasible ones are weeded out by a run in physics, a teacher with privileged information is distilled into a student that relies on sensors, the command is given by a mask over body parts, and the gap to the robot is closed by a simulator correction learned from the robot's own data. Next, the tracker is scaled up the way language models are: by growing the network, the data and the compute. In SONIC (NVIDIA, arXiv, November 2025, latest version from August 2026), the tracker network grew from 1.2 to 42 million parameters, the data grew to more than 100 million frames from 700 hours of motion capture, and training took 21,000 GPU hours. The authors write that quality improves steadily with compute and with more diverse data. Their single policy with a shared token space works both in VR teleoperation and under the control of a VLA model, and on top of it sits a planner that generates motion for navigation in real time. And the BeyondMimic code, according to its authors, has become a default method in the public reinforcement learning repositories MJLab and Unitree RL Lab.
On robots, the whole-body tracker increasingly ends up as the low level rather than the whole control system. A person in a VR headset, a text-to-motion generator, a path planner or a VLA model outputs target poses, and the tracker executes them 50 times a second and keeps balance. The command mode is chosen by whoever sets the task: for walking, the pelvis velocity is enough, and for work with the arms, you need the hands.
Eight common misconceptions
Lesson takeaways
- A universal tracker gets the target frame as input instead of a phase, and a single policy reproduces any recording fed to it. This is how H2O trains one policy on about 8,500 AMASS recordings and controls the H1 robot in real time from an ordinary camera.
- Retargeting doesn't guarantee that the robot can reproduce a recording. In Lab 1, the teacher with privileged information failed on 5 recordings out of 10: the fast kick lacked hip actuator torque, the fast bow and running hit the support leg's velocity limit, and in the back bend and the forward reach Ada lost her balance. A check on the recording's frames would have found only the last two of them, and it would have rejected running together with ordinary walking. The fast kick and the fast bow pass at 0.7×, while motions that lose balance don't pass at any tempo.
- The teacher sees everything, and the student only its sensors and a few body points. OmniH2O uses DAgger to transfer the teacher's skill to a student with three points from a VR headset and a 25-step history, and the student reproduces 94.10% of the recordings versus 94.77% for the teacher. Trained with reinforcement learning, a student with the same history reproduces only 47.11%.
- The command mask tells the policy which body parts are given, and a single HOVER policy works in all the modes of the earlier systems. In Lab 2, a specialist trained by the same teacher is more accurate than the generalist in its own mode (1.62 versus 2.83 cm on the new squat), but in another mode it errs by 10.84 cm, while the generalist works in all modes and switches modes on the move.
- A delta action model learns from the robot's data and makes the simulator behave like the robot. For Ada, it found the command delay and the ankle offset, which aren't on SysID's list of parameters, and after fine-tuning with the correction, the error on the real Ada dropped from 4.90 to 2.77 cm, while after the same fine-tuning in the plain simulator it dropped only to 4.07 cm.
- BeyondMimic reproduces a cartwheel, kicks and sprints on the robot with one tracking recipe, and a diffusion model on top of the trackers takes new tasks at inference through the gradient of a cost: a joystick, a point, an obstacle. The whole-body tracker becomes the low level that gets its commands from a person, a planner or a VLA model.
Open questions
Who chooses the mode?
HOVER switches modes on the move, but a person chooses the mode, and the authors call automatic switching future work. In Lab 2, the generalist in the “head and hands” mode chose the leg pose itself, which is convenient for VR, but for a bow at a table or lifting a box off the floor, the leg pose matters. How do you decide which command parts to give and which to leave to the policy, and who should make that decision?
How much robot data is needed?
ASAP would have needed more than 400 runs for a correction covering all 23 joints, two robots broke while data was being collected on real G1s, and the authors settled for 100 runs for the ankles. In Lab 3, 15 runs were enough for a linear correction because the gap was simple: a delay and a zero offset. How do you collect robot data for a correction without breaking robots, and what do you do about gaps that change over time, for example as the motors heat up?
Paper guide
- Read closelyThe section on the command space: the generality and atomicity criteria, and Table I with earlier works as special cases. The section on the mode and sparsity masks and on DAgger distillation. Tables III–V comparing the generalist with the specialists in simulation and on the robot, and the figure with mode switching while walking.
- Safe to skipThe details of the teacher's reward and randomization: they're taken from OmniH2O. If you've done lesson 5.5, you can skip the description of DAgger as well.
- Question to keep in mindHOVER's specialists were trained with reinforcement learning, and the generalist by distillation from a teacher. What experiment would separate the gain from having many modes from the gain from distillation, and how much of it is in the paper?
Other papers in this lesson: H2O (He, Luo et al., 2024), with the universal tracker, the recording filter in physics and Table III; OmniH2O (He, Luo et al., 2024), with the teacher and the student, Table 1 and imitation learning on top of the tracker; ASAP (He, Gao, Xiao, Zhang et al., 2025), with the delta action model and Tables III–V; BeyondMimic (Liao, Truong, Huang et al., 2025), with the compact tracking recipe and guiding diffusion with a gradient; SONIC (Luo, Yuan, Wang et al., 2025), with scaling up the tracker.
Resources
- H2OWhole-body teleoperation in front of an ordinary camera
- OmniH2OA VR headset, a camera, voice and GPT-4o as interfaces to one policy
- HOVERCommand mode switching on the H1 robot
- ASAPThe G1 robot's jumps and kicks before and after the simulator correction
- BeyondMimicCartwheels, sprints and tasks set at inference
- SONICA 42-million-parameter tracker trained on 700 hours of motion capture
Ada reproduces any feasible whole-body motion on command, given as points, joint angles or pelvis velocity, and switches modes on the move. But someone has to give the command. In the labs, it came from a recording, and in OmniH2O from an operator in a VR headset. For autonomous work in OmniH2O, GPT-4o picked one of several prepared motions, and a policy trained on 40 minutes of teleoperation output three points from the camera image. For Ada to carry a box from a shelf to a table on her own, the target poses have to be set by a model that sees the scene and understands the task.