Balanced Linear Contextual Bandits

Maria Dimakopoulou, Zhengyuan Zhou, Susan Athey, Guido Imbens

Introduction

Contextual bandits are essential for personalized decision-making in fields ranging from digital advertising to clinical trials. These algorithms learn to map contexts (user features) to actions (arms) to maximize cumulative rewards. However, standard linear contextual bandit algorithms, such as LinUCB and LinTS, often struggle with estimation bias. This bias typically arises from small sample sizes, model misspecification, or biased initial training data, leading to suboptimal performance and a failure to explore effectively.

The Challenge of Estimation Bias

The authors identify three primary drivers of estimation bias in linear bandits:

  1. Small Sample Sizes: Early in the learning process, sparse data leads to non-uniform distributions across arms, making initial estimates unreliable.
  2. Model Misspecification: Real-world reward functions are rarely perfectly linear. When a linear model is imposed on non-linear data, the algorithm may converge to a suboptimal policy.
  3. Prejudiced Initial Data: "Warm-start" datasets often contain selection bias. If an algorithm begins with such data, it may develop a "prejudice" toward certain arms, reinforcing its bias through premature exploitation.

Balanced Linear Bandits (BLTS and BLUCB)

To address these issues, this paper introduces Balanced Linear Thompson Sampling (BLTS) and Balanced Linear UCB (BLUCB). These methods integrate Inverse Propensity Weighting (IPW) from causal inference to create "doubly-robust" reward estimates.

The core idea is to weight each observation by the inverse of its propensity score—the probability that a specific arm was chosen for a given context. In BLTS, these scores are derived from the posterior distribution of the optimal arm, estimated via Monte Carlo simulation. In BLUCB, propensity scores are estimated using a multinomial logistic regression model. By reweighting observations, the reward estimation remains consistent even if the linear model is misspecified, provided the assignment probabilities are accurately captured. To maintain stability, the authors employ "clipping" to prevent variance explosion from extremely small propensity scores.

Experimental Evaluation

The proposed algorithms were evaluated on a synthetic 2D quadratic reward environment and a large-scale benchmark comprising 300 OpenML datasets.

Synthetic Case Study

In the synthetic environment, the true reward is quadratic, while the bandit assumes a linear model. This setup tests the algorithm's ability to handle both misspecification and biased initial data.

Comparison of arm selection over time in a well-specified environment, showing how BLTS converges more reliably than standard methods.

As shown in the figures, standard LinUCB and LinTS can become trapped by initial biases. In contrast, BLTS corrects its estimation error significantly faster. In the synthetic test, BLTS identified the optimal arm after only 20 observations, compared to 240 for standard LinUCB.

Comparison of arm selection over time in a mis-specified environment. BLTS maintains robustness where standard linear models fail to adapt.

Large-Scale Benchmarks

Across 300 real-world datasets, BLTS consistently outperformed standard LinTS and LinUCB. In well-specified simulations, BLTS achieved a success rate of 92% (vs. 84% for LinTS), and in misspecified cases, it reached 58% (vs. 39% for LinTS).

Conclusion

Balanced Linear Contextual Bandits offer a robust alternative to standard methods by incorporating causal inference techniques. By accounting for the probability of arm selection, BLTS and BLUCB mitigate the risks of model misspecification and initial data bias. Crucially, these improvements in practical robustness do not come at the cost of theoretical performance, as the authors prove that the balanced algorithms maintain the same regret bounds as their standard counterparts.

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