Contextual Bandits and Optimistically Universal Learning

Published Online:https://doi.org/10.1287/moor.2024.0443

We consider the contextual bandit problem in general action and context spaces. This generalizes the standard multiarmed bandit to the case where side information is available—for example, patients’ records or customers’ history—which allows for personalized treatment. We focus on consistency (vanishing regret compared with optimal policy) and show that for large classes of non-independent and identically distributed (non-i.i.d.) contexts, consistency can be achieved regardless of the reward mechanism, a property known as universal consistency. To the best of our knowledge, this is the first work giving consistent algorithms for any contextual bandits instance with finite action spaces and i.i.d. contexts. Further, we first give necessary and sufficient conditions on the context-generating process for universal consistency to be possible. Second, we show that there always exists an algorithm that guarantees universal consistency whenever this is achievable, referred to as optimistically universal. Interestingly, for finite action spaces, the processes admitting universal learning are exactly the same as in the full-feedback supervised setting: learning can be performed with partial feedback without any generalization cost. The algorithms balance a trade-off between generalization (similar to structural risk minimization) and personalization (tailoring actions to specific contexts). Lastly, we investigate the benefit of continuity assumptions on rewards for universal learning.

Funding: Financial support from the Office of Naval Research [Grant N00014-18-1-2122] is gratefully acknowledged.

Supplemental Material: The online appendix is available at https://doi.org/10.1287/moor.2024.0443.

INFORMS site uses cookies to store information on your computer. Some are essential to make our site work; Others help us improve the user experience. By using this site, you consent to the placement of these cookies. Please read our Privacy Statement to learn more.