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

JaxMARL: JAX中的多智能体强化学习环境与算法

JaxMARL: Multi-Agent RL Environments and Algorithms in JAX

University of Oxford(牛津大学);Universitat Politècnica de Catalunya(巴塞罗那理工大学);University College London(伦敦大学学院);University of Maryland(马里兰大学);Technical University Berlin(柏林技术大学)
Alexander Rutherford, Benjamin Ellis, Matteo Gallici, Jonathan Cook, Andrei Lupu, Gardar Ingvarsson, Timon Willi, Ravi Hammond, Akbir Khan, Christian Schroeder … 展开作者

Alexander Rutherford, Benjamin Ellis, Matteo Gallici, Jonathan Cook, Andrei Lupu, Gardar Ingvarsson, Timon Willi, Ravi Hammond, Akbir Khan, Christian Schroeder de Witt, Alexandra Souly, Saptarashmi Bandyopadhyay, Mikayel Samvelyan, Minqi Jiang, Robert Tjarko Lange, Shimon Whiteson, Bruno Lacerda, Nick Hawes, Tim Rocktaschel, Chris Lu, Jakob Nicolaus Foerster

AI总结:

JaxMARL是首个基于Python的开源库,结合GPU效率支持大量常用多智能体强化学习环境和基线算法,实验显示其训练流程在时间上比现有方法快14倍,多轮训练时快12500倍,缓解了多智能体强化学习领域的评估危机。

摘要:

基准测试在机器学习算法开发中至关重要,可用环境显著影响强化学习(RL)研究。传统RL环境运行在CPU上,限制了其在典型学术计算中的可扩展性。然而,最近的JAX进展使硬件加速的广泛应用成为可能,使大规模并行RL训练管道和环境成为可能。尽管这已成功应用于单智能体RL,但尚未广泛应用于多智能体场景。本文提出了JaxMARL,首个开源、基于Python的库,结合GPU效率支持大量常用MARL环境和流行基线算法。我们的实验显示,在墙钟时间方面,基于JAX的训练流程比现有方法快约14倍,当多个训练运行被向量化时,可达12500倍。这使高效和彻底的评估成为可能,可能缓解该领域中的评估危机。我们还介绍了SMAX,一个基于JAX的近似重实现的流行星际争霸多智能体挑战,无需运行星际争霸II游戏引擎。这不仅使GPU加速成为可能,还提供了更灵活的MARL环境,解锁了自我博弈、元学习等未来应用的潜力。代码可在https://github.com/flairox/jaxmarl获取。

英文摘要:

Benchmarks are crucial in the development of machine learning algorithms, with available environments significantly influencing reinforcement learning (RL) research. Traditionally, RL environments run on the CPU, which limits their scalability with typical academic compute. However, recent advancements in JAX have enabled the wider use of hardware acceleration, enabling massively parallel RL training pipelines and environments. While this has been successfully applied to single-agent RL, it has not yet been widely adopted for multi-agent scenarios. In this paper, we present JaxMARL, the first open-source, Python-based library that combines GPU-enabled efficiency with support for a large number of commonly used MARL environments and popular baseline algorithms. Our experiments show that, in terms of wall clock time, our JAX-based training pipeline is around 14 times faster than existing approaches, and up to 12500x when multiple training runs are vectorized. This enables efficient and thorough evaluations, potentially alleviating the evaluation crisis in the field. We also introduce and benchmark SMAX, a JAX-based approximate reimplementation of the popular StarCraft Multi-Agent Challenge, which removes the need to run the StarCraft II game engine. This not only enables GPU acceleration, but also provides a more flexible MARL environment, unlocking the potential for self-play, meta-learning, and other future applications in MARL. The code is available at https://github.com/flairox/jaxmarl.

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

↑