TL;DR
This paper introduces SEPEC (Safe Exploration for Policy Evaluation and Comparison), a novel framework for actively collecting high-quality data to evaluate or compare bandit policies. Unlike traditional exploration methods that focus on maximizing rewards, SEPEC designs non-adaptive exploration policies that minimize estimation variance while strictly guaranteeing that data collection remains safe relative to a baseline policy.
What Problem Does This Paper Address?
Before deploying a new target policy (e.g., a new recommendation engine or medical treatment strategy), data scientists use Off-Policy Evaluation (OPE) to estimate its performance using historical data. However, standard OPE assumes the dataset is already fixed. If the historical data lacks coverage or doesn't align well with the target policy, the evaluation becomes highly inaccurate.
To fix this, one could actively collect new data. But this introduces two major hurdles:
- Safety: The data collection policy must not perform catastrophically worse than the current safe baseline policy.
- Efficiency: Standard safe exploration algorithms are designed to optimize policies (find the best actions), which spreads exploration uniformly to reduce overall uncertainty. They are not optimized to evaluate or compare specific policies, leading to wasted exploration budget on irrelevant actions.
Methods
The authors propose the SEPEC framework to design an exploration policy ($\pi_e$) that minimizes the variance of the value difference between a target policy ($\pi_1$) and a baseline policy ($\pi_0$), subject to a safety constraint: $V(\pi_e) \ge (1 - \epsilon)V(\pi_0)$, where $\epsilon$ is a user-defined risk tolerance.
The paper focuses on logistically simple non-adaptive policies and solves the optimization problem across three representative bandit settings:
- Multi-Armed Bandits (MAB) with Inverse Probability Weighting (IPW): Formulates a convex optimization problem where exploration budget scales with the magnitude of the policy difference ($|\pi_1(a) - \pi_0(a)|$).
- Contextual MAB (CMAB) with IPW: Extends the MAB formulation to account for stochastic context distributions.
- Linear Bandits with the Direct Method (DM): Leverages feature generalizations. Because actions are related through features, the algorithm actively avoids exploring feature directions that are already well-covered by historical side information.
To handle cases where historical data (side information) is available, the authors combine cutting-plane methods and the Frank-Wolfe algorithm to efficiently solve these optimization problems under infinite safety constraints.
Datasets
The framework was evaluated using both synthetic simulations and a real-world benchmark:
- Synthetic Bandits: Simulated environments for MAB, CMAB, and Linear Bandits to test performance under controlled parameter variations (e.g., varying risk tolerances, arm counts, and budget sizes).
- MNIST Dataset: The classic handwritten digit dataset was adapted into a contextual bandit problem (mapping images to digit classes as actions) and a linear bandit problem to validate SEPEC on real-world data distributions.
Key Insights and Ideas
- On-Policy Evaluation is Sub-optimal: Intuitively, you might think the best way to evaluate a target policy is to simply run it (on-policy). However, the authors show that if different actions have different variances, or if the goal is to compare two policies, a tailored exploration policy can achieve significantly lower estimation variance than an on-policy approach.
- Task-Oriented Budget Allocation: If an action does not affect the value difference between the target and baseline policies, SEPEC allocates zero exploration budget to it. This contrasts sharply with pure exploration methods that try to learn everything about the environment uniformly.
- Side Information Relaxes Safety Constraints: When an initial logged dataset is available, SEPEC uses it to construct confidence regions around expected rewards. This allows the algorithm to safely explore more aggressively than a conservative, worst-case approach would allow.
Key Results
Across all settings (MAB, CMAB, and Linear Bandits), SEPEC consistently outperformed standard baselines such as standard A/B testing, uniform random exploration, mixture policies, and SafeOD (Safe Optimal Design).
As shown in the experimental results:
- Efficiency (RMSE): SEPEC achieves the lowest Root Mean Square Error (RMSE) in estimating policy value differences, especially as the risk tolerance $\epsilon$ increases.
- Safety: While risky baselines like A/B testing and uniform exploration incur high safety violation losses when risk tolerance is low, SEPEC maintains near-zero safety loss.
- Statistical Power: SEPEC demonstrates significantly higher power in correctly detecting whether a target policy is better than the baseline, making it highly effective for downstream deployment decisions.
Limitations and Future Work
While SEPEC marks a solid step forward, the authors note a few limitations:
- Finite Context Assumption: For the contextual setting with side information, the theory assumes a finite context set. Extending high-probability safety guarantees to infinite context spaces requires parameterizing the exploration policy (e.g., via neural networks), which introduces new optimization challenges.
- Asymptotic Optimality in Linear Bandits: The efficiency guarantees for the Direct Method in linear bandits are proven asymptotically; finite-sample theoretical analysis remains an open problem.
- Static vs. Adaptive: The paper focuses entirely on non-adaptive exploration. Extending this framework to adaptive/sequential designs and full Reinforcement Learning (RL) setups is a promising future direction.
Summary updated