An Efficient Algorithm for Thresholding Monte Carlo Tree Search

Shoma Nameki, Atsuyoshi Nakamura, Junpei Komiyama, Koji Tabata

TL;DR

This paper introduces the Thresholding Monte Carlo Tree Search (TMCTS) problem, where the goal is to determine whether the root value of a minimax tree exceeds a given threshold $\theta$ with high confidence. The authors propose RD-Tracking-TMCTS, an asymptotically optimal algorithm that introduces a novel ratio-based sampling rule to prevent arm oversampling and reduces per-round computational complexity from linear to logarithmic in the number of leaves.

What Problem Does This Paper Address?

Monte Carlo Tree Search (MCTS) has driven historic breakthroughs in artificial intelligence, from mastering board games like Go to guiding large language model decoding. Most practical MCTS implementations rely on bandit-based methods (like UCT) that balance exploration and exploitation. However, when our goal is simply to identify the single best next move or decide a binary outcome (e.g., win vs. lose), balancing exploration and exploitation is fundamentally suboptimal. Instead, this should be treated as a pure exploration problem.

The authors tackle a specific formulation: the Thresholding MCTS problem. Given a fixed tree with alternating MAX and MIN internal nodes, and leaf nodes representing unknown reward distributions, the player must answer whether the root node's value is at least $\theta$.

Prior pure-exploration tree algorithms suffer from two major flaws:

  1. Empirical Inefficiency: Standard "Track-and-Stop" strategies are highly sensitive to early estimation errors, causing the algorithm to massively oversample certain arms even after the true values have converged.
  2. Computational Bottlenecks: They require recomputing optimal sampling proportions across the entire tree at every single step, incurring a computational cost that scales linearly with the number of leaf nodes—an impossible feat for massive trees.

Methods

The authors develop a $\delta$-correct sequential sampling algorithm called RD-Tracking-TMCTS (Ratio-based D-Tracking for Thresholding MCTS). It builds upon the classic Track-and-Stop framework but introduces two key innovations:

  • Ratio-Based Sampling Rule: Standard D-Tracking selects the next leaf to sample by maximizing the absolute difference between the target number of samples and the actual samples ($t \cdot w_l - N_l$). RD-Tracking modifies this to maximize the ratio of the estimated optimal weight to the number of samples ($w_l / N_l$). This simple mathematical shift prevents the algorithm from over-allocating samples to a single arm due to early-round mis-specifications.
  • Logarithmic Per-Round Complexity: Instead of recomputing the optimal weights for all leaves at every step ($O(|L(\mathcal{T})|)$), the authors exploit the recursive nature of the minimax tree. Because a sample from a leaf node only alters the statistics of its direct ancestors, the algorithm updates the optimal tracking parameters via backpropagation along a single root-to-leaf path. This slashes the per-round time complexity to $O(D \log K)$, where $D$ is the tree depth and $K$ is the maximum number of children per node.

The paper also demonstrates how this framework can be easily adapted to solve the Good Action Identification (GAI) problem, where the goal is to find any specific child of the root node that satisfies the threshold.

Datasets

The algorithm was evaluated on randomly generated, complete 3-ary trees of varying depths ($D = 2, 3, 4, 5$), corresponding to leaf counts of $|L(\mathcal{T})| = 9, 27, 81, 243$. The internal nodes alternated between MAX nodes at even depths and MIN nodes at odd depths. To ensure a challenging and fair evaluation against standard Best Arm Identification methods, the value of the second-best depth-1 node was explicitly set to the threshold $\theta$.

Key Insights and Ideas

  • The Danger of Absolute Tracking: The authors illustrate a core flaw in standard D-tracking: if the algorithm initially misestimates the tree values, it can get trapped oversampling the wrong arm long after the empirical means have converged.
Figure 1: A six-armed example to demonstrate the inefficiency of the original D-tracking.

As shown in Figure 1, even if the optimal weights $w^*(\mu)$ are correctly identified later, absolute tracking continues to hammer arm 1 to catch up to a massive historical target, resulting in thousands of wasted samples. The ratio-based rule naturally mitigates this.

  • Tree Structure as a Computational Asset: Flat multi-armed bandit algorithms treat arms independently. By formalizing the thresholding problem recursively over a minimax tree structure, the authors show that subproblems can be solved locally.
Figure 2: Recursive calculation of Is(t)

As visualized in Figure 2, when a leaf is sampled, the subproblem solutions for its siblings remain entirely unchanged, allowing efficient backpropagation up the tree.

Key Results

  • Mathematical Optimality: The authors mathematically prove that RD-Tracking-TMCTS achieves asymptotically optimal sample complexity, matching the theoretical lower bound as the confidence parameter $\delta \to 0$.
  • Faster Convergence: In empirical trials across all tree depths, RD-Tracking-TMCTS converged to the theoretical lower bound significantly faster than standard Track-and-Stop baselines (C-Tracking and D-Tracking) and confidence-interval methods (UGapE-MCTS and LUCB-micro).
  • Speed: For balanced trees, the per-round computational overhead was successfully reduced from linear to logarithmic, making pure-exploration tracking viable for deeper tree structures.

Limitations and Future Work

The primary limitation of this work is the fixed tree assumption. The theoretical guarantees and computational speedups rely on the tree structure $\mathcal{T}$ being predefined and static. In practical MCTS applications, trees are expanded dynamically as new states are discovered. The authors note that analyzing algorithms that dynamically expand the tree remains a significant theoretical challenge due to the difficulty of relating internal node statistics to dynamically changing descendants. Integrating this ratio-based tracking framework with adaptive tree expansion is a promising direction for future research.

Summary updated

BibTeX
@inproceedings{nameki2026efficient,
  author = {Shoma Nameki and Atsuyoshi Nakamura and Junpei Komiyama and Koji Tabata},
  title = {{An Efficient Algorithm for Thresholding Monte Carlo Tree Search}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=LlqiVTIyml},
}
Figure