$\nabla$PO: Ultra-Efficient Policy Optimization Through Environment Gradients

Weyl Lu, Gao Zhu, Weijie Lai, Zaishuo Xia, Yubei ChenarXiv 2026

TL;DR

Training a humanoid robot to walk, dance, and lift boxes in simulation usually takes hours or days of brute-force trial and error because standard algorithms ignore the underlying laws of physics. This paper introduces $\nabla$PO (pronounced "Napo"), a framework that differentiates directly through physics engines—taming notorious "exploding gradients" and speeding up simulator derivatives by an order of magnitude. The result? Multi-hour humanoid learning collapses into minutes on a single GPU, and the policies deploy straight onto a real robot without fine-tuning.

What Problem Does This Paper Address?

Imagine teaching a blindfolded friend to hit a golf ball by only shouting "warmer" or "colder" after the ball lands. That is essentially how standard reinforcement learning (like PPO) trains robots: it treats the physics simulator as a black box, nudging actions at random and seeing if the scalar reward goes up. Even with massively parallel GPU simulators, teaching a humanoid whole-body control takes hours to days of compute.

Why not just take the derivative of the physics simulator (first-order optimization) so the robot knows how changing a joint torque changes its trajectory? Two roadblocks have historically killed this idea on legged robots:

  1. Exploding contact gradients: Rigid-body contacts (like a foot grazing the ground) create discontinuous jumps in force. Backpropagating through stiff contacts produces massive gradient spikes that wreck training.
  2. Slow simulators: Differentiable physics engines are typically orders of magnitude slower than forward-only simulators.

Because of this, recent work abandoned true physics gradients in favor of differentiating through smooth, learned world models (neural networks that approximate physics). The authors ask: what happens if we actually make true physics gradients both stable and blisteringly fast?

The spectrum of environment gradients—from true physics to learned surrogates—and how $\nabla$PO drastically cuts humanoid training times.

Methods

Following prior short-horizon actor-critic work (like SHAC), $\nabla$PO bounds backpropagation depth by unrolling short $H$-step simulation windows and using a critic network to estimate rewards beyond step $H$. On top of this standard foundation, $\nabla$PO introduces three core pillars:

  • Per-sample gradient clipping: Instead of clipping the global norm of a batch of gradients, $\nabla$PO clips each individual sample's action gradient relative to the batch median (specifically, $3\times$ the median). This surgically caps rare contact spikes without squashing the rest of the batch.
  • Multi-step action-target regression: Computing physics derivatives is expensive, so taking just one policy step per batch wastes compute—yet taking multiple raw gradient steps quickly strays outside the region where linear approximations hold. $\nabla$PO converts clipped gradients into fixed target displacements in physical joint units (e.g., radians) and trains the actor network to regress toward those targets over several minibatch steps. As the policy approaches the target, the step size naturally shrinks, creating an automatic action-space trust region without complex KL-divergence penalties.
  • NablaEngine: A custom, open-source GPU physics engine with fused kernels that evaluates exact MuJoCo contact dynamics $5\times$ faster and exact step derivatives (adjoints) $8\text{–}12\times$ faster than MuJoCo Warp.

Because $\nabla$PO's backward pass is modular, it also accepts learned world models and analytic surrogates (which keep forward physics exact, but inject a soft "force field" derivative into the backward pass so the robot gets gradient signals before touching an object).

Datasets

No new datasets are introduced, though the authors evaluate across an extensive suite of existing benchmarks:

  • LAFAN1: All 40 human motion-capture clips (2.45 hours of walking, dancing, and fighting/sports motions) retargeted to a 29-DoF Unitree G1 humanoid.
  • Standard Control Benchmarks: 12 DeepMind Control (DMC) tasks (from MuJoCo Playground) and 4 Brax locomotion tasks.
  • Custom Humanoid Skills: Four simulated task environments on the Unitree G1: omnidirectional velocity tracking, unified joystick-and-motion control, 10-type terrain traversal (stairs, gaps, pits, slopes), and humanoid-object interaction (walking to, lifting, and carrying a 2 kg box).

Key Insights and Ideas

  • Contact gradients aren't biased—they're just heavy-tailed: Conventional wisdom says stiff contact gradients are fundamentally noisy and unusable. Controlled tests reveal that 99.9% of samples in a batch are completely well-behaved! Failures happen because single outlier samples hit grazing impacts and spike to $10^9\text{–}10^{10}\times$ the batch median. Standard global clipping sees that one monster spike and scales the other 99.9% of useful gradients down to zero. Median-based per-sample clipping fixes this instantly.
  • True physics beats smooth approximations (per update): Once outliers are clipped, exact simulator derivatives learn faster per policy update than any surrogate. Strong learned world models work well precisely because their gradients align closely with true physics (reaching 0.94 cosine similarity)—and they even share the same heavy-tailed spikes over multi-step rollouts, meaning world models also get a boost from $\nabla$PO's clipping!
  • It's the math, not just the engine: Running standard PPO inside the ultra-fast NablaEngine speeds up PPO by $2.9\times$, yet it still takes 5 hours to match what $\nabla$PO achieves in 1.5 minutes. The $200\times$ speedup genuinely comes from first-order physics gradients.

Key Results

Normalized return vs. training time on one GPU, showing $\nabla$Mimic outpacing PPO and world-model baselines.

Normalized return vs. training time on one GPU, showing $\nabla$Mimic outpacing PPO and world-model baselines.
  • 40-clip Humanoid Motion Tracking ($\nabla$Mimic): On a single RTX PRO 6000 GPU, one policy learning all 40 LAFAN1 clips matches a 6-hour PPO run's plateau in 1.5 minutes ($200\times$ faster), SuperMimic's reported 3-hour score in 5.3 minutes ($34\times$ faster), and InstantTrack's 2.6-hour plateau in 17 minutes ($9\times$ faster).
  • Higher ceiling & stability: $\nabla$Mimic converges to a higher normalized return (0.929 vs. 0.890 for InstantTrack), achieves zero falls across all 40 clips, and reduces blind root-position drift over 200+ second clips to 0.15 m ($2.1\text{–}7.6\times$ lower than baselines).
  • Zero-shot Sim-to-Real: Checkpoints deploy directly onto a physical Unitree G1 humanoid, executing dynamic walks, dances, and fight sequences with zero falls and a $3.9^\circ$ joint RMS error—no real-world fine-tuning required.
  • Generalization in minutes: Across 16 DMC and Brax benchmarks, $\nabla$PO hits 80% of peak return faster than PPO on 14 of 16 tasks, gets the highest final score on 13 of 16, and beats prior first-order methods (SHAC, AHAC) on every single task. On the G1 humanoid, it learns velocity tracking in $\le 3$ min, 2 kg box lifting in 9–10 min, unified joystick + motion tracking in 11 min, and 10-terrain traversal in 19–22 min on one GPU.

Limitations and Future Work

  • Scene generality: NablaEngine is currently engineered for articulated robots (like humanoids manipulating objects) and standard control benchmarks rather than arbitrary, complex scenes.
  • Sparse rewards: Because pathwise derivatives carry zero signal until a non-zero reward is encountered, sparse-reward tasks must lean heavily on the critic network and longer unroll windows (e.g., $H=128$).
  • Onboard perception: While flat-ground motion tracking deployed zero-shot to hardware, the terrain traversal and box-lifting policies rely on simulated height scans and ground-truth object states. Connecting these policies to real onboard cameras and sensors is left for future work.

Summary updated

BibTeX
@misc{lu2026nabla,
  author = {Weyl Lu and Gao Zhu and Weijie Lai and Zaishuo Xia and Yubei Chen},
  title = {{$\textbackslash\{\}nabla$PO: Ultra-Efficient Policy Optimization Through Environment Gradients}},
  year = {2026},
  eprint = {2611.39503},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.39503},
}
Figure