Oracle-Efficient Pessimism: Offline Policy Optimization In Contextual Bandits

Lequn Wang, Akshay Krishnamurthy, Alex Slivkins

Abstract

We consider offline policy optimization (OPO) in contextual bandits, where one is given a fixed dataset of logged interactions. While pessimistic regularizers are typically used to mitigate distribution shift, prior implementations thereof are either specialized or computationally inefficient. We present the first general oracle-efficient algorithm for pessimistic OPO: it reduces to supervised learning, leading to broad applicability. We obtain statistical guarantees analogous to those for prior pessimistic approaches. We instantiate our approach for both discrete and continuous actions and perform experiments in both settings, showing advantage over unregularized OPO across a wide range of configurations.

Introduction

Offline Policy Optimization (OPO) is a critical tool for organizations seeking to improve decision-making systems—such as recommendation engines or pricing models—using historical interaction data. A fundamental challenge in OPO is "distribution shift": the logged data reflects the behavior of a historical logging policy, which may differ significantly from a proposed new policy.

Standard approaches like Inverse Probability Weighting (IPW) provide unbiased estimates but often suffer from high variance, especially when the new policy explores actions rarely taken in the historical data. To address this, researchers employ "pessimism," which penalizes policies with high uncertainty. However, implementing pessimism has historically been computationally prohibitive or restricted to specific model classes. This work introduces an oracle-efficient algorithm that makes pessimistic OPO practical for general policy classes.

Methodology: The Pseudo-Loss Regularizer

The core contribution of this research is the Pseudo-Loss (PL) regularizer. Unlike traditional regularizers like Empirical Bernstein (EB), which lead to non-convex optimization problems, the PL objective can be reduced to a standard Cost-Sensitive Classification (CSC) problem.

Oracle Efficiency

By reducing the optimization to CSC, the algorithm becomes "oracle-efficient." This means it can utilize any standard supervised learning algorithm (e.g., gradient-boosted trees, neural networks) as a black-box optimizer. This allows the method to be integrated into existing machine learning pipelines regardless of the underlying model architecture.

Handling Continuous Action Spaces

For continuous action spaces, such as dynamic pricing, the authors employ a smoothing technique. The action space is discretized into surrogate actions, and a uniform smoothing kernel is applied. This allows the PL regularizer to function effectively in complex, high-dimensional action spaces while maintaining oracle efficiency.

Experimental Evaluation

The authors evaluated the Pseudo-Loss approach using a semi-synthetic setup, transforming full-information datasets from OpenML into contextual bandit problems.

  • Discrete Actions: Evaluated on four multi-class classification datasets: Letter, PenDigits, SatImage, and JPVowel.
  • Continuous Actions: Evaluated on five regression datasets: Wisconsin, AutoPrice, CpuAct, Zurich, and BlackFriday.

Results and Discussion

The experiments demonstrated that the PL-based pessimistic approach consistently outperforms unregularized baselines across nearly all configurations.

Improvement of Pseudo-Loss (PL) over unregularized baseline across discrete action datasets and varying data sizes.

In discrete action settings, the PL approach showed a median relative improvement of 11.7%. As shown in Figure 1, the gains are particularly pronounced when the data size is small (e.g., 0.01 fraction of the full dataset), where the risk of distribution shift is highest and pessimism is most critical.

Improvement of Pseudo-Loss (PL) over unregularized baseline across continuous action datasets.

For continuous actions, the median improvement was 12%. Figure 4 illustrates that PL provides robust gains across various regression-based tasks. Notably, the PL optimizer was found to be an order of magnitude faster than the Empirical Bernstein alternative, confirming its practical utility for real-world applications.

Conclusion

This work bridges the gap between the statistical theory of pessimism and computational practice in offline policy optimization. By introducing the Pseudo-Loss regularizer, the authors provide a general, oracle-efficient framework that is "essentially never worse" than unregularized baselines and significantly more efficient than prior pessimistic methods. For practitioners, this offers a robust and scalable solution for improving decision-making from historical data.

Summary updated

BibTeX
@inproceedings{wang2024oracle,
  author = {Lequn Wang and Akshay Krishnamurthy and Alex Slivkins},
  title = {{Oracle-Efficient Pessimism: Offline Policy Optimization In Contextual Bandits}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2024},
  url = {https://openreview.net/forum?id=Ky6UQVlcNn},
}
Figure