arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.19396cs.LGcs.AI
收藏

NAVIX:用 JAX 扩展 MiniGrid 环境

NAVIX: Scaling MiniGrid Environments with JAX

University College London(伦敦大学学院);BCCN Berlin(柏林计算神经科学中心);Technical University Berlin(柏林工业大学);University of Oxford(牛津大学);Google DeepMind(谷歌DeepMind);Mila(米拉研究所);Université de Montréal(蒙特利尔大学)

Eduardo Pignatelli, Jarek Liesen, Robert Tjarko Lange, Chris Lu, Pablo Samuel Castro, Laura Toni

AI总结:

本研究提出用 JAX 重构的 MiniGrid 环境 NAVIX,通过批处理和 GPU 加速实现超 20 万倍速度提升,支持单卡并行 2048 个智能体,大幅缩短实验时间。

摘要:

随着深度强化学习(Deep RL)研究转向解决大规模世界,高效的环境仿真对于快速实验变得至关重要。然而,大多数现有环境难以扩展到高吞吐量,阻碍了有意义的进展。由于在跨多台机器分配任务时存在较慢的计算和通信开销,交互通常在 CPU 上计算,限制了训练速度和吞吐量。最终,Deep RL 训练受限于 CPU,开发批处理、快速且可扩展的环境已成为进步的前沿。在常用的强化学习(RL)环境中,MiniGrid 是关于探索、课程学习、表示学习、多样性、元学习、信用分配和语言条件 RL 等多项研究的基础,但仍然存在上述局限性。在本研究中,我们引入了 NAVIX,即用 JAX 重新实现的 MiniGrid。NAVIX 在批处理模式下实现了超过 200000 倍的速度提升,在单块 Nvidia A100 80 GB 上支持多达 2048 个智能体并行。这将实验时间从一周缩短至 15 分钟,促进了更快的设计迭代和更可扩展的 RL 模型开发。

英文摘要:

As Deep Reinforcement Learning (Deep RL) research moves towards solving large-scale worlds, efficient environment simulations become crucial for rapid experimentation. However, most existing environments struggle to scale to high throughput, setting back meaningful progress. Interactions are typically computed on the CPU, limiting training speed and throughput, due to slower computation and communication overhead when distributing the task across multiple machines. Ultimately, Deep RL training is CPU-bound, and developing batched, fast, and scalable environments has become a frontier for progress. Among the most used Reinforcement Learning (RL) environments, MiniGrid is at the foundation of several studies on exploration, curriculum learning, representation learning, diversity, meta-learning, credit assignment, and language-conditioned RL, and still suffers from the limitations described above. In this work, we introduce NAVIX, a re-implementation of MiniGrid in JAX. NAVIX achieves over 200 000x speed improvements in batch mode, supporting up to 2048 agents in parallel on a single Nvidia A100 80 GB. This reduces experiment times from one week to 15 minutes, promoting faster design iterations and more scalable RL model development.

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

↑