[Paper Review] Podracer architectures for scalable Reinforcement Learning
This paper introduces Podracer architectures—Anakin and Sebulba—designed to scale reinforcement learning efficiently on TPU Pods using JAX. By leveraging massive parallelism, large batch sizes, and optimized TPU utilization, the authors achieve up to 43 million frames per second on a full TPU Pod, training agents in under a minute while reducing costs and improving data efficiency compared to prior systems.
Supporting state-of-the-art AI research requires balancing rapid prototyping, ease of use, and quick iteration, with the ability to deploy experiments at a scale traditionally associated with production systems.Deep learning frameworks such as TensorFlow, PyTorch and JAX allow users to transparently make use of accelerators, such as TPUs and GPUs, to offload the more computationally intensive parts of training and inference in modern deep learning systems. Popular training pipelines that use these frameworks for deep learning typically focus on (un-)supervised learning. How to best train reinforcement learning (RL) agents at scale is still an active research area. In this report we argue that TPUs are particularly well suited for training RL agents in a scalable, efficient and reproducible way. Specifically we describe two architectures designed to make the best use of the resources available on a TPU Pod (a special configuration in a Google data center that features multiple TPU devices connected to each other by extremely low latency communication channels).
Motivation & Objective
- To address the growing computational demands of scalable deep reinforcement learning (RL) training.
- To enable rapid prototyping and high-throughput training in RL research by leveraging TPU Pods.
- To design systems that balance ease of use with production-grade scalability and reproducibility.
- To improve data efficiency and reduce training costs through optimized TPU utilization and architectural choices.
- To support diverse RL workloads, including model-free and search-based agents like MuZero.
Proposed method
- Designing Anakin and Sebulba as Podracer architectures to train online and actor-learner RL agents on TPU Pods.
- Using JAX for composable program transformations, automatic differentiation, and hardware acceleration on TPUs.
- Scaling training via increased actor and learner batch sizes, longer trajectories, and network depth to maximize TPU utilization.
- Enabling linear scaling of throughput by decoupling acting and learning batch sizes, particularly beneficial for search-based agents.
- Implementing pure JAX-based MCTS for MuZero-style agents, avoiding custom C++ code for search.
- Replicating and scaling experiments across multiple TPU cores (up to 2048) to achieve high throughput and low wall-clock times.
Experimental results
Research questions
- RQ1How can TPU Pods be effectively leveraged to scale deep reinforcement learning training while maintaining research agility?
- RQ2What architectural choices maximize throughput and data efficiency in large-scale RL training on TPUs?
- RQ3Can pure JAX implementations match or exceed the performance of hybrid C++/Python systems for complex RL agents like MuZero?
- RQ4How does increasing batch size and network capacity affect data efficiency and cost in TPU-based RL training?
- RQ5To what extent can scalability be decoupled from data efficiency in actor-learner RL frameworks?
Key findings
- Sebulba achieved 43 million frames per second on a 2048-core TPU Pod, training a Pong agent in under one minute.
- Training a V-trace agent on an 8-core TPU reached 200,000 frames per second by increasing actor batch size from 32 to 128.
- Using larger networks instead of larger batches improved data efficiency without increasing TPU hours or cost.
- MuZero agents trained on Sebulba reached 200M Atari frames in 9 hours on a 16-core TPU, at a cost of ~$40 on preemptible instances.
- Throughput scaled linearly with TPU core count for MuZero, demonstrating effective horizontal scaling.
- Decoupling acting and learning batch sizes preserved data efficiency while enabling faster training via replication.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.