Memory-Augmented Monte Carlo Tree Search

Chenjun Xiao, Jincheng Mei, Martin MüllerAAAI 2018

Abstract

This paper proposes and evaluates Memory-Augmented Monte Carlo Tree Search (M-MCTS), which provides a new approach to exploit generalization in online real-time search. The key idea of M-MCTS is to incorporate MCTS with a memory structure, where each entry contains information of a particular state. This memory is used to generate an approximate value estimation by combining the estimations of similar states. We show that the memory-based value approximation is better than the vanilla Monte Carlo estimation with high probability under mild conditions. We evaluate M-MCTS in the game of Go. Experimental results show that M-MCTS outperforms the original MCTS with the same number of simulations.

Introduction

Monte Carlo Tree Search (MCTS) is a cornerstone of modern AI systems, most notably powering world-class engines like AlphaGo. By executing thousands of simulations from a given position, MCTS estimates the "value" or win probability of specific moves. However, MCTS faces a significant challenge: high variance. In games with massive state spaces, the same state is rarely visited twice, leading to noisy and inaccurate averages when simulation time is limited. This noise can mislead the search tree, causing the agent to explore suboptimal paths.

While deep learning provides offline "intuition" through pre-trained models, the authors of this paper propose exploiting online generalization. Memory-Augmented Monte Carlo Tree Search (M-MCTS) allows the algorithm to "remember" and generalize across similar states encountered during the search, stabilizing value estimates in real-time.

Methodology

M-MCTS introduces a memory structure $\mathcal{M}$ that stores feature representations and simulation statistics of visited states.

The architecture of M-MCTS, illustrating how state features $\phi(s)$ are mapped to a memory structure to produce an augmented value estimate $\hat{V}_{\mathcal{M}}(s)$.

The framework operates through four primary components:

  1. Memory-Based Approximation: When evaluating a state $s$, the algorithm queries $\mathcal{M}$ for the $M$ most similar states.
  2. Entropy-Regularized Weighting: Instead of a simple average, a "soft-max" weighting scheme derived from entropy-regularized policy optimization is applied. This prioritizes states with high similarity and high-quality data, which the authors theoretically prove provides a tighter error bound than standard Monte Carlo estimation.
  3. Efficient Retrieval: To maintain real-time performance, Feature Hashing compresses high-dimensional neural network features, and SimHash (an approximate nearest neighbor algorithm) enables near-instantaneous retrieval from memory.
  4. Integration: The final value used to guide the search is a weighted blend of the state’s own simulation results and the memory-augmented estimate.

Experimental Evaluation

The algorithm was tested on the game of Go against Fuego, a high-performance open-source engine. Feature vectors were generated using a pre-trained 8-layer Deep Convolutional Neural Network (DCNN) trained on professional game records.

Key Results

M-MCTS demonstrated superior performance and efficiency compared to standard MCTS baselines:

  • Higher Win Rates: M-MCTS achieved a 71% win rate against a DCNN-augmented MCTS baseline when both were given 10,000 simulations per move. Even when computational time was equalized to account for memory overhead, M-MCTS maintained a 61% win rate.
  • Scalability and Sensitivity: Performance improved as the memory size increased (up to 10,000 entries). However, the algorithm is sensitive to the "temperature" parameter $\tau$ and the number of neighbors $M$; including too many neighbors ($M=100$) can introduce noise if the states are not sufficiently similar.
Experimental results showing win rates across different simulation counts, varying the number of neighbors (M), temperature (tau), and memory size.

Discussion and Future Work

M-MCTS effectively "smooths" the search space by leveraging information from neighboring states, preventing the algorithm from prematurely abandoning good paths due to random simulation flukes.

A current limitation is the dependency on static features; the system's success relies heavily on the quality of the pre-trained DCNN features. Future research directions include end-to-end learning, where feature representations are trained specifically for memory-based search, and exploring hybrid models that combine this online memory approach with offline-learned value functions like those used in AlphaZero.

Summary updated

BibTeX
@inproceedings{xiao2018memory,
  author = {Chenjun Xiao and Jincheng Mei and Martin Müller},
  title = {{Memory-Augmented Monte Carlo Tree Search}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  url = {https://openreview.net/forum?id=HkVsUCeubH},
}

Loading related content...

Figure