Stabilized Nested Rollout Policy Adaptation

Tristan Cazenave, Jean-Baptiste Sevestre, Matthieu ToulemontarXiv 2021

Abstract

Nested Rollout Policy Adaptation (NRPA) is a state-of-the-art algorithm for solving complex combinatorial optimization problems and single-player games. However, its performance is often hindered by the high variance of single-rollout evaluations at the base level of the search tree. We introduce Stabilized NRPA (SNRPA), which addresses this instability by performing multiple rollouts to obtain a more reliable estimate of policy quality before adaptation. Our results demonstrate that SNRPA achieves faster convergence and superior scores across diverse benchmarks, including expression discovery, the Traveling Salesman Problem with Time Windows (TSPTW), and SameGame.

Introduction

Monte Carlo Tree Search (MCTS) and its variants have revolutionized the field of automated search and optimization. Among these, Nested Rollout Policy Adaptation (NRPA) has emerged as a particularly effective method for single-player domains. NRPA works by recursively nesting search levels, where each level learns a "playout policy"—a set of weights that bias moves toward successful outcomes. While powerful, the standard NRPA algorithm is susceptible to "noise": a single "unlucky" rollout can lead the algorithm to prematurely discard a promising policy, resulting in slow convergence or entrapment in local optima.

The NRPA Noise Problem

In standard NRPA, the algorithm adapts its policy based on the best sequence found at each level. At the lowest level (level 0), it performs a single rollout. If this rollout happens to be an outlier due to the stochastic nature of the policy, the adaptation step at level 1 will be based on misleading information.

Standard NRPA Architecture

As shown in Figure 1, the sequential nature of adaptation in standard NRPA means that every rollout immediately influences the policy. In high-variance environments, this leads to an unstable search trajectory where the algorithm may oscillate between sub-optimal policies.

Stabilized NRPA (SNRPA)

To mitigate this instability, we propose Stabilized NRPA (SNRPA). The core innovation is the introduction of a stabilization parameter $P$. Instead of performing a single rollout at level 0, SNRPA performs $P$ independent rollouts. Only the best sequence from these $P$ samples is used for policy adaptation at the higher level.

Stabilized NRPA (SNRPA) Architecture

This modification, illustrated in Figure 2, provides a much more robust estimate of the current policy's potential. Furthermore, because these $P$ rollouts are independent, SNRPA is naturally suited for leaf parallelization, allowing for significant speedups on multi-core hardware.

Experimental Evaluation

We evaluated SNRPA against standard NRPA and other baselines across three distinct optimization domains:

  1. The Maximum Problem (Expression Discovery): The goal is to find a mathematical expression (composed of atoms like +, *, and constants) that maximizes a value within a fixed size limit. This domain is highly sensitive to policy quality.
  2. TSPTW (Traveling Salesman Problem with Time Windows): A classic NP-hard problem requiring an agent to visit cities within specific time windows while minimizing travel costs. We used the challenging rc204.1 benchmark.
  3. SameGame: A tile-matching puzzle where the objective is to maximize points by clearing the board. We tested on a standard 20-problem suite.

Key Results and Insights

SNRPA consistently outperformed standard NRPA across all benchmarks when controlled for computation time:

  • Efficiency vs. Stability: While SNRPA performs $P$ times more work at the base level, the higher quality of its policy updates leads to faster overall convergence. For instance, in the Maximum Problem, SNRPA(10) achieved a score of ~3.9 billion compared to standard NRPA's ~3.3 billion in the same timeframe.
  • Domain-Specific Tuning: The optimal value for $P$ depends on the problem's variance. The Maximum Problem benefited from a high $P=10$, whereas SameGame performed best with a moderate $P=4$.
  • Superior Benchmarking: On the difficult rc204.1 TSPTW instance, SNRPA(10) reached a cost of -385,937, significantly better than the -980,946 achieved by standard NRPA.

Conclusion

Stabilized NRPA offers a simple yet powerful refinement to nested Monte Carlo search. By reducing the noise in policy evaluation, it enables more reliable adaptation and reaches higher-quality solutions in less time. Future work will explore dynamic tuning of the stabilization parameter $P$ and the integration of SNRPA with other search enhancements like beam search.

Summary updated

BibTeX
@misc{cazenave2021stabilized,
  author = {Tristan Cazenave and Jean-Baptiste Sevestre and Matthieu Toulemont},
  title = {{Stabilized Nested Rollout Policy Adaptation}},
  year = {2021},
  eprint = {2101.03563},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2101.03563},
}
Figure