Skip to main content
QUICK REVIEW

[Paper Review] Variational inference for the multi-armed contextual bandit

Iñigo Urteaga, Chris H. Wiggins|arXiv (Cornell University)|Sep 10, 2017
Advanced Bandit Algorithms ResearchDecision Sciences24 references7 citations
TL;DR

This paper proposes variational Thompson sampling (VTS) for contextual multi-armed bandits, using variational inference to approximate complex, unknown reward distributions via Gaussian mixture models. By learning variational parameters that minimize KL divergence to the true reward distribution, VTS achieves significantly reduced cumulative regret even under model misspecification, outperforming standard Thompson sampling with restrictive parametric assumptions.

ABSTRACT

In many biomedical, science, and engineering problems, one must sequentially decide which action to take next so as to maximize rewards. One general class of algorithms for optimizing interactions with the world, while simultaneously learning how the world operates, is the multi-armed bandit setting and, in particular, the contextual bandit case. In this setting, for each executed action, one observes rewards that are dependent on a given 'context', available at each interaction with the world. The Thompson sampling algorithm has recently been shown to enjoy provable optimality properties for this set of problems, and to perform well in real-world settings. It facilitates generative and interpretable modeling of the problem at hand. Nevertheless, the design and complexity of the model limit its application, since one must both sample from the distributions modeled and calculate their expected rewards. We here show how these limitations can be overcome using variational inference to approximate complex models, applying to the reinforcement learning case advances developed for the inference case in the machine learning community over the past two decades. We consider contextual multi-armed bandit applications where the true reward distribution is unknown and complex, which we approximate with a mixture model whose parameters are inferred via variational inference. We show how the proposed variational Thompson sampling approach is accurate in approximating the true distribution, and attains reduced regrets even with complex reward distributions. The proposed algorithm is valuable for practical scenarios where restrictive modeling assumptions are undesirable.

Motivation & Objective

  • To extend Thompson sampling beyond restrictive parametric models in contextual bandit settings.
  • To address model misspecification in reward modeling when true distributions are complex or unknown.
  • To enable accurate, interpretable, and flexible modeling of reward distributions using mixture models.
  • To reduce cumulative regret in sequential decision-making under uncertainty by learning complex reward structures via variational inference.
  • To provide a scalable and principled method for online learning in contextual bandits without strong parametric assumptions.

Proposed method

  • Uses a hierarchical Bayesian mixture model to represent complex, unknown reward distributions in contextual bandits.
  • Applies variational inference with mean-field approximation to learn the parameters of the Gaussian mixture model.
  • Minimizes the Kullback-Leibler divergence between the true posterior and the variational approximation to ensure accurate distributional estimation.
  • Employs variational Thompson sampling: samples from the variational posterior to balance exploration and exploitation.
  • Derives closed-form update equations for variational parameters using the evidence lower bound (ELBO) optimization.
  • Integrates online learning by updating variational parameters incrementally as new context-reward pairs arrive.

Experimental results

Research questions

  • RQ1Can variational inference be effectively used to approximate complex, non-exponential-family reward distributions in contextual bandits?
  • RQ2Does variational Thompson sampling reduce cumulative regret compared to standard Thompson sampling with misspecified models?
  • RQ3How does model flexibility (e.g., number of mixture components) affect regret and estimation accuracy in complex reward scenarios?
  • RQ4Can the proposed method learn accurate expected reward estimates even when the true reward distribution is unbalanced or overlapping?
  • RQ5What is the trade-off between model complexity and regret performance in online, sequential decision-making?

Key findings

  • In Scenario B with unbalanced, overlapping reward mixtures, VTS with K=3 components reduced cumulative regret by 40% at t=500 compared to VTS with K=1.
  • The VTS method with K=3 achieved regret performance comparable to the true model (K=2), demonstrating robustness to model complexity.
  • Expected reward estimation MSE was significantly lower for VTS with K=2 and K=3 compared to K=1 in complex scenarios, indicating improved learning accuracy.
  • Even in simple scenarios (Scenario A), VTS with K=1 performed well, but the flexibility of higher K models enabled superior performance under complexity.
  • The variational approximation successfully minimized KL divergence, enabling accurate posterior sampling and improved decision-making.
  • The method maintains low regret across diverse reward structures, showing strong generalization without restrictive parametric assumptions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.