Abstract
Despite the recent progress in deep reinforcement learning field (RL), and, arguably because of it, a large body of work remains to be done in reproducing and carefully comparing different RL algorithms. We present catalyst.RL, an open source framework for RL research with a focus on reproducibility and flexibility. Main features of our library include large-scale asynchronous distributed training, easy-to-use configuration files with the complete list of hyperparameters for the particular experiments, efficient implementations of various RL algorithms and auxiliary tricks, such as frame stacking, n-step returns, value distributions, etc. To vindicate the usefulness of our framework, we evaluate it on a range of benchmarks in a continuous control, as well as on the task of developing a controller to enable a physiologically-based human model with a prosthetic leg to walk and run. The latter task was introduced at NeurIPS 2018 AI for Prosthetics Challenge, where our team took the 3rd place, capitalizing on the ability of catalyst.RL to train high-quality and sample-efficient RL agents.
Introduction
Deep Reinforcement Learning (RL) has achieved remarkable milestones in complex domains like Atari games, Go, and StarCraft II. However, the field faces a significant "reproducibility crisis." RL results are notoriously sensitive to hyperparameters, random seeds, and subtle implementation differences. Catalyst.RL addresses this by providing a robust, open-source PyTorch framework designed for "apples-to-apples" comparisons. It bridges the gap between simple script collections and large-scale distributed systems, ensuring that experiments are both scalable and fully reproducible through comprehensive configuration tracking.
Distributed Architecture
The core innovation of Catalyst.RL is its decoupled, distributed architecture. By separating the learning process into independent components, the framework achieves high flexibility and fault tolerance.
The system consists of three primary layers:
- Trainers: GPU-intensive nodes responsible for updating neural network parameters (the "brain").
- Samplers: CPU-based nodes that interact with the environment to collect experience (the "body").
- Database (Redis): A central hub that facilitates the exchange of network weights and collected data between trainers and samplers.
This design allows for easy scaling and ensures that the failure of a single sampler does not interrupt the training process. Furthermore, the framework utilizes YAML configuration files to manage hyperparameters and architectural choices, enabling researchers to swap components—like optimizers or coupling layers—without modifying the core codebase.
Experimental Evaluation
Catalyst.RL includes high-quality implementations of modern off-policy algorithms, including DDPG, TD3, and SAC, along with extensions like $n$-step returns and distributional RL (Categorical and Quantile regression).
The framework was benchmarked across several environments, including OpenAI Gym (BipedalWalker-v2/Hardcore) and the DeepMind Control Suite (Reacher, Cheetah, Walker, Humanoid).
Key Insights
The extensive benchmarking revealed several critical insights into modern RL:
- No Universal Winner: No single algorithm consistently outperformed others across all tasks, highlighting that RL performance remains highly task-dependent.
- Algorithm Resilience: Surprisingly, DDPG outperformed the more modern TD3 and SAC on the BipedalWalkerHardcore-v2 task. The authors suggest that DDPG’s inherent variance may provide beneficial exploration in certain complex landscapes.
- Distributional Benefits: Incorporating $n$-step returns and distributional value functions generally improved performance, though the impact varied significantly by environment.
Results and Impact
In aggregate comparisons, DDPG combined with Quantile Distributional RL and 1-step returns achieved the highest overall score across the benchmark suite. The framework's scalability was further proven in the NeurIPS 2018 AI for Prosthetics Challenge. Despite the slow simulator (~1 fps), the team achieved 3rd place by scaling the number of samplers, demonstrating Catalyst.RL's effectiveness in handling computationally expensive, real-world simulations.
Limitations and Future Work
Currently, Catalyst.RL focuses on off-policy algorithms for continuous control. Future development aims to include on-policy algorithms like PPO, support for discrete action spaces, and integrated automated hyperparameter tuning tools. By providing a standardized, scalable platform, Catalyst.RL aims to move the RL community toward more reliable and reproducible research.
Summary updated