TL;DR
Estimating the performance of a reinforcement learning policy using historical data (off-policy evaluation) is notoriously difficult in long-duration tasks because variance typically explodes as the timeline grows. This paper introduces a "doubly robust" estimator for infinite-horizon problems that combines density ratio estimation with value function approximation. By doing so, it significantly reduces bias: the estimate remains accurate as long as either the density ratio or the value function is correctly modeled, effectively breaking the "curse of horizon."
What Problem Does This Paper Address?
In Reinforcement Learning (RL), Off-Policy Evaluation (OPE) asks: "How well would this new 'target' policy perform, given only data collected by a different 'behavior' policy?" This is crucial for real-world applications like healthcare or autonomous driving, where testing a new, unproven policy live is dangerous or expensive.
The standard approach, Importance Sampling (IS), suffers from the "curse of horizon." Because IS multiplies importance weights across every time step, the variance of the estimate grows exponentially with the length of the task. Recent work tried to fix this by estimating the "stationary density ratio" (how much more likely the target policy is to visit a state than the behavior policy). While this slashed variance, it introduced significant bias if the density ratio model was even slightly wrong. This paper seeks to eliminate that bias while keeping the low variance.
Methods
The authors propose a new Doubly Robust (DR) estimator. The "Double Robustness" comes from integrating two different ways of looking at the problem:
- Density-Ratio-Based Estimation ($\hat{R}_{SIS}$): Uses the likelihood of visiting states.
- Value-Based Estimation ($\hat{R}_{VAL}$): Uses a learned "value function" to predict future rewards from a given state.
The core innovation is the Bridge Estimator. The authors construct a mathematical "bridge" that uses both the density ratio and the value function. Their final DR estimator is defined as:
$$\hat{R}_{DR} = \hat{R}_{SIS} + \hat{R}_{VAL} - \hat{R}_{bridge}$$
What makes it new? Unlike previous DR methods designed for finite steps (which still suffer from variance blowup), this method is specifically designed for the infinite horizon. It uses the Bellman equation to ensure that the error of the total estimate is the product of the errors of the two individual models. If one model is perfect, the total error becomes zero.
Datasets and Environments
The authors evaluated their method on three classic RL benchmarks to demonstrate efficacy across both discrete (tabular) and continuous (neural network-based) state spaces:
- Taxi: A tabular environment with 2,000 states and 6 actions, used to test fundamental properties.
- Puck-Mountain: A continuous state-space environment where an agent must push a puck up a valley.
- InvertedPendulum-v2 (OpenAI Gym): A classic continuous control task requiring the agent to balance a pole.
Key Insights and Ideas
- The Error Product Rule: The most powerful insight is that the bias of the DR estimator is proportional to the product of the error in the density ratio and the error in the value function. In practical terms, if your value function is 90% accurate and your density ratio is 90% accurate, your combined error isn't 10%—it's 1% ($0.1 \times 0.1$).
- Lagrangian Duality: The authors reveal a surprising theoretical connection: their DR estimator is mathematically equivalent to the Lagrangian function of a primal-dual optimization problem for policy evaluation. This suggests that DR isn't just a clever trick; it's deeply rooted in the fundamental duality between "states" (density) and "outcomes" (value).
- Breaking the Curse: By focusing on stationary distributions rather than step-by-step trajectories, the method avoids the exponential variance growth that plagues traditional importance sampling.
Key Results
The empirical results strongly validate the theoretical claims, showing improvements across multiple metrics.
- Lower Mean Squared Error (MSE): In all tests, the DR method (shown in red) achieved significantly lower MSE than using either density ratios or value functions alone.
- Bias Reduction: The "Bias Square" plots demonstrate that even when the input models (density or value) were intentionally made "noisy" or biased, the DR estimator remained remarkably close to the ground truth.
- Horizon Stability: As the horizon length ($H$) increased, traditional weighted DR methods saw their errors skyrocket. In contrast, the authors' infinite-horizon DR method remained stable, proving it truly overcomes the curse of horizon.
Limitations and Future Work
- Model Dependency: While the method is robust, it still requires some reasonable approximation of either the value function or the density ratio. If both models are extremely poor or misspecified, the estimator will still fail.
- Coupling Samples: The current variance analysis assumes that samples for the initial state and the transitions are independent. The authors note that in practice, these are often coupled, and future work could explore how to leverage that coupling to reduce variance even further.
- Algorithm Integration: The paper focuses on evaluation. A natural next step is to integrate this estimator into policy optimization algorithms to see if "doubly robust" gradients lead to faster or more stable learning.
Summary updated