Concepts / Tree Search

Tree Search

Monte Carlo Tree Search joins a tree-based search structure with random sampling.

  • Programming

Why Combine Two Search Ideas

Monte Carlo Tree Search, usually shortened to MCTS, is easiest to understand as a deliberate combination of two ideas. Tree search organizes possible choices in a tree-shaped structure. The Monte Carlo idea contributes random sampling, which helps guide attention during the search. MCTS is therefore neither merely a tree search nor merely random experimentation. Its defining feature is the connection between the two.

Tree searchorganized possibilitiesSearch guidanceattention is directedMCTScombined methodRandom samplingsampled possibilitiesprovides branchesinforms attentionconnects the ideas
How do the tree structure and random simulations work together during a single search?

Following Attention Through a Search

Imagine a search tree whose branches represent different possibilities. A tree structure makes those possibilities visible as organized alternatives. Random samples then provide information that can guide which parts of the tree deserve more attention. In this role, sampling is not the entire algorithm. It is a way to guide the search through the organized set of possibilities.

Worked example

A Branch Receives More Attention

Consider a simplified search with two possible branches, Branch A and Branch B. Random samples are used to guide attention, but the search still keeps the branches organized in a tree.

  1. 1
    Start with alternatives

    The search begins with a tree containing Branch A and Branch B. The tree provides the structure for organizing the possibilities.

  2. 2
    Use random samples

    Samples are taken to provide information about the possibilities. The samples are not the whole search; they help guide where attention should go.

  3. 3
    Direct attention

    If the sampling provides more useful guidance about Branch A, later attention can be directed toward that branch. This is the connection between random sampling and tree search.

  4. 4
    Keep the distinction clear

    The example does not claim that MCTS is only random experimentation. The tree remains part of the method, and sampling guides the search within that structure.

Result

Random sampling can influence which branches receive attention while the tree organizes the alternatives.

Search rootpossible choicesBranch Areceives attentionRandom samplesguidanceSearch attentiondirected toward Branch ABranch Bremains an alternativecontainscontainsis explored throughguides
How do random samples change which branches of the search tree receive more attention?

Planning Before Acting

Definition

Monte Carlo Tree Search is a planning technique used as part of a policy. At a high level, a known model of the world provides the setting for planning, MCTS supplies the planning technique, and the resulting planning is used as part of a policy.

This description is deliberately about roles rather than individual internal operations. It tells us how MCTS fits into a larger control path: a policy can use planning to help determine what to do. It does not, by itself, specify every operation performed inside an MCTS search. Keeping these levels separate prevents us from treating a high-level description of application as a complete implementation recipe.

Known world modelplanning settingMCTS planningtree search plus samplingPolicyuses planningSelected actionresulting choiceprovides settingsupportsselects
How does a policy use MCTS to plan an action before selecting what to do?

A Short History of the Method

The central ideas of Monte Carlo Tree Search were introduced by Rémi Coulom in 2006 and by Levente Kocsis and Csaba Szepesvári in 2006. David Silver contributed to the ideas and to the presentation of the material. These contributions place MCTS within a line of work developed by multiple people rather than attributing the entire idea to one person.

Rémi Coulomcentral ideas, 2006Kocsis and Szepesváricentral ideas, 2006David Silverideas and presentationparallel 2006 contributionlater contribution to ideas and presentation
What contributions did Coulom, Kocsis and Szepesvári, and David Silver make, and how are they connected over time?

Where MCTS Has Mattered

MCTS has been effective in general game playing and in a wide variety of competitive settings. Computer Go is the most prominent source example. The source describes computer Go as moving from a weak amateur level in 2005 to grandmaster level, 6 dan or more, in 2015, with MCTS being largely responsible for that improvement.

Application levelDocumented exampleWhat it shows
Specific gameComputer GoMCTS was largely responsible for improvement from weak amateur level in 2005 to grandmaster level, 6 dan or more, in 2015.
Broader categoryGeneral game playingThe technique can be effective beyond one named game.
Wider settingCompetitive settingsMCTS has proved effective across a wide variety of competitive environments.

The source distinguishes a specific impact example from broader application categories.

Common Misreadings

  • Common mistake

    Treating MCTS as only a tree search.

    What it looks like

    The explanation mentions the tree structure but leaves out random sampling.

    Why it fails

    The defining idea of MCTS is the connection between tree search and random sampling.

    Do this instead

    Describe both parts and explain that sampling guides the search within the tree.

  • Common mistake

    Treating MCTS as only random experimentation.

    What it looks like

    The explanation says that MCTS randomly tries possibilities without an organized search structure.

    Why it fails

    Random sampling is used to guide the search rather than serving as the entire algorithm.

    Do this instead

    Keep the tree-shaped organization of possibilities in the explanation.

  • Common mistake

    Attributing the entire idea to one person.

    What it looks like

    The history names only one inventor and omits the other contributors.

    Why it fails

    The central ideas are associated with Coulom, Kocsis and Szepesvári, while David Silver contributed to the ideas and presentation.

    Do this instead

    Present MCTS as work developed through contributions from multiple people.

  • Common mistake

    Assuming that an application description specifies every internal operation.

    What it looks like

    Because MCTS was important in computer Go, the explanation claims that every internal step of the search is known from that application statement.

    Why it fails

    The source distinguishes the high-level role of MCTS and its documented applications from details of individual search operations.

    Do this instead

    State only that MCTS is a planning technique used as part of a policy and that it has documented effectiveness in the named settings.

Check Your Understanding

MEDIUM

Explain MCTS in two connected sentences. In the first sentence, describe what the tree contributes. In the second sentence, describe what random sampling contributes and how it affects attention during the search.

Hints
  • Mention that possibilities are organized in a tree-shaped structure.
  • Explain that random sampling guides the search rather than replacing the search.
  • Use the phrase planning technique if you describe MCTS's role in a policy.
EASY

Classify each statement as a documented application claim or a claim about the internal mechanism: MCTS has been effective in computer Go; MCTS combines tree search with random sampling; MCTS has been effective in general game playing; MCTS is used as part of a policy.

Hints
  • Computer Go and general game playing describe applications.
  • The combination of tree search and random sampling describes the defining method.
  • Being used as part of a policy describes MCTS's high-level role.

Key Takeaways

  1. 1
    MCTS combines a tree-shaped search structure with random sampling.
  2. 2
    Random sampling guides attention during the search; it is not the entire algorithm.
  3. 3
    MCTS is a planning technique used as part of a policy, especially in settings where the world model is completely known and cheap to compute.
  4. 4
    The central ideas are associated with Rémi Coulom, Levente Kocsis, and Csaba Szepesvári in 2006, with contributions from David Silver to the ideas and presentation.
  5. 5
    Computer Go is the clearest documented impact example, while general game playing and other competitive settings show that the technique extends beyond one game.

At a glance

  • Monte Carlo Tree Search joins tree search with random sampling.
  • Sampling guides which branches receive attention, but it does not replace the tree-based search.
  • MCTS functions as a planning technique within a policy.
  • Its development involved multiple contributors, including Coulom, Kocsis and Szepesvári, and David Silver.
  • Its impact is especially visible in computer Go and in broader competitive settings.

Related concepts

More concepts starting with T