Learning Admissible Heuristics while Solving Problems

Anna Bramanti-Gregor, Henry W. DavisIJCAI 1991

Introduction

In the field of Artificial Intelligence, search algorithms like A face a fundamental trade-off between search speed and solution quality. The efficiency of A is dictated by its heuristic function $h(n)$, which estimates the cost from a given node to the goal. For A* to be "admissible"—guaranteeing an optimal, shortest path—the heuristic must never overestimate the true cost ($h(n) \leq h^*(n)$). However, designing powerful admissible heuristics is often difficult. Conversely, non-admissible heuristics are easier to construct and can significantly prune the search space, but they risk returning suboptimal solutions.

This paper proposes a framework to bridge this gap by learning the statistical properties of overestimating heuristics during the search process. By dynamically constructing an admissible version of these heuristics, the system can leverage the "insight" of aggressive guides while eventually guaranteeing optimality.

The MAXH Framework

The core of the proposed method is the $MAXH$ function. For a non-admissible heuristic $h$, $MAXH(x)$ is defined as the maximum value $h$ takes for any state at a true distance $x$ from the goal.

Figure 1: Relationship between estimated and true distance to goal, illustrating the MAXH step function.

As shown in Figure 1, the $MAXH$ function creates a step-like boundary. By mapping the heuristic values back through this learned relationship, the system can derive an admissible heuristic, $h_M$, from a non-admissible one. Since the true $MAXH$ values are unknown a priori, the system maintains an approximation, $rMAXH$, which is updated as the algorithm explores the state space and discovers actual path lengths.

Learning and Convergence

The researchers explored several strategies for updating $rMAXH$:

  • Constant Learning: Updates are performed once per solved problem, offering low computational overhead.
  • Quadratic Learning: Updates occur for every node on the path to the goal, leading to significantly faster convergence at the cost of $O(X^2)$ overhead, where $X$ is the number of nodes expanded.
  • Early Learning: Learning is strategically halted before the heuristic becomes perfectly admissible to maintain a "composite" heuristic that balances speed and high solution quality.
Figure 3: Convergence of the learned heuristic rMAXH over an increasing number of solved problems.

A key finding was the rapid convergence of the learning process. As illustrated in Figure 3, the system acquires the majority of necessary information within the first few problems. In tests on the 8-puzzle, the system often reached a state of near-perfect admissibility after solving only eight randomly chosen problems.

Experimental Results

The approach was evaluated using the 8-puzzle with various heuristics, including standard Manhattan distance ($h_2$) and more complex, overestimating variants ($h_3, h_4$).

  • Near-Instant Optimality: In a sequence of 1,998 problems, only the first problem was solved sub-optimally. All subsequent solutions were optimal as the learned heuristic quickly became admissible.
  • Efficiency Gains: By using "Early Learning," the researchers produced solutions within 6% of the optimal length while reducing node expansions by 50% compared to standard admissible heuristics.
  • Superior Admissibility: The system learned a heuristic that consistently returned optimal solutions while requiring 15% fewer node expansions than the best manually designed admissible heuristic for the domain.

Conclusion and Limitations

This research demonstrates that it is possible to "tame" non-admissible heuristics through online learning. While the approach is highly effective for repetitive tasks in stable domains, it has limitations. The quadratic learning overhead may become a bottleneck in massive search spaces, and the initial problems in a sequence are likely to be suboptimal. Furthermore, while successful in the 8-puzzle, scaling to larger domains like the 15-puzzle may face challenges due to the memory requirements of the $MAXH$ tables.

Summary updated

BibTeX
@inproceedings{bramantigregor1991learning,
  author = {Anna Bramanti-Gregor and Henry W. Davis},
  title = {{Learning Admissible Heuristics while Solving Problems}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1991},
}
Figure