2000.9.20CS 5411 Compilation Approaches to AI Planning 1 José Luis Ambite* Some slides are taken from presentations by Kautz and Selman. Please visit their.

Slides:



Advertisements
Similar presentations
Propositional Satisfiability (SAT) Toby Walsh Cork Constraint Computation Centre University College Cork Ireland 4c.ucc.ie/~tw/sat/
Advertisements

Agents that reason logically Tuomas Sandholm Carnegie Mellon University Computer Science Department.
SAT-Based Planning Using Propositional SAT- Solvers to Search for Plans.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Methods of Proof Chapter 7, second half.. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound)
Effective Propositional Reasoning CSE 473 – Autumn 2003.
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.
IBM Labs in Haifa © 2005 IBM Corporation Adaptive Application of SAT Solving Techniques Ohad Shacham and Karen Yorav Presented by Sharon Barner.
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.
SAT and Model Checking. Bounded Model Checking (BMC) A.I. Planning problems: can we reach a desired state in k steps? Verification of safety properties:
Methods for SAT- a Survey Robert Glaubius CSCE 976 May 6, 2002.
08/1 Foundations of AI 8. Satisfiability and Model Construction Davis-Putnam, Phase Transitions, GSAT Wolfram Burgard and Bernhard Nebel.
Ryan Kinworthy 2/26/20031 Chapter 7- Local Search part 1 Ryan Kinworthy CSCE Advanced Constraint Processing.
CSE 5731 Lecture 21 State-Space Search vs. Constraint- Based Planning CSE 573 Artificial Intelligence I Henry Kautz Fall 2001.
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 CS 4700: Foundations of Artificial Intelligence Carla P. Gomes Module: Satisfiability (Reading R&N: Chapter 7)
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.
Knowledge Representation II (Inference in Propositional Logic) CSE 473.
Knowledge Representation II (Inference in Propositional Logic) CSE 473 Continued…
GRASP: A Search Algorithm for Propositional Satisfiability EE878C Homework #2 2002/11/1 KAIST, EECS ICS Lab Lee, Dongsoo.
3/19/2003copyright Brian Williams1 Propositional Logic and Satisfiability Brian C. Williams November 22 nd, 2004.
1 Paul Beame University of Washington Phase Transitions in Proof Complexity and Satisfiability Search Dimitris Achlioptas Michael Molloy Microsoft Research.
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.
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.
3/11/2002copyright Brian Williams1 Propositional Logic and Satisfiability Brian C. Williams /6.834 October 7 th, 2002.
Solvers for the Problem of Boolean Satisfiability (SAT) Will Klieber Aug 31, 2011 TexPoint fonts used in EMF. Read the TexPoint manual before you.
1 Agenda Modeling problems in Propositional Logic SAT basics Decision heuristics Non-chronological Backtracking Learning with Conflict Clauses SAT and.
Open-Loop Planning as Satisfiability Henry Kautz AT&T Labs.
Heavy-Tailed Phenomena in Satisfiability and Constraint Satisfaction Problems by Carla P. Gomes, Bart Selman, Nuno Crato and henry Kautz Presented by Yunho.
15-853:Algorithms in the Real World
Planning as Propositional Satisfiabililty Brian C. Williams Oct. 30 th, J/6.834J GSAT, Graphplan and WalkSAT Based on slides from Bart Selman.
On the Relation between SAT and BDDs for Equivalence Checking Sherief Reda Rolf Drechsler Alex Orailoglu Computer Science & Engineering Dept. University.
First-Order Logic and Inductive Logic Programming.
/425 Declarative Methods - J. Eisner 1 Random 3-SAT  sample uniformly from space of all possible 3- clauses  n variables, l clauses Which are.
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.
Review of Propositional Logic Syntax
© 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.
Planning as Satisfiability (SAT-Plan). SAT-Plan Translate the planning problem into a satisfiability problem for length n of Plan garb 0 (proposition)present.
Heuristics for Efficient SAT Solving As implemented in GRASP, Chaff and GSAT.
Planning 2 (SATPLAN) CSE 573. © Daniel S. Weld 2 Ways to make “plans” Generative Planning Reason from first principles (knowledge of actions) Requires.
SAT Solving As implemented in - DPLL solvers: GRASP, Chaff and
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.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Heuristics for Efficient SAT Solving As implemented in GRASP, Chaff and GSAT.
Inference in Propositional Logic (and Intro to SAT)
Fast Propositional Algorithms for Planning
Planning as Satisfiability
Planning as Search State Space Plan Space Algorihtm Progression
Watermarking of SAT Using Combinatorial Isolation Lemmas
Planning: Heuristics and CSP Planning
Planning: Heuristics and CSP Planning
CSE P573 Introduction to Artificial Intelligence Class 1 Planning & Search INTRODUCE MYSELF Relative new faculty member, but 20 years in AI research.
Planning as Satisfiability with Blackbox
Planning as Satisfiability
Introduction to the Boolean Satisfiability Problem
Compute-Intensive Methods in AI: New Opportunities for Reasoning and Search Bart Selman Cornell University 1 1.
Introduction to the Boolean Satisfiability Problem
Presentation transcript:

CS 5411 Compilation Approaches to AI Planning 1 José Luis Ambite* Some slides are taken from presentations by Kautz and Selman. Please visit their websites:

CS 5412 Complexity of Planning Domain-independent planning: PSPACE-complete or worse –(Chapman 1987; Bylander 1991; Backstrom 1993) Bounded-length planning: NP-complete –(Chenoweth 1991; Gupta and Nau 1992) Approximate planning: NP-complete or worse –(Selman 1994)

CS 5413 Compilation Idea Use any computational substrate that is (at least) NP-hard. Planning as: –SAT: Propositional Satisfiability SATPLAN, Blackbox (Kautz&Selman, 1992, 1996, 1999) OBDD: Ordered Binary Decision Diagrams (Cimatti et al, 98) –CSP: Constraint Satisfaction GP-CSP (Do & Kambhampati 2000) –ILP: Integer Linear Programming Kautz & Walser 1999, Vossen et al 2000 –…

CS 5414 Planning as SAT Bounded-length planning can be formalized as propositional satisfiability (SAT) Plan = model (truth assignment) that satisfies logical constraints representing: –Initial state –Goal state –Domain axioms: actions, frame axioms, … for a fixed plan length Logical spec such that any model is a valid plan

CS 5415 Architecture of a SAT-based planner Compiler (encoding) satisfying model Plan mapping Increment plan length If unsatisfiable Problem Description Init State Goal State Actions CNF Simplifier (polynomial inference) Solver (SAT engine/s) Decoder CNF

CS 5416 Parameters of SAT-based planner Encoding of Planning Problem into SAT General Limited Inference: Simplification SAT Solver(s)

CS 5417 Encodings of Planning to SAT Discrete Time –Each proposition and action have a time parameter: –drive(truck1 a b) ~> drive(truck1 a b 3) –at(p a) ~> at(p a 0) Common Axiom schemas: –INIT: Initial state completely specified at time 0 –GOAL: Goal state specified at time N –A => P,E: Action implies preconditions and effects

CS 5418 Encodings of Planning to SAT Common Schemas Example INIT: on(a b 0) ^ clear(a 0) ^ … GOAL: on(a c 2) A => P,E Move(x y z) pre: clear(x) ^ clear(z) ^ on(x y) eff: on(x z) ^ not clear(z) ^ not on(x y) Move(a b c 1) => clear(a 0) ^ clear(b 0) ^ on(a b 0) Move(a b c 1) => on(a c 2) ^not clear(a 2) ^ not clear(b 2)

CS 5419 Encodings of Planning to SAT Frame Axioms Classical: (McCarthy & Hayes 1969) –state what fluents are left unchanged by an action –clear(d i-1) ^ move(a b c i) => clear(d i+1) –Problem: if no action occurs at step i nothing can be inferred about propositions at level i+1 –Sol: at-least-one axiom: at least one action occurs Explanatory: (Haas 1987) –State the causes for a fluent change –clear(d i-1) ^ not clear(d i+1) => (move(a b d i) v move(a c d i) v … move(c Table d i))

CS Encodings of Planning to SAT Operator Splitting To reduce size of instantiated formula (#vars) Normal = plan-length #actions objects max-act-arity Split = plan-length #actions objects max-act-arity –Replaces: drive(truck1 LA SF 5) –With: (drive-arg1(truck1 5) ^ drive-arg2(LA 5) ^ drive-arg3(SF 5))

CS KS96 Encodings: Linear (sequential) Same as KS92 Initial and Goal States Action implies both preconditions and its effects Only one action at a time Some action occurs at each time (allowing for do-nothing actions) Classical frame axioms Operator Splitting

CS KS96 Encodings: Graphplan-based Goal holds at last layer (time step) Initial state holds at layer 1 Fact at level i implies disjuntion of all operators at level i–1 that have it as an add- efffect Operators imply their preconditions Conflicting Actions (only action mutex explicit, fact mutex implicit)

CS Graphplan Encoding Fact => Act1  Act2 Act1 => Pre1  Pre2 ¬Act1  ¬Act2 Act1 Act2 Fact Pre1 Pre2

CS KS96 Encodings: State-based Assert conditions for valid states Combines graphplan and linear Action implies both preconditions and its effects Conflicting Actions (only action mutex explicit, fact mutex implicit) Explanatory frame axioms Operator splitting Eliminate actions (  state transition axioms)

CS Algorithms for SAT Systematic (complete: prove sat and unsat) –Davis-Putnam (1960) –Satz (Li & Anbulagan 1997) –Rel-Sat (Bayardo & Schrag 1997) Stochastic (incomplete: cannot prove unsat) –GSAT (Selman et al 1992) –Walksat (Selman et al 1994) Randomized Restarts (Gomes et al 1998)

CS Davis-Putnam algorithm function Satisfiable ( clause set S ) return boolean repeat /* unit propagation */ for each unit clause L in S do delete from S every clause containing L /* unit subsumption */ delete not L from every clause of S in which it occurs /*unit resolution*/ if S is empty then return true else if a clause becomes null in S then return false until no further changes result choose a literal L occurring in S /* splitting */ if Satisfiable ( S U L ) then return true else if Satisfiable ( S U {not L}) then return true else return false

CS Walksat For i=1 to max-tries A:= random truth assigment For j=1 to max-flips If solution?(A) then return A else C:= random unsatisfied clause With probability p flip a random variable in C With probability (1- p) flip the variable in C that minimizes the number of unsatisfied clauses

CS General Limited Inference Formula Simplification Generated wff can be further simplified by consistency propagation techniques Compact (Crawford & Auton 1996) –unit propagation (unit clauses) O(n) –failed literal rule O(n 2 ) if Wff + { P } unsat by unit propagation, then set p to false –binary failed literal rule: O(n 3 ) if Wff + { P, Q } unsat by unit propagation, then add (not p V not q) Experimentally reduces number of variables and clauses by 30% (Kautz&Selman 1999)

CS Randomized Sytematic Solvers Stochastic local search solvers (walksat) –when they work, scale well –cannot show unsat –fail on some domains Systematic solvers (Davis Putnam) –complete –seem to scale badly Can we combine best features of each approach?

CS 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

CS Heavy Tailed Cost Distribution

CS 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

CS Rapid Restart Speedup

CS Blackbox Results states 6,000 variables 125,000 clauses

CS AI Planning Systems Competition CMU, 1998 TeamNumber ofAverageFastestShortest problemssolutiononsolutions solvedtime (msec)for Blackbox (AT&T Labs) HSP (Venezuela) IPP8 (11)110361(3)6(8) (Germany) STAN (UK)