Off-Policy Evaluation for Reinforcement Learning

304 concepts225 papers1 proposal

Imagine you have designed a new reinforcement learning (RL) policy to optimize clinical treatments for sepsis in an intensive care unit. Before deploying this policy to guide real patient care, you face a critical hurdle: you cannot simply run it live to see how it performs. Testing an unproven policy in high-stakes environments like healthcare, autonomous driving, or nuclear fusion control is dangerous, unethical, or prohibitively expensive.

Instead, you must rely on Off-Policy Evaluation (OPE). The goal of OPE is to estimate the expected performance of a new target policy ($\pi$) using only historical data collected by a different behavior policy ($\mu$).

The Curse of Horizon

The most intuitive way to evaluate a target policy offline is Trajectory Importance Sampling. If the historical data contains a sequence of states and actions, we can re-weight the observed rewards based on how likely the target policy would be to take those same actions. For a trajectory of length $T$, the importance weight is the product of the action probability ratios at each step:

$$\rho = \prod_{t=1}^T \frac{\pi(a_t|s_t)}{\mu(a_t|s_t)}$$

While mathematically unbiased, this approach suffers from what is known as the curse of horizon. If the target policy deviates even slightly from the behavior policy, multiplying these fractions over many time steps causes the trajectory weight $\rho$ to either vanish to zero or explode toward infinity. As the time horizon $T$ grows, the variance of this estimator increases exponentially, rendering it practically useless for long-term decision problems.

Breaking the Curse: Marginalized Importance Sampling

To overcome this exponential variance explosion, we must change how we view the problem. Trajectory importance sampling treats every unique sequence of actions as a distinct path. However, in a Markov Decision Process (MDP), the reward depends only on the current state and action, not the exact historical path taken to get there.

Instead of weighting entire trajectories, we can weight the stationary state-visitation distributions. This approach is known as Marginalized Importance Sampling (MIS). If we can determine how much more frequently the target policy visits a specific state-action pair compared to the behavior policy, we can compute a stable correction ratio:

$$w(s, a) = \frac{d^\pi(s, a)}{d^\mu(s, a)}$$

By averaging rewards weighted by $w(s, a)$ rather than $\rho$, we collapse the sequential compounding of weights into a single, stationary density ratio. Qiang Liu et al. leveraged this insight in Breaking the Curse of Horizon: Infinite-Horizon Off-Policy Estimation, introducing a minimax optimization framework to estimate these stationary distribution corrections directly from data, effectively neutralizing the curse of horizon.

Eliminating Behavior Policy Estimation: The DICE Framework

While MIS solves the variance problem, traditional formulations still require knowing or estimating the behavior policy $\mu$ to compute the denominator of the density ratio. In observational settings—such as historical medical logs—the behavior policy is often a complex, unrecorded mixture of human decisions.

To bypass this limitation, researchers developed the "DICE" (Distribution Correction Estimation) family of algorithms. Bo Dai et al. introduced DualDICE: Behavior-Agnostic Estimation of Discounted Stationary Distribution Corrections, which reformulates the distribution estimation problem through Fenchel duality. By solving the problem in its dual form, the authors proved that the stationary correction ratio can be estimated directly from logged transitions without ever needing to explicitly model or know the behavior policy.

To scale this concept to high-dimensional control tasks, Scott Fujimoto et al. proposed SR-DICE in A Deep Reinforcement Learning Approach to Marginalized Importance Sampling with the Successor Representation. By combining the DICE framework with the Successor Representation—which decouples environment dynamics from rewards—the authors provided a stable, convex optimization objective suitable for deep neural networks.

Exploiting Structure to Reduce Variance

Beyond distribution matching, variance can be further mitigated by exploiting structural properties of the environment, actions, or states.

Temporal Abstraction

If an agent operates using high-level macro-actions rather than low-level primitive actions, the effective decision horizon shortens. Zhaohan Daniel Guo et al. demonstrated in Using Options and Covariance Testing for Long Horizon Off-Policy Policy Evaluation that evaluating policies over these "options" significantly compresses the number of importance weight multiplications, slashing variance in long-horizon tasks.

State and Action Abstractions

Not every detail in a high-dimensional state space impacts future rewards. Josiah P. Hanna demonstrated in Scaling Offline Evaluation of Reinforcement Learning Agents through Abstraction that grouping states into compact, functionally equivalent representations allows OPE algorithms to aggregate data more efficiently. Similarly, David M. Bossens et al. introduced State-based Importance Sampling in Low Variance Off-policy Evaluation with State-based Importance Sampling, which systematically drops irrelevant states from the weight calculations to improve accuracy. When action spaces are large and complex, Aaman Peter Rebello et al. showed in Leveraging Factored Action Spaces for Off-Policy Evaluation that decomposing actions into independent sub-components reduces variance without introducing statistical bias.

Quantifying Uncertainty for Safe Deployment

In high-stakes domains, a single point estimate of a policy's expected return is insufficient. Before deployment, practitioners require statistical guarantees that the new policy will not underperform the current baseline.

To address this, Philip S. Thomas et al. formalized High-Confidence Off-Policy Evaluation (HCOPE) in High Confidence Policy Improvement. This framework derives rigorous statistical lower bounds on a policy's performance, ensuring it meets safety thresholds with high probability. To make these bounds tighter and more practical for complex systems, Bo Dai et al. developed CoinDICE: Off-Policy Confidence Interval Estimation. By applying empirical likelihood to stationary distribution corrections, CoinDICE computes robust confidence intervals directly from static datasets, providing the mathematical certainty required to transition policies safely from historical logs to real-world deployment.

History & citationVersion 2 · 2026-10-04

Current · Permanent link

  1. Version 2 (latest) · 2026-10-04 · 218 papers
  2. Version 1 · 2026-10-04 · 213 papers
Cite this direction

Latest version (a living page):

@misc{lacuna_off_policy_evaluation_61bc25f8,
  title = {off-policy evaluation},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/off-policy-evaluation/rdr_61bc25f8ce0e411bb581eb4b54bc1ac8},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-27},
}

This exact version (version 2, frozen text):

@misc{lacuna_off_policy_evaluation_61bc25f8_v2,
  title = {off-policy evaluation},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/off-policy-evaluation/rdr_61bc25f8ce0e411bb581eb4b54bc1ac8/v/2},
  note = {Version 2, frozen 2026-10-04. Accessed 2026-11-27},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake