SaVeR: Optimal Data Collection Strategy for Safe Policy Evaluation in Tabular MDP
Subhojyoti Mukherjee, Josiah P. Hanna, Robert Nowak
TL;DR
This work studies safe data collection for policy evaluation in finite-horizon tabular MDPs, aiming to estimate the target value $V^{\pi}(s_1)$ with minimal MSE under a safety constraint that ties cumulative cost to a baseline policy via $(1-\alpha)$. It develops SaVeR, an agnostic algorithm that preserves safety while adaptively allocating samples to reduce variance, and provides finite-sample MSE and regret guarantees of $\widetilde{O}(n^{-3/2})$ under a tractability condition. The paper also proves lower bounds for both constrained and unconstrained settings, showing that unsafe instances can be intractable and identifying when safe data collection is feasible. It extends to DAGs, presents a practical DAG approximation, and validates the approach with comprehensive experiments, highlighting its practical impact for safe, data-efficient policy evaluation in real-world decision systems.
Abstract
In this paper, we study safe data collection for the purpose of policy evaluation in tabular Markov decision processes (MDPs). In policy evaluation, we are given a \textit{target} policy and asked to estimate the expected cumulative reward it will obtain. Policy evaluation requires data and we are interested in the question of what \textit{behavior} policy should collect the data for the most accurate evaluation of the target policy. While prior work has considered behavior policy selection, in this paper, we additionally consider a safety constraint on the behavior policy. Namely, we assume there exists a known default policy that incurs a particular expected cost when run and we enforce that the cumulative cost of all behavior policies ran is better than a constant factor of the cost that would be incurred had we always run the default policy. We first show that there exists a class of intractable MDPs where no safe oracle algorithm with knowledge about problem parameters can efficiently collect data and satisfy the safety constraints. We then define the tractability condition for an MDP such that a safe oracle algorithm can efficiently collect data and using that we prove the first lower bound for this setting. We then introduce an algorithm SaVeR for this problem that approximates the safe oracle algorithm and bound the finite-sample mean squared error of the algorithm while ensuring it satisfies the safety constraint. Finally, we show in simulations that SaVeR produces low MSE policy evaluation while satisfying the safety constraint.
