Cross-Validated Off-Policy Evaluation

Matej Cief, Branislav Kveton, Michal Kompan

Abstract

Off-Policy Evaluation (OPE) is critical for assessing new policies using historical data without online deployment. However, the absence of ground truth labels has historically made model selection and hyperparameter tuning difficult. This paper introduces Off-policy Cross-Validation (OCV), a theoretically grounded framework that adapts supervised learning's cross-validation to OPE. By utilizing unbiased estimators as validators on held-out data, OCV effectively navigates the bias-variance tradeoff. Empirical results across nine real-world datasets demonstrate that OCV consistently outperforms existing state-of-the-art selection methods, often by an order of magnitude in Mean Squared Error (MSE).

Introduction

In Reinforcement Learning, evaluating a new "target" policy using historical data collected by a different "logging" policy is a fundamental challenge. Unlike supervised learning, OPE lacks ground truth labels, leading to a "chicken-and-egg" problem: how can one evaluate the accuracy of an evaluation without knowing the true value of the policy? Traditionally, practitioners have relied on conservative theoretical bounds or complex surrogate methods. OCV challenges the belief that cross-validation is infeasible for OPE by treating unbiased estimators as "noisy labels" for the true policy value.

Methodology

The core innovation of OCV is the use of an unbiased OPE estimator—such as Inverse Propensity Scoring (IPS) or Doubly Robust (DR)—as a validator on held-out data. The OCV algorithm follows a structured process:

  1. Variance Estimation: The algorithm estimates the variance of both the candidate estimator and the unbiased "validator."
  2. Optimal Splitting: OCV utilizes a specific training/validation split ratio derived from these variances to minimize the bound on the true squared loss.
  3. Monte Carlo Cross-Validation: The data is repeatedly split; the candidate's estimate is calculated on the training set and compared against the validator's estimate on the validation set.
  4. Selection Heuristic: To ensure robustness, OCV employs a "One Standard Error Rule," selecting the simplest model within one standard error of the best-performing candidate to avoid overfitting to specific data splits.

Experimental Results

The authors evaluated OCV using nine real-world classification datasets from the UCI Machine Learning Repository, converted into contextual bandit problems. These datasets (e.g., ecoli, glass, letter, optdigits) vary in size from 107 to 10,000 samples, providing a diverse testbed for robustness.

Figure 1: MSE comparison across nine UCI datasets for various estimators and selection methods.

As shown in Figure 1, OCV variants (particularly OCV-DR) consistently match or exceed the performance of state-of-the-art baselines like SLOPE and PAS-IF across all datasets. OCV excels at identifying estimators that optimize the bias-variance tradeoff, often selecting biased estimators with low variance (like the Direct Method) when appropriate.

Joint Estimator and Hyperparameter Tuning

A significant advantage of OCV is its ability to handle joint selection. In a "stress test" where the algorithm simultaneously selected the best estimator and its associated hyperparameters, OCV achieved an order of magnitude lower MSE compared to existing methods like PAS-IF.

Figure 2: Performance of OCV in joint estimator and hyperparameter selection across different base estimator types.

Figure 2 illustrates that OCV variants consistently provide lower error than the "Original Tuning/Theory" baselines across a wide range of estimator types, including TruncatedIPS, SWITCH-DR, and CAB.

Conclusion

OCV provides a simple, computationally efficient, and theoretically sound method for model selection in OPE. While it relies on the availability of an unbiased validator, its performance across diverse datasets suggests it is a robust tool for practitioners. Future work includes extending OCV to multi-step Reinforcement Learning problems where the variance of unbiased estimators increases with the horizon, and integrating OCV directly into policy learning loops.

Summary updated

BibTeX
@inproceedings{cief2025cross,
  author = {Matej Cief and Branislav Kveton and Michal Kompan},
  title = {{Cross-Validated Off-Policy Evaluation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i15.33765},
}
Figure