Abstract
Off-policy evaluation (OPE) is essential for assessing reinforcement learning policies using historical data, particularly in safety-critical domains. In infinite-horizon settings, traditional importance sampling suffers from the "curse of horizon," leading to exponential variance. While recent density-ratio methods mitigate variance, they are highly sensitive to model misspecification. This paper introduces a novel doubly robust (DR) estimator that combines stationary density ratio estimation with value function approximation. We prove that the estimator's bias is proportional to the product of the errors in its constituent models, providing a "double robustness" property. Empirical evaluations across various environments demonstrate that our method significantly reduces bias and maintains high accuracy even under partial model misspecification.
Introduction
In Reinforcement Learning (RL), Off-Policy Evaluation (OPE) involves estimating the performance of a target policy using data generated by a different behavior policy. This is vital for applications like healthcare or autonomous driving where deploying untested policies is risky.
The primary challenge in infinite-horizon OPE is the variance that typically grows with the time horizon. Recent advancements have shifted from trajectory-based importance sampling to estimating the ratio of stationary state distributions. However, these density-ratio methods introduce a new vulnerability: even minor errors in the density ratio model can lead to significant estimation bias. This paper addresses this trade-off by proposing a framework that leverages both value functions and density ratios to achieve robust bias reduction.
Methodology
The proposed approach integrates two fundamental perspectives on policy evaluation:
- Density-Ratio-based (SIS): Employs importance weights to correct for distribution shifts between behavior and target policies.
- Value-based (Direct Method): Utilizes a learned value function to predict future rewards.
The core innovation is the "Bridge Estimator," which serves as a link between these two paradigms. The final Doubly Robust (DR) estimator is defined as: $$R^\pi_{DR} = R^\pi_{SIS} + R^\pi_{VAL} - R^\pi_{bridge}$$
Theoretical Foundations
A key theoretical contribution is the demonstration that the DR estimator is mathematically equivalent to the Lagrangian function of the primal-dual optimization problem for policy evaluation. In this duality, the value function corresponds to the primal Bellman equation, while the density ratio corresponds to the dual stationary distribution.
The "doubly robust" property stems from the fact that the total error is the product of the errors in the density ratio and the value function. Consequently, if either component is perfectly estimated, the total bias vanishes. Even when both models are imperfect, the multiplicative nature of the error ensures that the combined estimate is often more accurate than its individual parts.
Experimental Results
The researchers evaluated the DR estimator on three environments: Taxi (tabular), Puck-Mountain (continuous state), and InvertedPendulum-v2 (continuous control).
As illustrated in the figure above, the DR method consistently outperforms baselines:
- Superior Accuracy: Across all tasks, the DR method achieved lower Mean Squared Error (MSE) compared to pure importance sampling or value-based estimation (Panel a).
- Horizon Independence: Unlike finite-horizon methods, the performance does not degrade as the horizon $H$ increases; in some cases, accuracy improves with more stationary data (Panel d).
- Robustness to Noise: Panels (e) and (f) demonstrate the "double robustness" property. Even when noise is intentionally introduced into either the value function ($\alpha$) or the density ratio ($\beta$), the DR estimator maintains low bias as long as one of the inputs remains relatively accurate.
Conclusion
This work shifts the focus of doubly robust methods in RL from variance reduction in finite horizons to bias reduction in infinite horizons. By exploiting the primal-dual relationship between value functions and density ratios, the proposed estimator provides a more reliable tool for off-policy evaluation. Future work includes extending this objective to policy optimization and addressing sample dependencies in the theoretical analysis.
Summary updated