Model Selection for Generic Contextual Bandits

Avishek Ghosh, Abishek Sankararaman, Kannan Ramchandran

TL;DR

This paper tackles the challenge of selecting the right model complexity for contextual bandit problems when the true model is unknown. They introduce an adaptive algorithm (ACB) that efficiently identifies the correct model class, achieving near-oracle regret bounds with only a small additive cost for model selection. They also propose a simpler explore-then-commit (ETC) approach and specialized algorithms for linear bandits.

What Problem Does This Paper Address?

In many real-world applications, like personalized recommendations, we use contextual bandit algorithms to make sequential decisions. These algorithms learn a mapping from observed contexts (e.g., user features, item descriptions) to actions (e.g., recommending an item) to maximize rewards. However, choosing the right complexity for the underlying model (e.g., a simple linear model vs. a complex neural network) is crucial. Too simple a model might not capture the nuances of the data (high bias), while too complex a model can be hard to train and prone to overfitting (high variance, computational cost). This is the "model selection" problem.

The authors address the challenge of performing model selection in stochastic contextual bandits without knowing the true model class beforehand. They assume a nested hierarchy of model classes, where the true model is guaranteed to be within at least one of these classes (realizability). A key difficulty is that without knowing the true model class, algorithms might incur a significant "model selection cost" in terms of regret, potentially much higher than an oracle that does know the true class. The paper aims to minimize this cost.

Methods

The paper introduces two main algorithmic approaches:

  1. Adaptive Contextual Bandit (ACB): This is a meta-algorithm designed to work with any existing provable contextual bandit algorithm (like FALCON). ACB operates in phases (epochs) with increasing lengths. At the beginning of each epoch, it uses statistical tests on the collected data to identify the most likely (smallest) hypothesis class containing the true model. It then "commits" to this chosen class for the remainder of the epoch, running the base bandit algorithm on it. This successive refinement process allows ACB to adaptively narrow down the model class.
  2. Explore-Then-Commit (ETC): A simpler, single-phase algorithm. It first performs a pure exploration phase (randomly choosing actions) to gather data. Then, it uses this data to estimate the best model class and commits to it for the rest of the time horizon.

For the special case of linear contextual bandits, they propose specialized algorithms (ALB-Dim) that leverage the linear structure. Notably, these algorithms do not require the "separability" assumption (a gap between model classes) that the generic algorithms need, and they achieve sharper regret guarantees, adapting to the true sparsity of the linear model.

Datasets

Not discussed in the paper. The paper focuses on theoretical analysis and algorithm design, not empirical evaluation on specific datasets.

Key Insights and Ideas

  • Adaptive Model Selection is Achievable: The core insight is that it's possible to achieve near-oracle regret bounds even when the true model class is unknown, by adaptively refining model selection over time.
  • Cost of Model Selection: The paper quantifies the "cost" of model selection as an additive term in the regret bound. This cost is shown to be inversely related to the "gap" or "separability" between model classes, meaning easier-to-identify models incur lower selection costs.
  • Meta-Algorithm Power: ACB's strength lies in its ability to leverage any existing state-of-the-art contextual bandit algorithm as a black box, making it a versatile tool for model selection.
  • Linear Bandit Advantage: For linear models, the problem simplifies significantly. The authors show that separability assumptions can be dropped, and algorithms can adapt to the true sparsity of the model, leading to much sharper regret bounds.
  • Simplicity vs. Efficiency: While ETC is simpler, ACB offers a lower model selection cost, highlighting a trade-off between algorithmic complexity and regret performance.

Key Results

  • ACB Regret: The ACB algorithm achieves a regret rate that order-wise matches that of an oracle that knows the true model class, with only an additive term for model selection. This additive term depends on the time horizon and the gap between model classes.
  • ETC Regret: The simpler ETC algorithm also achieves similar regret bounds but with a higher model selection cost (an additive term proportional to $\sqrt{T}$).
  • Linear Bandit Regret: Specialized algorithms for linear bandits achieve regret bounds that scale with the true sparsity of the model ($d^*$) rather than the full dimension ($d$), and are independent of the number of actions. This is a significant improvement over generic algorithms.
  • Theoretical Guarantees: The paper provides high-probability regret bounds for all proposed algorithms under realizability and separability assumptions (for generic bandits).

Limitations and Future Work

  • Separability Assumption: The generic algorithms (ACB and ETC) rely on a "separability" assumption, which guarantees a minimum gap between the performance of the true model and models from incorrect classes. The authors acknowledge that removing or weakening this assumption is an interesting future direction.
  • Uniformity of Regret: For linear bandits, the regret guarantees are not always uniform over all possible true parameters (e.g., they can depend on the minimum non-zero coordinate value). Closing this gap to achieve uniform regret is mentioned as future work.
  • Generalization to RL: The authors suggest extending their model selection framework to Reinforcement Learning problems.
  • Optimizing Constants: The theoretical bounds often involve constants that are not optimized, which could be a focus for future refinement.

Summary updated

BibTeX
@article{ghosh2024model,
  author = {Avishek Ghosh and Abishek Sankararaman and Kannan Ramchandran},
  title = {{Model Selection for Generic Contextual Bandits}},
  journal = {IEEE Trans. Information Theory},
  year = {2024},
  doi = {10.1109/tit.2023.3298103},
}
Figure