Learning to Plan with Tree Search via Deep RL

Dylan Cope, Justin Svegliato, Stuart RussellPRL 2023 · OpenReview

TL;DR

This paper introduces Reinforcement Learning for Tree Search (RLTS), a novel approach that uses deep reinforcement learning to learn how to intelligently expand nodes in a search tree. By framing tree search as a meta-level decision problem and rewarding expansions based on their estimated value of computation, RLTS significantly outperforms traditional methods, especially when the initial evaluation function is imperfect.

What Problem Does This Paper Address?

Many decision-making algorithms, particularly in areas like robotics and game AI, rely on tree search to explore possible future states and actions. A crucial component of these algorithms is an "evaluation function" that estimates how good a particular state or node in the search tree is. However, simply having a good evaluation function isn't enough; how you build the search tree by expanding nodes also matters. Traditional methods often use fixed heuristics or simple strategies for node expansion. This paper addresses the challenge of learning an optimal strategy for building the search tree itself, going beyond just evaluating nodes. They aim to create a "meta-reasoning" system that intelligently decides which nodes to expand to maximize the overall utility of the planning process, considering both the quality of the final plan and the computational cost.

Methods

The core of this paper is the Reinforcement Learning for Tree Search (RLTS) approach. It frames the problem of deciding which nodes to expand in a search tree as a meta-level decision problem, which is itself modeled as a Markov Decision Process (MDP).

Here's a breakdown of the key components:

  • Meta-Level MDP: The "states" in this meta-level MDP are defined by the current search tree and the time elapsed. The "actions" are either to expand a specific node in the tree (a "computational action") or to terminate the search.
  • Value of Computation (VoC) Reward: The reward function is designed to incentivize intelligent node expansion. It's based on the "value of computation," which quantifies the expected improvement in the object-level policy's performance gained by performing a particular node expansion. This is calculated by comparing the estimated value of the object-level policy before and after the expansion.
  • Deep Reinforcement Learning: A deep neural network, specifically a shallow Transformer, is used as the "meta-policy." This network takes a representation of the current search tree as input and outputs probabilities for each possible node expansion action. Proximal Policy Optimization (PPO) is used to train this meta-policy.
  • Tree Representation: The search tree is converted into a "tensor representation" that the neural network can process. This representation includes structural features (like node IDs and parent information) and environmental features (like rewards and estimated discounted returns).
  • Unconditioned Q-value Estimate: To calculate the VoC reward, the system needs an initial estimate of the optimal Q-values (expected future rewards) for the object-level problem. This is learned separately using RainbowDQN, a powerful deep RL algorithm.

Datasets

The experiments were conducted on the BigFish environment from the Procgen Benchmark. Procgen environments are designed to be procedurally generated, meaning they are diverse and prevent agents from simply memorizing solutions. BigFish was chosen because it's a reliable environment for training RainbowDQN.

Key Insights and Ideas

  • Learning to Build the Tree is Crucial: The paper demonstrates that intelligently selecting which nodes to expand in a search tree can lead to significant performance gains, even with a basic evaluation function.
  • Value of Computation as a Reward Signal: Using the estimated improvement in policy value (VoC) as a reward for node expansions provides a principled way to train a meta-policy that balances exploration and exploitation in tree construction.
  • RL Can Compensate for Imperfect Q-values: RLTS shows a remarkable ability to overcome limitations of an imperfect or under-trained initial Q-value function, outperforming baselines that rely solely on that Q-function.
  • Diminishing Returns with Over-trained Q-values: Interestingly, the performance of RLTS seems to plateau or even slightly decrease when the initial Q-value estimates are very highly trained. The authors hypothesize this is because highly confident Q-values are less "persuadable" to change, and the meta-level reward is only given if the policy actually changes.

Key Results

  • RLTS significantly outperforms a greedy object-level baseline (which doesn't perform tree search) and two meta-level baselines (random expansion and A*-based expansion).
  • Across evaluations, RLTS achieved a mean object-level return of 114.2, compared to 95.7 for the random baseline and 105.8 for the A* baseline.
  • When the initial Q-value estimate was less trained (e.g., at the 0.25 and 0.5 performance quantiles), RLTS was able to compensate and achieve better results than the baselines.
  • When the Q-value estimate was more refined (0.75 and 0.9 quantiles), RLTS performed comparably to the A* meta-level baseline.

Limitations and Future Work

  • Environment Simplicity: The current work is demonstrated on a relatively simple, deterministic environment (BigFish) with a short computational horizon.
  • Balancing Trade-offs: The authors acknowledge that future work should explore how to better balance the trade-off between the value of computation and the cost of computation, especially in more complex scenarios.
  • Generalization: Extending RLTS to more complex, non-deterministic, or continuous state/action spaces would be a valuable next step.
  • Scalability: Investigating how RLTS scales with larger search trees and more complex problems is also an important direction.

Summary updated

Abstract

Tree search is an important component of many decision-making algorithms but often relies on an evaluation function that estimates the desirability of each node. In this paper, we propose to learn which nodes to expand based on a variety of object-level features. We introduce a reward function for this problem based on value of computation estimates with respect to improving the policy for the underlying problem. We apply deep reinforcement learning to this problem in an approach we call Reinforcement Learning for Tree Search (RLTS) and demonstrate that it can yield better performance than baselines in a procedurally generated environment.
BibTeX
@inproceedings{cope2023learning,
  author = {Dylan Cope and Justin Svegliato and Stuart Russell},
  title = {{Learning to Plan with Tree Search via Deep RL}},
  booktitle = {PRL},
  year = {2023},
  url = {https://openreview.net/forum?id=IP5kPfDu3w},
}
Figure