Online Speedup Learning for Optimal Planning

Carmel Domshlak, Erez Karpas, Shaul MarkovitcharXiv 2014 · DOI

Here is a concise, engaging summary of the paper "Online Speedup Learning for Optimal Planning".

TL;DR

The paper introduces selective max (selmax), an active online learning approach that dynamically chooses the most cost-effective admissible heuristic to compute at each state during $A^*$ search. By predicting which heuristic provides the best tradeoff between accuracy and computation time, selmax significantly speeds up optimal planning without sacrificing solution quality or admissibility.

What Problem Does This Paper Address?

In automated planning, the goal is to find a sequence of actions that transitions from an initial state to a goal state. In optimal planning, we specifically want the cheapest plan. The state-of-the-art approach relies on $A^*$ search guided by admissible heuristics (which never overestimate the cost to the goal).

Because no single heuristic performs best across all problems, researchers often combine multiple heuristics using their pointwise maximum ($max_h$). While $max_h$ provides superior pruning power and minimizes the number of states expanded, it introduces a massive computational bottleneck: every heuristic must be evaluated at every single state. If one heuristic is highly accurate but computationally expensive, calculating it everywhere can actually make the planner slower than using a cheaper, less accurate one. The authors tackle this challenge: How can we exploit the strengths of multiple heuristics without paying the full computational price of evaluating all of them?

Methods

The authors propose selective max, which frames heuristic selection as a classification problem solved entirely online during the planning process.

  1. The Idealized Decision Rule: The authors first analyze an idealized search space (a tree with a constant branching factor $b$ and uniform action costs) to determine exactly when it is mathematically worth computing an expensive heuristic ($h_2$) over a cheaper one ($h_1$). They derive that $h_2$ should only be chosen if the depth-to-go reduction ($l$) satisfies $l > \log_b(t_2/t_1)$, where $t_i$ represents computation time.
  2. Approximation for Real Search Spaces: Since perfect knowledge of the search tree isn't available, they approximate this rule into a threshold $\tau$. The expensive heuristic $h_2$ is computed only if the predicted difference $\Delta h(s) = h_2(s) - h_1(s) > \tau$.
  3. Active Online Learning:
  4. State-Space Sampling: Before the main search begins, the planner performs short random walks ("probes") to collect a representative sample of states. It uses these states to estimate the average branching factor, action costs, and heuristic computation times.
  5. Classifier Training: These sample states are fully evaluated with all heuristics to generate a labeled training set. An incremental classifier (typically Naive Bayes) is trained on these states using the state variables as features.
  6. Search-Time Classification & Active Learning: During the actual $A^*$ search, the classifier predicts which heuristic to use. If the prediction confidence exceeds a threshold $\rho$, only the chosen heuristic is computed. If confidence is low, the planner plays it safe: it computes both heuristics, uses the maximum value, and uses this fully evaluated state to update the classifier online.

To handle more than two heuristics, selmax trains a quadratic number of pairwise classifiers and uses a confidence-weighted voting scheme.

Datasets

The approach was evaluated using:

  • 31 standard domains from the International Planning Competitions (IPC) spanning 1998 to 2008, encompassing both unit-cost and non-uniform action cost tasks.
  • IPC-2011 benchmarks, which included entirely new, unseen domains.
  • Three state-of-the-art admissible heuristics: $h_{LA}$ (landmark-based, fast), $h_{LM-CUT}$ (cost-optimal landmark-based, medium), and $h_{LM-CUT+}$ (expensive but highly accurate).

Key Insights and Ideas

  • Time vs. Accuracy Tradeoff: Minimizing node expansions does not automatically minimize total wall-clock time. The time spent per node is a critical variable that must be optimized.
  • Intra-Problem Learning: Unlike traditional machine learning approaches in AI planning that require extensive offline training on historical data, selmax learns online during the first few seconds of solving a single, specific problem instance. This makes it completely domain-independent.
  • Geometric Contours of Search: The decision rule relies on understanding how different heuristics shape the search space's $f$-contours.
An illustration of the idealized search space model and the f-contours of two admissible heuristics

As shown in Figure 1, the optimal choice depends heavily on where a state lies relative to the $f_1=c^*$ and $f_2=c^*$ boundaries; computing the expensive heuristic in regions where the node will be expanded anyway is a waste of time.

Key Results

  • IPC-2011 Success: An implementation of this technique (selmax) was a runner-up ex-aequo (tying for 2nd place) in the sequential optimal track of the 2011 International Planning Competition. It successfully solved more problems than either of its component heuristics ($h_{LA}$ and $h_{LM-CUT}$) could solve individually.
  • Outperforming Pointwise Max: In controlled experiments across the 31 IPC domains, selmax consistently solved more problems and achieved faster search times than the standard pointwise maximum ($max_h$) baseline.
  • Robustness: The system proved highly robust to hyperparameter tuning, maintaining strong performance across various confidence thresholds ($\rho$) and sample sizes ($N$).

Limitations and Future Work

  • Highly Correlated Heuristics: If two heuristics are highly correlated (e.g., $h_{LM-CUT}$ and $h_{LM-CUT+}$), the learning overhead doesn't pay off because one rarely provides a significant accuracy boost over the other.
  • The "Blind Heuristic" Failure Mode: The linear approximation of the decision rule struggles when paired with a "blind" heuristic (which returns a constant value for non-goal states). In this scenario, the optimal threshold should vary dynamically with the path cost $g(s)$, which the current model fails to capture.
  • Future Directions: The authors suggest exploring more sophisticated incremental classifiers, developing better state-space sampling techniques that can accurately represent deeper parts of the search tree, and natively extending the decision rule to multi-heuristic selection without relying on pairwise voting.

Summary updated

BibTeX
@misc{domshlak2014online,
  author = {Carmel Domshlak and Erez Karpas and Shaul Markovitch},
  title = {{Online Speedup Learning for Optimal Planning}},
  year = {2014},
  eprint = {1401.5861},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1401.5861},
}
Figure