Graph Value Iteration

Dieqiao Feng, Carla P. Gomes, Bart SelmanarXiv 2022 · DOI

Introduction

Deep reinforcement learning (RL) has achieved remarkable success in games with dense rewards, but it continues to struggle with combinatorial planning problems where rewards are extremely sparse. In domains like robotic pathing, theorem proving, or complex puzzles like Sokoban, an agent typically only receives a reward upon reaching a final goal state. If a solution requires hundreds of precise steps, random exploration is statistically unlikely to ever find it, leaving the agent with no signal to learn from.

Traditional approaches attempt to bridge this gap using human-crafted heuristics or domain-specific curriculum learning (e.g., generating easier sub-instances). However, these methods rely heavily on expert knowledge. This paper introduces Graph Value Iteration (GVI), a domain-independent method that extracts learning signals from failed search attempts by propagating heuristic estimates backward through the local search graph. This allows the model to learn the topology of the search space even when the global goal remains out of reach.

Methodology

The proposed framework combines a neural network-guided graph search—such as Best-First Search (BFS) or Monte Carlo Tree Search (MCTS)—with the GVI component. The neural network is trained to predict the remaining distance to the goal from any given state.

The GVI framework integrates neural-guided search with value propagation to update the heuristic model.

The GVI Mechanism

Unlike standard RL, which often discards data from episodes that do not reach a goal, GVI treats the search graph of a failed attempt as a rich source of information. When a search budget is exhausted without finding the goal, GVI performs the following steps:

  1. Identify the Frontier: It identifies the "open set" (the boundary nodes of the failed search graph).
  2. Freeze Estimates: The neural network's distance predictions for these frontier nodes are frozen.
  3. Backward Propagation: These values are propagated backward through the graph to the start node using a variant of the Bellman equation. Specifically, a parent node’s value is updated to be the minimum of its children’s values plus the edge cost (usually one).
GVI updates node values by propagating estimates from the search frontier (right) compared to initial network predictions (left).

These updated values serve as training labels for the neural network. This process acts as an intrinsic, curiosity-driven reward, teaching the network the local structure of the search space and pushing future searches toward unexplored frontiers.

Experimental Evaluation

The authors evaluated GVI on two primary benchmarks:

  • Sokoban Large Test Suite: A collection of 3,272 human-designed instances known for their irregular search spaces and high difficulty.
  • N-puzzle (15, 24, and 35-puzzle): Procedurally generated instances used to evaluate the optimality of discovered plans against known ground-truth shortest paths.

Key Results

  • Data Efficiency: On difficult Sokoban instances, previous MCTS methods without domain-specific sub-instance creation failed to solve a single instance. With GVI, the same agents solved 13 instances. When combined with sub-instance creation, GVI allowed the model to solve over 170 extremely hard instances without requiring the massive amounts of auxiliary training data previously needed to bridge the difficulty gap.
  • Near-Optimality: On the 15-puzzle, GVI-augmented BFS consistently found solutions that were remarkably close to the absolute optimal path (often within 10 steps of the ground truth).
  • Search Efficiency: The study found that BFS + GVI is significantly more memory and compute-efficient than MCTS + GVI. While MCTS often revisits nodes during simulation rollouts, BFS visits each node exactly once, leading to similar solve rates with far fewer redundant expansions.

Conclusion and Future Work

GVI demonstrates that agents can learn approximate search policies long before a goal is ever reached. By mapping out "dead ends" and "promising frontiers" within failed search graphs, GVI naturally shapes the heuristic to guide future exploration. This domain-independent approach offers a promising path for applying deep RL to other hard combinatorial domains, such as program synthesis or theorem proving, where rewards are thousands of steps away and expert heuristics are unavailable.

Summary updated

BibTeX
@misc{feng2022graph,
  author = {Dieqiao Feng and Carla P. Gomes and Bart Selman},
  title = {{Graph Value Iteration}},
  year = {2022},
  eprint = {2209.09608},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.09608},
}
Figure