Skip to content
— CH. 1 · RANDOM ROOTS IN THE 1940S —

Monte Carlo tree search

~5 min read · Ch. 1 of 6
6 sections
  • The Monte Carlo method emerged in the 1940s as a way to solve deterministic problems using random sampling. Mathematicians needed a new approach for complex calculations that traditional methods could not handle efficiently. This technique relied on generating many random numbers to estimate outcomes rather than solving equations directly. Early applications focused on physics and nuclear research where exact solutions were impossible to derive by hand. By the late 1980s researchers began applying these ideas to game playing software. Bruce Abramson published his PhD thesis in 1987 describing how to combine minimax search with expected-outcome models based on random playouts. He tested this approach on tic-tac-toe and later applied it to Othello and chess programs. His work showed that random simulations could provide precise and domain-independent evaluations without needing static evaluation functions. Other teams followed suit in automated theorem proving during 1989. W. Ertel, J. Schumann, and C. Suttner improved exponential search times by integrating Monte Carlo techniques into their algorithms. These early experiments laid the groundwork for future developments in heuristic search.

  • A single round of Monte Carlo tree search consists of four distinct steps repeated until time runs out. Selection starts at the root node representing the current game state and follows child nodes down to an unvisited leaf. Expansion creates one or more new child nodes if the selected leaf does not end the game decisively. Simulation completes a random playout from that node all the way to a final result like win loss or draw. Backpropagation updates statistics along the path from the leaf back to the root using the simulation outcome. Each node tracks wins divided by total simulations to estimate value over many iterations. If white loses a simulation every node along the selection path increments its simulation count but only black nodes receive credit for wins. The process repeats as long as the allotted time remains for making a move. Programs choose the move with the highest number of simulations when time expires. Pure Monte Carlo Game Search applies this same procedure to any finite game position without needing explicit evaluation functions. It converges to optimal play in board filling games with random turn order such as Hex.

  • Rémi Coulom coined the term Monte Carlo tree search in 2006 while applying the Monte Carlo method to game-tree search. That same year Levente Kocsis and Csaba Szepesvári developed the Upper Confidence bounds applied to Trees algorithm known as UCT. S. Gelly et al. implemented UCT in their program MoGo which achieved dan level performance on 9x9 boards by 2008. Fuego began winning against strong amateur players on 9x9 Go later that year. The UCT formula balances exploitation of high win rates with exploration of moves having few simulations. It uses an expression where the first component reflects average win ratio and the second encourages trying untested options. Most contemporary implementations trace their roots back to Adaptive Multi-stage Sampling introduced by Chang et al. in 2005. This earlier work explored UCB-based exploration within Markov Decision Processes and became the main seed for UCT. By January 2012 the Zen program won a three-to-one match against an amateur 2-dan player on a full 19x19 board. These developments marked a turning point where random sampling combined with smart selection could challenge human expertise.

  • Monte Carlo tree search offers advantages over alpha-beta pruning especially in games with high branching factors. It does not require an explicit evaluation function since implementing game mechanics alone suffices to explore the search space. The algorithm grows asymmetrically concentrating on promising subtrees rather than expanding uniformly. However certain positions contain moves appearing strong superficially but leading to loss through subtle lines of play. These trap states demand thorough analysis which MCTS may miss due to selective node expansion policies. Experts believe this limitation contributed to AlphaGo losing its fourth game against Lee Sedol. The search attempts to prune sequences deemed less relevant yet sometimes critical outcomes fall off the radar entirely. In some cases specific lines of play prove significant but remain overlooked when the tree prunes branches prematurely. Pure Monte Carlo Game Search converges only in so-called Monte Carlo Perfect games while basic versions struggle elsewhere. Despite these drawbacks the method achieves better results than classical algorithms in many complex scenarios requiring deep lookahead.

  • Various modifications shorten search time by incorporating domain-specific expert knowledge or automated tuning methods. Light playouts use random moves while heavy playouts apply heuristics influenced by previous results or expert patterns. Paradoxically playing suboptimally during simulations sometimes makes programs stronger overall. RAVE Rapid Action Value Estimation reduces exploratory phases in games where move permutations lead to identical positions. This technique stores statistics not just for immediate children but also for all playouts containing a given move anywhere below that node. Progressive bias adds an element to the UCB1 formula using heuristic scores to adjust selection frequency. Automated methods tune parameters to maximize win rates across different game types. Parallel execution allows concurrent processing through leaf root or tree parallelization strategies. Leaf parallelization runs multiple playouts from one leaf simultaneously. Root parallelization builds independent trees and combines their root-level branches before choosing a move. Tree parallelization constructs the same tree concurrently protecting data with mutexes or non-blocking synchronization mechanisms. These optimizations enable real-time decision making even under tight computational constraints.

Common questions

When did Monte Carlo tree search emerge as a concept?

The Monte Carlo method emerged in the 1940s as a way to solve deterministic problems using random sampling. Researchers began applying these ideas to game playing software by the late 1980s.

Who coined the term Monte Carlo tree search and when was it introduced?

Rémi Coulom coined the term Monte Carlo tree search in 2006 while applying the Monte Carlo method to game-tree search. That same year Levente Kocsis and Csaba Szepesvári developed the Upper Confidence bounds applied to Trees algorithm known as UCT.

What happened when AlphaGo played Lee Sedol in March 2016?

In March 2016 AlphaGo defeated Lee Sedol four games to one earning an honorary 9-dan title. The system used Monte Carlo tree search together with artificial neural networks for both policy and value estimation.

How does Monte Carlo tree search differ from alpha-beta pruning?

Monte Carlo tree search offers advantages over alpha-beta pruning especially in games with high branching factors. It does not require an explicit evaluation function since implementing game mechanics alone suffices to explore the search space.

When did Google Deepmind release AlphaGo?

Google Deepmind released AlphaGo in October 2015 becoming the first computer program to beat a professional human Go player without handicaps on a standard 19x19 board.

All sources

52 references cited across the entry

  1. 1journalMastering the game of Go with deep neural networks and tree searchDavid Silver et al. — 28 January 2016
  2. 2arxivMastering Chess and Shogi by Self-Play with a General Reinforcement Learning AlgorithmDavid Silver — 2017
  3. 6journalThe monte carlo methodMetropolis Nicholas et al. — 1949
  4. 7bookThe Expected-Outcome Model of Two-Player GamesBruce Abramson — Technical report, Department of Computer Science, Columbia University — 1987
  5. 8book5. Österreichische Artificial-Intelligence-Tagung. Informatik-Fachberichte 208, pp. 87-95.Wolfgang Ertel et al. — Springer — 1989
  6. 9bookCADE90, 10th Int. Conf. on Automated Deduction.pp. 470-484. LNAI 449.Christian Suttner et al. — Springer — 1990
  7. 12bookJapanese-French Frontiers of Science SymposiumRémi Coulom — 2008
  8. 13bookComputers and Games, 5th International Conference, CG 2006, Turin, Italy, May 29–31, 2006. Revised PapersRémi Coulom — Springer — 2007
  9. 15bookFuego – An Open-Source Framework for Board Games and Go Engine Based on Monte Carlo Tree SearchMarkus Enzenberger et al. — Technical report, University of Alberta — 2008
  10. 21journalMoHex Wins Hex TournamentBroderick Arneson et al. — June 2009
  11. 22bookPlaying and Solving HavannahTimo Ewalds — Master's thesis, University of Alberta — 2011
  12. 23bookComputers and Games, 6th International Conference, CG 2008, Beijing, China, September 29 – October 1, 2008. ProceedingsRichard J. Lorentz — Springer — 2008
  13. 24bookMethods of MCTS and the game ArimaaTomáš Kozelek — Master's thesis, Charles University in Prague — 2009
  14. 25journalReal-Time Search Method in Nondeterministic Game – Ms. Pac-ManXiaocong Gan et al. — December 2011
  15. 26journalReal-Time Monte Carlo Tree Search in Ms Pac-ManTom Pepels et al. — September 2014
  16. 28bookIJCAI 2009, Proceedings of the 21st International Joint Conference on Artificial Intelligence, Pasadena, California, USA, July 11–17, 2009Michael Buro et al. — 2009
  17. 29journalComputer poker: A reviewJonathan Rubin et al. — April 2011
  18. 30bookCIG'09 Proceedings of the 5th international conference on Computational Intelligence and GamesC.D. Ward et al. — IEEE Press — 2009
  19. 31bookAdvances in Computer Games, 12th International Conference, ACG 2009, Pamplona, Spain, May 11–13, 2009. Revised PapersIstván Szita et al. — Springer — 2010
  20. 32bookMonte Carlo GoBernd Brügmann — Technical report, Department of Physics, Syracuse University — 1993
  21. 33journalProgressive Strategies for Monte-Carlo Tree SearchG.M.J.B. Chaslot et al. — 2008
  22. 34webIntroduction to Monte Carlo Tree SearchJeff Bradberry — 2015-09-07
  23. 35arxivRandom-Turn Hex and other selection gamesYuval Peres et al. — 2006
  24. 36conferenceBandit based Monte-Carlo PlanningLevente Kocsis et al. — Springer — 2006
  25. 37journalFinite-time Analysis of the Multiarmed Bandit ProblemPeter Auer et al. — 2002
  26. 40journalA Survey of Monte Carlo Tree Search MethodsCameron B. Browne et al. — 2012
  27. 41bookAdvances in Computer GamesIngo Althöfer — 2012
  28. 42journalOn adversarial search spaces and sampling-based planningRaghuram Ramanujan et al. — May 2010
  29. 43journalTrade-Offs in Sampling-Based Adversarial PlanningRaghuram Ramanujan et al. — March 2011
  30. 45journalThe Last-Good-Reply Policy for Monte-Carlo GoPeter Drake — December 2009
  31. 46bookModification of UCT with Patterns in Monte-Carlo GoSylvain Gelly et al. — Technical report, INRIA — November 2006
  32. 47bookProceedings of the 2010 International Conference on Artificial Intelligence, ICAI 2010, July 12–15, 2010, Las Vegas Nevada, USASeth Pellegrino et al. — CSREA Press — 2010
  33. 48bookMachine Learning, Proceedings of the Twenty-Fourth International Conference (ICML 2007), Corvallis, Oregon, USA, June 20–24, 2007Sylvain Gelly et al. — ACM — 2007
  34. 49bookReinforcement Learning and Simulation-Based Search in Computer GoDavid Silver — PhD thesis, University of Alberta — 2009
  35. 50bookACG 2011: Advances in Computer Games 13 Conference, Tilburg, the Netherlands, November 20–22Rémi Coulom
  36. 51bookComputers and Games, 6th International Conference, CG 2008, Beijing, China, September 29 – October 1, 2008. ProceedingsGuillaume M.J-B. Chaslot, Mark H.M. Winands, Jaap van den Herik — Springer — 2008