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

preprint2020arXivOpen access

Abstract

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 HH. 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 1n∑t=1HEμ[dtπ(st)2dtμ(st)2Varμ[πt(at∣st)μt(at∣st)(Vt+1π(st+1)+rt)|st]]+O~(n−1.5) \frac{1}{n} \sum\nolimits_{t=1}^H\mathbb{E}_μ\left[\frac{d_t^π(s_t)^2}{d_t^μ(s_t)^2} \mathrm{Var}_μ\left[\frac{π_t(a_t|s_t)}{μ_t(a_t|s_t)}\big( V_{t+1}^π(s_{t+1}) + r_t\big) \middle| s_t\right]\right] + \tilde{O}(n^{-1.5}) where μμ and ππ are the logging and target policies, dtμ(st)d_t^μ(s_t) and dtπ(st)d_t^π(s_t) are the marginal distribution of the state at ttth step, HH is the horizon, nn is the sample size and Vt+1πV_{t+1}^π is the value function of the MDP under ππ. The result matches the Cramer-Rao lower bound in \citet{jiang2016doubly} up to a multiplicative factor of HH. To the best of our knowledge, this is the first OPE estimation error bound with a polynomial dependence on HH. Besides theory, we show empirical superiority of our method in time-varying, partially observable, and long-horizon RL environments.

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.