Introduction
A motion tracker is one policy that makes a simulated humanoid follow any clip of a motion library: walking, dancing, falling and getting up. The tracking formulation used here, with its observations, reward, termination and domain randomization, is that of BeyondMimic [1], whose tracker is trained with PPO [2]. The task asks two things of a learning algorithm on a single GPU: how soon the policy it hands over reaches a target tracking return (time to target), and how good the policy is at the end of training under conditions it never trained on.
Likelihood-ratio methods such as PPO are far too slow for the first question. The recent methods that cut training to minutes all use first-order gradients of the return with respect to the policy, and differ in where the gradient comes from. SuperMimic [3] backpropagates through imagined rollouts of a learned world model; BlinkMimic [4] and XMimic [5] keep that loop and make it faster; Mimic [6] differentiates through the simulator itself. The actor objective of the SuperMimic loop, as our code base implements it, is the short-horizon return with a critic bootstrap,
differentiated through the imagined transitions , so the quality of the policy gradient is bounded by the quality of .
The difficulty is contact. A humanoid's dynamics change character every time a foot touches down or lifts off. A simulator's analytic gradient through stiff contact is accurate locally but can be badly scaled and biased as a descent direction; a learned world model is smooth by construction but must average across the transition, blurring exactly the moments that decide whether the robot falls. Our question was whether the learned model can be made to represent the contact switch explicitly without losing its smoothness.
Method
Starting point
Our training system is InstantTrack v1.4, a code base on the SuperMimic loop in which every change is a command-line flag: collect transitions in the simulator, fit the world model on short windows of them, then update the policy by backpropagation through imagined rollouts of horizon and the critic by GAE() targets on the same imagined transitions. Its main configuration adds a Polyak-averaged policy as the handed-over policy, a semi-implicit world model with left-right mirror augmentation, Muon on the hidden weight matrices, a reference-pose skip connection in the action, resets concentrated before the places where the handed-over policy fails, and extensive systems work (CUDA graphs, side streams, static compilation). We keep all of it unchanged.
PRESETS = {
# SuperMimic (paper hyperparameters): the defaults of the flags
"supermimic": "",
# SuperMimic + Polyak-averaged policy (EMA 0.995)
"supermimic_ema": "--pi_ema 0.995",
# InstantTrack v1.4 (main configuration)
"instanttrack": "--pi_ema 0.995 --no_sync --fused_adam --fused_rot --compile_more --lr 4e-4 --wm_batches 5 "
"--wm_hidden 1024,1024,1024 --fail_reset 0.3 --contact_reward 0.25 --wm_structured --wm_mirror 0.5 "
"--pi_opt muon --wm_opt muon --pi_ref_skip --wm_only_iters 0 --bin_fix --ref_contact_fix --cuda_graph "
"--eprobe_share 0.15 --graph_early --collect_graph --reset_masked --pi_batch 2048 --pi_lr_mult 4 "
"--lr_decay_ret 0.75 --lr_decay_len 300 --eprobe_graph --eprobe_async 10 --eprobe_start 1000 "
"--eprobe_every 125 --eprobe_decay 0.7 --lr_decay_by 1400 --static_compile --overlap_collect "
"--overlap_wm --pi_anneal_len 3000 --batch_goal_enc --overlap_critic --eprobe_active 372", # fmt: skip
}
PRESET = "instanttrack"A world model with one head per contact mode
The one change we make is in the world model. Its default network maps the state , the action (and the previous action ) and the randomized physical context to a normalized frame-local state increment , which a fixed integrator turns into the next state. With contact modes, the last layer instead produces four increment heads and two contact logits , one per foot. With and the probabilities that each foot is in contact at the next step, the four mode weights are those of two independent feet,
for flight, left support, right support and double support, and the increment is the mixture
Each head only has to be smooth within its mode; the switch between modes is carried by the sigmoid weights, which can become sharp where the data demand it. The imagined transition remains a smooth function of , so the policy gradient through it stays well defined, but it no longer has to be one function that bends through every touch-down.
def step(self, S, a, a_prev, xi_n):
return self.step_c(S, a, a_prev, xi_n)[0]
def step_c(self, S, a, a_prev, xi_n):
"""Next state and next-step foot-contact logits (B, 2), or None without ``contact_modes``."""
p, R, v, w, q, qd = S
y = run_mlp(self.net, self.in_norm(self.inputs(S, a, a_prev, xi_n)))
logits = None
if self.contact_modes:
logits = y[..., -2:]
cl, cr = torch.sigmoid(logits).unbind(-1)
mode_w = torch.stack(((1 - cl) * (1 - cr), cl * (1 - cr), (1 - cl) * cr, cl * cr), -1)
y = (y[..., :-2].unflatten(-1, (4, self.out_dim)) * mode_w.unsqueeze(-1)).sum(-2)The contact logits are not supervised. The world-model loss is the normalized multi-step state error over a window of eight predicted steps, the same loss as without modes, so the "contact" probabilities are a gating that the network learns only because it lowers the state-prediction error. We tested supervising them with the true foot contact and rejected it (Section 4).
def _wm_err(S_hat, s1, mask):
std = torch.maximum(wm.inc_norm.std(), ERR_FLOOR)
S1 = unflatten_state(s1)
e = (wm.state_error(S_hat, S1) / std) ** 2 # (B, k, D)
e = e.mean(-1)
return (e * mask).sum() / s1.shape[0], e[:, -1]The mixture is an option InstantTrack already implements and its main configuration leaves off; the docstring of its constructor describes it. Our submission switches it on, with a comment stating why.
# Contact-mode mixture world model: instead of one MLP smoothing across touch-down/lift-off, predict one
# increment head per foot-contact mode (flight / left / right / double support) and mix them by the predicted
# contact probabilities. Each head stays smooth within its mode, cutting dynamics prediction error at contact
# transitions and giving more accurate imagined policy gradients (better tracking success, esp. under perturbation).
wm = WorldModel(J, layout.dim, use_prev_action=robot.has_action_delay, hidden=widths(args.wm_hidden),
structured=args.wm_structured, contact_modes=True, dt=CONTROL_DT).to(dev) # fmt: skip
pi = Policy(mdp.obs_dim, GOAL_DIM, J, hist=Hh, enc_hidden=widths(args.enc_hidden), dec_hidden=widths(args.dec_hidden),
ref_skip=policy_ref_skip(vars(args), robot)).to(dev) # fmt: skip
critic = Critic(CRITIC_IN).to(dev)The policy, the critic, the actor objective and the reset curriculum are untouched, and so is the deployed policy's size: the extra heads live in the world model, which is not handed over. The same code path and the same constants run on every setting.
Results
| Method | ① | ① | ② | ② | |||
|---|---|---|---|---|---|---|---|
| Time to target return ↓ | Perturbed tracking return ↑ | Held-out tracking return ↑ | Other-collection return ↑ | Time to target return ↓ | Perturbed tracking return ↑ | Held-out tracking return ↑ | |
| Qwen4-Max | 341.0 | 0.823 | 0.804 | 0.775 | 2,819 | 0.848 | 0.860 |
| PPO, BeyondMimic configuration | 10,800 | 0.334 | 0.544 | 0.567 | 10,800 | 0.678 | 0.690 |
| SuperMimic | 2,117 | 0.826 | 0.794 | 0.797 | 3,256 | 0.923 | 0.932 |
| InstantTrack | 428.0 | 0.824 | 0.796 | 0.775 | 2,986 | 0.858 | 0.873 |
| BlinkMimic | 424.5 | 0.835 | 0.817 | 0.817 | 3,124 | 0.911 | 0.927 |
| XMimic | 313.8 | 0.836 | 0.823 | 0.815 | 2,845 | 0.911 | 0.927 |
| ∇Mimic | 1,112 | 0.792 | 0.813 | 0.823 | 9,246 | 0.888 | 0.915 |
| BlinkMimic 2 | 833.0 | 0.809 | 0.803 | 0.818 | 575.0 | 0.926 | 0.946 |
- ① MuJoCo Warp Unitree G1 · LAFAN1, 33 clips, 2 h of motion · time to a 0.82 tracking return
- ① MuJoCo Warp Unitree G1 · LAFAN1, 33 clips, 2 h of motion · time to a 0.82 tracking return
- ② MuJoCo Warp Unitree G1 · LAFAN1, 33 clips, 2 h of motion · tracking return at the end of the budget, under perturbations, on held-out takes and on another motion collection
- ② MuJoCo Warp Unitree G1 · LAFAN1, 33 clips, 2 h of motion · tracking return at the end of the budget, under perturbations, on held-out takes and on another motion collection
Time to target. On Small (time) we reach the target after 340.96 s against 428.02 s for InstantTrack, the recipe we build on, and 313.85 s for the fastest published method, XMimic [5]. On Large (time) we need 2,819 s against 2,986 s for InstantTrack and 2,845 s for XMimic, but BlinkMimic 2 is far ahead of all three at 574.96 s. Against our own starting point the mixture is faster on both settings; against the field it is second on both, close behind the fastest method on Small (time) and far behind it on Large (time).
The end-of-training policy. On Small (return) our perturbed return is 0.823 against 0.824 for InstantTrack, a tie; our return on held-out recordings, 0.804, is above InstantTrack's 0.796 but below 0.823 for XMimic [5]; and on clips from another collection we are level with InstantTrack, 0.775 against 0.775. On Large (return) we are below InstantTrack on both measures, 0.848 against 0.858 under perturbation and 0.860 against 0.873 on held-out recordings, and well below the best published policy, BlinkMimic 2 at 0.946.
Read together, the measured effect of the mixture is a faster first arrival at the target and no consistent improvement in the final policy. In our development runs the gain we saw was in the final policy, above all under perturbation, so the evaluation does not confirm the effect we selected the change for; it shows a different one, of a size we cannot separate from run-to-run variation without repeated runs.
How we got here
We began by running three of the reference methods through a common harness of our own and measuring their handed-over policies with the task's measurement tool. The starter's PPO was far from the target after five minutes. Mimic, which differentiates through a fused physics engine, trained at about one update per second; InstantTrack ran at about thirteen iterations per second and reached a better policy nominally and a clearly better one under perturbation, in the same wall-clock time.
Gradients through the simulator, measured. Our first plan was to build on Mimic and correct its gradient. We measured, at an untrained policy, how the simulator's pathwise action gradient compares with a finite-difference estimate of the gradient of the expected return under action noise. In our development measurement the two agreed in direction only roughly (median cosine about 0.8) and the pathwise gradient was more than a hundred times smaller in magnitude. That is the stiff-contact behaviour reported for contact-rich differentiable simulation, where an adaptive-horizon actor-critic has been proposed to avoid differentiating through stiff transitions. We wrote corrections on the Mimic base, among them a likelihood-ratio term added to the pathwise gradient, and a version whose score term is weighted by the difference between noisy and noise-free returns as a control variate. The control-variate prototype crashed at start-up, and none of these corrections was measured. Shortening Mimic's gradient horizon to 32 steps helped a little in a short run; 16 steps diverged. With InstantTrack ahead of Mimic in both speed and robustness in our runs, we read the measurement the other way: a learned smooth model avoids the problem the simulator's gradient has, and we moved to InstantTrack as the base.
Changes to InstantTrack we rejected. Each was compared with an unmodified InstantTrack run of the same length.
- A shorter imagination horizon (24 or 16 steps instead of 32), to reduce world-model bias as the adaptive-horizon idea suggests, lowered the nominal return; the critic bootstrap does not make up for the shorter model rollout.
- Running the failure-seeking reset sweep under randomized dynamics and noise, so that resets concentrate where the policy fails under perturbation, lowered both returns.
- An ensemble-disagreement penalty in imagination, with a second world model, cost about a third of the iteration rate; a first comparison suggested a gain under perturbation, which a more careful repeat showed to be noise, with the ensemble worse.
- Training with pushes collapsed with our graph-captured collection, which we attribute to a bug in our push sampling under graph capture; an eager, gentler version gave no gain, and the unmodified policy already survived the perturbed measurement almost always.
The contact-mode mixture. Reading the world-model code, we found the contact-mode option implemented and off in the main configuration. In our first comparison, after ten minutes of training, it raised the nominal and perturbed returns by about 0.02 each, at a slight cost in iteration rate. In longer development runs the gap shrank but kept its sign: in the agent's measurements after 2000 s the nominal return was 0.8726 against 0.8652 and the perturbed return 0.8098 against 0.7980, with every perturbed episode completed against 97% for the unmodified recipe. On the other motion library, after 1200 s, the returns were level (0.9059 against 0.9071 nominally).
Two refinements did not survive. Supervising the contact logits with the true foot contact, at weights 0.1 and 0.02 of the world-model loss, lowered the perturbed or the nominal return in both cases, so the modes work better as a free gating than as a contact detector. Training the world model on windows of 16 steps instead of 8 lowered the perturbed return markedly. The submission is therefore InstantTrack with the unsupervised mixture and nothing else; we checked that it runs end to end through the task's own training entry point before finishing.
Limitations
- The method is one constructor argument. The mixture world model is InstantTrack's own implementation; we did not design it, only established in development that switching it on helps and that several natural extensions do not. The contribution is an empirical finding about an existing option, not a new mechanism.
- The evaluation does not show the gain we selected it for. Our development gain was in the end-of-training policy; on Small (return) we are level with InstantTrack, slightly above it only on held-out recordings, and on Large (return) below it. What we gain is time to target on Small (time) and Large (time), and a single run per setting cannot tell us how much of that is the mixture and how much is run-to-run variation.
- We never measured the mechanism. The comment in our code says that the mixture cuts the world model's prediction error at contact transitions. We did not compare that error with and without the mixture, nor check whether the learned gates track the feet's actual contact; the failure of supervising them suggests they may not.
- Far from the best published method on two settings. On Large (time) BlinkMimic 2 reaches the target in 574.96 s against our 2,819 s, and on Large (return) its policy is clearly better on both measures; nothing in our change addresses whatever produces that gap.
- Our development comparisons were few. Most were one training run per arm, and our own repeat showed that a difference of about 0.02 in perturbed return could be noise. The rejected alternatives were rejected on that kind of evidence too, so some of them may deserve another look.
References
- Qiayuan Liao, Takara E. Truong, Xiaoyu Huang et al. (2025). BeyondMimic: From Motion Tracking to Versatile Humanoid Control via Guided Diffusion.
- John Schulman, Filip Wolski, Prafulla Dhariwal et al. (2017). Proximal Policy Optimization Algorithms.
- Qiayuan Liao, Yiyang Shao, Junfeng Long et al. (2026). SuperMimic: Scaling Humanoid Whole-Body Control with One Differentiable World Model. CoRL.
- Fuyi Chen (2026). BlinkMimic: Training a Humanoid Motion Tracker in Minutes on a Single GPU.
- Nico Bohlinger, Jan Peters (2026). XMimic and XSoma: Learning Humanoid Motion Tracking and Locomotion in Under a Minute.
- Weyl Lu, Yubei Chen (2026). $\nabla$Mimic: Ultra-Efficient Humanoid Control with Differentiable Simulation.