RSL-RL: A Fast and Flexible Reinforcement Learning Library for Legged Robots

RSL-RL: A Fast and Flexible Reinforcement Learning Library for Legged Robots

Featured

Nikita Rudin, David Hoeller, Marco Hutter · ETH Zurich, Robotic Systems Lab · 2022

Framework

PyTorch

License

Other (NOASSERTION)

Stars

2,624

Summary

RSL-RL is a lightweight, high-performance PyTorch library implementing PPO tailored for locomotion. Used as the default RL backend in Legged Gym, it enables training thousands of agents in parallel on GPU.

Abstract Summary

RSL-RL is the underlying reinforcement learning engine that powers much of the modern legged locomotion research conducted at ETH Zurich and beyond. While many general-purpose RL libraries exist, RSL-RL was purpose-built for the unique demands of simulating and controlling articulated legged robots at scale. It implements a streamlined variant of Proximal Policy Optimization (PPO) that is optimized for GPU batch processing, enabling training runs with thousands of parallel agents without the CPU bottlenecks common in standard implementations. The design philosophy behind RSL-RL is minimalism combined with performance. The entire training loop is implemented in pure PyTorch, with tensor operations carefully shaped to maximize GPU utilization. Unlike heavier libraries that abstract every policy gradient variant into a generic interface, RSL-RL exposes a clean, narrow API focused on actor-critic methods with Generalized Advantage Estimation (GAE). This deliberate simplicity makes it easy to inspect, debug, and extend—an important consideration when working with physical robots where a subtle bug in the advantage computation can lead to catastrophic falls in the real world. RSL-RL integrates seamlessly with NVIDIA Isaac Gym, the GPU-accelerated physics simulator that allows whole armies of robots to be simulated in parallel. The library handles the coordination between Isaac Gym’s batched environment API and the PPO update loop, taking care of rollout collection, advantage computation, and multi-epoch policy updates under a single configuration file. It also supports features particularly important for locomotion: asymmetric actor-critic training (where the critic receives privileged state information unavailable to the actor), observation normalization, and automatic entropy scheduling to encourage policy exploration without manual tuning. The codebase has become the default RL backend for Legged Gym and is used in numerous follow-up projects spanning quadruped locomotion, humanoid balancing, and dexterous manipulation. Its lightweight footprint and high throughput have made it a go-to choice for researchers who need reliable, fast PPO training without the overhead of larger frameworks like RLlib or Stable Baselines3. For anyone entering the legged robot learning space, familiarity with RSL-RL is effectively a prerequisite.

Key Points

  • High-performance PPO implementation optimized for massively parallel GPU training.
  • Pure PyTorch with clean API; no unnecessary abstractions for easy debugging.
  • Native integration with Isaac Gym for seamless batched environment rollouts.
  • Supports asymmetric actor-critic, observation normalization, and adaptive entropy scheduling.
  • Default RL backend for Legged Gym; widely adopted in legged locomotion research.

Additional Notes

Training Tips

  • The default entropy coefficient of 0.0 assumes a well-shaped reward; increase to 0.01 for sparse-reward tasks.
  • Asymmetric critic training significantly improves sample efficiency on contact-rich terrains.
  • Always enable observation normalization; training without it leads to unstable policies on hardware.
  • Legged Gym (Rudin et al., 2022)
  • Learning to Walk in Minutes (Rudin et al., 2022)
  • Isaac Gym (Makoviychuk et al., 2021)
Share

Related Papers

A Heterogeneous Architecture for Robot RL Beyond GPU-Dominant Paradigms

A Heterogeneous Architecture for Robot RL Beyond GPU-Dominant Paradigms

Yufei Jia, Zhanxiang Cao, Mingrui Yu et al. · arXiv preprint · May 2026

Simulation-based RL for contemporary robot control is increasingly organized around GPU-resident simulation: physics, rollout collection, and learning are placed on a single GPU-centric execution path

reinforcement-learning simulation system-design locomotion
PDF Intermediate
No code repo Code updated: May 2026