Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

Gumbel MCTS

Also known as Gumbel MuZero root selection, Sequential halving with Gumbel

adversarial game-tree-search

Gumbel MCTS chooses the root move by sequential halving with Gumbel noise, so it improves the policy even with very few simulations. Each root move gets noise g; the search considers the moves with the highest g + log prior, spends its simulations on them in rounds, and after each round keeps the better half by g + log prior + σ(Q), where σ rescales the Q-values. Below the root, each simulation takes the child whose visit share lags most behind the improved policy softmax(log prior + σ(Q)), with no exploration constant. It returns the move that survived the halving and the improved policy, which replaces the visit counts as the training target; a noise scale of 0 makes it deterministic, for evaluating a trained policy. Use it in self-play with a policy network and a small simulation budget, where PUCT with root noise needs many simulations to improve on the prior.

Pseudocode

algorithm Gumbel-MCTS(p₀, n, m)input: root position p₀, simulations n, considered moves m (16 by default)output: the move that survived the halving, and the improved policy π′ as the training targetg(a) ~ Gumbel(0, 1) · scale for each root move aA ← the m root moves with the highest g(a) + log P(a)for each round of sequential halving, until n simulations are spent dosimulate every move in A equally often      ▷ below the root: select-towards(π′)A ← the better half of A by g(a) + log P(a) + σ(Q(a))π′ ← softmax(log P + σ(Q)) over the root movesreturn the move left in A, and π′function select-towards(π′, n)return the child a of n with the highest π′(a) − N(a) / (1 + Σ N)   ▷ no exploration constantfunction σ(Q)return Q rescaled to [0, 1] over the children, times (visit-offset + most visits) · value-scale

In the crates

  • game-tree-search

    Sequential halving with Gumbel noise at the root and deterministic selection towards the improved policy below it, ported from mctx; returns the improved policy as the training target.

    search_gumbelGumbel

Lineage

Comes from

builds on Monte Carlo tree search

Led to

Nothing on this site.

Papers

  1. Policy improvement by planning with Gumbel Ivo Danihelka, Arthur Guez, Julian Schrittwieser, David Silver · 2022· International Conference on Learning Representations (ICLR 2022) introduces