Monte Carlo tree search (MCTS)

Monte Carlo tree search is a planning method that chooses a move by building a tree of possible futures, sampling many play-outs and steering further search towards the branches that look most promising.

Monte Carlo tree search decides what to do by trying things out in its head. Each round has four steps. Selection walks down the tree of moves already explored, picking promising branches. Expansion adds a new move to the tree. Simulation plays the game out from there, originally with random or simple moves, to see who wins. Backpropagation carries the result back up the path, updating win and visit counts. After thousands of rounds, the move that was explored most is usually the one to play.

The key is balance. Selection has to exploit moves that have done well while still exploring moves that have barely been tried. In 2006 Levente Kocsis and Csaba Szepesvári introduced UCT, a formula that scores each move by its win rate plus a bonus for being under-explored, and the same year Rémi Coulom coined the name Monte Carlo tree search. The method transformed computer Go, a game long considered too complex to search: since 2006 the strongest Go programs have all used it.

AlphaGo, from DeepMind, combined it with deep learning. A policy network suggested promising moves and a value network judged positions, so the search wasted less time. The networks were first trained on about 30 million moves from expert human games and then improved by playing against themselves. AlphaGo beat the European champion Fan Hui 5-0 in October 2015, announced with a Nature paper in January 2016, and beat Lee Sedol 4-1 in Seoul in March 2016. Its 2017 successor AlphaZero replaced the play-out step entirely with a neural network's evaluation.

Since reasoning models arrived, researchers have tried searching over steps of reasoning in the same way. A January 2025 paper, rStar-Math, used MCTS at test time with small models guided by a model that scores each reasoning step, and reported raising Qwen2.5-Math-7B from 58.8% to 90.0% on the MATH benchmark. DeepSeek's R1 paper the same month listed MCTS among its unsuccessful attempts: the space of possible token sequences is vastly larger than a board game's, and training a reliable judge of partial answers proved hard.

So when a lab says a model searches or plans, it is worth asking what that means. Real tree search spends a lot of computation exploring alternatives for each decision. Many reasoning models instead get their gains from writing longer chains of thought, which is a different technique.

Common questions

How does Monte Carlo tree search work in simple terms?

It repeatedly imagines playing a move and then plays the rest of the game out quickly to see how things turn out. Moves that lead to good results get explored more, and new options still get tried occasionally. After many such rounds, it picks the move that looks best on the evidence gathered.

How did AlphaGo use Monte Carlo tree search?

AlphaGo used tree search guided by two neural networks: one proposed likely good moves and the other estimated who was winning from a position. That let the search focus on a small number of strong options instead of the enormous number of legal Go moves. It beat Lee Sedol 4-1 in March 2016.

Do large language models use Monte Carlo tree search?

Some research systems do, searching over possible reasoning steps; rStar-Math reported large gains on maths problems in January 2025. DeepSeek reported that MCTS did not work well in training DeepSeek-R1 because the space of possible text is so large. Most widely used reasoning models rely on long chains of thought rather than tree search.

Why is it called Monte Carlo tree search?

Monte Carlo methods use random sampling to estimate results that are too complex to calculate exactly. Here, the random samples are simulated play-outs of a game, and the tree is the growing record of moves explored and their results.

Finding more

Search for "Monte Carlo tree search explained", "UCT algorithm" or "MCTS LLM reasoning" depending on whether you want the classic method or its use with language models. Reliable sources include the AlphaGo and AlphaZero papers, game AI textbooks and survey articles, and current research on arXiv. Be wary of claims that a chatbot plans like AlphaGo unless the technical report describes an actual search procedure.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.