A decision before the clock runs out #

Consider a board game with twelve legal opening moves and twelve possible replies to each. Looking just two moves ahead already produces 144 continuations. A player with time for twenty trials has to decide where to spend the next one. Monte Carlo tree search (MCTS) grows a partial tree around the current position. Every trial starts at the root. The branches that receive further investigation depend on what earlier trials revealed.

In early work on the Go program Crazy Stone, Rémi Coulom combined selective tree growth with estimates from simulated continuations. A tree can grow deep along a promising variation while another legal opening remains a single edge. At the deadline the player can choose a move using the accumulated evidence, even though most possible games have never been visited.

Section sources [1] [2]

What one simulation changes #

In a rollout-based version, the search first follows branches already in the tree, using a selection rule at each fork. At the frontier it can add a previously unexamined position. A rollout policy then chooses moves until the simulated game ends. A win or loss supplies an evaluation. On the way back to the root the algorithm updates the statistics along the path it took. In a two-player zero-sum game such as Go, the update must account for whose turn it was. A win from one seat is a loss from the other.

Suppose a move previously produced three wins in five trials. A sixth trial ending in a loss changes its observed win fraction to one half. The number describes the continuations the algorithm actually sampled. If a strong opponent has a reply the search has never tried, those numbers contain no direct evidence about that reply.

Section sources [1] [2]

Which branch gets the next trial? #

Kocsis and Szepesvári treated each decision in the tree as a local choice among competing actions. Their UCT algorithm combines an action’s average observed return with an exploration bonus. A move tried few times relative to visits to its parent gets a larger bonus. This gives a neglected move another chance even when one early result was unlucky. It also lets an extensively tested move with a high average keep attracting trials.

The authors analyzed consistency under stated assumptions about the planning problem. A limit as the number of trials grows answers a different practical question from choosing well with twenty trials. A useful comparison holds the time or simulation budget fixed and records the quality of the move actually played.

Section sources [2]

A network can guide the tree #

AlphaGo Zero used a network to propose likely moves and estimate the eventual result of a position. The move probabilities helped allocate search effort. The estimated value supplied a score at a newly reached position, dispensing with a random game played out to the end. The resulting visit counts at the root supplied a training target for the policy during self-play.

Two improvements are easy to distinguish at a Go board. Give a fixed player more time to analyze one move and the search may uncover a better reply. Train the network on completed games and its first estimates on tomorrow’s board may improve. The former is test-time computation. The latter can change which branches future searches consider first.

Section sources [3]

When the rules have to be learned #

Go supplies the exact successor position after a legal move. MuZero studied planning with a learned model whose internal state predicts rewards, action preferences and expected future return. It could investigate possible actions in that internal representation without having to reconstruct each pixel of a future screen. The team evaluated the system on board games and Atari games.

For a proposed scientific experiment, the equivalent of a successor position may be an uncertain forecast. Deeper search can then compound a mistaken assumption about the apparatus. A useful test is to record which outcomes the planner predicted along its chosen route and compare them with what later measurements reveal. More search can improve decisions only insofar as those simulated futures carry information about the world in which the action will be taken.

Section sources [3] [4]

Sources

  1. Rémi Coulom, Efficient Selectivity and Back-up Operators in Monte-Carlo Tree Search (2006) remi-coulom.fr
  2. Levente Kocsis and Csaba Szepesvári, Bandit Based Monte-Carlo Planning (2006) ics.uci.edu
  3. David Silver and colleagues, Mastering the Game of Go without Human Knowledge (2017) nature.com
  4. Julian Schrittwieser and colleagues, Mastering Atari, Go, Chess and Shogi by Planning with a Learned Model (2020) arxiv.org