Boltzmann Exploration
Chooses actions with probability proportional to exp(value / temperature).
The idea
Also called softmax exploration. Better actions are chosen more often, but even poor ones keep a chance in proportion to how bad they look, so it avoids wasting tries on clearly terrible options. A high temperature makes choices nearly uniform; a low temperature makes them nearly greedy.
π(a) = exp(Q(a)/τ) / Σ exp(Q(a′)/τ)
Watch it run
This is a real computation, not a drawing. Pause, step, change the settings, or try new random data.
- estimated value
- true value (dashed)
- arm just pulled
Pull 1: Choose randomly, but favour better-looking arms (temperature 0.2). Got reward 1.35.
- pulls:
- 1
- regret:
- 0
Bars are what the agent believes; dashed lines are the truth it is trying to discover.
Step by step
- 1Compute exp(Q(a)/τ) for each action.
- 2Divide by the sum to get probabilities.
- 3Sample an action from them.
- 4Update Q and lower the temperature τ over time.
Where it is used
Softer exploration than ε-greedy.
Watch out for
Sensitive to the scale of the Q values, so τ needs tuning.