NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Efficient Bayes-Adaptive Reinforcement Learning using Sample-Based Search

Arthur Guez, David Silver, Peter Dayan

Overview

Bayesian reinforcement learning offers a mathematically optimal way to balance exploration and exploitation, but it is notoriously slow and computationally intractable for large problems. This paper introduces BAMCP (Bayes-Adaptive Monte-Carlo Planning), an algorithm that makes Bayesian RL practical by combining Monte-Carlo Tree Search with "lazy" root sampling, achieving state-of-the-art results and scaling to infinite state spaces.

The Challenge of Bayesian Reinforcement Learning

In Reinforcement Learning (RL), agents constantly face the exploration-exploitation dilemma: should they exploit the actions they already know yield good rewards, or explore unknown states that might yield even better ones?

Bayesian model-based RL solves this elegantly. The agent maintains a posterior "belief" distribution over the environment's unknown dynamics. By augmenting the environment's state with this belief state, we create a "Bayes-Adaptive MDP" (BAMDP). Solving this BAMDP yields the mathematically optimal balance of exploration and exploitation.

The catch? Exact planning in a BAMDP is computationally intractable. The search space explodes because the agent must update its posterior belief (using Bayes' rule) at every single hypothetical step into the future. Prior algorithms tried to approximate this but remained too expensive for anything beyond simple, small-scale problems.

The BAMCP Algorithm

The authors propose BAMCP, which applies Monte-Carlo Tree Search (specifically the UCT algorithm) to the BAMDP, but with three crucial innovations to bypass the computational bottlenecks:

  1. Root Sampling: Instead of performing expensive Bayesian updates at every node inside the search tree, BAMCP samples a single MDP model from the agent's current belief only at the root of the tree. This single model is used for the entirety of one simulation. The search tree acts as a filter, naturally ensuring the correct distribution of states without explicit Bayes updates.
  2. Lazy Sampling: Generating a complete MDP model upfront is expensive, and impossible if the state space is infinite. BAMCP samples transition probabilities "lazily"—only generating the specific parameters needed as the simulation actually visits new state-action pairs.
  3. Rollout Policy Learning: Standard MCTS uses random actions for its rollouts (the simulation phase beyond the search tree). BAMCP uses a model-free RL algorithm (like Q-learning) in the background to learn a smart, epsilon-greedy rollout policy, providing much better value estimates.

Experimental Setup

The authors evaluated BAMCP on a mix of standard benchmarks and a newly introduced complex domain:

  • Standard Domains: Double-loop (9 states), Grid5 (5x5 grid), Grid10 (10x10 grid), and Dearden's Maze (264 states).
  • Infinite 2D Grid (New): A massive, infinite grid where reward locations are correlated (rows and columns share latent Beta-distributed parameters). This was introduced to test the algorithm's ability to handle infinite state spaces and complex, structured priors—a task impossible for prior Bayesian RL methods.

Key Insights

  • Implicit Belief Updates: You don't actually need to compute Bayes' rule inside the search tree to do Bayesian planning. By sampling a model at the root and sticking with it for a full simulation, the MCTS node statistics naturally converge to the correct posterior distribution.
  • Lazy Evaluation Unlocks Scale: By only sampling the parts of the transition model that are actually visited during a simulation, Bayesian RL can finally be applied to environments with infinite states and complex, correlated priors.
  • Robustness to Planning Time: Unlike competing algorithms (like SBOSS or BEB) that can over-explore or plateau, BAMCP consistently improves its performance as it is given more planning time (more simulations), making it highly reliable.

Results and Performance

BAMCP demonstrated significant improvements over existing methods across multiple dimensions:

  • State-of-the-Art Performance: BAMCP significantly outperformed existing Bayesian RL methods (BFS3, SBOSS, BEB) and non-Bayesian methods across all tested standard domains without requiring domain-specific parameter tuning.
  • Massive Scores: In Dearden's Maze, BAMCP achieved a score of 965.2 ± 73, crushing the next best baseline (Bayes VPI+MIX at 817.6 ± 29).
  • Computational Efficiency: The lazy sampling scheme provided a massive efficiency boost, yielding a 35x speed improvement in the maze domain compared to naive sampling.
  • Infinite Scaling: BAMCP successfully navigated the Infinite 2D grid task, proving it can exploit structured prior knowledge in domains that are qualitatively out of reach for previous Bayesian exploration algorithms.
  • Theoretical Guarantee: The authors mathematically proved that BAMCP converges to the true Bayes-optimal value function given infinite samples.
Performance comparison of BAMCP against baselines and ablation studies across varying planning times.

Limitations and Future Directions

The authors acknowledge a few limitations tied to the underlying UCT (Upper Confidence bounds applied to Trees) algorithm. UCT lacks finite-time regret bounds, meaning it is theoretically possible to construct "malicious" environments where the algorithm is misled for long periods. Additionally, UCT treats tree nodes like multi-armed bandits, trying to accrue reward during planning; theoretically, planning should be treated as a "pure exploration" problem.

For future work, the authors suggest exploring even richer, more structured priors about MDP dynamics. If an agent can be given prior knowledge that closely matches the class of environments it will actually encounter, exploration could be vastly accelerated.

Summary updated

BibTeX
@inproceedings{guez2012efficient,
  author = {Arthur Guez and David Silver and Peter Dayan},
  title = {{Efficient Bayes-Adaptive Reinforcement Learning using Sample-Based Search}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2012},
}
Figure