Research
Open-DiffLoco: Open-Source Differentiable Learning for Deployable Blind Quadruped Locomotion
Conventional model-free reinforcement learning for legged locomotion (notably PPO) works, but it demands complex reward engineering, long training times, and substantial compute.

- arXiv
- 2608.02069 · Preprint · not peer-reviewed
- Published
- 2026-08-03
- Authors
- Martin Opat
In plain words
Conventional model-free reinforcement learning for legged locomotion (notably PPO) works, but it demands complex reward engineering, long training times, and substantial compute.
AI summary
Overview
Research area: Legged robotics / reinforcement learning for locomotion, specifically differentiable simulation (first-order gradient policy learning) applied to blind quadrupedal control.
Technical level: Advanced. The paper assumes familiarity with actor-critic RL, backpropagation through simulator dynamics, short-horizon truncated rollouts, and Bellman-gradient arguments; it includes formal derivations and an unboundedness proof in the appendices.
Scope: A single-author framework paper (Martin Opat, University of Groningen) presenting an open-source, MJX-based implementation of the Short-Horizon Actor-Critic algorithm, a critic-Jacobian supervision extension called JAVE, and a hardware demonstration on a Unitree Go2.
What This Paper Is About
Conventional model-free reinforcement learning for legged locomotion (notably PPO) works, but it demands complex reward engineering, long training times, and substantial compute. Differentiable simulation is far more sample-efficient because it backpropagates through the physics, yet almost all existing demonstrations of deployable policies come from closed-source, custom-built frameworks, and published results mostly cover low-speed locomotion (the paper notes existing literature demonstrates policies at speeds less than or equal to 1 m s^-1). This paper builds an open-source framework in the mainstream MuJoCo XLA ecosystem that trains a blind quadruped policy — no exteroceptive terrain sensing, no privileged base linear velocity in the actor, no reference trajectories — and shows it transfers to a physical Unitree Go2.
Key Contributions
- Open-source differentiable framework. The first open-source framework (to the author's knowledge) for training deployable locomotion policies with differentiable simulation, implementing SHAC in MuJoCo XLA, configured through a YAML entry point with interchangeable algorithm and network modules.
- JAVE (Jacobian-Augmented Value Estimation). An algorithmic extension to SHAC that supervises the critic's Jacobians, not just its values, because the actor gradient at the truncation boundary depends on the value gradient rather than the value estimate alone.
- Simplified rewards and motion autonomy. A minimal set of differentiable reward terms (velocity tracking, yaw-rate tracking, height, vertical velocity, upright, joint deviation, action rate, action magnitude, roll/pitch angular velocity) suffices to discover stable gaits — without gait-pattern rewards, airtime rewards, fixed-frequency trot formulations, or reference trajectories.
- Minimalist observation space plus real-world validation. Removal of privileged observations including base linear velocity, with hardware evaluation of omnidirectional velocity tracking, uneven terrain, and external physical disturbances on a Unitree Go2.
Main Findings
- Hardware tracking accuracy: On the physical Unitree Go2, the deployed policy tracks omnidirectional velocity commands with root-mean-square error below 0.2 m (as the paper reports the figure) and reaches speeds above 1 m.
- Simulated speed ceiling: In simulation the policy's maximum achievable speed is 2 m; the fast speed profile shows a clear performance plateau at that value, and lateral commands were set to zero in that profile to prioritise high-speed forward motion.
- Training cost: Across the reported configurations, training uses under 6 GB of VRAM on a single NVIDIA GeForce RTX 5080 GPU (16 GB available) and completes in approximately 20–60 minutes, with as little as ~20 minutes.
- Sample efficiency: All three first-order-gradient methods (SHAC and JAVE at horizon 16 and 32) substantially outperform PPO in reward per environment step; the paper states FoG methods are approximately 100x more sample efficient than PPO.
- Per-iteration comparison: JAVE with horizon length 32 and PPO perform significantly better per iteration than the other FoG configurations with horizon length 16. Among FoG methods, JAVE with horizon 32 performs best on sample efficiency.
- PPO could not match the minimal reward setup: The author was unable to replicate the results using PPO's implementation in MuJoCo Playground under the same setup. The proposed explanation is that PPO's zeroth-order estimates have high variance but remain unbiased, so auxiliary shaping rewards are needed to densify the signal; analytical gradients supply a dense temporal signal directly.
- JAVE's benefit is early, not final: Compared with SHAC, JAVE shows improved early convergence across all objectives, more stable actor gradients, and lower tracking errors, permitting longer analytical horizons — but the gain is described as primarily visible in early training and gradient stability rather than a decisive final performance gain.
- Disturbance robustness: The same policy achieving speeds above 1 m during deployment withstands and recovers from strong physical disturbances, such as lateral pushes, and is robust to uneven terrain.
- Emergent gait diversity: The method can discover different gaits (e.g., trotting or galloping) depending on task requirements, though explicit transitions between learned gaits were not investigated.
Methodology in Plain English
The author treats the physics simulator as a "glass box" rather than a black box. Instead of estimating how good an action was by trial and error (as PPO does, through thousands of parallel environments), the framework differentiates directly through the simulation's dynamics equations, giving the policy a precise, low-variance signal about how each action changed the outcome.
Long backpropagation chains through contact-rich physics are numerically unstable, so the framework uses SHAC: it unrolls the simulator only a short distance (horizon 16–32), then substitutes a learned value function for the rest of the return. Training was done in MuJoCo XLA on a simulated Unitree Go2, with the control policy running at 50 Hz over physics stepped at 250 Hz, executing 5 simulation substeps per control action.
The reward function was deliberately stripped down to a minimal subset of differentiable terms taken from PPO's standard reward set — quadratic tracking of x velocity, y velocity and yaw rate, plus height, vertical velocity, upright, joint deviation, action rate, action magnitude, and roll/pitch angular velocity penalties. Because gradients are analytical and the framework uses over an order of magnitude fewer parallel environments than model-free RL, the rewards must be strictly differentiable, which is why step-function gait rewards were avoided rather than approximated.
Terrain variation was handled implicitly rather than with a mesh height field, which the author notes is slower and harder to keep differentiable in contact-rich MJX rollouts: slopes are represented by a per-episode tilted gravity vector, and local "bumps" as contact-scaled foot forces driven by a differentiated Ornstein–Uhlenbeck process, scaled by the simulator's normal contact force so disturbances act mainly during contact.
For hardware, a custom C++ stack runs fully onboard a Unitree Go2 EDU with a Jetson AGX Orin (64 GB), relying only on the unitree_sdk2 package with an optional ROS2 dependency for command input. Ground-truth velocity during the real-world test was computed by finite differences from poses recorded by a Qualisys camera tracking system, with commands logged as ROS2 messages.
JAVE, the algorithmic addition, addresses a subtler issue: the actor gradient depends not only on the critic's value but on the critic's local slope (Jacobian) at the truncation boundary, so a pointwise-accurate critic can still bias the policy update. JAVE adds a gradient-Bellman loss to the standard TD-λ value loss, weighting them with scalar coefficients, and builds the target using a learned one-step dynamics model that predicts only the critic-observation residual because the observation map is non-invertible.
Why This Matters
Impact on research: The paper argues that deployable differentiable-simulation locomotion has been gated behind closed-source, custom frameworks. Putting a working SHAC implementation into MJX — a mainstream, accessible simulator — lowers the barrier to reproduction and lets other groups build on and audit the pipeline. It also provides evidence that the elaborate auxiliary reward sets used in model-free pipelines are largely unnecessary when gradients are analytical and dense, and it isolates a specific failure mode (critic Jacobian error at the horizon boundary) with a proposed remedy.
Real-world applications:
- Quadruped inspection and monitoring in environments with uneven ground, where proprioception-only policies avoid dependence on exteroceptive sensing or state estimators.
- Search-and-rescue in disaster zones, a use case the paper cites for legged platforms generally.
- Agriculture, also cited by the paper as a legged-robot sector.
- Low-cost research and education: training completes in roughly 20–60 minutes on a single consumer-grade GPU with under 6 GB of VRAM, making iteration feasible without a compute cluster.
Industry relevance: For robotics companies, the practical claims are that a blind policy can be trained cheaply, deployed with a lightweight C++/ROS2 stack on commodity hardware (Unitree Go2 EDU plus Jetson AGX Orin), and tolerate pushes and rough terrain without a velocity estimator in the observation set. The honest caveats matter too: the author reports wall-clock training time remains less competitive than established frameworks such as RSL-RL, and per-environment-step compute cost is significantly higher because gradients must flow through the simulator.
Future Directions
- Gait transitions. The method discovers different gaits such as trotting or galloping depending on task requirements, but explicit transitions between learned gaits have not been investigated.
- Higher speeds. Training above 2 m remains difficult, and robust high-speed real-world deployment has not yet been fully achieved.
- Completing the JAVE formulation. The current implementation uses the fully frozen endpoint (η = 0) of the proposed observation "bridge"; experimenting with η annealing schedules, or simply setting η = 1, remains future work. The conditions under which the Bellman-gradient operator is guaranteed to contract also require further investigation.
- Extending gradient supervision to adaptive-horizon methods. Applying the JAVE idea to methods such as AHAC, which the paper notes have been shown to outperform SHAC, is left open; so is scaling to more parallel environments (256–512) for broader domain randomisation.
Target Audience
Robotics and RL researchers working on legged locomotion who want a reproducible differentiable-simulation baseline; engineers evaluating whether differentiable training is practical for hardware deployment on a modest GPU budget; and graduate students or practitioners already comfortable with actor-critic methods who want to see the full path from simulation gradients to a walking Unitree Go2. Readers seeking a beginner tutorial on locomotion RL will find the appendices (Bellman-gradient derivations, an L²-boundedness proof, the implicit terrain model) heavy going.
Authors’ abstract
Developing deployable locomotion policies through conventional reinforcement learning often requires complex reward engineering and expensive training times. While differentiable simulation offers a highly efficient alternative, open-source tools capable of end-to-end transfer of these policies to physical hardware remain limited. This paper introduces Open-DiffLoco, an open-source framework for training deployable blind quadruped locomotion policies with differentiable…
The full abstract on arXivRelated papers
- XPolicyLab: A Unified Standard and Open Ecosystem for Robot Policy Evaluation and Deployment 2026-08-10 · cs.RO · Key terms of the title in common
- OpenSCvx: An Open-Source Modular and Extensible Nonlinear Trajectory Planning Package 2026-08-21 · cs.RO · Key terms of the title in common
- BRIDGE: An Open-Source Humanoid Platform via Morphology-Control Co-Design for Physical AI 2026-09-03 · cs.RO · Key terms of the title in common
- SwarmNxt: Open-source Software-Hardware Platform for Fast and Agile Aerial Swarms 2026-09-10 · cs.RO · Key terms of the title in common
- CAP: Continuously Adaptive Perception-Blind Humanoid Locomotion via Learned Denoising 2026-09-10 · cs.RO · Key terms of the title in common