Planning in Markov Decision Processes with Gap-Dependent Sample Complexity

Anders Jonsson, Emilie Kaufmann, Pierre Ménard, Omar Darwiche Domingues, Edouard Leurent, Michal Valko

Monte-Carlo Tree Search (MCTS) algorithms, such as those powering AlphaZero, have achieved remarkable empirical success in reinforcement learning. However, the theoretical understanding of their sample complexity—the exact number of simulator calls required to guarantee a near-optimal decision—remains limited.

Existing theoretical algorithms typically suffer from one of two major drawbacks. They either rely on uniform exploration, which wastes computational resources evaluating obviously poor actions, or they suffer from numerical inefficiency, featuring polynomial guarantees but requiring so much overhead that they cannot be run on even small, real-world problems.

To bridge this gap between theoretical guarantees and practical performance, researchers have introduced MDP-GapE, a novel trajectory-based MCTS algorithm. MDP-GapE is designed to be both theoretically sound—specifically, $(\epsilon, \delta)$-correct, meaning it finds an $\epsilon$-optimal action with probability $1-\delta$—and efficient enough for practical implementation.

The MDP-GapE Approach: A Hybrid Strategy

The core innovation of MDP-GapE lies in its hybrid exploration strategy, which treats the root of the search tree differently from its deeper nodes:

  • Root Level (Best Arm Identification): At the starting state ($s_1$), the algorithm employs a modified version of UGapE. Instead of merely being "optimistic" about all actions, it specifically tracks the gap between the current best-looking action and its most dangerous "challenger."
  • Deeper Levels (Optimistic Planning): For steps beyond the initial action, the algorithm transitions to a greedy optimistic policy. This deeper exploration serves to refine the confidence intervals of the Q-values back at the root.
  • KL-Confidence Intervals: To handle stochastic environments more tightly than standard Hoeffding bounds allow, MDP-GapE maintains sophisticated upper and lower bounds on rewards and transition probabilities using Kullback-Leibler (KL) divergence.
  • Adaptive Stopping: Unlike algorithms that run for a predetermined number of steps, MDP-GapE stops dynamically. It halts as soon as the confidence interval of the best action is sufficiently separated from the alternatives.

The Power of Gaps: Theoretical Superiority

Most previous sample complexity bounds in planning were "worst-case," scaling primarily with the desired accuracy ($\epsilon$). MDP-GapE introduces a gap-dependent sample complexity.

Comparison of sample complexity bounds across different planning algorithms.

As shown in the algorithm comparison above, MDP-GapE's complexity depends on the sub-optimality gaps ($\Delta$) of the state-action pairs. If the second-best action is significantly worse than the optimal one, the algorithm recognizes this disparity quickly and stops early. Furthermore, MDP-GapE recognizes that planning is a pure identification task. Unlike purely optimistic algorithms (like UCT) that try to minimize "regret" during the simulation itself, MDP-GapE focuses solely on identifying the best action at the end, making it highly efficient.

Empirical Efficiency

To test the algorithm's practical viability, the authors evaluated MDP-GapE using randomly generated discounted MDPs with controlled complexity (e.g., 100,000 states, 5 actions per state, and a branching factor of 2). They compared it against baselines including Sparse Sampling, BRUE, KL-OLOP, and UCT.

Empirical performance of MDP-GapE showing the number of samples needed for various accuracy levels.

The results demonstrated that MDP-GapE is not just a theoretical construct. In simulations, it identified near-optimal actions using orders of magnitude fewer samples than Sparse Sampling. For instance, where Sparse Sampling might require $10^7$ samples, MDP-GapE frequently finished in $10^4$ to $10^5$ samples (as detailed in the performance table above).

Interestingly, the algorithm scales even better in practice than its proofs suggest. While the theoretical upper bound suggested a crude scaling of $(1/\epsilon)^{8.4}$ for their specific test case, empirical results showed the algorithm actually scaled closer to $(1/\epsilon)^{3.0}$. Additionally, when limited to a specific "budget" of samples, MDP-GapE outperformed UCT and other baselines in the high-budget regime.

Limitations and Future Directions

While MDP-GapE represents a significant step forward, it has a few limitations:

  1. Finite Support Assumption: The current theoretical proofs require that transitions have a finite support (a limited branching factor). It does not yet extend to MDPs with continuous state spaces or infinite branching.
  2. The "Crude" Exponent: There remains a gap between the theoretical exponent of $\epsilon$ and the highly efficient empirical one, suggesting room for tighter mathematical analysis.
  3. Lower Bounds: While the authors provide a strong upper bound, establishing a matching problem-dependent lower bound for MCTS planning remains an open challenge for the reinforcement learning community.

Summary updated

BibTeX
@inproceedings{jonsson2020planning,
  author = {Anders Jonsson and Emilie Kaufmann and Pierre Ménard and Omar Darwiche Domingues and Edouard Leurent and Michal Valko},
  title = {{Planning in Markov Decision Processes with Gap-Dependent Sample Complexity}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=Rc2rfb3nZU},
}
Figure