Exploration, Exploitation, and UCT

During selection, MCTS must choose between actions already known to be strong and actions that have not yet been tested adequately. UCT turns this into a numerical tradeoff.

UCT(i) = Q(i) / N(i) + C √(ln N(parent) / N(i))

TermMeaning
Q(i) / N(i)Average value observed for child i: exploitation
√(ln N(parent) / N(i))Uncertainty bonus for less-visited children: exploration
CControls the strength of exploration

A small example

Suppose the parent has 100 visits and two children have the following records. Let C = 1.4.

ChildWins / visitsAverage valueInterpretation
A42 / 600.70Strong evidence, relatively certain
B6 / 100.60Lower average, but much less explored

UCT may select B because its exploration bonus is larger. As B receives more visits, that bonus shrinks. If B continues to perform poorly, selection shifts toward A.

Important qualifications

Check your understanding

  1. Why does an unvisited child require special treatment?
  2. What happens when C is close to zero?
  3. What happens when C is extremely large?
  4. Why is the exploration bonus not a statement about a move's true quality?