Monte Carlo Tree Search Guided by Symbolic Advice for MDPs

Damien Busatto-Gaston, Debraj Chakraborty, Jean-François Raskin

Abstract

This paper introduces a hybrid approach to solving complex Markov Decision Processes (MDPs) by augmenting Monte Carlo Tree Search (MCTS) with "symbolic advice" derived from formal logic. By using SAT and QBF solvers to bias both the search and simulation phases, the authors demonstrate an algorithm that maintains theoretical convergence guarantees while significantly outperforming both standard MCTS and human players in the game of Pac-Man.

Introduction

Markov Decision Processes (MDPs) are the gold standard for modeling decision-making in uncertain environments. However, researchers usually face a frustrating trade-off between formal verification and heuristic search. Formal verification provides rock-solid guarantees and optimal solutions but fails to scale beyond small, "toy" models. Conversely, Artificial Intelligence techniques like MCTS and Reinforcement Learning scale to massive state spaces (like Go or Chess) but often lack strong theoretical guarantees and can be incredibly inefficient without manual "reward engineering."

The authors aim to bridge this gap by using the rigor of formal logic to "guide" the heuristic search of MCTS. This ensures the agent doesn't waste time exploring obviously bad paths—such as walking into a ghost—while keeping the scalability that makes MCTS powerful.

Methodology

The core innovation is the integration of Symbolic Advice—logical formulas (like Linear Temporal Logic) that describe desired behaviors—into the MCTS pipeline. This integration occurs in two distinct phases:

  • Selection Phase (The Shield): When MCTS decides which action to take next in its internal tree, it uses a QBF (Quantified Boolean Formula) solver. This acts as a "strongly enforceable" filter, pruning actions that could lead to a "bad" state regardless of the environment's response (e.g., ghost movement). This serves as an online version of "shielding."
  • Simulation Phase (The Guide): During the "rollout" or simulation phase, instead of picking actions at random, the algorithm uses SAT-based uniform sampling. It generates sample paths that satisfy specific "sampling advice" (e.g., "avoid ghosts for the next 10 steps"). This ensures the values backed up to the tree are derived from relevant, high-quality scenarios.

Crucially, the authors provide a mathematical proof (Theorem 21) showing that as long as the advice satisfies certain "optimality assumptions," the MCTS algorithm still converges to the optimal strategy. Unlike pure formal methods, this framework allows for selection advice to be ignored if no safe action exists, reverting to standard MCTS.

Experimental Evaluation

The researchers evaluated their approach using the classic game Pac-Man, treated as a large-scale MDP. They tested on two specific configurations to measure scalability and performance:

  1. Small Grid (9 x 21): Roughly $10^{16}$ states.
  2. Classic Grid (27 x 28): Roughly $10^{23}$ states.
The Small Grid (9x21) configuration used for evaluating the hybrid MCTS approach.
The Classic Grid (27x28) configuration, featuring a state space of approximately $10^{23}$.

They compared their "MCTS + Advice" agent against a baseline MCTS, human players, and different ghost behaviors (random vs. directional/aggressive ghosts). To manage the state space, they used QBF solvers to compute safety for a limited "receding horizon" (e.g., the next 3-10 steps) at every move rather than pre-computing a global shield.

Key Results

The results in Pac-Man were dramatic, particularly on the larger grids where standard MCTS typically struggles. The guided MCTS was nearly perfect on the large grid, while the unguided version almost never won.

Algorithm Grid Win Rate Avg. Score
Plain MCTS 9 x 21 17% -215.32
MCTS + Both Advice 9 x 21 85% 468.74
Human Players 9 x 21 44% 57.76
Plain MCTS 27 x 28 1% -182.77
MCTS + Both Advice 27 x 28 95% 517.04

The "Symbolic Advice" version also significantly reduced the number of "draws" (games that timed out), demonstrating higher efficiency in finding paths to victory. By using tools like UniGen for uniform sampling, the authors ensured the simulation phase didn't become biased toward "easy" logical solutions that misrepresent the true average reward.

Limitations and Future Work

Despite the performance gains, the guided version is approximately 3x slower than the baseline due to the computational overhead of calling SAT/QBF solvers. While the authors achieved 5 seconds per move on a laptop, real-time performance would require further optimization or parallelization.

Future work includes developing an "LTL-to-Advice" compiler to automate the manual design of logical formulas and integrating neural networks to replace static terminal rewards with learned value functions, similar to the AlphaGo architecture.

Summary updated

BibTeX
@inproceedings{busattogaston2020monte,
  author = {Damien Busatto-Gaston and Debraj Chakraborty and Jean-François Raskin},
  title = {{Monte Carlo Tree Search Guided by Symbolic Advice for MDPs}},
  booktitle = {CONCUR},
  year = {2020},
  url = {https://openreview.net/forum?id=Rmbwsie8a3},
}
Figure