MOReL: Model-Based Offline Reinforcement Learning

Rahul Kidambi, Aravind Rajeswaran, Praneeth Netrapalli, Thorsten Joachims

This paper introduces MOReL (Model-Based Offline Reinforcement Learning), a framework designed to make reinforcement learning (RL) practical in scenarios where we only have access to a static, pre-collected dataset and cannot interact with the environment during training.

The Challenge of Offline RL

The "Holy Grail" of RL is the ability to learn highly effective policies from historical data alone (offline RL), similar to how deep learning has revolutionized computer vision and NLP using large-scale datasets. However, offline RL faces a massive hurdle: distribution shift.

When an agent learns a policy, it naturally wants to visit states that promise high rewards. If these states weren't well-covered in the original dataset, the agent's learned model of the world might be wildly inaccurate in those regions. In standard model-based RL, the agent often "exploits" these inaccuracies—hallucinating high rewards where none exist—leading to a policy that performs catastrophically when deployed in the real world.

The MOReL Framework

MOReL is a model-based offline RL framework that learns a "pessimistic" Markov Decision Process (MDP) by identifying and penalizing regions of the state-action space where the learned dynamics model is uncertain. This approach prevents the agent from exploiting model inaccuracies.

The framework breaks the problem into two modular steps:

  1. Learning a Pessimistic MDP (P-MDP):
    • Dynamics Learning: First, it learns a dynamics model from the offline dataset.
  2. Unknown State-Action Detector (USAD): It uses an ensemble of models to quantify uncertainty. If the models in the ensemble disagree significantly about a state-action pair, that region is flagged as "unknown."
    • Pessimism: It constructs a P-MDP where "known" regions behave according to the learned model, but any transition into an "unknown" region leads to a special HALT state. This HALT state is absorbing and carries a large negative reward.
  3. Policy Optimization: The agent then learns a near-optimal policy within this P-MDP. Because the P-MDP heavily penalizes entering unknown territory, the agent is forced to stay within regions where the model is reliable.
The MOReL framework: (a) offline RL paradigm; (b) the two-step MOReL process; (c) partitioning the state-action space with a HALT state.

Key Insights

  • Pessimism as a Lower Bound: The authors prove theoretically that the performance of any policy in the P-MDP is an approximate lower bound on its performance in the real environment. This makes the P-MDP a safe surrogate for policy evaluation.
  • Model-Based vs. Model-Free Regularization: While model-free offline RL methods usually regularize the policy to stay close to the behavior policy (which can be overly conservative), MOReL regularizes in the space of state visitations. It allows the agent to deviate from the behavior policy as long as it stays within "known" (well-modeled) states.

Experimental Results

The authors evaluated MOReL on standard continuous control benchmarks from OpenAI Gym, simulated using MuJoCo (Hopper, HalfCheetah, Ant, and Walker2d). They used various logged datasets ranging from "Pure" to "Noisy" to simulate different levels of data quality.

  • State-of-the-Art Performance: MOReL achieved SOTA results in 12 out of 20 environment-dataset combinations, significantly outperforming prior model-free leaders like BRAC.
  • Superior Stability: "Naive" model-based RL is notoriously unstable in offline settings. By adding the USAD and the HALT state, MOReL transforms an unstable optimization problem into a stable, near-monotonic learning process. While naive approaches often learn quickly and then "crash" due to model exploitation, MOReL's learning curves remain remarkably stable.
Learning curves demonstrating MOReL's stable, near-monotonic improvement compared to baseline methods.

Limitations and Future Work

The effectiveness of MOReL hinges heavily on the USAD. If the ensemble discrepancy fails to capture true model uncertainty, the "pessimism" safeguard fails. Additionally, the threshold for what constitutes an "unknown" state is a tunable hyperparameter that can impact performance. Future improvements in dynamics modeling or better uncertainty quantification can be plugged directly into the MOReL framework to further boost results.

Summary updated

BibTeX
@inproceedings{kidambi2020morel,
  author = {Rahul Kidambi and Aravind Rajeswaran and Praneeth Netrapalli and Thorsten Joachims},
  title = {{MOReL: Model-Based Offline Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
}
Figure