[Paper Review] skrl: Modular and Flexible Library for Reinforcement Learning
skrl is an open-source, modular, and transparent reinforcement learning library in Python that supports OpenAI Gym, DeepMind, NVIDIA Isaac Gym, and Omniverse Isaac Gym environments. It enables simultaneous training of multiple agents with customizable scopes—either sharing or isolating resources—achieving comparable performance to established libraries like stable-baselines3 and RLlib, with efficient GPU-based training on up to 1,024 environments.
skrl is an open-source modular library for reinforcement learning written in Python and designed with a focus on readability, simplicity, and transparency of algorithm implementations. In addition to supporting environments that use the traditional interfaces from OpenAI Gym and DeepMind, it provides the facility to load, configure, and operate NVIDIA Isaac Gym and NVIDIA Omniverse Isaac Gym environments. Furthermore, it enables the simultaneous training of several agents with customizable scopes (subsets of environments among all available ones), which may or may not share resources, in the same run. The library's documentation can be found at https://skrl.readthedocs.io and its source code is available on GitHub at https://github.com/Toni-SM/skrl.
Motivation & Objective
- To address the lack of modular, readable, and transparent RL libraries that support modern GPU-accelerated simulators like Isaac Gym and Omniverse Isaac Gym.
- To enable simultaneous training of multiple agents across different environments with configurable resource sharing or isolation.
- To reduce the learning curve for RL research by emphasizing code readability and algorithm transparency.
- To provide a unified, extensible API that supports both traditional RL environments and high-performance, GPU-based simulators.
- To facilitate reproducibility and educational use through well-documented, modular code structure.
Proposed method
- The library is structured around modular components that allow interchangeable agents, environments, and training algorithms, promoting reusability and extensibility.
- It implements standard RL interfaces (OpenAI Gym, DeepMind) and natively supports NVIDIA Isaac Gym and Omniverse Isaac Gym via GPU-accelerated physics simulation.
- Agents are trained in parallel using a scope-based configuration, where each agent operates on a subset of available environments, with options to share or isolate memory and computational resources.
- The library uses PyTorch as the deep learning backend and provides a clean, readable codebase with consistent naming and minimal abstraction to enhance transparency.
- Training is managed through a configurable engine that handles environment interaction, reward collection, and policy updates in a modular fashion.
- The implementation supports both single-agent and multi-agent training with identical or different hyperparameters across agents.

Experimental results
Research questions
- RQ1How can a reinforcement learning library be designed to support both traditional RL environments and modern, high-performance GPU-based simulators like Isaac Gym and Omniverse Isaac Gym?
- RQ2To what extent can modularity and code transparency improve the readability and maintainability of RL algorithm implementations?
- RQ3Can a single training run efficiently manage multiple agents with different scopes and resource configurations, including shared or isolated memory?
- RQ4How does the performance of skrl compare to established libraries like stable-baselines3 and RLlib in terms of training speed and final performance?
- RQ5What impact does memory sharing have on multi-agent training efficiency and performance stability in high-scale environments?
Key findings
- skrl achieved comparable mean total rewards to stable-baselines3 and RLlib in the OpenAI Gym Pendulum-v0 environment, with similar training throughput (e.g., 135 timesteps/second for DDPG).
- In Isaac Gym and Omniverse Isaac Gym environments, skrl matched the performance of rl_pytorch and rl_games, achieving 105 timesteps/second for 512 Cartpole environments and 45 timesteps/second for 1024 Ant environments.
- The library demonstrated efficient multi-agent training, successfully managing three agents (DDPG, TD3, SAC) on 512 total environments with 170–172 environments per agent.
- Memory sharing during simultaneous training led to better and more balanced performance compared to standalone training, even with default hyperparameters.
- The library’s modular and transparent design reduced the learning curve and improved code maintainability, supporting educational and reproducible research.
- The implementation was validated across multiple environments, including OpenAI Gym, Isaac Gym (previews 2–4), and Omniverse Isaac Gym, confirming broad compatibility and stability.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.