Rate-adaptive model selection over a collection of black-box contextual bandit algorithms

Aurélien F. Bibaut, Antoine Chambaz, Mark J. van der LaanarXiv 2020

Abstract

We consider the model selection task in the stochastic contextual bandit setting. Suppose we are given a collection of base contextual bandit algorithms. We provide a master algorithm that combines them and achieves the same performance, up to constants, as the best base algorithm would, if it had been run on its own. Our approach only requires that each algorithm satisfy a high probability regret bound. Our procedure is very simple and essentially does the following: for a well chosen sequence of probabilities $(p_{t})_{t\geq 1}$, at each round $t$, it either chooses at random which candidate to follow (with probability $p_{t}$) or compares, at the same internal sample size for each candidate, the cumulative reward of each, and selects the one that wins the comparison (with probability $1-p_{t}$). To the best of our knowledge, our proposal is the first one to be rate-adaptive for a collection of general black-box contextual bandit algorithms: it achieves the same regret rate as the best candidate. We demonstrate the effectiveness of our method with simulation studies.

Introduction

Choosing the optimal contextual bandit algorithm for a specific task is often a guessing game. While algorithms like LinUCB excel in linear environments, they may fail in more complex, non-linear ones. Conversely, robust methods like $\epsilon$-greedy might converge slower in simple settings. The challenge of "model selection"—identifying the best algorithm for a specific environment on the fly—is hindered by two main hurdles: the feedback challenge (only observing rewards for chosen actions) and the comparability challenge (data starvation of slow-starting algorithms).

This paper introduces EnsBFC (Ensembling Bandits by Fair Comparison), a master algorithm that combines multiple "black-box" bandit learners. By comparing candidates only when they have processed the same amount of data, EnsBFC provides the first rate-adaptive solution for general contextual bandit model selection, automatically achieving the performance of the best learner in the group.

Methodology: Ensembling Bandits by Fair Comparison (EnsBFC)

EnsBFC treats base algorithms as black boxes, requiring only a known high-probability regret bound for each. The core innovation is the Fair Comparison mechanism, which addresses the data starvation trap.

Exploration vs. Exploitation

At each time step $t$, the master algorithm either explores by picking a base learner at random (with probability $p_t$) or exploits by selecting the current "best" learner.

Internal Time Matching

To ensure fairness, the master algorithm does not compare total performance at time $t$. Instead, it synchronizes learners to a shared internal sample size $n$. It evaluates the cumulative reward each learner achieved over the first $n$ rounds it was actually selected. This prevents a superior algorithm from being discarded simply because it was "starved" of samples early on.

Selection Criterion

The master algorithm selects the learner $j$ that minimizes an index combining the Estimated Risk and the Theoretical Regret Bound. This ensures that learners with faster theoretical convergence rates are prioritized fairly.

Experimental Evaluation

The authors evaluated EnsBFC using synthetic environments designed to highlight the strengths and weaknesses of different base learners. Context vectors were generated from a multivariate normal distribution $\mathcal{N}(0, \mathbf{I}_4)$.

  • Environment 1: Features a non-linear reward structure where a nonparametric $\epsilon$-greedy learner is optimal, and LinUCB suffers.
  • Environment 2: Features a linear reward structure where LinUCB is optimal and $\epsilon$-greedy is suboptimal.
Figure 1: Mean cumulative reward of the master algorithm (EnsBFC) compared to base learners in two different environments.

As shown in Figure 1, EnsBFC successfully identifies and tracks the optimal learner in both scenarios. In Environment 1 (left), it follows the $\epsilon$-greedy learner (blue), while in Environment 2 (right), it pivots to follow LinUCB (red). This demonstrates the algorithm's ability to avoid the "data starvation" trap that often causes simpler meta-learners to fail.

Key Insights and Results

The primary theoretical contribution is the proof that the expected regret of EnsBFC is bounded by $CT^{1-\beta(1)}$, where $\beta(1)$ is the rate of the best algorithm in the collection. This confirms that the master algorithm is asymptotically as good as the best base learner, achieving rate-adaptivity.

Unlike previous state-of-the-art methods like CORRAL, EnsBFC is fully rate-adaptive even when candidates have different convergence speeds. Its black-box flexibility allows researchers to integrate virtually any modern contextual bandit algorithm without modifying its internal logic.

Conclusion and Future Work

While EnsBFC provides a robust framework for model selection, it currently requires knowing the theoretical regret exponents ($\beta_j$) of the base algorithms beforehand. Future work aims to develop data-driven methods for setting hyperparameters and achieving "oracle equivalence"—performing as well as the best instance-dependent learner, which is an even stricter form of optimality.

Summary updated

BibTeX
@misc{bibaut2020rate,
  author = {Aurélien F. Bibaut and Antoine Chambaz and Mark J. van der Laan},
  title = {{Rate-adaptive model selection over a collection of black-box contextual bandit algorithms}},
  year = {2020},
  eprint = {2006.03632},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.03632},
}
Figure