Bandits (UCB, Thompson sampling)

Reinforcement learning · classical · 1933 · recommenders · any domain

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)

Browse all 198 architectures

The architecture landscape, in one place.

Two things get called “ML architecture”: the classical statistical model families, and the neural network wirings. Both are here, tagged by what they are and what data they eat.

Start from your problem

Architectures

0 shortlisted