Bayesian Mixture Modelling and Inference based Thompson Sampling in Monte-Carlo Tree Search

Aijun Bai, Feng Wu, Xiaoping Chen

TL;DR

This paper introduces DNG-MCTS, a novel Monte-Carlo Tree Search (MCTS) algorithm that replaces the standard deterministic UCT heuristic with a Bayesian approach. By modeling reward distributions as mixtures of Normals and using Thompson Sampling for action selection, the authors achieve faster convergence and better performance on complex planning problems compared to state-of-the-art methods.

What Problem Does This Paper Address?

In online planning for Markov Decision Processes (MDPs), agents must navigate the "exploration-exploitation" dilemma: should they stick with the best-known path or try something new that might be even better?

The standard solution in MCTS is the UCT (Upper Confidence Bound for Trees) algorithm. While successful, UCT relies on a deterministic exploration constant that can be difficult to tune and may not always capture the true uncertainty of the environment. Furthermore, UCT often assumes rewards follow simple distributions. This paper addresses these limitations by bringing Thompson Sampling—a "randomized probability matching" technique—into the MCTS framework, specifically designed to handle the complex, multi-modal reward distributions found in real-world planning.

Methods: Dirichlet-NormalGamma MCTS

The authors propose the Dirichlet-NormalGamma MCTS (DNG-MCTS) algorithm. Its core innovation lies in how it models and infers the value of actions using a Bayesian framework.

DNG-MCTS Algorithm Pseudocode
  1. Bayesian Mixture Modeling: Instead of a single point estimate, the algorithm models the accumulated reward of an action as a mixture of Normal distributions. This is a more realistic assumption for MDPs because an action leads to various next states, each with its own reward profile.
  2. Conjugate Priors: To keep the math efficient for online planning, the authors use conjugate priors:
  3. NormalGamma distributions model the unknown mean and precision (inverse variance) of the rewards.
  4. Dirichlet distributions model the "mixture weights" (the transition probabilities to different states).
  5. Thompson Sampling: At each decision node, the algorithm doesn't just pick the highest "bound." Instead, it draws a random sample from the current posterior distribution of each action and selects the one with the highest sample value. This naturally encourages exploration in areas of high uncertainty.
  6. Efficient Updates: Because they use conjugate priors, updating the model after a simulation is a simple matter of updating hyper-parameters (counts and sums) rather than performing heavy numerical integration.

Datasets

The algorithm was evaluated on three classic benchmark domains for MDP planning, modeled as "cost-based" MDPs where the goal is to minimize the total expected cost:

  • Canadian Traveler Problem (CTP): A path-finding problem on a graph where edges have a probability of being blocked.
  • Racetrack: A simulation of a car racing to a goal where the car has a chance of failing to accelerate (slipping).
  • Sailing: Navigating a sailboat to a destination on a grid where wind direction changes stochastically.

Key Insights and Ideas

  • The CLT Justification: The authors use the Central Limit Theorem for Markov chains to justify why approximating accumulated rewards as Normal distributions is reasonable, especially as the planning horizon increases.
  • Mixtures are Essential: A single Normal distribution is often too simple for MDPs. By using a mixture model (via the Dirichlet distribution), DNG-MCTS can represent the "branching" nature of state transitions more accurately.
  • Sample Complexity vs. Time Complexity: While DNG-MCTS requires more computation per iteration (due to sampling from distributions), it requires significantly fewer total simulations to find a good policy. This makes it ideal for domains where the "simulator" (the environment) is the primary bottleneck.

Key Results

DNG-MCTS demonstrates strong empirical performance across the tested domains, particularly in terms of sample efficiency.

Performance Comparison on Racetrack and Sailing Domains
  • Faster Convergence: In the Racetrack and Sailing domains, DNG-MCTS reached lower costs much faster than UCT. As shown in the performance graphs, DNG-MCTS exhibits a much steeper drop in average cost within the first 100–1,000 iterations.
  • Superior Performance in CTP: In the Canadian Traveler Problem, DNG-MCTS outperformed the domain-independent version of UCT across 10 different problem instances. It even remained competitive with domain-specific UCT variants that were hard-coded with problem-specific knowledge.
  • Robustness: The Bayesian framework allowed the algorithm to maintain "technical soundness" and convergence guarantees, proving that Thompson Sampling is a viable and often superior alternative to UCB-based methods in tree searches.

Limitations and Future Work

  • Computational Overhead: The authors acknowledge that DNG-MCTS is roughly 2 to 4 times slower per iteration than UCT because of the overhead of sampling from Dirichlet and NormalGamma distributions.
  • Distributional Assumptions: While the Normal mixture is flexible, it might not perfectly capture extremely skewed or heavy-tailed reward distributions found in some niche domains.
  • Future Directions: The authors suggest extending the framework to even more complex distributions and testing the algorithm on large-scale, real-world applications where simulation costs are high, making the sample efficiency of DNG-MCTS even more valuable.

Summary updated

BibTeX
@inproceedings{bai2013bayesian,
  author = {Aijun Bai and Feng Wu and Xiaoping Chen},
  title = {{Bayesian Mixture Modelling and Inference based Thompson Sampling in Monte-Carlo Tree Search}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2013},
}
Figure