Research
E2DRL: End-to-End Differentiable Reinforcement Learning for 3D Obstacle Avoidance in Quadruped Robots
Quadruped robots in cluttered human environments must do more than steer around obstacles on a plane: they must lower their bodies to crawl under tables or overhanging boards and step laterally…

- arXiv
- 2610.19627 · Preprint · not peer-reviewed
- Published
- 2026-10-14
- Authors
- Cheng Fan, Bingyang Zhou, Gang Yang, Zixuan Zhuang, Aoqian Zhang, Pengzhi Yang, Xin Liu, Chunzheng Wang, Yan Rui Tan, Fan Shi
In plain words
Quadruped robots in cluttered human environments must do more than steer around obstacles on a plane: they must lower their bodies to crawl under tables or overhanging boards and step laterally around ground obstacles such as chairs and pillars, all while tracking commanded velocities.
AI summary
Overview
Research area: Robotics — legged locomotion, differentiable simulation, reinforcement learning, and sim-to-real transfer for quadruped robots.
Technical level: Advanced. The paper assumes familiarity with policy gradient methods, differentiable physics, teacher–student distillation, and CBF-based nonlinear MPC.
Scope: The paper presents E2DRL, a two-stage framework that trains a privileged teacher with differentiable RL (SAPO) using a soft differentiable obstacle-interaction surrogate, distills it into a recurrent depth-based student via DAgger, and gates it with a proprioceptive locomotion policy for real-world 3D obstacle avoidance on a Unitree Go2.
What This Paper Is About
Quadruped robots in cluttered human environments must do more than steer around obstacles on a plane: they must lower their bodies to crawl under tables or overhanging boards and step laterally around ground obstacles such as chairs and pillars, all while tracking commanded velocities. Differentiable reinforcement learning promises much more sample-efficient policy learning than black-box methods like PPO, but it has so far been applied to legged robots only for blind walking or simulated 2D tasks. The reason is that hard collision constraints and early termination on contact break first-order gradients, producing non-smooth optimization landscapes that trap the optimizer in local minima. The paper's goal is to make differentiable RL work for end-to-end visual 3D obstacle avoidance and to demonstrate it on physical hardware.
Key Contributions
-
Soft differentiable obstacle-interaction formulation. Instead of terminating episodes on contact, the robot is allowed to penetrate obstacles in simulation while a continuous, differentiable penalty is applied to multiple body keypoints (base center of mass, joints, foot end-effectors, and two points at the front and rear of the base). The penalty is modulated by a velocity-conditioned stop-gradient term, which supplies dense first-order training signals without teaching the policy to simply slow down.
-
A deployment-oriented differentiable end-to-end pipeline. A privileged teacher trained with Soft Analytic Policy Optimization (SAPO) in a differentiable simulator is distilled via DAgger into a recurrent depth-based student, which is then fused with a nominal proprioceptive locomotion policy by a terrain-aware gating module to preserve velocity tracking in obstacle-free space.
-
A stable frictional contact model. The paper adopts the differentiable contact formulation of Geilinger et al. (2020) rather than the default NVIDIA Warp friction model, motivated by gradient stability as contact velocities approach zero.
-
First sim-to-real validation of end-to-end differentiable RL for 3D obstacle avoidance. The authors report hardware experiments on a Unitree Go2 in indoor and outdoor settings with both static and dynamically introduced obstacles.
Main Findings
- Sample efficiency versus PPO: Using avoidance success-rate plateau as the convergence criterion, SAPO converges after approximately 16M training steps while PPO requires about 67M, making PPO roughly 4.2× less sample-efficient. The final converged discounted reward of SAPO is approximately 1.1 times that of PPO.
- Entropy regularization matters: SAPO and SHAC show comparable convergence rates, but the final converged reward of SHAC is only about half that of SAPO, which the authors attribute to entropy regularization helping differentiable RL escape poor local optima in contact-rich locomotion.
- Velocity tracking versus baselines: At a commanded forward speed of 1.2 m/s, evaluated over 100 environments, the method converges to the commanded velocity faster than the Duality-based DCBF NMPC baseline and tracks it with only minor deviations during avoidance; PPO shows clear oscillations and tracking errors, and the NMPC baseline ultimately fails to complete the traversal and halts.
- Gating improves nominal tracking: In obstacle-free segments, the gated student policy tracks the 1.2 m/s command better than the ungated student policy.
- Obstacle envelope: The method passes beneath overhanging obstacles with clearance heights down to 0.24 m, described as close to the minimum body height of the Unitree Go2, and bypasses ground obstacles with widths up to 1.0 m. PPO and the tuned Duality-based DCBF NMPC baseline fail at less challenging configurations.
- Ablation — hard termination: Replacing the soft penetration penalty with hard termination on contact degrades the feasible limits to 0.33 m (overhanging height) and 0.58 m (ground width), versus 0.24 m and 1.0 m for the full method.
- Ablation — stop-gradient: Removing velocity-conditioned stop-gradient shaping increases collision failures and restricts feasible height and width to 0.34 m and 0.85 m respectively; without the stop-gradient, the optimizer reduces penalties by suppressing forward velocity rather than learning avoidance. Removing velocity conditioning alone also lowers success rates because the robot becomes prone to high-speed penetration.
- Ablation — keypoints: Using only a single keypoint on the base lowers success rates on both tasks because it gives incomplete feedback for whole-body posture change (no numerical limits reported for this ablation).
- Alternative reward baselines: A proximity-reward baseline achieves lower success rates on both obstacle types because it discourages the close boundary-following needed for tight geometries; an SDF baseline also achieves lower success rates because its reward can favor high-speed traversal with brief, shallow penetration.
- Distillation versus direct visual training: The distilled student policy handles more challenging obstacles than a policy trained directly with visual observations.
- Gradient stability: With the adopted contact model, the reported actor-gradient magnitude stays below 1.0, avoiding gradient spikes during foot strikes, both for the total actor gradient in the walking stage and for the obstacle-term gradient across the transition into obstacle avoidance.
- Real-world static trials: Across 5 trials per scenario, the robot achieved success rates of 5/5 for ground obstacles and 4/5 for overhanging obstacles, with the single failure due to a collision under the lower clearance; indoor overhanging trials used clearances of 0.38 m and 0.27 m, and the policy also generalized to grass, a chair, pillars, and a forest.
- Real-world dynamic trials: The robot passed beneath two sequentially introduced overhanging obstacles, avoided dynamically introduced ground obstacles, handled multiple dynamic overhanging obstacles, and avoided an irregularly shaped chair that suddenly appeared; about 2 h of additional training enabled handling of such irregular geometries. Quantitative success rates for the dynamic trials are not reported.
Methodology in Plain English
The robot must follow forward, lateral, and yaw velocity commands while getting through scenes containing overhanging obstacles (which require lowering the body) and ground obstacles (which require steering around them). Training is split into two stages.
Stage one — a teacher with privileged information. The teacher is a simple multilayer perceptron that sees a 45-dimensional proprioceptive state (angular velocity, projected gravity, velocity commands, joint positions, joint velocities, last actions) plus a 14-dimensional privileged exteroceptive state containing base pose, base linear velocity, Euler angles, obstacle configuration, and geometric obstacle parameters (clearance height, lateral width, longitudinal depth). It is trained inside NVIDIA Warp, a differentiable simulator, so gradients flow analytically through the physics rollout. The optimizer is SAPO, which maximizes a k-step objective with an entropy bonus and a soft value baseline; the paper uses a 12-step differentiable rollout, discount factor 0.99, and learning rate 2×10⁻⁴.
The key trick. Normally, hitting an obstacle ends the episode, which chops the gradient and leaves the optimizer with a jagged landscape. Instead, the simulator lets the robot pass into the obstacle while a smooth penalty measures how far each of several body keypoints has penetrated. Because the penalty is continuous and applies to many points on the body, the optimizer gets a usable slope telling it how to lower its torso or shift sideways. The penalty magnitude is scaled by an exponential of the forward velocity, but the velocity passes through a stop-gradient operator, so no gradient pushes the policy to slow down — the term only discourages fast traversal while penetration is occurring. A small negative constant (−0.3) is added when penetration happens so the critic can clearly distinguish collisions from clean traversals.
Stage two — distilling into a deployable student. The teacher cannot run on the robot because it uses obstacle parameters the hardware does not know. So its behavior is distilled via DAgger into a student that sees the 45-dimensional proprioceptive state plus a 64×64 depth image from an onboard camera. The student uses three convolutional layers with [16, 32, 32] channels, concatenates the flattened visual features with proprioception, feeds them to a GRU with hidden dimension 256, and maps the output through an MLP with [256, 128, 64] hidden layers to 12 joint-position targets. The mixing probability β over teacher and student rollouts decays linearly from one to zero. Data collection and training alternate so that single-GPU training suffices.
Gating for deployment. A separately trained terrain-aware gating module estimates obstacle proximity from depth and switches from a nominal proprioceptive locomotion policy to the student when the estimated distance to the obstacle surface falls below 0.6 m; actions are interpolated over a 30-step transition window to avoid discontinuities. The module is trained on depth data from Isaac Gym, NVIDIA Warp, and the real world to narrow the sim-to-real gap.
Training curriculum and details. The robot first learns basic velocity tracking to reach a target 4.5 m away, switching to obstacle avoidance at a 70% success rate. Obstacle difficulty increases after five consecutive collision-free traversals. Each training episode contains a single obstacle, randomly overhanging (clearance 0.22–0.40 m) or ground (width 0.60–1.20 m), with commanded forward velocity sampled from 1.0 to 1.5 m/s. Simulation runs at 200 Hz with control at 100 Hz and 128 parallel environments on a single RTX 4090. Joint targets are tracked by PD controllers with Kp = 40 and Kd = 1. Episodes are capped at 3000 simulation steps and terminate early if center-of-mass height falls below 0.12 m or absolute roll or pitch exceeds 0.5.
Why This Matters
Impact on research. The paper attacks a specific, well-known failure mode of differentiable physics for contact-rich tasks — gradient corruption from hard constraints and early termination — and shows that a training-time surrogate with multi-point penalties and detached velocity shaping is enough to make first-order optimization work for whole-body 3D avoidance. It also extends differentiable RL for legged robots beyond blind walking and simulated 2D tasks into a visuomotor policy that runs on hardware, which is a meaningful step for the subfield.
Real-world applications:
- Warehouse and logistics robots that must crawl under conveyor sections or shelving and route around pallets and pillars while holding a commanded velocity.
- Home and service robots operating around tables, chairs, and low furniture where posture adaptation, not just planar path planning, is required.
- Inspection and search-and-rescue in cluttered or vegetated terrain, where the policy was shown to bypass trees on uneven ground.
- Mobile manipulation bases that need reliable velocity tracking in human-shared spaces, where the gating design preserves nominal walking quality in open areas.
Industry relevance. The single-GPU training recipe, the single-obstacle-per-episode curriculum, and the demonstrated onboard deployment on a Jetson Orin NX with a RealSense D435 lower the compute barrier relative to multi-GPU distillation pipelines cited in the paper. Sample efficiency roughly 4.2× better than PPO in wall-clock-relevant steps translates directly into lower training cost for anyone iterating on legged policies.
Future Directions
- Perceptual robustness. The authors state that performance still depends on onboard depth quality and may degrade under reflective, transparent, or highly noisy sensing conditions; improving this is their stated next step.
- Richer and more irregular obstacle geometries. Only one obstacle per training episode is used, and handling an irregularly shaped chair required about 2 h of additional training, suggesting a question of how far the policy generalizes to arbitrary geometry without retraining.
- Removing the separate gating stage. The teacher, student, nominal policy, and gating module are all trained separately; a natural question is whether a single network could match the gated system's velocity tracking and avoidance without an explicit switching threshold.
- Quantitative evaluation of dynamic scenes. Real-world dynamic trials are reported qualitatively rather than with success rates, so a systematic dynamic benchmark remains open. The supplementary material also promises stop-gradient analysis, teacher–student transfer results, training-time comparisons, and parameter sensitivity studies that are not available in the content reviewed here.
Target Audience
Researchers and graduate students working on legged locomotion, differentiable simulation, and sim-to-real reinforcement learning will get the most from this paper, particularly those who have run into gradient pathologies when adding contact constraints to differentiable physics. Robotics engineers building deployed quadruped navigation stacks will find the teacher–student–gating architecture and the single-GPU training protocol practically useful. Readers new to the area should treat it as advanced material and read the background sections on SHAC, SAPO, and DAgger first.
Authors’ abstract
Differentiable reinforcement learning shows strong promise for robot policy learning, but its application to legged locomotion has remained limited to blind walking or simulated 2D tasks. Extending it to end-to-end visual obstacle avoidance is challenging because hard collision constraints and early termination upon contact corrupt first-order gradients, trapping optimizers in local minima. We present E2DRL, which addresses this with a soft differentiable…
The full abstract on arXivRelated papers
- Humanoid Dodgeball: Learning Fast Dynamic Obstacle Avoidance Motions for Humanoids 2026-10-29 · cs.RO · Also by Aoqian Zhang, Chunzheng Wang +1
- DiagGen: Agentic Generation of Deformable Assets with Sim-based Diagnostics for Robotic Simulation 2026-09-19 · cs.RO · Also by Bingyang Zhou, Fan Shi +1
- TransNav: Transformer-Based End-to-End Navigation Method for Static and Dynamic Quadrotor Obstacle Avoidance 2026-10-16 · cs.RO · Key terms of the title in common
- ForceBench: Benchmarking Force Integration for Robotic Manipulation 2026-10-14 · cs.RO · Also by Xin Liu
- End-to-End Safe Social Navigation via Multi-Task Reinforcement Learning and Probabilistic Perception 2026-10-05 · cs.RO · Key terms of the title in common