Deep Policies for Width-Based Planning in Pixel Domains

Miquel Junyent, Anders Jonsson, Vicenç Gómez

Abstract

Width-based planning has demonstrated great success in recent years due to its ability to scale independently of the size of the state space. For example, Bandres et al. (2018) introduced a rollout version of the Iterated Width algorithm whose performance compares well with humans and learning methods in the pixel setting of the Atari games suite. In this setting, planning is done on-line using the "screen" states and selecting actions by looking ahead into the future. However, this algorithm is purely exploratory and does not leverage past reward information. Furthermore, it requires the state to be factored into features that need to be pre-defined for the particular task, e.g., the B-PROST pixel features. In this work, we extend width-based planning by incorporating an explicit policy in the action selection mechanism. Our method, called $\pi$-IW, interleaves width-based planning and policy learning using the state-actions visited by the planner. The policy estimate takes the form of a neural network and is in turn used to guide the planning step, thus reinforcing promising paths. Surprisingly, we observe that the representation learned by the neural network can be used as a feature space for the width-based planner without degrading its performance, thus removing the requirement of pre-defined features for the planner. We compare $\pi$-IW with previous width-based methods and with AlphaZero, a method that also interleaves planning and learning, in simple environments, and show that $\pi$-IW has superior performance. We also show that $\pi$-IW algorithm outperforms previous width-based methods in the pixel setting of Atari games suite.

Introduction

Automated planning in complex, high-dimensional environments like the Atari 2600 suite remains a significant challenge. While width-based search algorithms like Iterated Width (IW) have shown promise by scaling independently of state space size through "novelty" pruning, they often suffer from blind exploration and a heavy reliance on hand-crafted features. This paper introduces $\pi$-IW, a hybrid approach that integrates deep policy learning with width-based planning to overcome these limitations.

The $\pi$-IW Algorithm

The core of $\pi$-IW is an iterative loop between planning and learning. Unlike standard Rollout-IW, which selects actions randomly, $\pi$-IW utilizes a policy $\pi_\theta$ (parameterized by a neural network) to bias the search toward high-reward trajectories.

  1. Planning Step: The agent performs a width-based search where actions are sampled from the current policy distribution. This biases the search toward "promising" trajectories based on past experience.
  2. Learning Step: The best trajectories found during the planning step are used as training data for the neural network via imitation learning.
  3. Dynamic Pruning: The search is pruned based on state novelty, defined by features learned during the policy update.

Dynamic Feature Representation

A key innovation of $\pi$-IW is the elimination of pre-defined features. The algorithm uses the internal activations of the policy network's last hidden layer as a dynamic feature space. These activations are discretized into binary vectors, which the planner then uses for novelty testing.

Discretization of neural network activations into binary features for state novelty testing.

This approach allows the planner to adapt its definition of "novelty" as the agent learns, effectively reducing the effective width of the problem and making distant goals more reachable.

Experimental Evaluation

The researchers evaluated $\pi$-IW on maze environments and the Atari 2600 suite. In sparse-reward mazes, $\pi$-IW demonstrated a clear advantage over AlphaZero, which relies on Monte Carlo Tree Search (MCTS). While MCTS treats the state space as a black box, the structured exploration of $\pi$-IW's novelty pruning allows it to discover rewards much more efficiently.

Performance comparison of $\pi$-IW against AlphaZero and baseline IW methods. $\pi$-IW (red/green) achieves higher rewards and reaches goals faster.

In the Atari benchmark, $\pi$-IW outperformed previous width-based methods in 22 out of 54 games, often using a significantly smaller planning budget (100 nodes per transition) compared to traditional RAM-based planners.

Conclusion

$\pi$-IW represents a significant step forward in combining classical planning with deep learning. By leveraging learned policies for both search guidance and feature discovery, it removes the need for human-engineered features while providing the structured exploration necessary for complex pixel-based domains. Future work includes extending the method to stochastic environments and incorporating value functions to further refine search guidance.

Summary updated

BibTeX
@inproceedings{junyent2019deep,
  author = {Miquel Junyent and Anders Jonsson and Vicenç Gómez},
  title = {{Deep Policies for Width-Based Planning in Pixel Domains}},
  booktitle = {ICAPS},
  year = {2019},
  url = {https://openreview.net/forum?id=Ml1Xl5Y2CH},
}
Figure