Off-Policy Actor-Critic with Shared Experience Replay

Simon Schmitt, Matteo Hessel, Karen Simonyan

Introduction

Reinforcement learning (RL) agents, particularly actor-critic models, are notoriously data-hungry. While experience replay (ER)—storing past experiences in a buffer to reuse them—has been a cornerstone of data-efficient value-based methods like DQN, it is difficult to integrate with actor-critic methods. The primary challenge is that actor-critic methods are naturally "on-policy," meaning they learn from data generated by the current version of the agent. When they try to learn from "off-policy" data (older experiences or data from other agents), the gradients can become biased or unstable.

The LASER Framework

The paper introduces LASER (LArge Scale Experience Replay), a novel actor-critic framework that achieves state-of-the-art data efficiency by successfully combining large-scale experience replay with off-policy corrections.

Technical Solutions for Stability

To stabilize off-policy actor-critic learning, the authors propose two key technical solutions:

  1. Mixing On-Policy and Off-Policy Data: Learning purely from a replay buffer (100% off-policy) can lead to failure. By ensuring a small fraction (e.g., 12.5%) of the training batch consists of "fresh" on-policy data, the authors provide a regularization effect that keeps the policy gradient pointing in a productive direction.
  2. Trust Region V-trace: The authors introduce a "behaviour relevance function" to filter replayed experiences. If a replayed trajectory was generated by a policy too different from the current one (measured via KL divergence), it is rejected. This trust region effectively controls the bias introduced by off-policy corrections.

Shared Experience Replay

These stability improvements enable a shared replay setup. In a typical hyperparameter sweep, multiple agents run independently. In LASER, all agents in a sweep contribute to and sample from the same common replay module. This allows agents to benefit from "parallel exploration," learning from the successes and failures of their peers. As shown in the figure below, the proposed trust region is critical for making this shared learning stable.

Naively sharing experience between agents (green) fails compared to the baseline (blue). The proposed trust region (red) mitigates this, enabling stable learning from shared data.

Experimental Results

The researchers evaluated LASER on two standard, high-complexity RL benchmarks: Atari 57 and DMLab-30.

State-of-the-Art Efficiency

LASER achieved a median human-normalized score of 448% on Atari 57 after 200M environment frames, outperforming previous leaders like Rainbow and IMPALA. Notably, LASER with shared replay reached the 400% performance milestone in just 60M steps per agent. For comparison, the previous best agent (R2D2) required over 3,000M steps to reach the same level.

LASER with shared replay (red) shows dramatically higher sample efficiency on Atari compared to standard IMPALA (blue) and other state-of-the-art agents.

Conclusion and Future Work

LASER demonstrates that large-scale, shared experience replay can be successfully integrated into actor-critic frameworks by addressing the fundamental failure modes of off-policy corrections. While the current work uses a fixed mixing ratio and threshold for the trust region, future research could explore adaptive mechanisms to further improve robustness. Additionally, extending these insights from discrete action spaces to continuous control domains remains a promising direction.

Summary updated

BibTeX
@inproceedings{schmitt2020off,
  author = {Simon Schmitt and Matteo Hessel and Karen Simonyan},
  title = {{Off-Policy Actor-Critic with Shared Experience Replay}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
}
Figure