Acme: A Research Framework for Distributed Reinforcement Learning

Matthew D. Hoffman, Bobak Shahriari, John Aslanides, Gabriel Barth-Maron, Feryal Behbahani, Tamara Norman, Abbas Abdolmaleki, Albin Cassirer, Fan Yang, Kate Baumli, Sarah Henderson, Alexander Novikov, Sergio Gómez Colmenarejo, Serkan Cabi, Çaglar Gülçehre, Tom Le Paine, Andrew Cowie, Ziyu Wang, Bilal Piot, Nando de FreitasarXiv 2020

Introduction

Reinforcement Learning (RL) has traditionally been conceptualized as a simple interaction loop between an agent and its environment. In this classic paradigm, the agent observes the state, takes an action, and receives a reward, iteratively updating its policy to maximize cumulative returns.

The standard Reinforcement Learning loop consisting of an agent interacting with an environment through actions, observations, and rewards.

However, as RL has moved from toy problems to complex, real-world applications, the underlying architectures have grown significantly more sophisticated. Modern state-of-the-art agents often require massive computational resources and intricate, multi-component systems that go far beyond this simple loop.

The Prototype-to-Production Gap

A recurring challenge in RL research is the "complexity explosion." Researchers often find themselves in a cycle where a simple, readable script used to test a new idea on a small problem must be entirely rewritten to function on a large-scale distributed cluster. This gap between prototyping and production-scale execution hinders research velocity and complicates the reproduction of published results.

Acme, a framework developed by DeepMind, addresses this by providing a modular architecture where the same code used for local experiments can be deployed at scale. By decoupling the fundamental components of an RL agent, Acme ensures that the clarity of the underlying algorithm is preserved regardless of the hardware infrastructure.

The Acme Architecture: Separation of Concerns

The core philosophy of Acme is modularity through the separation of concerns. It breaks an RL agent down into three primary, independent components:

  1. Actors: These components are responsible for interacting with the environment. They observe states, select actions based on a policy, and "add" their experience to a storage system.
  2. Learners: These components consume data from storage to perform gradient updates and improve the policy parameters, which are then synced back to the actors.
  3. Storage (Reverb): A specialized, high-throughput storage system that handles experience replay, allowing actors and learners to operate asynchronously.
The Acme architecture decouples the environment interaction (Environment Loop) from the learning process, using a Replay buffer to bridge the two.

To manage these components, Acme introduces Builders—high-level blueprints that define how to construct actors, learners, and storage for a specific algorithm. For distributed execution, Acme leverages Launchpad, a tool that maps these modular components onto different processes or machines. This design allows for "scale-invariant" research: scaling up is often as simple as changing a configuration flag.

Benchmarking and Versatility

The authors validated Acme across a diverse array of standard and challenging benchmarks, demonstrating its versatility across different RL paradigms:

  • Discrete Control: Arcade Learning Environment (ALE) for classic Atari games.
  • Continuous Control: DeepMind Control Suite and OpenAI Gym (MuJoCo-based).
  • Offline RL: Evaluated using the D4RL and RL Unplugged datasets.
  • Imitation Learning: Tested on the Adroit suite, involving a 24-DOF simulated hand learning from human demonstrations.

By providing reference implementations for a massive library of algorithms (including DQN, D4PG, MPO, SAC, and PPO), Acme serves as a living library of state-of-the-art results, directly addressing the "reproducibility crisis" in the field.

Key Insights and Results

One of the most significant insights from the Acme framework is that offline RL is essentially "just a learner." In this architecture, an offline agent is simply a Learner component plugged into a static dataset rather than a live Replay buffer. This abstraction makes it trivial to adapt online algorithms for offline settings.

Furthermore, Acme addresses the stability of distributed systems through Rate Limiting. Using Reverb’s RateLimiter, the framework enforces a specific ratio of learning steps to acting steps, which is critical for maintaining the stability of off-policy algorithms at scale.

In terms of performance, the authors demonstrated that hardware scaling (e.g., moving from a single GPU to a TPU-v2 2x2 topology) could achieve a 5.6x speedup on tasks like Pong without changing any core algorithmic logic.

Conclusion and Future Work

Acme represents a significant step toward unifying RL research across scales. While the framework is platform-agnostic, there is an increasing transition toward JAX for network implementations, though TensorFlow remains supported. Future work involves deeper integration with multi-agent settings and further refining the "Builder" abstractions to handle increasingly exotic RL architectures. While Acme makes scaling easier, the authors emphasize that researchers must still remain mindful of the algorithmic implications of massive asynchrony.

Summary updated

BibTeX
@misc{hoffman2020acme,
  author = {Matthew D. Hoffman and Bobak Shahriari and John Aslanides and Gabriel Barth-Maron and Feryal Behbahani and Tamara Norman and Abbas Abdolmaleki and Albin Cassirer and Fan Yang and Kate Baumli and Sarah Henderson and Alexander Novikov and Sergio Gómez Colmenarejo and Serkan Cabi and Çaglar Gülçehre and Tom Le Paine and Andrew Cowie and Ziyu Wang and Bilal Piot and Nando de Freitas},
  title = {{Acme: A Research Framework for Distributed Reinforcement Learning}},
  year = {2020},
  eprint = {2006.00979},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.00979},
}
Figure