arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.00882cs.LGcs.AIcs.DC
收藏

MSRL:基于数据流片段的分布式强化学习

MSRL: Distributed Reinforcement Learning with Dataflow Fragments

Imperial College London(帝国理工学院);Huawei Technologies Co., Ltd.(华为技术有限公司);Huawei R&D United Kingdom(华为英国研发中心);Hong Kong University of Science and Technology(香港科技大学)

Huanzhou Zhu, Bo Zhao, Gang Chen, Weifeng Chen, Yijie Chen, Liang Shi, Yaodong Yang, Peter Pietzuch, Lei Chen

摘要:

强化学习(RL)训练许多代理,这是资源密集型的,并且必须扩展到大型GPU集群。不同的RL训练算法为分布式和并行计算提供了不同的机会。然而,当前的分布式RL系统将RL算法的定义与其分布式执行联系在一起:它们硬编码特定的分发策略,并且仅在GPU工作者上加速计算的特定部分(例如策略网络更新)。从根本上说,当前的系统缺乏将RL算法与其执行解耦的抽象。我们描述了MindSpore强化学习(MSRL),一个分布式RL训练系统,支持分布策略,管理RL训练计算如何并行化和分布在集群资源上,而不需要改变算法实现。MSRL引入了一个新的片段化图的抽象,它将Python函数从RL算法的训练循环映射到并行计算片段。片段通过将它们转换为低级递归表示(例如,由深度学习引擎、CUDA实现或多线程CPU进程支持的计算图)而在不同的设备上执行。我们证明了MSRL包含了现有系统的分布策略,同时将RL训练扩展到64个GPU。

英文摘要:

Reinforcement learning (RL) trains many agents, which is resource-intensive and must scale to large GPU clusters. Different RL training algorithms offer different opportunities for distributing and parallelising the computation. Yet, current distributed RL systems tie the definition of RL algorithms to their distributed execution: they hard-code particular distribution strategies and only accelerate specific parts of the computation (e.g. policy network updates) on GPU workers. Fundamentally, current systems lack abstractions that decouple RL algorithms from their execution. We describe MindSpore Reinforcement Learning (MSRL), a distributed RL training system that supports distribution policies that govern how RL training computation is parallelised and distributed on cluster resources, without requiring changes to the algorithm implementation. MSRL introduces the new abstraction of a fragmented dataflow graph, which maps Python functions from an RL algorithm's training loop to parallel computational fragments. Fragments are executed on different devices by translating them to low-level dataflow representations, e.g. computational graphs as supported by deep learning engines, CUDA implementations or multi-threaded CPU processes. We show that MSRL subsumes the distribution strategies of existing systems, while scaling RL training to 64 GPUs.

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

↑