Balanced Linear Contextual Bandits.

Maria Dimakopoulou, Zhengyuan Zhou, Susan Athey, Guido Imbens

TL;DR

This paper introduces "balanced" versions of linear contextual bandit algorithms (BLTS and BLUCB) that incorporate techniques from causal inference to improve estimation robustness. These new algorithms achieve theoretical regret bounds comparable to existing methods while demonstrating significant practical advantages in simulations and real-world datasets, particularly in scenarios with biased initial data or model misspecification.

What Problem Does This Paper Address?

Contextual bandit algorithms aim to learn the best action to take given an observed context, balancing the need to explore new actions with exploiting known good ones. A key challenge is accurately estimating the outcome model (how actions affect rewards based on context), especially when the data collection process itself is adaptive and can introduce biases. This is particularly problematic in the initial stages of learning or when the true underlying data-generating process is complex and doesn't perfectly match the assumed functional form of the outcome model (e.g., linear). Such biases can lead to overly optimistic assessments of learning progress, favoring exploitation too early and hindering overall performance. The paper addresses this by developing methods that are less susceptible to these estimation biases.

Methods

The core innovation is the integration of "balancing" methods, borrowed from causal inference, into existing linear contextual bandit algorithms. Specifically, the authors adapt the inverse propensity weighting technique. This involves weighting observations based on the inverse of their estimated propensity score (the probability of that context being assigned to that arm). This weighting aims to make the estimation "doubly robust" – robust to both potential misspecification of the reward model and the propensity score model.

The paper proposes two new algorithms:

  • Balanced Linear Thompson Sampling (BLTS): Integrates balancing into the Thompson Sampling framework, which uses a probabilistic approach to exploration.
  • Balanced Linear UCB (BLUCB): Integrates balancing into the Upper Confidence Bound (UCB) framework, which uses deterministic bounds for exploration.

These algorithms build upon established linear contextual bandit algorithms like LinTS and LinUCB, modifying their estimation procedures to incorporate the balancing weights. The paper also introduces a propensity score threshold parameter ($\gamma$) to help control variance increases that can arise from importance weighting.

Datasets

The paper uses two main types of data for evaluation:

  • Synthetic Example: A custom-designed simulation to specifically test scenarios of bias due to under-representation of certain context regions (e.g., "prejudice in training data") and model misspecification.
  • 300 Public Benchmark Datasets: These are multiclass classification datasets from the OpenML repository. For these, the features of the dataset are treated as the context, the class labels as the possible actions, and the reward is derived from whether the chosen action (class) matches the true class. This transforms a standard supervised learning problem into a contextual bandit setting.

Key Insights and Ideas

  • Balancing for Robustness: The core insight is that borrowing techniques from causal inference, specifically balancing, can significantly improve the robustness of contextual bandit algorithms to estimation biases, especially those arising from adaptive data collection and model misspecification.
  • Thompson Sampling Advantage: The paper provides strong empirical evidence that Thompson Sampling-based approaches (LinTS and BLTS) tend to perform better in practice than their UCB counterparts (LinUCB and BLUCB), even when theoretical guarantees are similar. This is attributed to the more "dispersed" and randomized nature of exploration in Thompson Sampling, which helps gather more diverse data for estimation.
  • Balancing Enhances Exploration: By reducing estimation bias, balancing methods allow algorithms to explore more effectively for longer, leading to better overall learning and performance, particularly in challenging scenarios.
  • Practical Gains Beyond Theory: While the theoretical regret bounds of the balanced algorithms match existing state-of-the-art, the empirical results show a substantial practical advantage, suggesting that theoretical guarantees alone don't fully capture the performance differences in real-world applications.

Key Results

  • Theoretical Guarantees: The paper proves that BLTS and BLUCB achieve regret bounds comparable to their non-balanced counterparts (LinTS and LinUCB), specifically $\tilde{O}(\sqrt{TdK})$ for BLUCB and $\tilde{O}(d/\sqrt{T^{1+\epsilon}})$ for BLTS.
  • Synthetic Example Performance: In the synthetic example, BLTS significantly outperforms LinTS, LinUCB, and BLUCB in both well-specified and misspecified outcome models, especially in escaping biases from warm-start data. BLUCB also shows improvement over LinUCB.
  • Real-World Datasets: On 300 classification datasets, BLTS consistently outperformed LinTS, LinUCB, and BLUCB. BLUCB also showed improvement over LinUCB. BLTS demonstrated the best overall performance, even outperforming the statistically optimal policy-based ILTCB algorithm in many cases.
  • Win Rates: Figure 4 visually demonstrates that BLTS wins (has smaller normalized cumulative regret) against LinTS, LinUCB, and BLUCB on a majority of the 300 datasets.

Limitations and Future Work

  • Propensity Score Threshold: The introduction of a propensity score threshold ($\gamma$) adds another hyperparameter that needs tuning, which can be challenging in practice.
  • Computational Cost: While not explicitly detailed as a limitation, the integration of balancing methods might add computational overhead compared to direct estimation methods.
  • Future Work: The authors suggest exploring other covariate balancing methods beyond inverse propensity weighting, such as approximate residual balancing, and investigating their integration into contextual bandit algorithms. They also hint at the potential for further theoretical analysis and empirical validation on a wider range of applications.

Summary updated

BibTeX
@inproceedings{dimakopoulou2019balanced,
  author = {Maria Dimakopoulou and Zhengyuan Zhou and Susan Athey and Guido Imbens},
  title = {{Balanced Linear Contextual Bandits.}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33013445},
}
Figure