Monte Carlo tree search
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.
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. 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. This combination gave it efficiency far surpassing previous programs that relied solely on random playouts. DeepMind's AlphaZero later replaced the simulation step entirely with evaluations based on neural network outputs. Leela Chess Zero adopted similar methods for chess and now ranks among leading chess playing programs. The integration of deep learning architectures transformed machine intelligence capabilities across multiple domains including strategy video games like Total War: Rome II. Applications extended beyond traditional board games to include real-time titles such as Ms. Pac-Man and Fable Legends. Nondeterministic games like poker Magic: The Gathering and Settlers of Catan also benefited from these hybrid approaches. The fusion of search algorithms with pattern recognition represented a significant milestone in artificial general intelligence research.
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
- 1journalMastering the game of Go with deep neural networks and tree searchDavid Silver et al. — 28 January 2016
- 2arxivMastering Chess and Shogi by Self-Play with a General Reinforcement Learning AlgorithmDavid Silver — 2017
- 3webA Survey of Monte-Carlo Techniques in GamesPrahalad Rajkumar
- 5journalBeyond games: a systematic review of neural Monte Carlo tree search applicationsMarco Kemmerling et al. — 1 January 2024
- 6journalThe monte carlo methodMetropolis Nicholas et al. — 1949
- 7bookThe Expected-Outcome Model of Two-Player GamesBruce Abramson — Technical report, Department of Computer Science, Columbia University — 1987
- 8book5. Österreichische Artificial-Intelligence-Tagung. Informatik-Fachberichte 208, pp. 87-95.Wolfgang Ertel et al. — Springer — 1989
- 9bookCADE90, 10th Int. Conf. on Automated Deduction.pp. 470-484. LNAI 449.Christian Suttner et al. — Springer — 1990
- 10journalUsing Back-Propagation Networks for Guiding the Search of a Theorem Prover.Christian Suttner et al. — 1991
- 12bookJapanese-French Frontiers of Science SymposiumRémi Coulom — 2008
- 13bookComputers and Games, 5th International Conference, CG 2006, Turin, Italy, May 29–31, 2006. Revised PapersRémi Coulom — Springer — 2007
- 14journalThe Computational Intelligence of MoGo Revealed in Taiwan's Computer Go TournamentsChang-Shing Lee et al. — 2009
- 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
- 16webThe Shodan Go Bet
- 17webResearch Blog: AlphaGo: Mastering the ancient game of Go with Machine Learning27 January 2016
- 18webGoogle achieves AI 'breakthrough' by beating Go champion27 January 2016
- 19webMatch 1 - Google DeepMind Challenge Match: Lee Sedol vs AlphaGo9 March 2016
- 20webGoogle AlphaGo AI clean sweeps European Go champion28 January 2016
- 21journalMoHex Wins Hex TournamentBroderick Arneson et al. — June 2009
- 22bookPlaying and Solving HavannahTimo Ewalds — Master's thesis, University of Alberta — 2011
- 23bookComputers and Games, 6th International Conference, CG 2008, Beijing, China, September 29 – October 1, 2008. ProceedingsRichard J. Lorentz — Springer — 2008
- 24bookMethods of MCTS and the game ArimaaTomáš Kozelek — Master's thesis, Charles University in Prague — 2009
- 25journalReal-Time Search Method in Nondeterministic Game – Ms. Pac-ManXiaocong Gan et al. — December 2011
- 26journalReal-Time Monte Carlo Tree Search in Ms Pac-ManTom Pepels et al. — September 2014
- 27webTactical Planning and Real-time MCTS in Fable LegendsGwaredd Mountain — 2015
- 28bookIJCAI 2009, Proceedings of the 21st International Joint Conference on Artificial Intelligence, Pasadena, California, USA, July 11–17, 2009Michael Buro et al. — 2009
- 29journalComputer poker: A reviewJonathan Rubin et al. — April 2011
- 30bookCIG'09 Proceedings of the 5th international conference on Computational Intelligence and GamesC.D. Ward et al. — IEEE Press — 2009
- 31bookAdvances in Computer Games, 12th International Conference, ACG 2009, Pamplona, Spain, May 11–13, 2009. Revised PapersIstván Szita et al. — Springer — 2010
- 32bookMonte Carlo GoBernd Brügmann — Technical report, Department of Physics, Syracuse University — 1993
- 33journalProgressive Strategies for Monte-Carlo Tree SearchG.M.J.B. Chaslot et al. — 2008
- 34webIntroduction to Monte Carlo Tree SearchJeff Bradberry — 2015-09-07
- 35arxivRandom-Turn Hex and other selection gamesYuval Peres et al. — 2006
- 36conferenceBandit based Monte-Carlo PlanningLevente Kocsis et al. — Springer — 2006
- 37journalFinite-time Analysis of the Multiarmed Bandit ProblemPeter Auer et al. — 2002
- 38journalAn Adaptive Sampling Algorithm for Solving Markov Decision ProcessesHyeong Soo Chang et al. — 2005
- 39journalGoogle DeepMind's Alphago: O.R.'s unheralded role in the path-breaking achievementHyeong Soo Chang et al. — 2016
- 40journalA Survey of Monte Carlo Tree Search MethodsCameron B. Browne et al. — 2012
- 41bookAdvances in Computer GamesIngo Althöfer — 2012
- 42journalOn adversarial search spaces and sampling-based planningRaghuram Ramanujan et al. — May 2010
- 43journalTrade-Offs in Sampling-Based Adversarial PlanningRaghuram Ramanujan et al. — March 2011
- 44webLee Sedol defeats AlphaGo in masterful comeback - Game 4Go Game Guru
- 45journalThe Last-Good-Reply Policy for Monte-Carlo GoPeter Drake — December 2009
- 46bookModification of UCT with Patterns in Monte-Carlo GoSylvain Gelly et al. — Technical report, INRIA — November 2006
- 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
- 48bookMachine Learning, Proceedings of the Twenty-Fourth International Conference (ICML 2007), Corvallis, Oregon, USA, June 20–24, 2007Sylvain Gelly et al. — ACM — 2007
- 49bookReinforcement Learning and Simulation-Based Search in Computer GoDavid Silver — PhD thesis, University of Alberta — 2009
- 50bookACG 2011: Advances in Computer Games 13 Conference, Tilburg, the Netherlands, November 20–22Rémi Coulom
- 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
- 52bookAdvances in Computer Games: 12th International Conference, ACG 2009, Pamplona, Spain, May 11–13, 2009, Revised PapersMarkus Enzenberger et al. — Springer — 2010