Practical Contextual Bandits with Regression Oracles

Dylan J. Foster, Alekh Agarwal, Miroslav Dudík, Haipeng Luo, Robert E. Schapire

Overview

This paper introduces RegCB, a novel framework for contextual bandits that bridges the gap between flexible "agnostic" methods and efficient "realizability-based" approaches. By reducing the bandit problem to a series of standard least-squares regression tasks, the authors provide a practical way to use complex, non-linear models (like Gradient Boosted Trees) with strong theoretical regret guarantees.

The Contextual Bandit Challenge

Contextual Bandits (CB) are widely used in scenarios like news recommendation or ad placement, where a learner must choose an action based on a "context" (e.g., user history) to maximize a reward (e.g., a click). Historically, researchers have been split into two camps:

  1. Agnostic Methods: These are theoretically robust for any data distribution but rely on "cost-sensitive classification oracles." In practical terms, they require solving an NP-hard optimization problem at every step, making them computationally prohibitive for complex models.
  2. Realizability-based Methods (e.g., LinUCB): These are computationally efficient but usually restricted to simple linear models. If the underlying data distribution is highly non-linear, these models fail to capture the complexity and perform poorly.

The core challenge addressed by this paper is: How can we design a general-purpose CB algorithm that is both computationally efficient (like regression) and theoretically sound for complex, non-linear model classes?

The authors propose RegCB, which is introduced in two primary variants: RegCB.Elimination and RegCB.Optimistic.

The central innovation is the use of a Regression Oracle. Instead of attempting to classify actions directly, the algorithm maintains a "version space"—a set of models that fit the observed data well in terms of squared loss.

To make this computationally tractable, the authors employ a clever Binary Search technique:

  • To find the Upper Confidence Bound (UCB) for a specific action, the algorithm temporarily "augments" its dataset with a fabricated high-reward example for that action.
  • By performing a binary search on the weight of this fake example and calling the regression oracle, it can efficiently find the maximum possible reward any "plausible" model would predict.
  • This reduction allows RegCB to utilize any model class that supports weighted square-loss regression (such as XGBoost or LightGBM) without needing closed-form confidence intervals.

Experimental Setup

The authors evaluated their approach across 18 different scenarios to ensure robustness:

  • Learning-to-Rank: Microsoft MSLR-WEB30k and Yahoo! Learning to Rank Challenge.
  • UCI Classification: 8 standard datasets (e.g., letter, adult) converted into bandit problems.
  • Noisy Variants: 8 "noisy" versions of the UCI datasets, created using a reward matrix model to simulate more complex, non-deterministic environments.

Key Insights

  • Regression is "Reasonable": The authors argue that a regression oracle is a much more realistic assumption than a classification oracle. Most modern machine learning libraries are inherently built to minimize squared error, making RegCB "plug-and-play" with existing ML stacks.
  • Moving Beyond Eluder Dimension: Theoretical analysis of bandits often uses the "eluder dimension," which can be overly pessimistic. This paper introduces new distributional coefficients—the Surprise Bound and the Implicit Exploration Coefficient (IEC)—which provide a more nuanced way to guarantee low regret in i.i.d. settings.
  • Binary Search as an Optimizer: The realization that UCBs can be calculated via dataset augmentation and binary search is a powerful "reduction" that bypasses the need for complex analytical derivations for every new model type.

Empirical Results

Test reward over time comparing RegCB with baselines across different datasets and model types (GB5 vs. Linear).
  • Superior Performance: In empirical tests, RegCB (particularly when using Gradient Boosted Trees) consistently matched or outperformed state-of-the-art baselines like ILTCB and Bootstrap-TS.
  • Linear vs. Non-Linear: When restricted to linear models, RegCB performed similarly to LinUCB. However, its real strength emerged when using non-linear models (GB5), where it dominated all linear-based competitors, demonstrating the value of its flexible model support.
Disagreement set size and optimistic action width shrinking over time, confirming effective exploration-exploitation balance.
  • Shrinking Confidence: The authors empirically verified that their confidence widths actually shrink over time (roughly at a rate of $T^{-1/2}$ or $T^{-1/3}$). This confirms that the algorithm effectively balances exploration and exploitation, narrowing down its uncertainty as it gathers more data.

Limitations and Future Directions

  • Not Minimax Optimal: The authors acknowledge that RegCB is not "minimax optimal"—meaning there are rare, pathological cases where it could perform poorly. Achieving the optimal $O(\sqrt{T})$ regret using only a regression oracle remains an open theoretical challenge.
  • Realizability Assumption: The theory relies on the "True" reward function actually living within the chosen model class. If the model is heavily misspecified, the theoretical guarantees may not hold.
  • Randomization Schemes: The paper suggests that while uniform randomization over "plausible" actions works, exploring more sophisticated randomization schemes could lead to even better regret bounds in future work.

Summary updated

BibTeX
@inproceedings{foster2018practical,
  author = {Dylan J. Foster and Alekh Agarwal and Miroslav Dudík and Haipeng Luo and Robert E. Schapire},
  title = {{Practical Contextual Bandits with Regression Oracles}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
  url = {https://openreview.net/forum?id=H1bNZ3WOZB},
}
Figure