[Paper Review] SLM Lab: A Comprehensive Benchmark and Modular Software Framework for Reproducible Deep Reinforcement Learning
SLM Lab is a modular, reproducible deep reinforcement learning framework that integrates algorithm implementation, hyperparameter optimization, parallel training, and result analysis in a single codebase. It enables reliable benchmarking across 77 environments and introduces a discrete-action SAC variant and a hybrid synchronous/asynchronous training method, significantly improving reproducibility and extensibility in RL research.
We introduce SLM Lab, a software framework for reproducible reinforcement learning (RL) research. SLM Lab implements a number of popular RL algorithms, provides synchronous and asynchronous parallel experiment execution, hyperparameter search, and result analysis. RL algorithms in SLM Lab are implemented in a modular way such that differences in algorithm performance can be confidently ascribed to differences between algorithms, not between implementations. In this work we present the design choices behind SLM Lab and use it to produce a comprehensive single-codebase RL algorithm benchmark. In addition, as a consequence of SLM Lab's modular design, we introduce and evaluate a discrete-action variant of the Soft Actor-Critic algorithm (Haarnoja et al., 2018) and a hybrid synchronous/asynchronous training method for RL agents.
Motivation & Objective
- Address the reproducibility crisis in deep reinforcement learning by providing a unified, modular software framework.
- Enable reliable comparison of RL algorithms by minimizing implementation variance through consistent, modular code design.
- Support scalable, parallelized training with both synchronous and asynchronous execution strategies.
- Facilitate systematic hyperparameter optimization and result analysis within a single experimental framework.
- Extend the reach of existing algorithms—such as SAC—to discrete action spaces and improve training efficiency via hybrid parallelization.
Proposed method
- Design SLM Lab around three core modular components: Algorithm (policy and loss logic), Net (neural network function approximators), and Memory (experience replay and data handling).
- Implement RL algorithms as subclasses that inherit from base classes, ensuring consistent interfaces and minimizing implementation drift.
- Support both synchronous (vectorized environments) and asynchronous (parallel agent training) parallelization, enabling efficient scaling.
- Use configuration files to separate hyperparameters from code, enabling systematic hyperparameter search and reproducibility.
- Integrate experiment tracking and visualization tools to support result analysis and dashboarding.
- Develop a discrete-action variant of Soft Actor-Critic (SAC) by adapting the original continuous-action formulation to discrete action spaces.
Experimental results
Research questions
- RQ1Can a modular software framework reduce implementation variance and improve reproducibility in deep reinforcement learning experiments?
- RQ2How does the performance of popular RL algorithms compare across a large set of environments when implemented in a single, consistent codebase?
- RQ3Can a hybrid synchronous/asynchronous training strategy improve sample efficiency and training stability in deep RL?
- RQ4What are the performance characteristics of a discrete-action variant of SAC compared to standard discrete algorithms like DQN or PPO?
- RQ5To what extent can a unified framework support end-to-end workflows including hyperparameter optimization, parallel training, and result analysis?
Key findings
- SLM Lab enables the first comprehensive, single-codebase benchmark of deep RL algorithms across 77 environments, providing a reliable foundation for algorithm comparison.
- The modular design ensures that performance differences between algorithms like PPO and Actor-Critic are attributable to algorithmic changes, not implementation artifacts.
- The discrete-action SAC variant achieves competitive performance on discrete control tasks, demonstrating the framework's extensibility to new algorithmic variants.
- The hybrid synchronous/asynchronous training method improves training efficiency and stability, particularly in sample-constrained environments.
- SLM Lab supports full reproducibility through seed-controlled sessions, configurable hyperparameter search, and integrated result visualization.
- The framework outperforms or matches existing libraries in functionality, offering integrated support for benchmarking, hyperparameter optimization, and parallel training.
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.