liveBook · Manning

Multi-armed bandit

As explained in Bayesian Optimization in Action

A multi-armed bandit is a sequential decision problem in which an agent repeatedly selects among actions with uncertain reward distributions to balance information gathering and reward seeking.

A multi-armed bandit is a sequential decision problem: repeatedly choose among actions with unknown reward rates while maximizing the total reward collected over a fixed or extended horizon. Each action reveals an uncertain outcome only after it is taken. section 5.1 section 5.5

Choosing a profitable slot machine

Imagine several slot machines, each with a hidden probability of returning coins. Pulling an arm supplies evidence about that machine, but also consumes an opportunity that could have been spent on another machine. A strong strategy must discover which machines pay well without neglecting promising alternatives. section 5.1.1

The central decision tension has three parts:

  • Exploration tests under-sampled actions to learn their reward rates. section 5.5
  • Exploitation selects actions already associated with high rewards. section 5.5
  • The policy chooses the next action from past observations, balancing immediate reward against information gathering. section 5.1 section 5.5

Bandit policies connect directly to Bayesian optimization. Both optimize under uncertainty, but a bandit maximizes cumulative reward across finite actions, whereas Bayesian optimization seeks a high single observed value over potentially infinitely many, correlated actions. section 5.1.2

How Bayesian Optimization in Action covers it

How deep it goes
Defines actions, unknown reward rates, horizon, and cumulative reward, then contrasts the model with Bayesian optimization.
Examples
Uses casino slot machines, hidden reward probabilities, finite pulls, and an exploration–exploitation comparison.
What you can do after
Apply upper confidence bound or Thompson sampling policies to balance exploration and exploitation.
How it connects
Connects exploration–exploitation, Bayesian optimization, upper confidence bounds, Thompson sampling, and Gaussian processes.

Also explained in

Compare how 5 books explain multi-armed bandit →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Bayesian Optimization in Action. The section links point to the parts of the book it draws on.