EnvPool:一个高度并行的强化学习环境执行引擎
EnvPool: A Highly Parallel Reinforcement Learning Environment Execution Engine
摘要:
在开发强化学习(RL)训练系统方面已经取得了重大进展。过去的工作,如IMPALA,Apex,Seed RL,Sample Factory等,旨在提高系统的整体吞吐量。在本文中,我们的目标是解决RL培训系统中的一个常见瓶颈,即,并行环境执行,这通常是整个系统中最慢的部分,但很少受到关注。通过针对并行RL环境的精心设计,我们提高了不同硬件设置的RL环境模拟速度,从笔记本电脑和普通工作站到高端机器(如NVIDIA DGX-A100)。在高端机器上,EnvPool在Atari环境中的环境执行速度达到每秒100万帧,在MuJoCo环境中达到每秒300万帧。在笔记本电脑上运行EnvPool时,速度是Python子进程的2.8倍。此外,在开源社区中已经证明了与现有RL训练库的良好兼容性,包括CleanRL,rl_games,DeepMind Acme等。最后,EnvPool允许研究人员以更快的速度验证他们的想法,并具有成为事实上的RL环境执行引擎的巨大潜力。示例运行表明,训练代理在笔记本电脑上玩Atari Pong和MuJoCo Ant只需要五分钟。EnvPool在https://github.com/sail-sg/envpool上开源。
英文摘要:
There has been significant progress in developing reinforcement learning (RL) training systems. Past works such as IMPALA, Apex, Seed RL, Sample Factory, and others, aim to improve the system's overall throughput. In this paper, we aim to address a common bottleneck in the RL training system, i.e., parallel environment execution, which is often the slowest part of the whole system but receives little attention. With a curated design for paralleling RL environments, we have improved the RL environment simulation speed across different hardware setups, ranging from a laptop and a modest workstation, to a high-end machine such as NVIDIA DGX-A100. On a high-end machine, EnvPool achieves one million frames per second for the environment execution on Atari environments and three million frames per second on MuJoCo environments. When running EnvPool on a laptop, the speed is 2.8x that of the Python subprocess. Moreover, great compatibility with existing RL training libraries has been demonstrated in the open-sourced community, including CleanRL, rl_games, DeepMind Acme, etc. Finally, EnvPool allows researchers to iterate their ideas at a much faster pace and has great potential to become the de facto RL environment execution engine. Example runs show that it only takes five minutes to train agents to play Atari Pong and MuJoCo Ant on a laptop. EnvPool is open-sourced at https://github.com/sail-sg/envpool.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。