Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

PUCT

Also known as Predictor-UCT, PUCB

adversarial game-tree-search

PUCT (Predictor-UCT) is a selection rule for Monte Carlo tree search that lets a prior guide which moves are tried. A child scores its mean reward for the side to move plus c_puct · prior · √(parent visits) / (1 + child visits), so a move with a high prior is explored early and the bonus fades as the child gathers visits. Unlike UCT, it also scores unvisited children, at a mean of one half, so priors decide which moves are tried at all. The priors come from the evaluator, and c_puct is 1.25 by default; without priors they are uniform and PUCT explores evenly. Use it when something can rank the moves before searching them, such as a policy network in AlphaZero-style search or a cheap heuristic, so the simulations go to the promising moves.

Pseudocode

algorithm PUCT-select(s, n)input: side s to move at node noutput: the child a simulation descends intoP ← priors(n)best ← nilfor each child c of n do                     ▷ unvisited children too, at a mean of ½u ← mean(c, s) + c_puct · P(c) · √visits(n) / (1 + visits(c))if best = nil or u > u-best thenbest, u-best ← c, u                      ▷ ties go to the earliest childreturn bestfunction priors(n)if the evaluator gives priors for moves(n) thenreturn those priorsreturn 1 / |moves(n)| for each move          ▷ uniform: PUCT explores evenly

In the crates

  • game-tree-search

    MCTS selection by mean plus c_puct · prior · √(parent visits) / (1 + child visits), with move priors from the evaluator; uniform priors without them.

    Puct

Lineage

Comes from

specializes Monte Carlo tree search

Led to

AlphaZero self-play targets builds on it

Papers

  1. Multi-armed bandits with episode context Christopher D. Rosin · 2011· Annals of Mathematics and Artificial Intelligence introduces doi 10.1007/s10472-011-9258-6
  2. Mastering the game of Go without human knowledge David Silver, Julian Schrittwieser, Karen Simonyan, Ioannis Antonoglou, Aja Huang, Arthur Guez, Thomas Hubert, Lucas Baker, Matthew Lai, Adrian Bolton, Yutian Chen, Timothy Lillicrap, Fan Hui, Laurent Sifre, George van den Driessche, Thore Graepel, Demis Hassabis · 2017· Nature applies doi 10.1038/nature24270