Many tasks. Minutes each.
All trained with ∇PO and the NablaEngine differentiable simulator, on one GPU.
Minutes from the first update to each task's success criterion, mean over seeds. Velocity tracking: all 3 seeds meet the criterion within 3 min. Motion tracking: the first evaluation at which all 3 seeds have 0 falls on the 40 LAFAN1 clips; mean return 0.872, above SuperMimic’s reported 3-hour score of 0.866. BONES-SEED: median over 6 seeds at 12.4 min (16.5 failed motions, return 0.954). Approach, sit, stand up: an approach policy and a sit-and-stand skill joined by a learned handoff, one seed; 95% of 1,024 episodes from 1–3 m at any facing end in a natural sit, and every sit stands up again. Climb with hands: fine-tuning the terrain tracker. Climbing stairs with a depth camera: distillation time, one seed; 95% of the training stair courses passed. GPUs: A100 (joystick + tracking), RTX PRO 6000 (tracking, multi-terrain, HOI; BONES-SEED trained on a B300, converted at the measured time per update), RTX PRO 6000-equivalent time (climb with hands; sit and stand, trained on a B300; depth-camera stairs).2
Not just humanoids.
Sixteen standard control benchmarks, the same method on every robot. All trained on one V100, a 2017 GPU.
16 of 16 reach 80% of peak return faster than PPO · 14 of 16 highest final return · 16 of 16 ahead of SHAC (and of AHAC on all 15 it ran)
Choose a task for its full comparison.
Minutes to 80% of peak return, on one V100
Final return
Final return: mean over seeds of 10 deterministic episodes in the original simulator. Minutes: V100 training time until the median seed reaches 80% of R*. Some tasks use settings tuned from the unified recipe. All methods trained in NablaEngine; SHAC and AHAC with their published settings. AHAC and FastTD3 were not run on every Brax task.3
Whole-body motion tracking · LAFAN1 · 40 clips · one GPU
∇Mimic
1.2 min to reach return
Training time to reach it
Full-clip return over all 40 LAFAN1 clips, scored in MuJoCo Warp; after a fall the rest of the clip scores zero. ∇PO: the current recipe, 3 seeds; plateau 0.938. PPO: BeyondMimic's configuration, 3 seeds; plateau 0.782. InstantTrack v1.4 and SuperMimic (official code): 3 seeds each. All trained on one RTX PRO 6000. The two middle levels are SuperMimic's reported 3-hour score and InstantTrack's plateau.1
A blind policy, 30 seconds of dance.
5 cm off at the end.
The policy never observes where it is relative to the reference. With the reference drawn on top of the robot, every centimetre of drift shows. PPO, trained 6 hours, ends 1.9 m away.
Grey: the simulated robot; blue: the reference. Anchor drift: the robot's torso against the reference torso. Body motion error: mean position error of 14 tracked bodies. PPO: BeyondMimic's configuration.
Scaling up
129,418 motions, 263 hours.
Learned in 12 minutes.
BONES-SEED holds 107× the motion of LAFAN1. One policy tracks all of it: every one of six seeds is below 20 failed motions within 12.4 minutes.
We use a hybrid method here: a learned world model picks what to practice, and NablaEngine’s exact gradients teach the policy.
The full BONES-SEED library (129,418 motions), each motion played to the end in MuJoCo Warp; failed: motions with a fall. Lines: median over seeds; bands: the middle half. ∇PO: 6 seeds. BlinkMimic 2: its code and released configuration, 3 seeds; its released run ends at 6,500 iterations, and we continued it to 20,000 (rings). Minutes from the first update on one RTX PRO 6000 (∇PO trained on a B300, converted at the measured time per update). SuperMimic: read from its paper's figures (one H100, its 129,514-motion benchmark); 25 failed after 3 h, as stated in its text. BlinkMimic 2 (reported): 17 failed motions (mean of its 3 seeds) and tracking score 0.946 after 15.5 min on one RTX 4090, from its README; its failed count varies widely from run to run: 12 reruns of its recipe on our GPU (4 per seed) end at 12.6 min of training with 12 to 33 failed motions for the averaged policy its recipe releases (checkpoints 4500–6500; median 22.5) and 17 to 46 for the last checkpoint alone (median 27.5); only 4 of the averaged and 3 of the last-checkpoint policies get below 20; its released weights score 17 to 23 on our evaluator. BlinkMimic 2 multiplier: failed motions when its recipe ends (12.6 min), the median of its 12 averaged policies against the median of 16.5 for ∇PO’s averaged (EMA) policy over 6 seeds at 12.4 min, the last evaluation before that. SuperMimic and reported multipliers: minutes to fewer than 20 failed motions, 12.4 for ∇PO (seed median).
Trained in simulation.
Runs on a real robot.
One ∇Mimic policy, deployed on a physical Unitree G1 without any finetuning.
1policy
for every motion, trained only in simulation
0finetuning
sim-to-real with no real-world data
0falls
in 7 runs of 5 LAFAN1 motions
29-DoF Unitree G1, policy at 50 Hz, a slack safety strap. Backgrounds blurred.
How it learns
Spectrum of gradients.
∇PO backpropagates the return through the simulator itself. Its backward pass takes each step’s derivative from any source, so the three can be compared head to head.
Exact adjoint
- forward
- the simulator
- backward
- its exact derivative (NablaEngine)
+0.069 exact
+0.037 world model
return gained per 1,000 updates, 0.80 → 0.86The catch: exact gradients can explode in single samples.
Analytic surrogate
- forward
- the simulator, bitwise exact
- backward
- shaped where the exact one is zero or blows up
A pull toward contact, added to the backward pass only: the motion is unchanged, the gradient sees the object before the robot touches it.
Learned world model
- forward
- a network
- backward
- the network’s derivative
Cosine with the exact gradient, at update
Close in direction, yet each update teaches less: +0.037 return per 1,000 updates, against +0.069 exact.
Return per 1,000 updates: 40-clip LAFAN1, over the return band 0.80 to 0.86. Histogram: per-sample action-gradient norms in one batch of a SHAC run, before clipping, at the update where its guard stops training; grey bars past the dashed line are the samples ∇PO clips. Cosines: median per-sample cosine with NablaEngine's exact gradient during velocity-tracking training; both world models use InstantTrack's architecture. Surrogates: humanoid box pushing and the terrain height scan.
The fix
Three ideas tame the gradients.
1Per-sample clipping
Each sample is clipped inside the backward pass, so a spike is cut before it spreads.
2Action-target regression
Gradients become fixed-size action targets; the policy regresses onto them for several steps.
3Trust region by construction
Normalization and clipping cap every step: no KL penalty, no line search. δ is tuned with exact branch runs on the deterministic NablaEngine.
Ablations on 40-clip LAFAN1: 3 seeds per arm, about 54 minutes each. Hold 0.866: the first evaluation after which the return stays at or above 0.866; 13.9 min for the full recipe, 21.4 with one regression step, 20.0 without the RMS normalization. δ = 0.03 rad.
Economics of gradients
Exact gradients cost more per update but carry more learnable signal. World-model gradients are the opposite.
A world model wins only while exact gradients are slow. NablaEngine makes them fast.
40-clip LAFAN1 on one RTX PRO 6000 (exact gradient 5 seeds, world model 3 seeds), scored in NablaEngine. Return per 1,000 updates: over the return band 0.80 to 0.86. Time per update: 0.249 s exact, 0.162 s world model. MuJoCo Warp (est.): the exact-gradient run at 4.7 times the training time.
Powered by
NablaEngine
A natively differentiable GPU simulator for embodied AI: dynamics and gradients aligned with MuJoCo Warp. More robots supported.
Forward step · ms, log scale
Gradient of a step · ms
2.3M
humanoid steps per second with gradients on one RTX PRO 6000: 13 hours of robot motion every second
4.7×
faster ∇PO training than on MuJoCo Warp
≈0.001
return change when policies trained in NablaEngine are scored in MuJoCo Warp
0
run-to-run difference: bitwise deterministic
Time per 20 ms control step for 4096 Unitree G1 worlds. NablaEngine, MuJoCo Warp 3.17 and "MJX, same model" share one model and solver with all 502 contact pairs; the other rows use each simulator's own G1 model and are for reference. MuJoCo C: float64 on a 16-thread CPU. Gradient: the forward step with its tape plus the adjoint; MuJoCo Warp's adjoint comes from an open pull request. The 4.7× is the wall-clock time to 4,000 updates of the same ∇PO run on the two simulators.6
A differentiable simulator that works out of the box.
from nablaengine import jax_ffi # one control step: advance 20 ms of simulated time (4 × 5 ms substeps) qpos1, qvel1, warm1 = jax_ffi.step(qpos, qvel, warm, ctrl, friction, com) loss = lambda ctrl: (jax_ffi.step(qpos, qvel, warm, ctrl, friction, com)[1] ** 2).sum() g = jax.jit(jax.grad(loss))(ctrl) # analytic adjoint
from nablaengine import torch_ffi # one control step: advance 20 ms of simulated time (4 × 5 ms substeps) ctrl.requires_grad_() qpos1, qvel1, warm1 = torch_ffi.step(qpos, qvel, warm, ctrl, friction, com) (qvel1 ** 2).sum().backward() # ctrl.grad: analytic adjoint
Drop-in for JAX and PyTorch.
jax.jit, jax.grad, jax.vjp and lax.scan rollouts; torch autograd, CUDA graphs and torch.compile. The same results from both, bit for bit. Any batch size.
Ready in seconds.
One setup script; the CUDA library compiles once on first use, in about 15 s, and is cached.
Runs on the GPUs you have.
Measured on RTX 5090, RTX PRO 6000, B300 and H100; also runs on V100 and RTX 3090. CUDA 12, compute capability 7.0+.
Questions
What is an environment gradient?
The derivative of the next state and reward with respect to the current state and action. ∇PO chains these derivatives backwards through a window of simulated steps to get the gradient of the return with respect to every action, instead of estimating it from returns alone as PPO does.
Which gradients does ∇PO support?
Any step derivative: the simulator's exact adjoint (NablaEngine by default), analytic surrogates, or a learned world model (∇PO-WM).
How is it different from earlier first-order methods?
It keeps the short-window objective with a critic, but clips every sample inside the backward pass instead of the whole batch, and turns gradients into action targets of a fixed size that the policy regresses onto for several epochs. On humanoid tracking, SHAC with its published guard stops within 5 minutes; with the guard relaxed it levels off at 0.817 after 3 hours. ∇PO passes 0.866 in 5.3 minutes.
Citation
∇PO: Ultra-Efficient Policy Optimization Through Environment Gradients
1UC Davis
@article{lu2026nablapo,
title = {$\nabla$PO: Ultra-Efficient Policy Optimization Through Environment Gradients},
author = {Lu, Weyl and Zhu, Gao and Lai, Weijie and Xia, Zaishuo and Chen, Yubei},
journal = {arXiv preprint arXiv:2611.39503},
year = {2026}
}∇PO is pronounced “Napo” (or “Nabla-P-O”). Paper: arXiv. Code: coming soon.