Towards Optimal Off-Policy Evaluation for Reinforcement Learning with Marginalized Importance Sampling

By Tengyang Xie, Yifei Ma, Yu-Xiang Wang. 2019

199 citations recorded by the source corpus.

Motivated by the many real-world applications of reinforcement learning (RL) that require safe-policy iterations, we consider the problem of off-policy evaluation (OPE) -- the problem of evaluating a new policy using the historical data obtained by different behavior policies -- under the model of nonstationary episodic Markov Decision Processes (MDP) with a long horizon and a large action space. Existing importance sampling (IS) methods often suffer from large variance that depends exponentially on the RL horizon $H$. To solve this problem, we consider a marginalized importance sampling (MIS) estimator that recursively estimates the state marginal distribution for the target policy at every step. MIS achieves a mean-squared error of $$ \frac{1}{n} \sum\nolimits_{t=1}^H\mathbb{E}_{\mu}\left[\frac{d_t^\pi(s_t)^2}{d_t^\mu(s_t)^2} \mathrm{Var}_{\mu}\left[\frac{\pi_t(a_t|s_t)}{\mu_t(a_t|s_t)}\big( V_{t+1}^\pi(s_{t+1}) + r_t\big) \middle| s_t\right]\right] + \tilde{O}(n^{-1.5}) $$ where $\mu$ and $\pi$ are the logging and target policies, $d_t^{\mu}(s_t)$ and $d_t^{\pi}(s_t)$ are the marginal distribution of the state at $t$th step, $H$ is the horizon, $n$ is the sample size and $V_{t+1}^\pi$ is the value function of the MDP under $\pi$. The result matches the Cramer-Rao lower bound in \citet{jiang2016doubly} up to a multiplicative factor of $H$. To the best of our knowledge, this is the first OPE estimation error bound with a polynomial dependence on $H$. Besides theory, we show empirical superiority of our method in time-varying, partially observable, and long-horizon RL environments.

Subfields: Artificial Intelligence, Computer Networks and Communications, Statistics and Probability, Reinforcement Learning

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Nan Jiang
  2. Masatoshi Uehara
  3. Ofir Nachum
  4. Nathan Kallus
  5. Lihong Li
  6. Sergey Levine
  7. Bo Dai
  8. Ziyang Tang

In Computer Networks and Communications

  1. Masatoshi Uehara
  2. Nathan Kallus
  3. Nan Jiang
  4. Andrea Zanette
  5. Bo Dai
  6. Lihong Li
  7. Ziyang Tang
  8. Sham M. Kakade

In Statistics and Probability

  1. Masatoshi Uehara
  2. Nathan Kallus
  3. Nan Jiang
  4. Ziyang Tang
  5. Jiawei Huang
  6. Lihong Li
  7. Sham M. Kakade
  8. Andrea Zanette

In Reinforcement Learning

  1. Nan Jiang
  2. Masatoshi Uehara
  3. Nathan Kallus
  4. Ofir Nachum
  5. Ziyang Tang
  6. Lihong Li
  7. Sergey Levine
  8. Jiawei Huang

Citations in the corpus