1 BLACKBOX: A New Approach to the Application of Theorem Proving to Problem Solving Bart Selman Cornell University Joint work with Henry Kautz AT&T Labs.

Slides:



Advertisements
Similar presentations
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Advertisements

UIUC CS 497: Section EA Lecture #2 Reasoning in Artificial Intelligence Professor: Eyal Amir Spring Semester 2004.
Methods of Proof Chapter 7, second half.. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound)
Methods of Proof Chapter 7, Part II. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound) generation.
CPSC 422, Lecture 21Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21 Mar, 4, 2015 Slide credit: some slides adapted from Stuart.
Planning with Constraints Graphplan & SATplan Yongmei Shi.
1 Planning as X X  {SAT, CSP, ILP, …} José Luis Ambite* [* Some slides are taken from presentations by Kautz, Selman, Weld, and Kambhampati. Please visit.
Dynamic Restarts Optimal Randomized Restart Policies with Observation Henry Kautz, Eric Horvitz, Yongshao Ruan, Carla Gomes and Bart Selman.
1 Chapter 16 Planning Methods. 2 Chapter 16 Contents (1) l STRIPS l STRIPS Implementation l Partial Order Planning l The Principle of Least Commitment.
Proof methods Proof methods divide into (roughly) two kinds: –Application of inference rules Legitimate (sound) generation of new sentences from old Proof.
08/1 Foundations of AI 8. Satisfiability and Model Construction Davis-Putnam, Phase Transitions, GSAT Wolfram Burgard and Bernhard Nebel.
CSE 5731 Lecture 21 State-Space Search vs. Constraint- Based Planning CSE 573 Artificial Intelligence I Henry Kautz Fall 2001.
1 Planning. R. Dearden 2007/8 Exam Format  4 questions You must do all questions There is choice within some of the questions  Learning Outcomes: 1.Explain.
Methods of Proof Chapter 7, second half.
Search in the semantic domain. Some definitions atomic formula: smallest formula possible (no sub- formulas) literal: atomic formula or negation of an.
Last time Proof-system search ( ` ) Interpretation search ( ² ) Quantifiers Equality Decision procedures Induction Cross-cutting aspectsMain search strategy.
1 BLACKBOX: A New Paradigm for Planning Bart Selman Cornell University.
Encoding Domain Knowledge in the Planning as Satisfiability Framework Bart Selman Cornell University.
1 Compute-Intensive Methods in AI: New Opportunities for Reasoning and Search Bart Selman Cornell University
1 CS 4700: Foundations of Artificial Intelligence Carla P. Gomes Module: Satisfiability (Reading R&N: Chapter 7)
Knowledge Representation II (Inference in Propositional Logic) CSE 473.
Knowledge Representation II (Inference in Propositional Logic) CSE 473 Continued…
SAT Solving Presented by Avi Yadgar. The SAT Problem Given a Boolean formula, look for assignment A for such that.  A is a solution for. A partial assignment.
1 Combinatorial Problems in Cooperative Control: Complexity and Scalability Carla Gomes and Bart Selman Cornell University Muri Meeting March 2002.
Logic - Part 2 CSE 573. © Daniel S. Weld 2 Reading Already assigned R&N ch 5, 7, 8, 11 thru 11.2 For next time R&N 9.1, 9.2, 11.4 [optional 11.5]
Planning as Satisfiability CS Outline 0. Overview of Planning 1. Modeling and Solving Planning Problems as SAT - SATPLAN 2. Improved Encodings using.
The Role of Domain-Specific Knowledge in the Planning as Satisfiability Framework Henry Kautz AT&T Labs Bart Selman Cornell University.
Logical Foundations of AI Planning as Satisfiability Clause Learning Backdoors to Hardness Henry Kautz.
Boolean Satisfiability and SAT Solvers
Jonathon Doran. The Planning Domain A domain describes the objects, facts, and actions in the universe. We may have a box and a table in our universe.
SAT and SMT solvers Ayrat Khalimov (based on Georg Hofferek‘s slides) AKDV 2014.
1 Chapter 7 Propositional Satisfiability Techniques.
1 Planning as Satisfiability Alan Fern * * Based in part on slides by Stuart Russell and Dana Nau  Review of propositional logic (see chapter 7)  Planning.
CHAPTERS 7, 8 Oliver Schulte Logical Inference: Through Proof to Truth.
INTRODUCTION TO ARTIFICIAL INTELLIGENCE COS302 MICHAEL L. LITTMAN FALL 2001 Satisfiability.
1 The LPSAT Engine and its Application to Metric Planning Steve Wolfman University of Washington CS&E Advisor: Dan Weld.
Open-Loop Planning as Satisfiability Henry Kautz AT&T Labs.
Planning as Propositional Satisfiabililty Brian C. Williams Oct. 30 th, J/6.834J GSAT, Graphplan and WalkSAT Based on slides from Bart Selman.
CPSC 322, Lecture 23Slide 1 Logic: TD as search, Datalog (variables) Computer Science cpsc322, Lecture 23 (Textbook Chpt 5.2 & some basic concepts from.
Explorations in Artificial Intelligence Prof. Carla P. Gomes Module Logic Representations.
CS 5411 Compilation Approaches to AI Planning 1 José Luis Ambite* Some slides are taken from presentations by Kautz and Selman. Please visit their.
SAT 2009 Ashish Sabharwal Backdoors in the Context of Learning (short paper) Bistra Dilkina, Carla P. Gomes, Ashish Sabharwal Cornell University SAT-09.
CPSC 422, Lecture 21Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21 Oct, 30, 2015 Slide credit: some slides adapted from Stuart.
© Daniel S. Weld 1 Logistics Problem Set 2 Due Wed A few KR problems Robocode 1.Form teams of 2 people 2.Write design document.
1 Propositional Logic Limits The expressive power of propositional logic is limited. The assumption is that everything can be expressed by simple facts.
Planning 2 (SATPLAN) CSE 573. © Daniel S. Weld 2 Ways to make “plans” Generative Planning Reason from first principles (knowledge of actions) Requires.
AAAI of 20 Deconstructing Planning as Satisfiability Henry Kautz University of Rochester in collaboration with Bart Selman and Jöerg Hoffmann.
Local Search Methods for SAT Geoffrey Levine March 11, 2004.
Inference in Propositional Logic (and Intro to SAT) CSE 473.
Proof Methods for Propositional Logic CIS 391 – Intro to Artificial Intelligence.
Knowledge Repn. & Reasoning Lecture #9: Propositional Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2005.
Computing & Information Sciences Kansas State University Wednesday, 04 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 17 of 42 Wednesday, 04 October.
Heuristic Search Planners. 2 USC INFORMATION SCIENCES INSTITUTE Planning as heuristic search Use standard search techniques, e.g. A*, best-first, hill-climbing.
Computing & Information Sciences Kansas State University Friday, 13 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 21 of 42 Friday, 13 October.
Inference in Propositional Logic (and Intro to SAT)
CS 4700: Foundations of Artificial Intelligence
Planning as Satisfiability
Planning as Search State Space Plan Space Algorihtm Progression
EA C461 – Artificial Intelligence Logical Agent
Planning: Heuristics and CSP Planning
Planning: Heuristics and CSP Planning
Class #17 – Thursday, October 27
Planning as Satisfiability with Blackbox
Graphplan/ SATPlan Chapter
Planning as Satisfiability
Compute-Intensive Methods in AI: New Opportunities for Reasoning and Search Bart Selman Cornell University 1 1.
Class #19 – Monday, November 3
Methods of Proof Chapter 7, second half.
Graphplan/ SATPlan Chapter
Graphplan/ SATPlan Chapter
Presentation transcript:

1 BLACKBOX: A New Approach to the Application of Theorem Proving to Problem Solving Bart Selman Cornell University Joint work with Henry Kautz AT&T Labs

2 Planning as (Specialized) Deduction Situation calculus (McCarthy & Hayes 1969) Conceptually elegant Planning as first-order theorem proving (Green 1969) Computationally infeasible STRIPS: A New Approach to the Application of Theorem Proving to Problem Solving (Fikes & Nilsson 1971) More efficient, but still poor scaling Partial-order planning (Tate 1977, Chapman 1985, McAllester 1991) Planning as specialized implementation of a particular theorem - the modal truth criteria Can be more efficient, but still hard (Minton, Bresina, & Drummond 1994) SATPLAN (Kautz and Selman 1992, 1996) Planning as (simply) propositional reasoning

3 SATPLAN axiom schemas instantiated propositional clauses satisfying model plan mapping length problem description SAT engine(s) instantiate interpret

4 What SATPLAN Showed A general propositional theorem prover can be competitive with specialized planning (specialized theorem proving) systems Good representations –propositional, not first-order –can combine expressiveness with good computational properties Fast SAT engines –stochastic search - walksat –large SAT/CSP community sharing ideas and code +compare: general CPU's versus Lisp-chip +specialized engines can catch up, but by then, new general techniques

5 Graphplan Planning as graph search (Blum & Furst 1995) Set new paradigm for planning Like SATPLAN... Two phases: instantiation of propositional structure, followed by search Possible to translate planning graph into CNF (Kautz & Selman 1996) Unlike SATPLAN... Interleaves instantiation and pruning of plan graph Employs specialized search engine Graphplan - better instantiation SATPLAN - better search

6 Bridging Paradigms Both SATPLAN and Graphplan are disjunctive planners (Kambhampati 1996) avoid splitting - more compact representations, faster search IJCAI Challenge in Bridging Plan Synthesis Paradigms (Kambhampati 1997) study tradeoffs between refinement (instantiation) and extraction (SAT) techniques Our response: blackbox efficient planning system and highly- configurable testbed

7 Blackbox Architecture 1. Front end: turn STRIPS input into planning graph interleaves instantiation and pruning (specialized limited deduction) 2. Translation to CNF 3. Simplification (general limited deduction) critical for hardest problems –unit propagation, failed literal, binary failed literal, SAT solvers can schedule series of different solvers: walksat, satz, rel_sat, etc. new: randomized systematic solvers (more later)

8 Specialized Inference SATPLAN was proof of concept that general deduction is feasible When do specialized inference techniques have the greatest impact? Two kinds of specialized deduction Planning specific - graphplan's pruning rules General polytime inference - simplification performed after CNF generation –apply to all CNF formulas, may or may not be designed with planning in mind

9 Graph Pruning Graphplan instantiates in a forward direction, pruning nodes with incompatible preconditions incomplete pair-wise mutex relations computed by incremental constraint propagation –(see Kambhampati 1997, Euro CP) In logical terms: limited application of negative binary propagation given:  P V  Q, P V R V S V... infer:  Q V R V S V...

10 Translation to CNF Fact  Act1 V Act2 Act1  Pre1 & Pre2 Wff is entailed by original SATPLAN hand encodings, but more compact, easier to solve compare with Medic (Weld 1997), which translated STRIPS  CNF directly Act1 Act2 Fact Pre1 Pre2

11 Simplification Generated wff can be further simplified by additional consistency propagation techniques Because is in CNF, can take advantage of many fast, powerful simplifiers Compact (Crawford & Auton 1996) failed literal rule: is Wff + { P } unsat by unit propagation? binary failed literal rule: is Wff + { P V Q } unsat by unit propagation? Generally reduces number of variables and clauses by 30%

12 Randomized Sytematic Solvers Stochastic local search solvers (walksat) when they work, scale well cannot show unsat fail on some domains must use very simple (fast) heuristics Systematic solvers (Davis Putnam) complete fail on (often different) domains might use more sophisticated (costly) heuristics seem to scale badly Can we combine best features of each approach?

13 Heavy Tails Bad scaling of systematic solvers can be caused by heavy tailed distributions Deterministic algorithms get stuck on particular instances but that same instance might be easy for a different deterministic algorithm! Expected (mean) solution time increases without limit over large distributions

14 Heavy Tailed Cost Distribution

15 Randomized Restarts Solution: randomize the systematic solver Add noise to the heuristic branching (variable choice) function Cutoff and restart search after a fixed number of backtracks Eliminates heavy tails In practice: rapid restarts with low cutoff can dramatically improve performance

16 Rapid Restart Speedup

17 Blackbox as Experimental Testbed All components of blackbox are parameterized Can experiment with different schedules for instantiating, simplifying, and solving problems blackbox -solver -maxsec 20 graphplan -then compact -l -then satz -cutoff 20 -restart 100 -then walksat -cutoff restart 10

18 Blackbox Results

19 blackbox version 9B command line: blackbox -o logistics.pddl -f logistics_prob_d_len.pddl -solver compact -l -then satz -cutoff 25 -restart Converting graph to wff 6151 variables clauses Invoking simplifier compact Variables undetermined: 4633 Non-unary clauses output: Invoking solver satz version satz-rand-2.1 Wff loaded [1] begin restart [1] reached cutoff back to root [2] begin restart [2] reached cutoff back to root [3] begin restart [3] reached cutoff back to root [4] begin restart [4] reached cutoff back to root [5] begin restart **** the instance is satisfiable ***** **** verification of solution is OK **** total elapsed seconds = Begin plan 1 drive-truck_ny-truck_ny-central_ny-po_ny

20

21 Summary Blackbox combines best features of Graphplan, SATPLAN, and new randomized systematic search engines Automatic generation of wffs from standard STRIPS input No performance penalty over hand-encodings! Testbed for bridging different planning paradigms

22 Current Research Issues Tradeoffs between planning-specific and more general limited inference (simplification) techniques More powerful / general rules than mutex computation? Incorporating explicit domain knowledge (Kautz & Selman, 1998) state invariants optimal conditions Other front-ends: causal encodings (McAllester, Selman, Kautz 1996), HTN encodings (Mali & Kambhampati 1998) Download from