Keep Doing What Worked: Behavioral Modelling Priors for Offline Reinforcement Learning

Noah Y. Siegel, Jost Tobias Springenberg, Felix Berkenkamp, Abbas Abdolmaleki, Michael Neunert, Thomas Lampe, Roland Hafner, Nicolas Heess, Martin A. RiedmillerarXiv 2020

Abstract

Off-policy reinforcement learning algorithms promise to be applicable in settings where only a fixed data-set (batch) of environment interactions is available and no new experience can be acquired. This property makes these algorithms appealing for real world problems such as robot control. In practice, however, standard off-policy algorithms fail in the batch setting for continuous control. In this paper, we propose a simple solution to this problem. It admits the use of data generated by arbitrary behavior policies and uses a learned prior -- the advantage-weighted behavior model (ABM) -- to bias the RL policy towards actions that have previously been executed and are likely to be successful on the new task. Our method can be seen as an extension of recent work on batch-RL that enables stable learning from conflicting data-sources. We find improvements on competitive baselines in a variety of RL tasks -- including standard continuous control benchmarks and multi-task learning for simulated and real-world robots.

Introduction

Reinforcement Learning (RL) has traditionally relied on active exploration to discover optimal behaviors. However, in many high-stakes or resource-intensive applications—such as robotics, healthcare, or industrial control—random exploration is often impractical or dangerous. Offline RL (or Batch RL) seeks to overcome this by learning high-performing policies exclusively from pre-recorded datasets.

The central challenge in offline RL is extrapolation error. Standard off-policy algorithms, like Q-learning, tend to overestimate the value of actions that are not well-represented in the training data. In an online setting, the agent would attempt these actions and correct its estimates; offline, it remains trapped by these "hallucinated" rewards, leading to policy failure.

Methodology: The Advantage-Weighted Behavior Model (ABM)

We propose a policy iteration framework that addresses extrapolation error by constraining the agent's policy to stay close to a learned prior. The core of our approach is the Advantage-Weighted Behavior Model (ABM).

While a standard Behavior Model (BM) simply clones all actions in a dataset, ABM weights actions based on their advantage—how much better they performed compared to the current policy's average. This allows the model to:

  1. Filter Conflicting Data: In datasets containing a mix of expert and suboptimal behaviors, ABM focuses the prior on the successful trajectories.
  2. Avoid the "Max" Trap: By using an expectation-based policy iteration rather than a hard max operator over actions, we bypass the optimism bias that plagues standard Q-learning in offline settings.

Experimental Evaluation

We evaluated ABM across three increasingly complex domains: the DeepMind Control Suite, a simulated Sawyer robot manipulation environment, and a real-world Sawyer robot.

Continuous Control Benchmarks

On standard benchmarks like Cheetah and Walker, ABM-based methods (ABM+MPO and ABM+SVG) demonstrated superior stability and final performance compared to both standard off-policy algorithms and specialized offline baselines like BCQ and BEAR.

Performance comparison on the DeepMind Control Suite (10k episodes).

Multi-Task Robotic Manipulation

In the Sawyer robot simulation, we tested the agent on a suite of tasks including reaching, grasping, and stacking. ABM proved robust enough to handle the multi-task nature of the data, effectively "stitching" together relevant behavioral primitives to solve complex multi-stage problems.

Multi-task manipulation results on the simulated Sawyer robot.

Key Insights

  • Robustness to Low-Quality Data: ABM can learn effectively even from "noisy" datasets, such as the initial 2,000 episodes of a training run, where standard RL methods typically fail to gain traction.
  • Zero-Shot Task Learning: Remarkably, if the training data is sufficiently diverse, ABM can learn entirely new tasks (e.g., moving a block to a specific corner) even if those exact tasks were never explicitly performed in the source data.
  • Real-World Efficiency: On a physical Sawyer robot, ABM successfully learned a stacking task from logged data in just 12 hours of computation—matching the performance of an online training run that originally required over 200 hours of robot time.

Conclusion and Limitations

ABM provides a simple yet powerful mechanism for stable offline RL by "keeping what worked." However, the method is fundamentally limited by the coverage of the input dataset; it cannot discover successful behaviors if no relevant components exist in the data. Additionally, the KL-divergence constraint ($\epsilon$) remains a hyperparameter that may require tuning. Future research will focus on leveraging massive, diverse "play" datasets to enable more general-purpose robotic skill acquisition.

Summary updated

BibTeX
@misc{siegel2020keep,
  author = {Noah Y. Siegel and Jost Tobias Springenberg and Felix Berkenkamp and Abbas Abdolmaleki and Michael Neunert and Thomas Lampe and Roland Hafner and Nicolas Heess and Martin A. Riedmiller},
  title = {{Keep Doing What Worked: Behavioral Modelling Priors for Offline Reinforcement Learning}},
  year = {2020},
  eprint = {2002.08396},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.08396},
}
Figure