Multi-Armed Bandits and Thompson Sampling

Routing Summary

The earn-while-learning counterpart to the rest of Bayesian Experimental Design: instead of maximizing information about with no reward at stake, bandit algorithms maximize cumulative reward while learning online, paying for exploration as regret. Ingests Russo, Van Roy, Kazerouni, Osband & Wen (2018), A Tutorial on Thompson Sampling. Contains 6 notes.

Concept Map

ConceptNoteTypeDepends OnKey Result
MAB problem; exploration-exploitation; TS’s core idea; why greedy failsMulti-Armed Bandits and Thompson Sampling - Overviewconcept/overviewThe Global Optimisation ProblemTS = probability matching via one posterior draw per period
Beta-Bernoulli conjugacy; BernGreedy/BernTS; general Greedy/Thompson algorithmsBernoulli Bandit and Thompson Sampling Algorithmconcept/definitionMulti-Armed Bandits and Thompson Sampling - Overview; TS samples instead of
-greedy/dithering; UCB1; CascadeUCB vs CascadeTS; Gittins indexUCB and Greedy Algorithms for Banditsconcept/definitionBernoulli Bandit and Thompson Sampling AlgorithmHyper-rectangular UCB confidence sets over-optimistic vs. TS’s ellipsoidal posterior draws
Bayesian regret; Lai-Robbins asymptotic bound; eluder dimension; information ratioRegret Bounds for Thompson Samplingconcept/theoremUCB and Greedy Algorithms for Bandits, Expected Information Gain; UCB bounds translate directly to TS
Linear/GLM reward models; correlated edges; news recommendation; assortmentContextual and Linear Banditsconcept/exampleBernoulli Bandit and Thompson Sampling AlgorithmCoherent (correlation-aware) TS strictly dominates misspecified (independence-assuming) TS
Laplace/Langevin/bootstrap/ensemble approximate sampling; nonstationarity; PSRL/deep explorationApproximate Thompson Sampling and Practical Extensionsconcept/exampleContextual and Linear BanditsSample-once-per-episode (not per-timestep) is required for deep exploration in RL

Notes

  • Multi-Armed Bandits and Thompson Sampling - Overview — CONTAINS: the MAB problem definition; greedy’s failure mode and dithering; TS’s probability-matching definition; why TS works / where it fails at a glance; positioning vs. BED, Bayesian optimization, and dynamic treatment regimes.
  • Bernoulli Bandit and Thompson Sampling Algorithm — CONTAINS: the Beta-Bernoulli model and conjugate update; Algorithms 3.1-3.2 (BernGreedy, BernTS); Algorithms 4.1-4.2 (general Greedy, Thompson); the three-armed worked example; the independent-travel-times shortest-path example.
  • UCB and Greedy Algorithms for Bandits — CONTAINS: greedy/-greedy definitions; the generic UCB algorithm and pessimism/width regret decomposition; UCB1; CascadeUCB vs. CascadeTS (Algorithms 7.1-7.2) and the hyper-rectangular-vs-ellipsoidal confidence-set diagnosis; the Gittins index theorem and its scaling limits.
  • Regret Bounds for Thompson Sampling — CONTAINS: cumulative/Bayesian regret definitions; the Lai-Robbins asymptotic bound (Eq. 8.1) and instance-independent bound; the UCB→TS translation and eluder-dimension bound (Eqs. 8.5-8.6); the information ratio and information-theoretic bound (Eqs. 8.7-8.8); why randomization is necessary; the four documented TS failure modes and information-directed sampling.
  • Contextual and Linear Bandits — CONTAINS: correlated log-Gaussian edge travel times (Example 4.2) and coherent-vs-misspecified TS; contextual bandits via action-space augmentation (§6.2); logistic news-article recommendation (§7.1); matrix-parameterized product assortment optimization (§7.2).
  • Approximate Thompson Sampling and Practical Extensions — CONTAINS: Gibbs sampling, Laplace approximation, Langevin Monte Carlo, and bootstrap approximate posterior sampling; incremental (fixed-compute) variants and ensemble sampling; prior specification, constraints/caution, nonstationary TS, and concurrent TS; posterior sampling for reinforcement learning (PSRL) and deep exploration.

Sources

See Also