Distributional Robust Batch Contextual Bandits

Nian Si, Fan Zhang, Zhengyuan Zhou, Jose H. Blanchet

Abstract

In batch contextual bandits, policies are learned from historical data to make decisions in future contexts. However, standard approaches often suffer from fragility when the deployment environment undergoes covariate shift or concept drift. This paper introduces a Distributionally Robust Optimization (DRO) framework that optimizes for the worst-case distribution within a neighborhood of the training data. By transforming the problem into a tractable one-dimensional optimization, we provide a robust policy evaluation and learning scheme. Our approach is backed by minimax optimal regret guarantees and demonstrates significant stability on real-world datasets, such as Michigan primary election turnout data.

Introduction

The deployment of decision-making policies in fields like personalized medicine and digital advertising relies heavily on historical logs. This "Batch Contextual Bandit" setting assumes that the future will mirror the past. In practice, this assumption is frequently violated by population shifts (covariate shift) or changing preferences (concept drift). Standard algorithms, while effective on training data, are often "fragile" and perform poorly under even minor environmental perturbations.

This research addresses the challenge of learning policies that are robust to these "unknown unknowns." We propose a framework that does not require prior knowledge of the target distribution but instead "insures" the policy against a range of potential shifts.

Methodology: Distributionally Robust Optimization

The core of our approach is the application of Distributionally Robust Optimization (DRO). Rather than maximizing the expected reward on the training distribution $P_0$, we maximize the reward under the worst-case distribution $Q$ within an uncertainty set $\mathcal{U}(P_0)$.

Uncertainty Sets and f-Divergences

We define the uncertainty set $\mathcal{U}(P_0)$ using f-divergences, such as KL-divergence. The size of this neighborhood is controlled by a radius $\delta$, representing the degree of anticipated environmental shift.

Duality and Computational Efficiency

A significant challenge in DRO is that the search over all possible distributions $Q$ is an infinite-dimensional problem. We overcome this by employing strong duality to transform the objective into a simple, one-dimensional convex optimization problem. This reduction allows the problem to be solved efficiently using standard methods like Newton's algorithm, making it applicable to large-scale industrial datasets.

Robustness as Insurance

The choice of the uncertainty radius $\delta$ can be viewed as a managerial decision. By selecting a larger $\delta$, a decision-maker pays an "insurance premium"—a reduction in expected performance under the training distribution—to protect against a catastrophic drop in performance should the environment shift significantly.

The trade-off between performance and robustness: choosing a radius $\delta^*$ incurs an 'insurance budget' cost.

As shown in the figure, the "Maximum distributionally robust value" decreases as the allowed environment shift $\delta$ increases. The "Insurance budget" is the difference between the nominal value (at $\delta=0$) and the robust value at the chosen $\delta^*$.

Key Insights

Preference for Low Variance

Empirical results reveal that robust policies naturally gravitate toward actions with smaller reward variance. In uncertain environments, the "safe bet" is often more robust than high-risk, high-reward alternatives.

Statistical Optimality

We prove that our learning algorithm achieves a regret rate of $O_p(n^{-1/2})$. We further demonstrate that this rate is minimax optimal, meaning no algorithm can be fundamentally more data-efficient for this class of problems.

Experimental Results

Synthetic Simulations

In simulations with non-linear decision boundaries, the DRO policy significantly outperformed standard linear policies and the POEM (Policy Optimization for Exponential Models) algorithm. While baselines failed as the test environment shifted ($\delta_{test} > 0$), the DRO approach maintained stable performance.

Real-World Application: Michigan Voting Data

We applied the framework to a dataset from the 2006 Michigan primary election, involving ~180,000 voters and various social pressure interventions. By using different cities as proxies for environment shifts, we found that the robust policy (implemented via decision trees) maintained higher minimal values across 101 test cities compared to standard decision trees. Notably, in high-uncertainty settings, the policy learned to "do nothing"—the action with the least reward variation—rather than risk ineffective interventions.

Conclusion and Future Work

Our DRO framework provides a theoretically grounded and computationally efficient method for learning robust policies in batch contextual bandits. While the current f-divergence approach requires the shifted distribution to share the same support as the training data, future work will explore extensions to Wasserstein distance to account for entirely new contexts. Additionally, while the 1D dual optimization is fast, improving the heuristic search for optimal robust decision trees remains an area for further research.

Summary updated

BibTeX
@article{si2023distributional,
  author = {Nian Si and Fan Zhang and Zhengyuan Zhou and Jose H. Blanchet},
  title = {{Distributional Robust Batch Contextual Bandits}},
  journal = {Manag. Sci.},
  year = {2023},
  doi = {10.1287/mnsc.2023.4678},
}
Figure