Safe Exploration for Efficient Policy Evaluation and Comparison

Runzhe Wan, Branislav Kveton, Rui Song

Overview

This paper introduces SEPEC, a framework for designing data collection policies that are specifically optimized to evaluate a new "target" policy against a "baseline." Unlike traditional methods that rely on fixed, pre-collected datasets, SEPEC actively collects high-quality data to minimize estimation variance while strictly ensuring that the exploration process itself remains "safe" and doesn't degrade system performance.

The Challenge of Off-Policy Evaluation

In Reinforcement Learning and recommendation systems, we often need to know if a new "target" policy ($\pi_1$) outperforms a current "baseline" policy ($\pi_0$) before full deployment. This is known as Off-Policy Evaluation (OPE).

SEPEC Framework Overview

Most OPE research focuses on building better estimators for a fixed dataset. However, dataset quality is often the true bottleneck. Data collected via purely random exploration might be safe but statistically "noisy," requiring massive amounts of data to yield a clear answer. Conversely, simply running the unproven target policy (on-policy evaluation) might be unsafe. Surprisingly, on-policy evaluation isn't even statistically optimal for comparing two policies.

The authors address the "Safe Exploration" challenge: How do we design a data collection rule that gathers the most informative data for evaluation as quickly as possible, without violating safety constraints during the collection phase?

The SEPEC Methodology

The authors formulate the problem as a constrained optimization task. The goal is to find an exploration policy ($\pi_e$) that minimizes the variance of the value difference estimate between the target and baseline policies, subject to the constraint that the expected reward of $\pi_e$ is at least $(1 - \epsilon)$ of the baseline's reward.

Key components of their approach include:

  • Representative Bandit Variants: Solutions are derived for three common scenarios: Multi-Armed Bandits (MAB) using Inverse Probability Weighting (IPW), Contextual MABs (CMAB) with IPW, and Linear Bandits using the Direct Method (DM).
  • Surrogate Objectives: Since true rewards are unknown during exploration, SEPEC uses "minimax" surrogate objectives—optimizing for the worst-case scenario to ensure efficiency across different possible reward distributions.
  • Utilization of Side Information: If historical data exists, SEPEC uses it to build confidence regions for rewards. This allows the exploration policy to be more aggressive (and efficient) where the system is confident about safety.
  • Optimization Algorithms: The framework employs the cutting-plane method to handle the infinite number of constraints inherent in safety requirements, and the Frank-Wolfe algorithm for the complex geometry of linear bandit problems.

Key Insights

  • On-Policy is Not Optimal: One of the most counter-intuitive findings is that even if the target policy is safe to run, it is rarely the most efficient way to evaluate itself. The best exploration policy focuses on the difference between the target and baseline.
  • Task-Specific Exploration: Exploration should be tailored to the evaluation task. If an arm doesn't contribute to the difference between the two policies, SEPEC correctly identifies that no budget should be wasted exploring it.
  • Safety "Cost" Varies: In Linear Bandits, the cost of maintaining safety is lower than in standard MABs because the linear structure allows the agent to generalize safety information across different arms.
  • Proactive Positivity: SEPEC naturally handles the "full support" requirement of IPW estimators by ensuring that any arm with a non-zero probability in the target/baseline difference is explored.

Experimental Results

The paper evaluates SEPEC using synthetic simulations (for MAB, CMAB, and Linear Bandits) and an adapted MNIST dataset to test contextual and linear generalization.

Performance across MAB, CMAB, and Linear Bandits
  • Higher Efficiency: Across all experiments, SEPEC achieved significantly lower Root Mean Square Error (RMSE) in its estimates compared to standard baselines like uniform sampling or simple "mixture" policies.
  • Statistical Power: SEPEC demonstrated higher "power," meaning it could detect a superior target policy with much less data than other methods.
  • Reliable Safety: The framework consistently kept the "safety violation loss" near zero, even when the risk tolerance ($\epsilon$) was set very low.
  • Robustness: Results on the MNIST dataset mirrored the synthetic results, suggesting the framework scales well to problems with high-dimensional features.

Limitations and Future Work

Currently, SEPEC focuses on non-adaptive exploration, where the policy is set at the start and doesn't change during data collection. While logistically easier to implement, an adaptive version could potentially be even more efficient. Additionally, the CMAB derivations assume the distribution of contexts is known, which might not hold in rapidly shifting environments. Future directions include extending this framework to full Reinforcement Learning and exploring Bayesian formulations for more nuanced safety-efficiency trade-offs.

Summary updated

BibTeX
@inproceedings{wan2022safe,
  author = {Runzhe Wan and Branislav Kveton and Rui Song},
  title = {{Safe Exploration for Efficient Policy Evaluation and Comparison}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=5_1dhf5b3a},
}
Figure