Research
$\nabla$Mimic: Ultra-Efficient Humanoid Control with Differentiable Simulation
Most humanoid motion-tracking policies are trained with zeroth-order methods such as PPO, which treat the simulator as a black box and therefore need enormous numbers of samples.

- arXiv
- 2610.41654 · Preprint · not peer-reviewed
- Published
- 2026-10-30
- Authors
- Weyl Lu, Yubei Chen
In plain words
Most humanoid motion-tracking policies are trained with zeroth-order methods such as PPO, which treat the simulator as a black box and therefore need enormous numbers of samples. First-order methods that differentiate through the simulator's dynamics should in principle extract more information per sample, but on contact-rich whole-body control their gradients explode, and prior first-order methods such as SHAC fail.
AI summary
Overview
Research area: Robot learning for humanoid whole-body motion tracking, at the intersection of reinforcement learning, differentiable physics simulation, and GPU systems engineering.
Technical level: Advanced. The paper assumes familiarity with policy-gradient methods (PPO, SHAC), backpropagation through time, actor-critic critics, and contact-dynamics solvers.
Scope (one sentence): The paper argues that exact gradients from a purpose-built differentiable simulator, once extreme per-sample gradients are clipped and the simulator's adjoint is made cheap, can train a single Unitree G1 tracking policy on all 40 LAFAN1 clips faster than a state-of-the-art world-model method that relies on surrogate gradients.
What This Paper Is About
Most humanoid motion-tracking policies are trained with zeroth-order methods such as PPO, which treat the simulator as a black box and therefore need enormous numbers of samples. First-order methods that differentiate through the simulator's dynamics should in principle extract more information per sample, but on contact-rich whole-body control their gradients explode, and prior first-order methods such as SHAC fail. The paper's goal is to make exact simulator gradients usable at the scale of thousands of parallel environments, and to make computing those gradients cheap enough that first-order training wins on wall-clock time, not just on sample count.
Key Contributions
- An analysis of exact versus surrogate gradients for policy learning. The authors characterize why exact contact gradients fail (rare unbounded samples near non-differentiable contact events, accumulating along long backpropagation windows) and why surrogate gradients from a learned world model succeed (bounded everywhere, cheap, but biased because they describe a different system).
- ∇Mimic, a first-order policy learning method that is stable on exact contact gradients at the scale of thousands of parallel environments, built from two paired components — per-sample median-relative clipping at every step of the backward pass, and multistep regression onto gradient-derived action targets with a step size fixed in radians — each ablated.
- NablaEngine, an open-source differentiable GPU simulation engine for the Unitree G1 that computes MuJoCo's full contact dynamics (including all 502 contact pairs and the Newton constraint solver) with fused per-world kernels and the adjoint of a whole control step as a single megakernel, with analytic gradients that match float64 finite differences.
- Humanoid motion tracking at the level of the world-model state of the art without a world model, on one GPU: a LAFAN1 score of 0.82 in 20 minutes instead of 1.2 h.
Main Findings
- Exact gradients are unbounded near contact events. Measured on the G1: when the feet nearly touch, the derivative of the self-contact normal grows as the inverse of their distance, and on training windows the gradient grew by up to 4.9 × 10^21 through a window, with 32 rows not finite. For nearly parallel capsules (crossed feet), one control step amplified the gradient by up to 3.6 × 10^8, and repeated steps overflowed to non-finite values in 40 of 172 such states.
- Exact and surrogate gradients agree on the bulk, differ in the tail. Along the same trajectory, the two agree closely on most samples (Spearman correlation of the norms 0.94–0.95, median cosine 0.90–0.91 at two checkpoints) and almost perfectly on small gradients (cosine 0.96–0.98 for the smallest 10%), but for the largest 0.1% of exact gradients the world model's gradient has only 0.35–0.43 of the norm (median) and a median cosine of 0.39–0.67, sometimes pointing the opposite way. The world model damps the tail (99.9th percentile 16–21 versus 24–31 times the median).
- One bad sample, not the batch, breaks first-order training. SHAC's per-sample action gradients stay flat at the median, 99th and 99.9th percentiles, but in the halting update the largest per-sample gradient is 2.2 × 10^9 to 1.8 × 10^10 times the median. All 3 SHAC seeds on NablaEngine hit the guard within 0.06 h (746–1568 updates) at a return of 0.37 ± 0.09, and on MuJoCo Warp within 0.36 h.
- Per-sample clipping makes exact gradients usable. Without it, one of three seeds diverges after 0.54 h and the other two reach 0.562, against 0.855 for the control. Clipping touches 9–21% of samples per update; in an instrumented ∇Mimic run the largest per-sample gradient is typically 10^4 to 10^5 times the batch median, and over about 92,000 updates (3 seeds) no gradient was non-finite.
- Clipping and multistep regression bound each target in physical units. Together they cap every sample's per-joint RMS change at 2√2 κ δ (0.13 rad with their settings); without clipping, a single sample with norm G moves its target by roughly δ√N (about 15 rad for their batch size) while the rest barely move. In practice the typical environment's setpoints change by 0.002 to 0.01 rad per update, with a maximum of 0.11 rad over a whole run.
- Component ablations (LAFAN1, 3 seeds, matched wall clock, residual-action control 0.867): no per-sample clipping, all 3 seeds diverged; no multistep regression (one Adam step per window), −0.044; H = 32 instead of 64, −0.042; continued windows instead of replay starts, +0.018.
- The engine's gradient is cheaper than a forward step. On an RTX PRO 6000 a forward step takes 1.21 ms for 4096 worlds and a step with its gradient 1.78 ms, so the full adjoint adds 0.57 ms; the forward step is 4.8 × faster than MuJoCo Warp and the step-with-gradient 11.5 × faster than the MuJoCo Warp adjoint pull request. One GPU simulates 3.39 M control steps per second, about 18.8 h of robot motion per second of wall clock.
- Wall-clock result on all 40 LAFAN1 clips: ∇Mimic reaches SuperMimic's score of 0.82 in 20 minutes instead of 1.2 h, and 0.874 in 1.8 h. Residual actions reach 0.82 in 0.34 h versus 0.50 h with absolute actions. PPO trained on the same engine stays below 0.82 after 6 h.
- Fewer updates, not just cheaper ones. ∇Mimic reaches 0.82 after 3.2k updates, about 1/13 of the roughly 41k iterations SuperMimic needs (estimated from its paper). Per-update cost is still higher than a world model's: 0.37 s on NablaEngine and 1.63 s on the MuJoCo Warp adjoint, against about 0.1 s per SuperMimic iteration on an H100.
- Exactness beyond the bulk does not help. Making the derivative of force-saturated actuators exact changed about 20% of per-state gradients but did not improve learning (−0.023 after 1 h over 3 seeds, within two seed standard deviations), and made no difference together with the self-contact rule or after 3 h.
- The components are specific to exact gradients. Applied to world-model gradients of a public SuperMimic reproduction, per-sample clipping gave 0.80 after 2.7 h versus 0.79 without, and clipping plus action targets together collapsed after 1.5 h (one seed each).
Methodology in Plain English
The authors start from a simple reframing: SuperMimic's speedup came from using derivatives of the dynamics, and the world model was the price paid to make those derivatives smooth and cheap. They ask whether that price can be avoided by buying the two properties separately.
Buying boundedness cheaply. Instead of replacing the simulator with a smooth surrogate, they clip each individual environment's action gradient to a fixed multiple (κ = 3) of the batch median norm, at every step of the backward pass. The median is chosen because it is the one statistic a single exploding sample never moves, so the threshold tracks the gradient's scale automatically and needs no absolute value tuning. The informative bulk of the batch is left exact; only the 9–21% of samples in the tail are biased.
Spending each expensive window well. Every exact gradient costs a simulated window plus its adjoint, so they convert the clipped gradient into a target action whose step size is fixed in radians (scaled by the batch RMS of the gradient) and fit the policy to those targets with several Adam steps. This is PODS-style target regression; the combination with the clipping bound guarantees no single sample's target can move more than 0.13 rad.
Buying cheapness with engineering. NablaEngine specializes MuJoCo's dynamics to one robot, maps each world to one warp, and keeps state in shared memory and registers. The backward pass is derived by hand for every stage, differentiating the constraint solve through its optimality conditions rather than the solver's iterations, with discrete decisions (contact set, active constraints, actuator clamps) held fixed. The adjoint of an entire control step runs as a single megakernel. Near the two geometry events where the true derivative is unbounded, the engine freezes the geometric derivative below a small threshold (1 mm, about 2°).
Experimental setup. One policy is trained on all 40 LAFAN1 clips retargeted to the G1 (264,705 frames, 2.45 h of motion), on a Unitree G1 with 29 actuated joints under the mjlab model, at 50 Hz control with 4 physics substeps of 5 ms. The policy observes a 10-frame history of noisy proprioception, the next 10 reference frames, and the torso anchor orientation relative to the robot's. Each clip is evaluated once from its first frame on MuJoCo Warp with a deterministic actor and no randomization or noise, scoring the full-clip normalized return as defined by Liao et al.
Why This Matters
Impact on research. The paper reframes a live debate — world models versus simulators — as a question about gradient tails and compute cost rather than about bias. It shows that "exact gradients explode" is a statement about a handful of samples per batch, not about the batch as a whole, which makes a whole class of previously abandoned first-order methods viable on contact-rich tasks. It also delivers open-source infrastructure (NablaEngine and ∇Mimic) other groups can build on.
Real-world applications:
- Whole-body tracking policies that serve as the low-level layer for humanoid teleoperation, motion generation, and downstream task policies.
- Rapid prototyping of behaviors from retargeted human motion capture, where a tracker can be trained in minutes rather than hours of GPU time.
- Contact-rich manipulation and locomotion research that needs derivatives of rigid-body contact dynamics, not just black-box rollouts.
- Sim-to-real legged and humanoid control pipelines that currently depend on smoothed-contact surrogates or simplified backward passes.
Industry relevance. Training cost is a practical bottleneck: the related SONIC system reportedly scales PPO tracking to 700 h of motion capture and 21k GPU-hours (128 GPUs for 7 days). An engine that simulates 18.8 h of robot motion per second of wall clock, and an algorithm that reaches a strong tracking score in 20 minutes on one GPU, changes the economics of iterating on humanoid skills. Note that hardware deployment and sim-to-real transfer are not reported in the available text.
Future Directions
- Sparse-reward and long-horizon tasks. The paper is explicit that motion tracking suits exact gradients because its reward is dense, and that with sparse rewards the window-length trade-off between critic bias and accumulated extreme gradients may mean first-order methods do not pay off.
- Removing the replay buffer. The authors already observe that simply continuing each window from where the previous one ended ("no replay starts") raises return by about 0.02 in both recipes, and call the simpler data path the better one; adopting it as the default is a natural next step.
- Closing the per-update cost gap. Even on NablaEngine an update takes 0.37 s against roughly 0.1 s for a world model iteration on an H100, so further adjoint or kernel work could widen the wall-clock margin.
- Extending beyond one robot and beyond G1 geometry. NablaEngine is specialized to the Unitree G1 and its two problematic geometric events; whether the same hand-derived adjoint and freezing rules generalize to other morphologies, contact models, or dexterous hands is left open.
Target Audience
Robotics and RL researchers working on humanoid whole-body control, physics-based character animation, or differentiable simulation; systems engineers who build GPU simulators for learning; and practitioners who train motion-tracking policies at scale and care about GPU-hours. Readers interested primarily in hardware deployment or real-robot validation will find that material outside the scope of the content available here.
Authors’ abstract
Robot policy learning is dominated by zeroth-order methods such as PPO, which treat the simulator as a black box and pay for it with enormous sample counts. First-order policy learning differentiates through the dynamics, but on contact-rich whole-body control it has rarely worked: its gradients explode. A recent world-model method showed that derivative information can make humanoid motion tracking far more efficient, using surrogate gradients of a learned model. We show…
The full abstract on arXivRelated papers
- Enfold: Folding World Model Imagination into Predictive Representations for Ultra-Efficient Embodied Control 2026-07-29 · cs.RO · Key terms of the title in common
- SuperMimic: Scaling Humanoid Whole-Body Control with One Differentiable World Model 2026-10-20 · cs.RO · Key terms of the title in common
- HIPC: Humanoid Iterative Planning and Control via Goal-Conditioned Motion Closure 2026-10-30 · cs.RO · Key terms of the title in common
- DiffWBC: Unlocking Steerable General Humanoid Motion Tracking via One-Step Diffusion Whole-Body Control 2026-10-30 · cs.RO · Key terms of the title in common
- Differentiable Iterative Learning Control for Black-Box Position-Commanded Manipulators 2026-10-31 · cs.RO · Key terms of the title in common