Massively Parallel Methods for Deep Reinforcement Learning

Arun Nair, Praveen Srinivasan, Sam Blackwell, Cagdas Alcicek, Rory Fearon, Alessandro De Maria, Vedavyas Panneershelvam, Mustafa Suleyman, Charles Beattie, Stig Petersen, Shane Legg, Volodymyr Mnih, Koray Kavukcuoglu, David SilverarXiv 2015

Introduction

DeepMind researchers introduce Gorila (General Reinforcement Learning Architecture), the first massively distributed framework for deep reinforcement learning. By decoupling acting, learning, and storage across many machines, Gorila achieves state-of-the-art results on Atari games up to ten times faster than a single-machine setup, while also improving the agent's ability to generalize to new situations.

While Deep Q-Networks (DQN) famously mastered Atari games, they were originally designed for single-machine architectures. This created a massive bottleneck: training a single game could take 12 to 14 days on a high-end GPU. Reinforcement Learning (RL) presents a unique scaling challenge compared to supervised learning because the agent creates its own data through interaction. To accelerate training, one must generate diverse experiences and process them in parallel without compromising system stability.

The Gorila Architecture

The Gorila architecture breaks the RL process into four distinct, distributed components:

  1. Parallel Actors: Multiple agents (e.g., 100) run in parallel, each interacting with its own instance of the environment to generate a diverse stream of experience.
  2. Distributed Experience Replay Memory: Experiences are stored in a distributed database, preventing memory bottlenecks and allowing learners to sample data globally.
  3. Parallel Learners: Multiple processes pull mini-batches from replay memory to calculate gradients for policy improvement.
  4. Parameter Server: A central, sharded server maintains the master copy of neural network weights, asynchronously receiving gradients and distributing updated weights.
The Gorila architecture decouples acting, learning, and storage using a distributed parameter server and parallel components.

The researchers primarily utilized a "bundled mode" where each machine housed one actor, one local replay memory, and one learner, all communicating with the central parameter server.

Evaluation and Results

The architecture was evaluated using the Arcade Learning Environment (ALE) across 49 Atari 2600 games. Training was conducted directly from raw pixels and game scores. Evaluation utilized two protocols: "null op starts" and "human starts" (starting from 100 random points in professional gameplay) to test generalization.

Gorila DQN outperformed the original single-GPU DQN in 41 out of 49 games. Crucially, it reached these performance levels roughly an order of magnitude faster—for instance, achieving in 2 days what previously required 12-14 days. On the "human starts" evaluation, Gorila outperformed the single-GPU version on 31 out of 49 games, demonstrating superior robustness to unseen states.

Gorila significantly outperforms standard DQN across the majority of Atari games, often exceeding human-level performance.

Key Insights and Conclusion

Decoupling acting from learning is fundamental to scaling RL. The diversity of experience generated by 100 parallel actors significantly improves generalization. To maintain stability in this asynchronous environment, the authors employed AdaGrad and implemented safeguards against stale gradients or outlier loss values.

While the "bundled mode" is efficient, a truly global replay memory introduces network latency that remains a challenge. Future work may involve per-game hyperparameter tuning and applying the Gorila framework to other algorithms like actor-critic or policy gradient methods.

Summary updated

BibTeX
@misc{nair2015massively,
  author = {Arun Nair and Praveen Srinivasan and Sam Blackwell and Cagdas Alcicek and Rory Fearon and Alessandro De Maria and Vedavyas Panneershelvam and Mustafa Suleyman and Charles Beattie and Stig Petersen and Shane Legg and Volodymyr Mnih and Koray Kavukcuoglu and David Silver},
  title = {{Massively Parallel Methods for Deep Reinforcement Learning}},
  year = {2015},
  eprint = {1507.04296},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1507.04296},
}
Figure