Data Efficient Training for Reinforcement Learning with Adaptive Behavior Policy Sharing

Ge Liu, Rui Wu, Heng-Tze Cheng, Jing Wang, Jayden Ooi, Lihong Li, Ang Li, Wai Lok Sibon Li, Craig Boutilier, Ed ChiarXiv 2020

Abstract

Deep Reinforcement Learning (RL) is proven powerful for decision making in simulated environments. However, training deep RL models is challenging in real-world applications such as production-scale healthcare or recommender systems because of the expensiveness of interaction and limitation of budget at deployment. One aspect of the data inefficiency comes from the expensive hyperparameter tuning when optimizing deep neural networks. We propose Adaptive Behavior Policy Sharing (ABPS), a data-efficient training algorithm that allows sharing of experience collected by a behavior policy that is adaptively selected from a pool of agents trained with an ensemble of hyperparameters. We further extend ABPS to evolve hyperparameters during training by hybridizing ABPS with an adapted version of Population Based Training (ABPS-PBT). We conduct experiments with multiple Atari games with up to 16 hyperparameter/architecture setups. ABPS achieves superior overall performance, reduced variance on top 25% agents, and equivalent performance on the best agent compared to conventional hyperparameter tuning with independent training, even though ABPS only requires the same number of environmental interactions as training a single agent. We also show that ABPS-PBT further improves the convergence speed and reduces the variance.

Introduction: The Hidden Cost of Hyperparameter Tuning

In the idealized world of simulators, data is cheap. In the real world—think healthcare or large-scale recommender systems—every interaction with the environment is expensive, risky, or time-constrained.

A major "hidden" cost in deep RL is hyperparameter tuning. To find the best model, researchers typically train dozens of agents independently. If you have 16 different configurations, you traditionally need 16 times the data. Furthermore, in production systems, you cannot frequently swap out the "active" policy or run a massive ensemble of models simultaneously due to deployment costs and the need for a consistent user experience. The authors aim to bridge this gap by making the search for optimal hyperparameters as data-efficient as training a single agent.

Comparison of traditional sequential training (right) versus the proposed shared approach (left).

Methods: Adaptive Behavior Policy Sharing (ABPS)

The core innovation is Adaptive Behavior Policy Sharing (ABPS). Instead of training agents in isolation, ABPS maintains a pool of $K$ agents, each with a different hyperparameter or architecture setup.

  1. Shared Experience: Only one agent (the "behavior policy") interacts with the environment at any given time. All transitions (state, action, reward, next state) are stored in a single shared replay buffer.
  2. Parallel Learning: Every agent in the pool updates its own parameters by sampling from this shared buffer. Because algorithms like Deep Q-Networks (DQN) are "off-policy," they can learn effectively from data generated by a different policy.
  3. Adaptive Selection: To decide which agent should be the behavior policy, the authors treat the problem as a Multi-Armed Bandit. They test several strategies, including Upper Confidence Bound (UCB), $\epsilon$-greedy, and Softmax, to pick the agent that is currently performing best or offers the most "exploration" value.
  4. ABPS-PBT: The authors further extend this by integrating Population Based Training (PBT). This allows the system to not just select the best existing hyperparameters, but to actively evolve them during training by having poor-performing agents "exploit" (copy) the parameters of successful ones and "explore" by slightly perturbing them.
The ABPS architecture: multiple target policies learn from a shared replay buffer, with a behavior policy adaptively selected every m episodes.

Experimental Evaluation

The researchers evaluated their approach using the standard Atari 2600 benchmark via the OpenAI Gym. Specifically, they focused on:

  • Pong, Breakout, and Boxing: Used to test small hyperparameter pools (4–8 agents).
  • Large-scale Pong: A more complex setup with 16 agents featuring diverse architectures (normal, wide, deep, small) and varying learning rates.

Key Results and Insights

  • Matching the Best: In experiments across Atari games, the best agent produced by ABPS matched or exceeded the performance of the best agent found through traditional, data-intensive independent training.
  • Reduced Variance: ABPS significantly reduced the performance variance among the top 25% of agents in the pool, leading to a more robust set of candidate models.
  • PBT Acceleration: Integrating PBT (ABPS-PBT) dramatically improved convergence speed. The "best" agent is identified and optimized much earlier in the training process compared to standard methods.
  • The "Ensemble Bootstrapping" Effect: Interestingly, even a random selection of behavior policies can sometimes perform as well as sophisticated bandit strategies. This suggests that the mere act of switching between different policies provides a natural boost to exploration, helping the agents avoid local optima.
  • Efficiency without Sacrifice: ABPS allows you to get the "best of $N$" agents for the "price of 1" in terms of environmental steps. This is a massive win for real-world applications where the interaction budget is the primary bottleneck.

Limitations and Future Work

  • Off-Policy Constraint: The current framework relies on off-policy RL algorithms (like DQN). Applying this to on-policy algorithms (like PPO) would require complex importance sampling corrections, which can introduce high variance.
  • Bandit Non-Stationarity: Because agents are constantly learning, the "best" arm of the bandit is a moving target. While the authors used a sliding window to handle this, more sophisticated non-stationary bandit algorithms could potentially improve results.
  • Sim-to-Real Gap: While the motivation is real-world data efficiency, the evaluation is still within the Atari simulator. Testing ABPS in a true physical system or a high-fidelity industrial simulator remains a logical next step.

Summary updated

BibTeX
@misc{liu2020data,
  author = {Ge Liu and Rui Wu and Heng-Tze Cheng and Jing Wang and Jayden Ooi and Lihong Li and Ang Li and Wai Lok Sibon Li and Craig Boutilier and Ed Chi},
  title = {{Data Efficient Training for Reinforcement Learning with Adaptive Behavior Policy Sharing}},
  year = {2020},
  eprint = {2002.05229},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.05229},
}
Figure