# A Review of Off-Policy Evaluation in Reinforcement Learning

Off-policy evaluation error grows polynomially in horizon under Markov structure

Masatoshi Uehara, Chengchun Shi, Nathan Kallus · arXiv · 2022-12-13

- **Problem** Stepwise augmented inverse propensity score estimators stay inconsistent with few trajectories, and their mean squared error grows exponentially with the horizon.
- **Method** The authors derive efficiency bounds for both non-Markov and Markov decision processes, then compare estimators against them.
- **Results** The authors show the NMDP bound grows exponentially in H, and the TMDP bound only polynomially, under stated conditions.

## Why long-horizon off-policy evaluation is hard

Off-policy evaluation estimates the mean reward of an evaluation policy from data that a different behavior policy produced. It matters most offline, where experimenting can be expensive, risky or unethical, as in healthcare. Statistics papers usually use a potential-outcome framework, while RL papers start from a Markov decision process, although the objectives are essentially the same.

Mobile health studies push the problem toward long horizons with few patients, which is the regime the review focuses on.

Stepwise augmented inverse propensity score estimators come from short-horizon studies, and applying them directly to mobile health data runs into two problems. First, these estimators are inconsistent with a finite number of trajectories, which is common when patients are few but decision points are many. Second, their mean squared error grows exponentially fast in the horizon, a problem known as the curse of horizon.

The authors add that this exponential dependence can't be avoided when the data come from a non-Markov decision process, which is the setting most dynamic treatment regime work assumes. That is why the exponential growth can be avoided only when the analyst assumes additional structure.

Computer science work suggests that Markovianity and time-homogeneity break this barrier. Markovianity lets estimators avoid the curse of horizon, and time-homogeneity lets them work even from a single trajectory. The review keeps the Markovian setting with long or infinite horizon as its focus.

## Three estimators in the contextual bandit setting

The key idea is to combine a reweighting estimator with a regression estimator, so the result stays consistent if either one is wrong. The setting starts from a context S, an action A drawn from a behavior policy, and a reward R, and the goal is to value a separate evaluation policy. The paper calls the behavior policy the propensity score, and it defines the observed data as triplets drawn i.i.d.

from the behavior policy. Under weak positivity, consistency and unconfoundedness, the value equals the reweighted reward, with the ratio η(s, a) = πe(a\|s)/πb(a\|s) multiplying r under the behavior distribution. Weak positivity requires the support of πe(·\|s) to lie inside the support of πb(·\|s) for every s.

The importance sampling estimator averages the ratio times the reward, and it is unbiased when the behavior policy is known. Its variance can become very large when the two policies differ, because the ratio can be very large for some samples. A self-normalized IS estimator or a truncated IS estimator, which replaces the behavior estimate with max(ǫ, ˆπb), can reduce that instability.

The direct method averages a fitted outcome model over the evaluation policy's actions, so it is biased when that model is misspecified. The two errors trade off, and in a linear model the direct method needs a weaker coverage condition than importance sampling.

The doubly robust estimator adds a residual correction, weighted by the ratio, on top of the direct method's value term. Dudik et al. (2014) introduced this estimator to the machine learning literature. Because the outcome model is right, the residual has mean zero, and because the behavior policy model is right, the weighted residual corrects the outcome model's bias.

So the doubly robust estimator stays consistent if either the outcome model or the behavior policy model is well specified.

## What the efficiency bound measures

The review treats the efficiency bound as the best asymptotic MSE one can hope for in OPE. Efficiency bounds are useful because they name the statistical limit of parameter estimation and let estimators be compared. The bound is the lower limit of asymptotic MSE among all regular root-n consistent estimators for a given model. Regular estimators are those whose limiting distributions barely change when the data generating process shifts slightly inside the model.

An efficient estimator is one whose MSE matches this bound asymptotically.

The authors get the bound from the efficient influence function (EIF), which they describe as the key object for building efficient estimators. One route to the EIF writes the derivative of the target with respect to the model parameters as an integral of a function times a score function. In a nonparametric model that function is unique and equals the EIF.

Averaging the EIF over the sample then gives the efficient estimator.

In the nonparametric contextual bandit model, the EIF is eta(s, a) times r minus q(s, a), plus q(s, pi\_e), minus E\[R(pi\_e)\]. The bound adds the eta-squared weighted conditional variance of r to the variance of q(s, pi\_e). Because q and eta are unknown, the authors plug in estimates, and the resulting value estimator equals the doubly robust estimator.

Sample splitting lets one part of the data fit the nuisance functions q and pi\_b while the other part estimates the value. Without sample splitting, the authors note that metric entropy conditions are needed, which many machine learning estimators may fail to meet.

Some specific DM and IS estimators also reach the bound under smoothness conditions. Kang and Schafer (2007) built a DM estimator that uses weights proportional to pi\_e over pi\_b, and it is doubly robust. Hahn (1998) estimated q nonparametrically and reached the bound under certain smoothness conditions. The vanilla doubly robust estimator still has limits when the nuisance models are misspecified, which motivated several later estimators.

## Where the horizon curse enters

The data-generating process decides how the horizon enters the efficiency bound. In an NMDP, the behavior policy, transitions and rewards all depend on the full history of earlier states, actions and rewards. A TMDP is a special case where the Markov property holds, so transitions and rewards depend only on the current state and action. The TMDP behavior policy is Markov as well, so the action depends only on the current state.

The authors estimate the joint distribution of an NMDP as a product over time of the behavior policy and the transition-reward density, with the full history in each factor.

For the NMDP, the efficient influence function uses cumulative density ratios, written λt, whereas for the TMDP it uses marginal density ratios, written µt. The authors say the difference between the two bounds comes from whether λt or µt enters the bound. Under bounded rewards, bounded log-ratios and bounded marginal ratios, the authors show the TMDP bound is at most C′ times R\_max squared times H squared.

They state the NMDP bound is at least C times H times V\_min squared, so it grows exponentially in H. The TMDP bound grows polynomially in H when the constant C′ is O(1).

The authors also argue that the NMDP bound is the smallest asymptotic MSE a regular, asymptotically linear off-policy estimator can reach. Earlier, the authors had noted that stepwise estimators suffer from the curse of horizon, with MSE growing exponentially in H. In TMDPs, by contrast, the authors say there exist estimators whose MSEs grow polynomially in H.

## Double reinforcement learning under TMDPs

The double reinforcement learning (DRL) estimator takes the empirical average of the TMDP efficient influence function, with the marginal ratio estimates and Q-function estimates plugged in. It is consistent when either the marginal ratio estimates or the Q-function estimates are consistent, so one of the two nuisance models can be wrong.

Its asymptotic MSE grows polynomially in H, whereas the earlier doubly robust variants grow exponentially in H.

Several earlier doubly robust variants, such as the self-normalized DR and TMLE versions, don't exploit the Markovian structure of TMDPs. Because they ignore Markovianity, those variants fail to be efficient under TMDP. Dropping the Q-function term from the DRL estimator turns it into the marginal IS estimator, with the marginal ratio estimates alone.

Computing the DRL estimator requires estimating the marginal density ratios and the Q-functions from the observed data. Since the marginal ratio is written as mu\_t = eta\_t w\_t, the authors estimate the behavior policy and the state ratio w\_t separately. The first method uses the identity w\_t(s\_t) = E\[lambda\_{t-1}(j\_{a,t-1}) \| s\_t\], so the problem becomes a regression on estimates of lambda\_{t-1}.

The second method uses the recursion w\_t(s\_t) = E\[w\_{t-1}(s\_{t-1}) eta\_t(s\_t, a\_t) \| s\_t\], which lets each w\_t be estimated sequentially by regression.

When the behavior policy is unknown, the authors recommend an estimating equation that the marginal ratios must satisfy. That equation can be used to build a minimax objective for the marginal ratios, which Section 4.4 covers.

## Time homogeneity and estimation from one trajectory

Time-homogeneity changes the estimation problem, because the transition and reward distributions no longer depend on the time index. Markovianity breaks the curse of horizon, and time-homogeneity lets the estimators work even from a single trajectory. The paper sets n = 1 as a special case, where a single trajectory is enough for consistent estimation.

In the NMDP and TMDP settings, consistent estimation instead requires the number of trajectories n to diverge to infinity. The authors attribute this difference to the time-homogeneity assumption under the MDP, which enables consistent estimation with a limited number of trajectories.

Under the MDP, the authors assume the behavior policy is stationary, so the density ratio is stationary as well. The offline data are converted into i.i.d. tuples, with N = nH denoting the total number of tuples. The value J(γ) is the expected discounted cumulative reward, with 0 ≤ γ \< 1 and the initial state distribution p(1)e assumed pre-specified.

The ratio µ\*(s,a) = p(∞)e,γ(s)πe(a\|s)/{pb(s)πb(a\|s)} combines the discounted state visitation distribution under πe with the behavior distribution. The paper defines the Q-function and the value function under πe, and w\*(s) as the marginal density ratio of the state.

Theorem 5 gives the efficient influence function with the term (1 − γ)^(-1) µ\*(s,a){r + γv(s') − q(s,a)} plus a term in q(s,πe). The efficiency bound is (1 − γ)^(-2) times the expectation of µ\*² times the conditional variance of r + γv(s'), and it is divided by N. The authors note that embedding a TMDP into an MDP by augmenting the state with a time index recovers the TMDP efficiency bound.

When the initial distribution is pre-specified, the variance term of v0 doesn't appear in the bound. Liao et al. (2022) derived the efficiency bound for the average-reward setting where γ = 1, and Bibaut et al. (2021) covered units that are not independent.

## Estimating Q-functions and ratios under MDPs

Under an MDP, the paper estimates two nuisance functions: the Q-function and the marginal density ratio. Unlike supervised learning, there is no natural cross-validation criterion for Q-function estimation. In minimax Q-learning, the minimax objective makes cross-validation very difficult to implement. The completeness requirement for FQE is that the Bellman operator maps the Q-function class into itself, written as BQ⊂Q.

The authors note this holds when the transition density is smooth and Q contains the class of smooth functions. For minimax Q-learning, completeness requires BQ⊂F, which holds when F contains the class of smooth functions.

For the marginal ratio, Uehara, Huang and Jiang (2020) proposed a minimax weight-learning method that doesn't impose stationarity. The method rests on an identity that holds for any function f, and the identity is agnostic to the behavior policy. The minimax estimator searches over rich function classes M and F with a tuning parameter λ≥0.

When both M and F are linear models, the marginal IS estimator JMIS reduces to LSTDQ. When πb is known, the paper says it suffices to estimate w\*, and Liu et al. (2018) propose an estimating equation for it.

Feng, Li and Liu (2019) estimate the state-value function v(s) with a minimax objective based on the Bellman equation. Linear models for v reduce this approach to methods discussed in Bertsekas and Yu (2009) and other cited works. Model-based estimators instead fit the transition and reward densities from data and plug them into the value formula.

Model-based methods are easier to tune, because standard supervised learning tools apply to the transition and reward functions. In settings with high-dimensional state information, model-based estimators may be less preferable, since modeling the transition is harder than modeling the value function.

## Limitations and open assumptions in Q-function and ratio convergence

The convergence results for Q-functions rely on realizability and Bellman completeness, and the authors state both as assumptions they often require. Realizability means the function class Q must be rich enough to contain q. For FQE, Bellman completeness requires BQ⊂ Q, and it holds when the transition density p is smooth and Q contains smooth functions.

For minimax Q-learning, completeness requires BQ⊂ F, which doesn't have the same monotonic property as BQ⊂ Q. Under q∈Q and Bellman completeness, the rate of the Bellman residual error follows from the critical radii of the function class. With parametric models of finite VC dimension the rate is Op(N −1/2), and with Hölder classes it is Op(N −α/(2α+d)).

Several cited papers show that realizability alone isn't enough for a non-asymptotic error bound polynomial in the horizon. So the authors argue that some further condition beyond realizability of Q-functions is needed.

One alternative is a matrix invertibility condition, which works when the models are linear. That condition is used in the statistics literature to study rates and asymptotic normality of the Q-function estimator. The authors don't see how to extend it to general function approximation, such as deep neural networks and random forests. Uehara et al.

obtain a non-asymptotic result for general function approximation by assuming realizability of the marginal density ratios. That result proves convergence of the policy value without convergence of the nuisance function estimators. Non-asymptotic lower bounds are still an open direction, since the efficiency bound describes only the best asymptotic MSE.

Such lower bounds would characterize the best achievable nonasymptotic MSE as a function of the sample size and horizon.

## Paper info

- **Authors**: Masatoshi Uehara, Chengchun Shi, Nathan Kallus
- **Venue**: arXiv · Preprint
- **First published**: 2022-12-13
- **Added**: 2026-11-6
- **Updated**: 2022-12-13
- **Version**: v1
- **arXiv**: 2212.06355
- **Category**: stat.ML · cs.LG · math.ST · stat.ME
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2212.06355v1) · [PDF ↗](https://arxiv.org/pdf/2212.06355v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

Reinforcement learning (RL) is one of the most vibrant research frontiers in machine learning and has been recently applied to solve a number of challenging problems. In this paper, we primarily focus on off-policy evaluation (OPE), one of the most fundamental topics in RL. In recent years, a number of OPE methods have been developed in the statistics and computer science literature. We provide a discussion on the efficiency bound of OPE, some of the existing state-of-the-art OPE methods, their statistical properties and some other related research directions that are currently actively explored.

## Quote from the paper

Masatoshi Uehara, Chengchun Shi, Nathan Kallus (2022). A Review of Off-Policy Evaluation in Reinforcement Learning. arXiv:2212.06355v1. https://arxiv.org/abs/2212.06355v1

**BibTeX**

```
@misc{uehara2022review,
  title = {{A Review of Off-Policy Evaluation in Reinforcement Learning}},
  author = {Masatoshi Uehara and Chengchun Shi and Nathan Kallus},
  year = {2022},
  eprint = {2212.06355},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2212.06355v1}
}
```

## Other paper commentary

- [Identifying optimal cycles in quantum thermal machines with reinforcement-learning](https://refivu.com/en/papers/91ae4a4b-783d-4d4a-9036-c66652125ae6-identifying-optimal-cycles-in-quantum-thermal-machines-with.md)
- [Mastering the Game of Stratego with Model-Free Multiagent Reinforcement Learning](https://refivu.com/en/papers/c8ba1a5f-8040-4096-92b0-d848951ca124-mastering-the-game-of-stratego-with-model-free.md)
- [Revisiting Critic Estimation in Soft Actor-Critic Algorithms](https://refivu.com/en/papers/3b523ee0-ead6-4c46-a193-319c3c9a36b7-revisiting-critic-estimation-in-soft-actor-critic-algorithms.md)
- [Reinforcement Learning via Self-Distillation](https://refivu.com/en/papers/020d237b-90b6-4f93-9da6-e25bde98d4ec-reinforcement-learning-via-self-distillation.md)
- [Soft Actor-Critic: Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actor](https://refivu.com/en/papers/ea8ec555-d426-4464-bcf3-677288c80a9c-soft-actor-critic-off-policy-maximum-entropy-deep.md)
- [Asynchronous Methods for Deep Reinforcement Learning](https://refivu.com/en/papers/39f3326a-859f-4ab8-9bdb-14644a9778e1-asynchronous-methods-for-deep-reinforcement-learning.md)
- [Multimodal Spatial Language Maps for Robot Navigation and Manipulation](https://refivu.com/en/papers/4a0d9969-87c8-4cf7-9b1a-5f7c83b81e14-multimodal-spatial-language-maps-for-robot-navigation-and.md)
- [Multi-SimLex: A Large-Scale Evaluation of Multilingual and Cross-Lingual Lexical Semantic Similarity](https://refivu.com/en/papers/2e03a8c0-9df9-42e1-97d6-82e5f0f5ad03-multi-simlex-a-large-scale-evaluation-of-multilingual.md)
- [Deep Unsupervised Learning using Nonequilibrium Thermodynamics](https://refivu.com/en/papers/0a712ab6-ae49-4e62-8de7-48f3f793c53f-deep-unsupervised-learning-using-nonequilibrium.md)
- [A Reduction of Imitation Learning and Structured Prediction to No-Regret Online Learning](https://refivu.com/en/papers/08306129-4598-48b6-baf3-9d1af09e03a6-a-reduction-of-imitation-learning-and-structured-prediction.md)
- [NICE: Non-linear Independent Components Estimation](https://refivu.com/en/papers/f56da4f3-4308-4b66-a0bf-e0d6e495195a-nice-non-linear-independent-components-estimation.md)
- [Fast R-CNN](https://refivu.com/en/papers/cf1d88ea-f632-4173-bcfd-eec504e5c175-fast-r-cnn.md)

## Terms in this paper

- [mean squared error](https://refivu.com/en/terms/e8df98e6d7b7-mean-squared-error)
- [Consistency](https://refivu.com/en/terms/ff25802d63e7-consistency)
- [importance sampling](https://refivu.com/en/terms/f730041e2218-importance-sampling)
- [MDP](https://refivu.com/en/terms/3811d2261871-mdp)
- [off-policy evaluation](https://refivu.com/en/terms/eee9cf567621-off-policy-evaluation)
- [Q-function](https://refivu.com/en/terms/6aa5c03fbd00-q-function)
- [Bellman completeness](https://refivu.com/en/terms/1ae8c2987340-bellman-completeness)
- [doubly robust estimator](https://refivu.com/en/terms/9bf00676da7d-doubly-robust-estimator)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/e25e61dd-1c4f-4fca-aaa9-9c30003d2d85-a-review-of-off-policy-evaluation-in-reinforcement)
