arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2110.01101cs.LGcs.SYeess.SY
收藏

并行参与者和学习者:生成可伸缩RL实现的框架

Parallel Actors and Learners: A Framework for Generating Scalable RL Implementations

University of Southern California(南加州大学)

Chi Zhang, Sanmukh Rao Kuppannagari, Viktor K Prasanna

摘要:

强化学习(RL)在机器人、游戏和医疗保健等应用领域取得了巨大成功。然而,训练RL代理非常耗时。目前的实现表现出性能不佳,由于挑战,如不规则的内存访问和线程级同步开销的CPU。在这项工作中,我们提出了一个框架,用于在多核系统上生成可扩展的强化学习实现。重播缓冲区是RL算法的关键组件,它有助于存储从环境相互作用中获得的样本以及学习过程的数据采样。我们定义了一个新的数据结构的优先级重放缓冲区的基础上$K$ -ary和树,支持异步并行插入,采样,和优先级更新。为了解决不规则内存访问的挑战,我们提出了一种新的数据布局来存储和树的节点,减少了缓存未命中的数量。此外,我们提出了$\textit{lazy writing}$机制,以减少线程级的同步开销的重放缓冲区操作。我们的框架采用并行演员同时收集数据,通过环境的相互作用,并行学习者执行随机梯度下降使用收集的数据。我们的框架支持广泛的强化学习算法,包括DQN,DDPG等。我们通过使用OpenAI基准测试在CPU + GPU平台上进行实验,证明了我们的框架在加速RL算法方面的有效性。

英文摘要:

Reinforcement Learning (RL) has achieved significant success in application domains such as robotics, games and health care. However, training RL agents is very time consuming. Current implementations exhibit poor performance due to challenges such as irregular memory accesses and thread-level synchronization overheads on CPU. In this work, we propose a framework for generating scalable reinforcement learning implementations on multi-core systems. Replay Buffer is a key component of RL algorithms which facilitates storage of samples obtained from environmental interactions and data sampling for the learning process. We define a new data structure for Prioritized Replay Buffer based on $K$-ary sum tree that supports asynchronous parallel insertions, sampling, and priority updates. To address the challenge of irregular memory accesses, we propose a novel data layout to store the nodes of the sum tree that reduces the number of cache misses. Additionally, we propose $\textit{lazy writing}$ mechanism to reduce thread-level synchronization overheads of the Replay Buffer operations. Our framework employs parallel actors to concurrently collect data via environmental interactions, and parallel learners to perform stochastic gradient descent using the collected data. Our framework supports a wide range of reinforcement learning algorithms including DQN, DDPG, etc. We demonstrate the effectiveness of our framework in accelerating RL algorithms by performing experiments on CPU + GPU platform using OpenAI benchmarks.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑