Root-parallel MCTS
Also known as Root parallelization, Root parallelism
adversarial game-tree-search
Root-parallel MCTS runs several Monte Carlo tree searches of the same root at once, one per thread, and adds up their root statistics. The trees share nothing: each thread has its own budget, a copy of the evaluator and selection rule, and a random generator seeded from the searcher's, so the same seed reproduces the same merged result. The best move is the one most visited over all trees, and the line follows the tree that visited it most. Here it is search_parallel, behind the parallel feature, which needs std. Use it to spend several cores on one decision without locks; the trees never see what the others learn, so each explores the top of the tree again on its own.
Pseudocode
algorithm Root-parallel-MCTS(p₀, k, budget)input: root position p₀, number of threads k, budget per threadoutput: the most visited root move over all trees, and each root move's summed statisticsfor i in 1, …, k in parallel do ▷ the trees share nothingrng_i ← new generator seeded from the searcher'sR_i ← MCTS(p₀, budget) with rng_ifor each root move m do ▷ every tree lists the same moves in ordervisits(m) ← Σ visits_i(m) over ivalue(m) ← Σ value_i(m) over ib ← the most visited m ▷ ties go to the earliestreturn b, with the line of the tree that visited b mostIn the crates
game-tree-searchfeatureparallelIndependent MCTS trees of one root on std threads, each with its own budget and seeded generator, their root visits and values added up move by move.
Lineage
Comes from
builds on Monte Carlo tree search
Led to
Nothing on this site.
Papers
- Parallel Monte-Carlo Tree Search Guillaume M. J.-B. Chaslot, Mark H. M. Winands, H. Jaap van den Herik · 2008· Computers and Games (CG 2008), Lecture Notes in Computer Science