When to Trust Your Model: Model-Based Policy Optimization

Michael Janner, Justin Fu, Marvin Zhang, Sergey Levine
6/19/2019
cs.LGcs.AIstat.ML

Official code: jannerm/mbpo (564 stars, MIT, last commit 2022-11-22).

Abstract

Designing effective model-based reinforcement learning algorithms is difficult because the ease of data generation must be weighed against the bias of model-generated data. In this paper, we study the role of model usage in policy optimization both theoretically and empirically. We first formulate and analyze a model-based reinforcement learning algorithm with a guarantee of monotonic improvement at each step. In practice, this analysis is overly pessimistic and suggests that real off-policy data is always preferable to model-generated on-policy data, but we show that an empirical estimate of model generalization can be incorporated into such analysis to justify model usage. Motivated by this analysis, we then demonstrate that a simple procedure of using short model-generated rollouts branched from real data has the benefits of more complicated model-based algorithms without the usual pitfalls. In particular, this approach surpasses the sample efficiency of prior model-based methods, matches the asymptotic performance of the best model-free algorithms, and scales to horizons that cause other model-based methods to fail entirely.

View on arXivView PDF

Code Implementations(1)

jannerm/mbpoOfficial100%
MIT

Code for the paper "When to Trust Your Model: Model-Based Policy Optimization"

56495PythonJul 29, 20193 years agoMIT

Cite this paper

@article{janner2019when,
  title  = {When to Trust Your Model: Model-Based Policy Optimization},
  author = {Michael Janner and Justin Fu and Marvin Zhang and Sergey Levine},
  year   = {2019},
  eprint = {1906.08253},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1906.08253}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1906.08253.svg)](https://codeofpaper.com/paper/1906.08253)

Discussion