SRL: Scaling Distributed Reinforcement Learning to Over Ten Thousand Cores
Zhiyu Mei, Wei Fu, Jiaxuan Gao, Guangju Wang, Huanchen Zhang, Yi Wu
TL;DR
SRL tackles the challenge of scaling reinforcement learning to large-scale clusters by introducing a general dataflow abstraction built on workers, streams, and services. It decouples actor (environment), policy (inference), and trainer (training) workloads into three core worker types and adds dataflow mechanisms (inference and sample streams) plus a parameter server to enable massively parallel data generation and training across heterogeneous hardware. Empirically, SRL delivers superior end-to-end training throughput compared with open-source baselines and scales effectively to clusters with tens of thousands of CPU cores, while also matching or accelerating learning performance on common RL benchmarks and in the challenging Hide-and-Seek environment (up to 5x wall-clock speedups with GPU inference). The work demonstrates substantial practical impact by enabling large-scale, flexible RL experimentation and rapid algorithm development, surpassing prior academic systems in throughput and scalability and approaching production-scale capabilities.
Abstract
The ever-growing complexity of reinforcement learning (RL) tasks demands a distributed system to efficiently generate and process a massive amount of data. However, existing open-source libraries suffer from various limitations, which impede their practical use in challenging scenarios where large-scale training is necessary. In this paper, we present a novel abstraction on the dataflows of RL training, which unifies diverse RL training applications into a general framework. Following this abstraction, we develop a scalable, efficient, and extensible distributed RL system called ReaLlyScalableRL, which allows efficient and massively parallelized training and easy development of customized algorithms. Our evaluation shows that SRL outperforms existing academic libraries, reaching at most 21x higher training throughput in a distributed setting. On learning performance, beyond performing and scaling well on common RL benchmarks with different RL algorithms, SRL can reproduce the same solution in the challenging hide-and-seek environment as reported by OpenAI with up to 5x speedup in wall-clock time. Notably, SRL is the first in the academic community to perform RL experiments at a large scale with over 15k CPU cores. SRL source code is available at: https://github.com/openpsi-project/srl .
