Offline Reinforcement Learning: Tutorial, Review, and Perspectives on Open Problems

Sergey Levine, Aviral Kumar, George Tucker, Justin FuarXiv 2020

Abstract

Offline reinforcement learning (RL) enables the training of agents using static, pre-collected datasets, bypassing the need for risky or expensive live environment interaction. This paper reviews the fundamental challenges of offline RL, primarily distributional shift, and categorizes algorithmic solutions into importance sampling, policy constraints, and model-based approaches.

Introduction: The Shift to Data-Driven RL

Standard reinforcement learning is inherently interactive, relying on trial-and-error. While effective in simulated environments, this "online" approach is often impractical for real-world domains like healthcare or autonomous driving, where exploration can be dangerous or prohibitively expensive.

Comparison of online, off-policy, and offline reinforcement learning paradigms.

The transition to offline RL (also known as batch RL) allows us to leverage vast amounts of existing logged data. However, standard RL algorithms typically fail when restricted to static datasets due to distributional shift. When an agent evaluates an action not present in the training data, it may overestimate its value. Without environment feedback to correct these errors, the policy performance collapses.

Methodological Pillars

The authors identify three primary strategies to mitigate distributional shift in offline settings:

  1. Importance Sampling: This involves reweighting transitions from the behavior policy to match the target policy. While mathematically grounded, it often suffers from high variance over long horizons—the "curse of horizon."
  2. Policy Constraints and Pessimism: Currently the most popular approach, these methods (e.g., BEAR, CQL) force the learned policy to stay close to the data distribution or explicitly penalize the value of actions not represented in the dataset.
  3. Model-Based Offline RL: Agents learn a transition model (a simulator) from the data. To avoid exploitation of model errors, the agent is penalized for entering states where the model’s uncertainty is high (e.g., MOPO, MoREL).

Benchmarking with D4RL

To facilitate progress, the paper introduces D4RL (Datasets for Deep Data-Driven Reinforcement Learning). Unlike traditional RL benchmarks that focus solely on the environment, D4RL emphasizes data quality and diversity, including expert, medium-quality, and mixed-behavior datasets across robotics and healthcare simulations.

Key Insights: Stitching and Support

A critical advantage of offline RL is the "stitching" property: the ability to combine sub-sequences from different trajectories to discover optimal paths never explicitly seen in the data. Furthermore, the authors distinguish between distribution matching and support matching, suggesting that agents should focus on staying within the set of actions covered by the data rather than mimicking the data's exact probabilities.

However, researchers must be wary of the "unlearning effect": training longer on offline data can sometimes degrade performance. As the Q-function is updated, it may slowly over-estimate out-of-distribution actions, causing the policy to eventually pursue "imaginary" high-reward regions.

Challenges and Future Directions

Despite recent advances, several hurdles remain:

  • Offline Evaluation: Selecting the best model without live deployment is difficult; reliable offline metrics are still an active area of research.
  • Theoretical vs. Empirical Gap: Current theoretical bounds are often overly pessimistic compared to observed performance. Bridging this gap is vital for safety-critical applications.
  • Scalability: Moving beyond robotics to complex, non-stationary fields like finance or personalized medicine remains a significant frontier.

Summary updated

BibTeX
@misc{levine2020offline,
  author = {Sergey Levine and Aviral Kumar and George Tucker and Justin Fu},
  title = {{Offline Reinforcement Learning: Tutorial, Review, and Perspectives on Open Problems}},
  year = {2020},
  eprint = {2005.01643},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2005.01643},
}
Figure