NAVIX: Scaling MiniGrid Environments with JAX

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Pignatelli, Eduardo, Liesen, Jarek, Lange, Robert Tjarko, Lu, Chris, Castro, Pablo Samuel, Toni, Laura
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929439546277888
author Pignatelli, Eduardo
Liesen, Jarek
Lange, Robert Tjarko
Lu, Chris
Castro, Pablo Samuel
Toni, Laura
author_facet Pignatelli, Eduardo
Liesen, Jarek
Lange, Robert Tjarko
Lu, Chris
Castro, Pablo Samuel
Toni, Laura
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2407_19396
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle NAVIX: Scaling MiniGrid Environments with JAX
Pignatelli, Eduardo
Liesen, Jarek
Lange, Robert Tjarko
Lu, Chris
Castro, Pablo Samuel
Toni, Laura
Machine Learning
Artificial Intelligence
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.
title NAVIX: Scaling MiniGrid Environments with JAX
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2407.19396