Improving width-based planning with compact policies

Miquel Junyent, Anders Jonsson, Vicenç GómezarXiv 2018

Abstract

Policy-guided Iterated Width (PIW) is a hybrid algorithm that integrates width-based planning with deep reinforcement learning to address sparse reward challenges. By using a neural network to bias search and learning dynamic features for novelty detection, PIW achieves superior sample efficiency and performance in complex environments like Atari 2600 and sparse-reward gridworlds.

Introduction

Reinforcement Learning (RL) has achieved significant milestones in complex domains, yet it frequently struggles with the "cold start" problem. In environments where rewards are sparse or delayed, standard RL agents relying on random exploration often fail to encounter any reward signal. Traditional planning algorithms, such as Iterated Width (IW), excel at exploration by prioritizing "novelty"—visiting states with unique attribute combinations. However, IW lacks the ability to learn from experience and typically requires hand-crafted features. This paper introduces Policy-guided Iterated Width (PIW) to bridge the gap between structured planning and representational learning.

Methods

PIW interleaves a planning step with a learning step to create an agent that plans to explore and learns to plan more effectively.

The Planning Step

The agent performs a lookahead search using a variation of IW. Unlike standard IW, which selects actions uniformly, PIW utilizes a Neural Network (NN) policy to bias the search toward promising regions of the state space. To maintain efficiency, the algorithm employs a "novelty table" to prune states that do not provide new information.

Novelty-based pruning in the PIW search tree.

The Learning Step

Paths identified during the search are used as training labels for the NN policy via cross-entropy loss. This framework is conceptually similar to AlphaZero but replaces Monte Carlo Tree Search (MCTS) with width-based planning, which is better suited for discovery in sparse reward settings.

Dynamic Feature Discovery

A key innovation in PIW is the use of dynamic features for novelty detection. Instead of relying on fixed pixel or RAM-based features, PIW discretizes the activations of the neural network's last hidden layer into binary values. As the network learns, these features evolve, allowing the agent to autonomously discover what constitutes an "interesting" state.

Key Results

The researchers evaluated PIW on sparse-reward Gridworlds and four Atari 2600 games (Pong, Freeway, Qbert, and Breakout).

Performance comparison of PIW against AlphaZero and A2C in various environments.

Gridworld and Atari Performance

In difficult 10x10 maze tasks with multiple walls, PIW consistently reached the goal, whereas A2C and AlphaZero often failed to find any reward within the interaction budget. In Atari benchmarks, PIW outperformed previous width-based planners. Notably, in Qbert, PIW discovered a high-scoring glitch, achieving a score of 415,271—orders of magnitude higher than prior methods.

Efficiency

PIW demonstrated high sample efficiency, achieving these results with a search budget of only 100 nodes per expansion. This suggests that a policy-guided search is significantly more powerful than undirected exploration.

Discussion and Limitations

While PIW shows great promise, a "policy-planner gap" exists where the standalone learned policy sometimes underperforms compared to the search-guided version. Future work may involve incorporating a value function ($V$) to estimate long-term rewards, similar to AlphaZero, and exploring more sophisticated discretization methods for neural representations. Additionally, the current high frameskip (15) used for real-time planning may be too coarse for games requiring precise timing.

Summary updated

BibTeX
@misc{junyent2018improving,
  author = {Miquel Junyent and Anders Jonsson and Vicenç Gómez},
  title = {{Improving width-based planning with compact policies}},
  year = {2018},
  eprint = {1806.05898},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1806.05898},
}
Figure