To Encode or Not to Encode - Linear Planning

Ronen I. Brafman, Holger H. HoosIJCAI 1999

Abstract

This paper introduces LPSP (Linear Plan-level Stochastic Planner), a novel approach to AI planning that utilizes stochastic local search directly within the space of linear plans. By leveraging domain-specific structural information such as causal links and action threats—elements often lost in traditional "Planning as Satisfiability" (PAS) encodings—LPSP demonstrates significant performance improvements. Experimental results across standard benchmarks like Blocks World and Logistics show that LPSP can outperform state-of-the-art SAT-based planners by factors of up to 80x, while also exhibiting greater robustness and reduced need for parameter tuning.

Introduction

In the late 1990s, the "Planning as Satisfiability" (PAS) approach became the gold standard for AI planning. This method involves translating a planning problem into a massive propositional logic formula and employing high-performance SAT solvers, such as WalkSAT, to find a solution.

However, researchers Brafman and Hoos argue that this "encode & solve" method might be counterproductive. Flattening a planning problem into millions of generic logic clauses discards high-level structural information, such as the relationship between an action’s preconditions and another action’s effects. LPSP was developed to demonstrate that searching the original "plan space" directly using local search is more efficient than searching the "truth assignment space" of an encoded formula.

Methods: Linear Plan-level Stochastic Planner (LPSP)

LPSP moves through a space of fixed-length sequences of actions rather than flipping bits in a logic formula. Its efficiency stems from several key components:

  • Flaw-Based Scoring: LPSP penalizes plans based on "flaws"—specifically, when an action's precondition is negated by a preceding action (a "clobberer"). The penalty is weighted by the distance between the two actions.
  • Novel Search Operators:
    • Best-Replacement: Swaps a single action in the plan for the one that most improves the score.
  • Flaw-Repair: Randomly picks a flaw and attempts to fix it by inserting a "producer" action that satisfies the missing precondition.
  • Reorder: This operator builds a directed graph of dependencies and threats between actions and attempts to find a valid topological sort. This capability is crucial for finding solutions.
A dependency and threat graph used by LPSP's reordering operator to find valid topological sorts.
  • Stochastic Bi-directional Initialization: The initial plan guess is generated by running a random forward search and a random backward regression search, meeting in the middle.
  • Reachability Analysis: A preprocessing step prunes actions that are impossible to reach at certain time steps, significantly shrinking the search space.

Datasets and Evaluation

LPSP was evaluated against standard benchmarks used in the planning community:

  • Blocks World: Classic "stacking blocks" problems (instances bw_large.a through bw_large.d).
  • Logistics: Moving packages between cities using trucks and planes (log.a through log.c).
  • D1S1: An artificial, highly regular domain designed to be difficult for certain types of planners.

Key Results

LPSP demonstrated significant performance gains over PAS (using WalkSAT and SATZ). A primary finding was that for SAT-based planners, the time spent simplifying the logic formula often exceeded the total time LPSP took to solve the problem from scratch.

Performance comparison between LPSP and SAT-based planners (PAS/WALKSAT and PAS/SATZ) across various benchmarks.

Key performance highlights include:

  • Blocks World: LPSP was 3 to 13 times faster than the SAT-based approach.
  • Logistics: In instances restricted to linear plans, LPSP was 15 to 80 times faster.
  • Robustness: LPSP required significantly less manual parameter tuning compared to WalkSAT, which often requires carefully calibrated "noise" settings to avoid getting stuck in local optima.
  • Scaling: On larger instances where systematic SAT solvers (like SATZ) timed out, LPSP continued to find solutions relatively quickly.

Limitations and Future Work

Despite its speed, LPSP has limitations. It is currently a linear planner, which puts it at a disadvantage in domains where many actions can occur simultaneously (parallel plans). In such cases, SAT-based planners that support parallelism (like Blackbox) remain superior. Additionally, the current implementation lacks a general domain parser.

Future work aims to extend these SLS techniques to parallel plan structures, potentially searching through Graphplan-style planning graphs to combine LPSP's structural advantages with the efficiency of concurrent actions.

Summary updated

BibTeX
@inproceedings{brafman1999encode,
  author = {Ronen I. Brafman and Holger H. Hoos},
  title = {{To Encode or Not to Encode - Linear Planning}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1999},
}
Figure