Kernel Metric Learning for In-Sample Off-Policy Evaluation of Deterministic RL Policies
Haanvid Lee, Tri Wahyu Guntara, Jongmin Lee, Yung-Kyun Noh, Kee-Eung Kim
TL;DR
This work tackles off-policy evaluation for deterministic policies in continuous-action RL by introducing KMIFQE, which relaxes the deterministic target with a kernel and learns a local Mahalanobis metric to minimize the mean-squared error of the TD update. The authors derive bias-variance decompositions, obtain a closed-form optimal bandwidth $h^*$ and a closed-form optimal metric $A^*$, and prove an error-bound relating the stochastic-relaxed Bellman operator to the deterministic target. Empirically, KMIFQE yields improved accuracy over SR-DICE and FQE across OpenAI Gym Pendulum, MuJoCo, and D4RL datasets, particularly when the action space is high-dimensional or contains noisy dummy dimensions. Theoretical guarantees, together with practical bandwidth and metric learning, demonstrate KMIFQE's potential to enable stable in-sample OPE for deterministic policies in real-world continuous-control domains.
Abstract
We consider off-policy evaluation (OPE) of deterministic target policies for reinforcement learning (RL) in environments with continuous action spaces. While it is common to use importance sampling for OPE, it suffers from high variance when the behavior policy deviates significantly from the target policy. In order to address this issue, some recent works on OPE proposed in-sample learning with importance resampling. Yet, these approaches are not applicable to deterministic target policies for continuous action spaces. To address this limitation, we propose to relax the deterministic target policy using a kernel and learn the kernel metrics that minimize the overall mean squared error of the estimated temporal difference update vector of an action value function, where the action value function is used for policy evaluation. We derive the bias and variance of the estimation error due to this relaxation and provide analytic solutions for the optimal kernel metric. In empirical studies using various test domains, we show that the OPE with in-sample learning using the kernel with optimized metric achieves significantly improved accuracy than other baselines.
