TL;DR
Standard off-policy evaluation (OPE) algorithms often converge to biased solutions because they ignore the difference between how a behavior policy explores the world and how a target policy would actually behave. This paper introduces COP-TD($\lambda, \beta$), a new algorithm that explicitly estimates this "distribution shift" on-line, allowing off-policy learning to reach the same consistent limit point as on-policy learning.
What Problem Does This Paper Address?
In Reinforcement Learning, Off-Policy Evaluation (OPE) is the task of predicting how well a "target" policy will perform using only data collected by a different "behavior" policy. This is crucial in high-stakes domains like medicine or autonomous driving, where you cannot simply "test" a new, unproven strategy on real patients or expensive hardware.
The core challenge is covariate shift. The behavior policy visits states with a certain frequency (the stationary distribution $d_\mu$), but the target policy would visit them with a different frequency ($d_\pi$). Most Temporal Difference (TD) methods ignore this discrepancy. When using function approximation (simplifying the state space into features), this leads to a "representation bias": the algorithm prioritizes accuracy in states the behavior policy likes, rather than the states the target policy actually cares about.
Methods
The authors propose two main algorithmic contributions to address this representation bias:
- COP-TD($\lambda, \beta$) (Consistent Off-Policy TD): This algorithm introduces an additional stochastic approximation process to estimate the ratio $\rho_d(s) = d_\pi(s) / d_\mu(s)$, known as the covariate shift ratio. By weighting the standard TD updates with this ratio, the algorithm effectively "re-weights" the experience to match the target distribution. It includes a parameter $\beta$ to trade off bias and variance.
- Log-COP-TD($\lambda, \beta$): A heuristic variant designed to handle the high variance inherent in importance sampling. Instead of multiplying long chains of probability ratios (which can explode or vanish), it operates in log-space. This is motivated by a statistical interpretation of TD learning as a maximum likelihood estimator.
Unlike previous methods like Emphatic TD (ETD), which uses a one-step approximation of the distribution, COP-TD allows for a more flexible, feature-based estimation of the entire distribution shift.
Key Insights and Ideas
- The Consistency Gap: The authors prove that standard off-policy TD converges to a fixed point that is fundamentally different from the on-policy solution. COP-TD is "consistent" because it targets the exact same fixed point as if you were running the target policy directly.
- Distribution Estimation as TD: One of the most elegant ideas here is that estimating the distribution ratio $\rho_d$ can itself be formulated as a TD-like learning problem. This allows the ratio to be learned on-line alongside the value function.
- Log-Space Stability: The introduction of Log-COP-TD highlights a major pain point in OPE: the "product of ratios" problem. By moving to log-space, the authors provide a more numerically stable way to handle long-term dependencies in off-policy data.
Key Results
The algorithms were evaluated on several classic reinforcement learning benchmarks, including Chain MDPs, Random MDPs, Acrobot, Cart-pole Balancing, and Mountain Car.
- Bias Reduction: In environments with extreme distribution shifts, like the Chain MDP, standard methods (like GTD) showed significant error because they focused on the "wrong" side of the chain. COP-TD successfully shifted its focus to the states relevant to the target policy, drastically reducing the final error.
- Empirical Superiority: Across the test environments, COP-TD or Log-COP-TD consistently outperformed state-of-the-art algorithms like ETD and GTD in terms of Mean Squared Error (MSE) over time.
- Robustness to $\beta$: While ETD is highly sensitive to its variance-reduction parameter ($\beta$), COP-TD showed much more stable performance across different $\beta$ values, making it easier to tune in practice.
Limitations and Future Work
- Computational Overhead: COP-TD requires maintaining and updating an additional weight vector for the distribution ratio. While this is linear in the number of features, it still adds complexity compared to simpler TD methods.
- Feature Dependency: The "consistency" of the algorithm depends on having a good set of features to approximate the distribution ratio $\rho_d$. If the features cannot represent the distribution shift well, the bias reduction will be limited.
- Hyperparameter Tuning: Like many RL algorithms, COP-TD introduces another step-size parameter ($\alpha^d$) for the ratio estimation process that needs to be tuned.
- General $\lambda$: While the paper provides strong proofs for the $\lambda=0$ case (one-step TD), the authors note that formal convergence results for general $\lambda$ (eligibility traces) are a direction for future theoretical work.
Summary updated