Bandits (UCB, Thompson sampling)
What it is
Sequential decision-making with immediate reward only: explore to learn, exploit to earn.
When to use it
A/B testing, ad and content selection, dynamic pricing, clinical trial allocation (LinUCB for contextual).
Caveats
There is no state and no long-term consequence of actions, so bandits do not model sequential decision problems. Standard algorithms assume rewards are stationary, and delayed feedback complicates them.
Key ideas
- Reinforcement learning with a single state: choose among arms with unknown rewards
- UCB: pick the arm with the highest optimistic estimate
- Thompson sampling: sample from the posterior over each arm and pick the best sample
Related architectures
Original paper
Finite-time Analysis of the Multiarmed Bandit Problem (2002, DOI)