Deep Reinforcement Learning for Quadruped Locomotion in Genesis: A Comparative Study of PPO, SAC, and TD3 in Irregular Terrains

2026 Brazilian Conference on Robotics (CROS 2026)

Abstract

Reliable quadruped navigation over irregular terrain remains challenging, and controlled comparisons of standard reinforcement-learning baselines in Genesis are still limited. We present a reproducible benchmark for Unitree Go2 navigation along fixed cubic Bézier routes to sampled goals on flat and procedural irregular terrain. PPO, SAC, and TD3 are tuned separately with Optuna, trained for 50M environment steps, and evaluated across five training seeds; a uniform-random policy is included as a non-learning baseline. Results are obtained using the best checkpoint from each seed and 100 deterministic evaluation episodes. PPO is the strongest method on both terrain types, reaching 97.6% success and a task score of 119.65 on flat terrain, and 68.0% success with a task score of 75.68 on irregular terrain. TD3 shows partial competence on irregular terrain but with high variance, whereas SAC remains close to the random baseline. However, no method meets the benchmark’s stricter stop-and-settle acceptance criteria. PPO is therefore a strong baseline rather than a solved controller, and the design of rewards and terminations remains central to robust learning in this benchmark.

Introduction

Quadruped robots are attractive for industrial inspection and search-and-rescue because they can traverse environments that remain difficult for wheeled platforms (Cruz Ulloa et al., 2023; Gehring et al., 2021). Learning controllers for these systems is challenging: contact-rich locomotion couples high-dimensional state, nonlinear dynamics, and terrain-dependent failure modes. Simulation remains central to developing and stress-testing policies before deployment (Hwangbo et al., 2019; Rudin et al., 2022; Tan et al., 2018). Recent legged RL shows that massively parallel simulation can produce agile behaviors quickly (Rudin et al., 2022; Tan et al., 2018), while imitation, adaptation, and perception broaden skill and robustness (Kumar et al., 2021; Lee et al., 2020; Miki et al., 2022; Peng et al., 2020).

This work presents a reproducible Genesis-based benchmark for Bézier-commanded navigation with the Unitree Go2, comparing PPO, SAC, and TD3 under one protocol rather than proposing a new controller. Conclusions in deep RL vary with implementation details, seeds, and how uncertainty is reported (Agarwal et al., 2021; Engstrom et al., 2020; Henderson et al., 2018). We therefore pair position-PD actuation, multi-seed reporting, automated hyperparameter search, and matched evaluation across algorithms.

Three contributions anchor the study:

Among papers that directly compare PPO, SAC, and TD3 on quadrupeds, Mock and Muknahallipatna (Mock & Muknahallipatna, 2024) is the closest reference: they study sim-to-real gait generation under different sensing and reward designs. Their value here is mainly methodological—they neither define a navigation benchmark nor share our controller and sensor stack.

Broader legged-RL work motivates simulation-centric training and locomotion on challenging terrain (Kumar et al., 2021; Lee et al., 2020; Miki et al., 2022; Rudin et al., 2022; Tan et al., 2018). Our objective is narrower: a controlled baseline comparison in Genesis (Genesis Team, 2024) with identical tasks, observations, rewards, and evaluation logic across algorithms.

Benchmark Setup

Task and Environment

All experiments use the Unitree Go2 in Genesis 0.4.2 (Genesis Team, 2024) with a control step of 0.02 s and two physics substeps. The policy outputs 12 joint position offsets relative to a nominal standing pose; a position-PD controller applies these commands with Kp=22.0K_p = 22.0, Kd=0.7K_d = 0.7, and an action weight of 0.25, with a simulated action latency. The low-level loop therefore operates in joint-position space rather than via direct torque commands.

Each episode begins with a sampled navigation goal and a fixed cubic Bézier path from spawn to goal. This keeps the route smooth and compact, in line with prior use of Bézier curves in mobile-robot path planning (Hu et al., 2019). The planner samples 96 points along the curve, projects the robot onto the curve at each step, and outputs a body-frame command (vx,0,ω˙z)(v_x, 0, \dot{\omega}_z) using 1 m lookahead with curvature-aware speed limiting. Goals follow a four-stage distance curriculum with ranges 2–6 m, 4–12 m, 6–24 m, and 8–48 m at 0, 2M, 6M, 12M, and 20M training steps.

Observations are a 55-dimensional vector composed of: projected gravity (3), IMU gyro (3), planner command (3), cross-track error (1), heading error to the local Bézier tangent encoded as sin⁡/cos⁡\sin/\cos (2), remaining curve distance (1), goal-heading error encoded as sin⁡/cos⁡\sin/\cos (2), joint position error (12), joint velocity (12), binary foot contact (4), and previous action (12). No camera or lidar is used: irregular-terrain behavior must emerge from inertial, contact, and route-tracking signals rather than explicit terrain preview.

Terrain Configurations

Genesis plus Go2 experiment flow diagram showing baseline, tuning phases, and final multi-seed evaluation

The benchmark covers two terrain configurations:

Reward, Termination, and Metrics

Reward shaping emphasizes route-following and motion quality over raw forward speed. Dense terms encourage command tracking, curve progress, heading alignment, diagonal stepping, and near-goal stabilization, while penalizing cross-track error, reverse and lateral motion, upward motion, airborne phases, tilt, base-height deviation, and action changes, torque, and acceleration.

Terminal terms add +50 (success), −10 (fall/posture), −5 (curve deviation), and −3 (stagnation). A three-stage curriculum switches at 0, 3M, and 8M steps: stage 1 emphasizes route-following and basic stability, stage 2 adds locomotion-shape penalties and gait terms, stage 3 adds near-goal heading and hold-still shaping.

Termination occurs on success, timeout (22 s), fall, persistent posture violation, excessive curve deviation, or stagnation. The stricter acceptance criteria additionally require a minimum success rate, small final goal distance, low stop speed at the goal, and a low failure rate — these are the benchmark’s secondary filter.

Algorithms, Tuning, and Evaluation Protocol

The benchmark compares PPO (Schulman et al., 2017), SAC (Haarnoja et al., 2018), and TD3 (Fujimoto et al., 2018) — all implemented via Stable-Baselines3 (Raffin et al., 2021) — plus a uniform-random baseline. Each algorithm is tuned separately with Optuna (Akiba et al., 2019) in two phases (locomotion then goal_stop), then trained for 50M environment steps with 1024 parallel environments. Results are reported over 5 training seeds using the best checkpoint from each seed and 100 deterministic evaluation episodes.

Results and Discussion

Learning Dynamics

PPO is the only method to achieve a positive task score across all five flat-terrain seeds. Its task score remains positive for 87.5% of logged checkpoints, with a normalized training-horizon AUC of 93.73 and a mean drop from peak to last checkpoint of only 2.28 points. SAC and TD3 never cross a positive task score on flat terrain — their normalized AUCs remain negative at −25.96 and −27.12, respectively.

Irregular terrain narrows the gap but does not change the ranking. PPO achieves the highest reward, task score, success rate, and progress speed, yet its performance weakens relative to flat terrain: the task score drops by 43.96 points and the success rate by 29.6 percentage points. PPO reaches a positive task score in four of the five irregular-terrain seeds, with the first positive crossing appearing at 11.70M steps on average.

MethodTerrainAUCPos. seedsFirst +TS (M)Pos. ckpts (%)Peak-last
PPOFlat93.73 ± 1.005/55.18 ± 1.2087.5 ± 1.82.28 ± 1.52
SACFlat−25.96 ± 0.620/5—0.0 ± 0.010.96 ± 2.05
TD3Flat−27.12 ± 1.380/5—0.0 ± 0.014.96 ± 3.45
PPOIrregular40.42 ± 38.854/511.70 ± 2.0254.3 ± 31.725.24 ± 16.45
SACIrregular−25.75 ± 0.620/5—0.0 ± 0.012.86 ± 2.62
TD3Irregular−22.66 ± 4.174/514.18 ± 4.650.4 ± 0.339.11 ± 18.18

AUC is normalized by the 50M-step horizon. First +TS is averaged only over seeds that ever achieve a positive task score.

Behavior Examples

Qualitative Genesis clips from the session above; short captions under each tab.

Interactive visualization mode: the robot follows a Bézier path while online metrics are tracked in real time
Visualization mode — the robot follows a fixed cubic Bézier route while planner commands, tracking errors, and online metrics are displayed in real time.

Stop-and-Settle Analysis

All eight evaluated groups (four methods × two terrains) have 0% pass rate on the stricter stop-and-settle acceptance criteria. On flat terrain, the best PPO seeds still average a final goal distance of 0.49 m and a stop speed of 1.02 m/s, whereas the thresholds require at most 0.35 m and 0.18 m/s. On irregular terrain, PPO averages a final goal distance of 1.48 m and a stop speed of 0.69 m/s — far above the respective thresholds of 0.40 m and 0.20 m/s.

This does not imply that termination-defined success is meaningless. PPO on flat terrain still achieves 97.6% termination-defined success with a mean final yaw error of only 6.9°; it is the stop speed that stays well above the acceptance threshold. The flat-terrain result is therefore a strong navigation policy that does not yet satisfy the full stop-and-settle requirement.

Reward design and off-policy learning

The task is not driven by a single height penalty alone: dense rewards are scaled by the control step dtdt, and base-height shaping is tolerance-gated and capped. Even so, contact-rich dynamics, early termination on failure, and the late introduction of stop-and-settle-oriented terms mean that replay buffers can skew toward short, low-return segments. Such biased data can substantially hinder off-policy RL (Dulac-Arnold et al., 2021). We offer this only as a plausible mechanism for SAC’s proximity to the random baseline and TD3’s fragility—not as a claim that PPO is universally preferable for quadruped locomotion—and ablations would be needed to test it.

Conclusion

We presented a comparative benchmark for PPO, SAC, and TD3 on Bézier-commanded Go2 navigation in Genesis. PPO is the strongest baseline on both flat and irregular terrain. SAC remains close to the random baseline, and none of the evaluated policies meet the benchmark’s stricter acceptance criteria.

Rather than overstating these results, the next step is to tighten the benchmark while preserving strong irregular-terrain PPO behavior. Future work should target more selective stopping rewards and terminations, better calibration of off-policy training for failure-heavy replay (see discussion above), and more principled terrain-aware shaping, sensing, or adaptation when the goal is reliable irregular-terrain navigation together with strict stop-and-settle acceptance.

BibTeX Citation

@INPROCEEDINGS{lemos2026quadrupedGenesis,
author = {Lemos, Bruno and Silva, Rodrigo and Maia, Guilherme and Chaimowicz, Luiz},
title = {Deep Reinforcement Learning for Quadruped Locomotion in Genesis: A Comparative Study of PPO, SAC, and TD3 in Irregular Terrains},
booktitle = {2026 Brazilian Conference on Robotics (CROS)},
year = {2026},
address = {Jo{\~a}o Pessoa, Para{\'\i}ba, Brazil},
publisher = {IEEE},
isbn = {979-8-3195-1715-9},
}

Bibliography

Agarwal, R., Schwarzer, M., Castro, P. S., Courville, A. C., & Bellemare, M. G. (2021). Deep Reinforcement Learning at the Edge of the Statistical Precipice. Advances in Neural Information Processing Systems, 34, 29304–29320. https://proceedings.neurips.cc/paper/2021/hash/f514cec81cb148559cf475e7426eed5e-Abstract.html
Akiba, T., Sano, S., Yanase, T., Ohta, T., & Koyama, M. (2019). Optuna: A Next-generation Hyperparameter Optimization Framework. Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, 2623–2631. https://doi.org/10.1145/3292500.3330701
Cruz Ulloa, C., del Cerro, J., & Barrientos, A. (2023). Mixed-Reality for Quadruped-Robotic Guidance in SAR Tasks. Journal of Computational Design and Engineering, 10(4), 1479–1489. https://doi.org/10.1093/jcde/qwad061
Dulac-Arnold, G., Levine, N., Mankowitz, D. J., Li, J., Paduraru, C., Gowal, S., & Hester, T. (2021). Challenges of Real-World Reinforcement Learning: Definitions, Benchmarks and Analysis. Machine Learning, 110(9), 2419–2468. https://doi.org/10.1007/s10994-021-05961-4
Engstrom, L., Ilyas, A., Santurkar, S., Tsipras, D., Janoos, F., Rudolph, L., & Madry, A. (2020). Implementation Matters in Deep RL: A Case Study on PPO and TRPO. International Conference on Learning Representations. https://openreview.net/forum?id=r1etN1rtPB
Fujimoto, S., van Hoof, H., & Meger, D. (2018). Addressing Function Approximation Error in Actor-Critic Methods. Proceedings of the 35th International Conference on Machine Learning (ICML), 80, 1587–1596. https://proceedings.mlr.press/v80/fujimoto18a.html
Gehring, C., Fankhauser, P., Isler, L., Diethelm, R., Bachmann, S., Potz, M., Gerstenberg, L., & Hutter, M. (2021). ANYmal in the Field: Solving Industrial Inspection of an Offshore HVDC Platform with a Quadrupedal Robot. Field and Service Robotics, 16, 247–260. https://doi.org/10.1007/978-981-15-9460-1_18
Genesis Team. (2024). Genesis: A Generative and Universal Physics Engine for Robotics and Beyond. https://genesis-embodied-ai.github.io/
Haarnoja, T., Zhou, A., Abbeel, P., & Levine, S. (2018). Soft Actor-Critic: Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actor. Proceedings of the 35th International Conference on Machine Learning (ICML), 80, 1861–1870. https://proceedings.mlr.press/v80/haarnoja18b.html
Henderson, P., Islam, R., Bachman, P., Pineau, J., Precup, D., & Meger, D. (2018). Deep Reinforcement Learning That Matters. Proceedings of the AAAI Conference on Artificial Intelligence, 32(1), 3207–3214. https://doi.org/10.1609/aaai.v32i1.11694
Hu, Y., Li, D., He, Y., & Han, J. (2019). Path Planning of UGV Based on Bézier Curves. Robotica, 37(6), 969–997. https://doi.org/10.1017/S026357471800139X
Hwangbo, J., Lee, J., Dosovitskiy, A., Bellicoso, C. D., Tsounis, V., Koltun, V., & Hutter, M. (2019). Learning Agile and Dynamic Motor Skills for Legged Robots. Science Robotics, 4(26), eaau5872. https://doi.org/10.1126/scirobotics.aau5872
Kumar, A., Fu, Z., Pathak, D., & Malik, J. (2021). RMA: Rapid Motor Adaptation for Legged Robots. Robotics: Science and Systems XVII. https://doi.org/10.15607/RSS.2021.XVII.011
Lee, J., Hwangbo, J., Wellhausen, L., Koltun, V., & Hutter, M. (2020). Learning Quadrupedal Locomotion over Challenging Terrain. Science Robotics, 5(47), eabc5986. https://doi.org/10.1126/scirobotics.abc5986
Miki, T., Lee, J., Hwangbo, J., Wellhausen, L., Koltun, V., & Hutter, M. (2022). Learning Robust Perceptive Locomotion for Quadrupedal Robots in the Wild. Science Robotics, 7(62), eabk2822. https://doi.org/10.1126/scirobotics.abk2822
Mock, J. W., & Muknahallipatna, S. S. (2024). Sim-to-Real: A Performance Comparison of PPO, TD3, and SAC Reinforcement Learning Algorithms for Quadruped Walking Gait Generation. Journal of Intelligent Learning Systems and Applications, 16(2), 23–43. https://doi.org/10.4236/jilsa.2024.162003
Peng, X. B., Coumans, E., Zhang, T., Lee, T.-W. E., Tan, J., & Levine, S. (2020). Learning Agile Robotic Locomotion Skills by Imitating Animals. Robotics: Science and Systems XVI. https://doi.org/10.15607/RSS.2020.XVI.064
Raffin, A., Hill, A., Gleave, A., Kanervisto, A., Ernestus, M., & Dormann, N. (2021). Stable-Baselines3: Reliable Reinforcement Learning Implementations. Journal of Machine Learning Research, 22(268), 1–8. https://www.jmlr.org/papers/v22/20-1364.html
Rudin, N., Hoeller, D., Reist, P., & Hutter, M. (2022). Learning to Walk in Minutes Using Massively Parallel Deep Reinforcement Learning. Proceedings of the 5th Conference on Robot Learning, 164, 91–100. https://proceedings.mlr.press/v164/rudin22a.html
Schulman, J., Wolski, F., Dhariwal, P., Radford, A., & Klimov, O. (2017). Proximal Policy Optimization Algorithms. arXiv Preprint arXiv:1707.06347. https://arxiv.org/abs/1707.06347
Tan, J., Zhang, T., Coumans, E., Iscen, A., Bai, Y., Hafner, D., Bohez, S., Vanhoucke, V., & Levine, S. (2018). Sim-to-Real: Learning Agile Locomotion for Quadruped Robots. Robotics: Science and Systems XIV. https://doi.org/10.15607/RSS.2018.XIV.010