Structure and Problem Hardness: Goal Asymmetry and DPLL Proofs in SAT-Based Planning

Jörg Hoffmann, Carla P. Gomes, Bart Selman · DOI

TL;DR

This paper introduces "AsymRatio," a novel metric to quantify the structural asymmetry of planning problems based on the cost of achieving individual goals. They demonstrate that this metric strongly correlates with the performance of SAT solvers on these problems, showing a significant gap in difficulty between highly symmetric and asymmetric planning tasks.

What Problem Does This Paper Address?

The paper tackles a fundamental question in AI planning and SAT solving: why do state-of-the-art SAT solvers, particularly DPLL-based ones, perform so well on many planning problems, even those with a huge number of variables? While SAT solvers are excellent at finding satisfying assignments, proving unsatisfiability (which is crucial for optimal planning) can be computationally challenging. The authors observe that existing work on SAT hardness often focuses on random instances, which don't fully explain the efficiency seen in structured problems like those arising from AI planning. They aim to identify and quantify a specific type of problem structure in planning that influences SAT solver performance, particularly when proving optimality.

Methods

The core of the paper is the introduction and analysis of AsymRatio, a metric defined as the ratio of the cost of the most expensive individual goal to the cost of achieving all goals simultaneously. This metric quantifies how much a single goal "dominates" the overall problem difficulty.

To analyze this metric, the authors employ a multi-pronged approach:

  • Empirical Evaluation: They test AsymRatio on 10 benchmark domains from International Planning Competitions (IPCs). They generate thousands of instances for each domain, group them by optimal plan length, and then analyze the distribution of AsymRatio within these groups. They then compare SAT solver performance (measured by search tree size) for instances with different AsymRatio values.
  • Synthetic Domain Construction: To gain deeper theoretical insights, they create carefully crafted synthetic planning domains (MAP, SBW, SPH) that allow precise control over problem structure and size. These domains are designed to isolate specific structural properties.
  • Theoretical Analysis: For these synthetic domains, they prove theoretical bounds on the size of DPLL refutations (proofs of unsatisfiability) and identify optimal "backdoors" (sets of variables that, when assigned, allow unit propagation to solve the problem). They demonstrate a significant gap in proof complexity between symmetrical and asymmetrical instances.

Datasets

The paper uses two main types of datasets:

  • International Planning Competition (IPC) Benchmarks: They use instances from IPC 2000, 2002, 2004, and 2006 across 10 different domains (Blocksworld, Logistics, Miconic-ADL, Depots, Driverlog, Freecell, Rovers, Satellite, Zenotravel, TPP, PSR, and a "Random" domain). For each domain, they generate thousands of instances to ensure statistically significant results.
  • Synthetic Domains: They introduce three new domains:
  • MAP: A simple graph traversal domain where nodes must be visited.
  • SBW: A block-stacking domain with stacking restrictions.
  • SPH: A structured version of the pigeon hole problem. These domains are parameterized by size and structure, allowing for controlled experiments and theoretical analysis.

Key Insights and Ideas

  • AsymRatio as a Structural Indicator: The most significant insight is that AsymRatio, a simple metric based on goal costs, is a surprisingly good indicator of SAT solver performance in many planning domains. Problems with high AsymRatio (where one goal is much harder than others) tend to be easier for SAT solvers.
  • Doubly Exponential Gap: The authors demonstrate a dramatic difference in problem hardness between highly symmetrical (low AsymRatio) and highly asymmetrical (high AsymRatio) planning problems. In synthetic domains, they show this gap can be doubly exponential in terms of DPLL proof size.
  • Backdoors and Problem Structure: They show that the structure captured by AsymRatio directly influences the size and nature of optimal "backdoors." In symmetrical cases, backdoors are large (linear in the number of variables), while in asymmetrical cases, they can be surprisingly small (logarithmic in the number of variables).
  • Prototypical Patterns: The synthetic domains help identify "prototypical patterns" of structure that explain the observed behavior in real-world planning benchmarks. This suggests that understanding these fundamental structural elements is key to understanding SAT solver performance.
  • "Red Herring" Example: The paper highlights that AsymRatio isn't foolproof. They construct a "red herring" example where AsymRatio is misleading because the problem structure is artificially separated, allowing a difficult sub-problem to be solved independently. This points to the need for more sophisticated measures of sub-problem interaction.

Key Results

  • Empirical Correlation: In 8 out of 10 IPC domains, AsymRatio was a good indicator of SAT solver performance, with lower AsymRatio consistently correlating with higher search tree sizes (more difficult problems).
  • Theoretical Bounds: For synthetic domains, they proved exponential lower bounds on DPLL refutation size for symmetrical cases and logarithmic refutations for asymmetrical cases.
  • Logarithmic Backdoors: They identified logarithmic-sized backdoors for asymmetrical MAP and SBW domains, a significant finding given the overall problem size.
  • Doubly Exponential Gap: The difference in DPLL proof size between the symmetrical and asymmetrical cases was shown to be doubly exponential for MAP and SPH domains.
  • Solver Performance: Experiments with ZChaff and MiniSat on synthetic domains largely confirmed the theoretical predictions, showing that runtime generally increases with decreasing AsymRatio.

Limitations and Future Work

  • AsymRatio Definition: The authors acknowledge that AsymRatio is a simplistic metric and can be fooled (e.g., by replacing goal sets with single goals or by "red herring" scenarios). They suggest future work on more stable definitions, possibly involving "landmarks" or direct measures of sub-problem interaction.
  • Domain Specificity: While AsymRatio shows promise, its effectiveness can vary across domains and parameter settings. Further exploration of how AsymRatio behaves with different parameter settings is needed.
  • Synthetic Domain Simplicity: The synthetic domains are intentionally simple to allow for rigorous analysis. Their direct applicability to more complex, real-world planning problems needs further investigation.
  • Optimal Backdoor Identification: Determining optimal backdoors in general remains a difficult open problem, especially for complex combinations of parameters.
  • SAT Solver Behavior: The paper notes that SAT solvers sometimes struggle with "slightly asymmetric" instances, suggesting an interesting area for future research into solver heuristics and clause learning.
  • Beyond Step-Optimality: The current work focuses on step-optimality. Future work could explore how AsymRatio and related concepts apply to other optimization criteria like makespan minimization.

Summary updated

Abstract

In Verification and in (optimal) AI Planning, a successful method is to formulate the application as boolean satisfiability (SAT), and solve it with state-of-the-art DPLL-based procedures. There is a lack of understanding of why this works so well. Focussing on the Planning context, we identify a form of problem structure concerned with the symmetrical or asymmetrical nature of the cost of achieving the individual planning goals. We quantify this sort of structure with a simple numeric parameter called AsymRatio, ranging between 0 and 1. We run experiments in 10 benchmark domains from the International Planning Competitions since 2000; we show that AsymRatio is a good indicator of SAT solver performance in 8 of these domains. We then examine carefully crafted synthetic planning domains that allow control of the amount of structure, and that are clean enough for a rigorous analysis of the combinatorial search space. The domains are parameterized by size, and by the amount of structure. The CNFs we examine are unsatisfiable, encoding one planning step less than the length of the optimal plan. We prove upper and lower bounds on the size of the best possible DPLL refutations, under different settings of the amount of structure, as a function of size. We also identify the best possible sets of branching variables (backdoors). With minimum AsymRatio, we prove exponential lower bounds, and identify minimal backdoors of size linear in the number of variables. With maximum AsymRatio, we identify logarithmic DPLL refutations (and backdoors), showing a doubly exponential gap between the two structural extreme cases. The reasons for this behavior -- the proof arguments -- illuminate the prototypical patterns of structure causing the empirical behavior observed in the competition benchmarks.
BibTeX
@inproceedings{hoffmann2006structure,
  author = {Jörg Hoffmann and Carla P. Gomes and Bart Selman},
  title = {{Structure and Problem Hardness: Goal Asymmetry and DPLL Proofs in SAT-Based Planning}},
  booktitle = {ICAPS},
  year = {2006},
}
Figure