ZSL-RPPO: Zero-Shot Learning for Quadrupedal Locomotion in Challenging Terrains using Recurrent Proximal Policy Optimization

Yao Zhao, Tao Wu, Yijie Zhu, Xiang Lu, Jun Wang, Haitham Bou-Ammar, Xinyu Zhang, Peng DuarXiv 2024 · DOI

Abstract

Navigating rugged and unpredictable environments remains a significant challenge for quadrupedal robots. Traditional reinforcement learning (RL) approaches often rely on a teacher-student paradigm, which is prone to performance degradation due to the imitation gap. This paper introduces ZSL-RPPO, a framework that achieves zero-shot sim-to-real transfer by employing direct recurrent reinforcement learning. By framing the navigation task as a Partially Observed Markov Decision Process (POMDP) and utilizing Recurrent Proximal Policy Optimization (RPPO), the proposed method allows robots to implicitly identify hidden physical properties. Experimental results on Unitree A1 and Aliengo robots demonstrate superior robustness on challenging terrains, including a 100% success rate on stairs and high stability on oily surfaces.

Introduction

Training quadrupedal robots for real-world deployment typically involves Reinforcement Learning in simulated environments. The state-of-the-art often employs a teacher-student paradigm: a "teacher" policy is trained with privileged information (e.g., exact friction, ground truth terrain) and subsequently imitated by a "student" policy using only onboard sensors. However, this approach frequently suffers from an imitation gap, where the student fails to accurately replicate the teacher's performance in the real world, especially when the simulation-to-reality gap is significant.

Furthermore, standard feed-forward networks struggle with the "hidden" variables introduced by domain randomization, such as varying motor strengths or mass offsets. These variables render the environment partially observable. ZSL-RPPO addresses these issues by eliminating the imitation step and using recurrence to handle partial observability directly.

Methods

The core of the framework is the Recurrent Proximal Policy Optimization (RPPO) algorithm. By treating the task as a POMDP, the recurrent architecture enables the agent to "remember" past observations, allowing it to infer hidden physical properties like surface friction or motor discrepancies on the fly.

System architecture of ZSL-RPPO showing the integration of proprioceptive and exteroceptive data into the policy network.

Key technical components include:

  • Gated Recurrent Policy Network (GRPN): A specialized architecture that combines Gated Recurrent Units (GRU) with gated attention to fuse exteroceptive data (Lidar/depth maps) and proprioceptive data (joint states).
  • Asymmetric Critic: During simulation training, the critic has access to the true state of the world, while the actor (the policy) only receives noisy sensor data. This guides the actor toward optimal strategies without creating a dependency on privileged information during deployment.
  • PMTG Integration: The policy outputs parameters for a Parametric policy Modulated Trajectory Generator (PMTG), which stabilizes the learning process by handling rhythmic leg movements.
  • Extensive Domain Randomization: To ensure robustness, the researchers randomized mass, friction, motor strength, and sensor noise, making the policy invariant to specific hardware quirks.

Perception Alignment and Sim-to-Real Transfer

A critical factor in successful zero-shot transfer is ensuring that real-world sensor data matches the distribution of simulated data. The authors developed a perception alignment pipeline to process raw depth and Lidar data.

Perception alignment pipeline for bridging the gap between real-world sensor data and simulated elevation samples.

By pre-processing real-world depth data—filling holes and adding simulated noise during training—the Lidar and camera data "look" consistent to the robot across both domains. This alignment is essential for the policy to generalize its learned navigation strategies to physical terrains.

Experimental Results

The ZSL-RPPO controller was evaluated on Unitree A1 and Aliengo robots across six challenging physical terrains: 15cm-high stairs, oily plastic film, deformable sponge mats, sandy ground, sloped lawns, and cobblestones.

  • Stairs: ZSL-RPPO achieved a 100% success rate, significantly outperforming the Teacher-Student baseline (60%) and Rapid Motion Adaptation (0%).
  • Oily Surfaces: On extremely slippery oily plastic, the method maintained an 80% success rate, whereas the T-S baseline dropped to 20%.
  • Hardware Robustness: Tests across multiple A1 units showed significantly lower position and orientation drift compared to other methods, proving the framework's resilience to manufacturing variations.

Conclusion

ZSL-RPPO demonstrates that direct recurrent training is a highly effective alternative to imitation-based learning for quadrupedal locomotion. By bypassing the teacher-student phase and focusing on recurrence for system identification, the framework achieves unprecedented robustness in complex, real-world environments. Future work will focus on navigating discontinuous terrains, such as gaps or gullies, and expanding the sensor field of view to handle more complex 3D obstacles.

Summary updated

Abstract

We present ZSL-RPPO, an improved zero-shot learning architecture that overcomes the limitations of teacher-student neural networks and enables generating robust, reliable, and versatile locomotion for quadrupedal robots in challenging terrains. We propose a new algorithm RPPO (Recurrent Proximal Policy Optimization) that directly trains recurrent neural network in partially observable environments and results in more robust training using domain randomization. Our locomotion controller supports extensive perturbation across simulation-to-reality transfer for both intrinsic and extrinsic physical parameters without further fine-tuning. This can avoid the significant decline of student's performance during simulation-to-reality transfer and therefore enhance the robustness and generalization of the locomotion controller. We deployed our controller on the Unitree A1 and Aliengo robots in real environment and exteroceptive perception is provided by either a solid-state Lidar or a depth camera. Our locomotion controller was tested in various challenging terrains like slippery surfaces, Grassy Terrain, and stairs. Our experiment results and comparison show that our approach significantly outperforms the state-of-the-art.
BibTeX
@misc{zhao2024zsl,
  author = {Yao Zhao and Tao Wu and Yijie Zhu and Xiang Lu and Jun Wang and Haitham Bou-Ammar and Xinyu Zhang and Peng Du},
  title = {{ZSL-RPPO: Zero-Shot Learning for Quadrupedal Locomotion in Challenging Terrains using Recurrent Proximal Policy Optimization}},
  year = {2024},
  eprint = {2403.01928},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.01928},
}
Figure