1 BLACKBOX: A New Paradigm for Planning Bart Selman Cornell University.

Slides:



Advertisements
Similar presentations
Learning to Improve the Quality of Plans Produced by Partial-order Planners M. Afzal Upal Intelligent Agents & Multiagent Systems Lab.
Advertisements

Constraint Based Reasoning over Mutex Relations in Graphplan Algorithm Pavel Surynek Charles University, Prague Czech Republic.
Interactive Configuration
Planning Module THREE: Planning, Production Systems,Expert Systems, Uncertainty Dr M M Awais.
State Transition Systems  linear planning  bounded model checking  conditional planning  model checking  state transition description languages: oPDDL.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
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)
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 Backdoor Sets in SAT Instances Ryan Williams Carnegie Mellon University Joint work in IJCAI03 with: Carla Gomes and Bart Selman Cornell University.
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.
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.
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.
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.
1 Backdoors To Typical Case Complexity Ryan Williams Carnegie Mellon University Joint work with: Carla Gomes and 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)
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…
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: Progress and Challenges Bart Selman Cornell University.
Classical Planning Chapter 10.
Planning as Satisfiability CS Outline 0. Overview of Planning 1. Modeling and Solving Planning Problems as SAT - SATPLAN 2. Improved Encodings using.
Scalable Knowledge Representation and Reasoning Systems Henry Kautz AT&T Shannon Laboratories.
The Role of Domain-Specific Knowledge in the Planning as Satisfiability Framework Henry Kautz AT&T Labs Bart Selman Cornell University.
CS444-Autumn of 20 Planning as Satisfiability Henry Kautz University of Rochester in collaboration with Bart Selman and Jöerg Hoffmann.
Satisfiability and State- Transition Systems: An AI Perspective Henry Kautz University of Washington.
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.
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.
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.
Explorations in Artificial Intelligence Prof. Carla P. Gomes Module Logic Representations.
On the Relation between SAT and BDDs for Equivalence Checking Sherief Reda Rolf Drechsler Alex Orailoglu Computer Science & Engineering Dept. University.
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.
Robust Planning using Constraint Satisfaction Techniques Daniel Buettner and Berthe Y. Choueiry Constraint Systems Laboratory Department of Computer Science.
1 Propositional Logic Limits The expressive power of propositional logic is limited. The assumption is that everything can be expressed by simple facts.
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.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Inference in Propositional Logic (and Intro to SAT)
Inference and search for the propositional satisfiability problem
CS 4700: Foundations of Artificial Intelligence
Planning as Satisfiability
Planning as Search State Space Plan Space Algorihtm Progression
Lecture 7 Constraint Satisfaction Problems
Class #17 – Thursday, October 27
Planning as Satisfiability with Blackbox
Graphplan/ SATPlan Chapter
Planning as Satisfiability
Emergence of Intelligent Machines: Challenges and Opportunities
Compute-Intensive Methods in AI: New Opportunities for Reasoning and Search Bart Selman Cornell University 1 1.
Class #19 – Monday, November 3
Graphplan/ SATPlan Chapter
Graphplan/ SATPlan Chapter
Presentation transcript:

1 BLACKBOX: A New Paradigm for Planning Bart Selman Cornell University

2 Search as Inference: Direct Abstract problem specification General inference (NP complete) Solution Model in propositional logic

3 State-space Planning Find a sequence of operators that transform an initial state to a goal state State = complete truth assignment to a set of variables (fluents) Goal = partial truth assignment (set of states) Operator = a partial function State  State specified by three sets of variables: precondition, add list, delete list

4 Some Applications of Planning Autonomous systems NASA Deep Space One Remote Agent Softbots - software robots Internet agents, program assistants Bots, characters in games Program verification Jackson (1998) - finding bugs in protocols - is there a sequence of actions that reaches an error state?

5 SATPLAN (Kautz & Selman 1996) STRIPS Model in propositional logic Walksat SAT engine Solution

6 Lessons from SATPLAN A general propositional theorem prover outperformed traditional AI planning systems (UCPOP, Nonlin, Prodigy,...) Power of propositional logic –much better scaling than attempts in 1970’s using first-order theorem proving Fast SAT engines –stochastic search - walksat –large SAT/CSP community sharing ideas and code –older planning systems can be viewed as adhoc, incomplete, poorly understood theorem provers! Importance of modeling –different axiomatizations can have vastly different computational properties

7 Graphplan (Blum & Furst 1996) Planning as graph search Like SATPLAN... Two phases: instantiation of propositional structure, followed by search Plan graph is very close to CNF Unlike SATPLAN… Takes STRIPS operators directly as input Interleaves instantiation and pruning of plan graph –results in much smaller structure Employs specialized search engine Graphplan - better instantiation SATPLAN - better search Goal: Combine best features of both systems

8 Where Graphplan Gets its Power During instantiation, Graphplan computes mutex relationships between incompatible actions used for pruning, and later speeding search mutex algorithm is actually a form of limited resolution on binary negative clauses! polytime preprocessing O(n 2 ) Issue: research on graphplan failed to discover any useful extensions to mutex algorithm Can general polytime limited inference algorithms discover other kinds of useful local information?

9 Multistep Problem Reformulation Domain specific model Polytime domain specific inference Combinatorial core - general language Full general inference (NP complete) Solution Polytime general inference Abstract problem specification

10 Blackbox STRIPS Plan Graph Mutex computation CNF Translation Stochastic / Systematic SAT engines Solution Limited resolution - failed literal rule

11 Intuition Many real-world problems not tractable, but are nearly so domain specific polytime inference takes advance of special kinds of structure small number of practical methods for combinatorial core –can be highly optimized –limited inference: variations of constraint propagation –full inference: local search, smart backtracking, *randomized backtracking

12 Translation to CNF Fact  Act1  Act2 Act1  Pre1  Pre2 ¬Act1  ¬Act2 Act1 Act2 Fact Pre1 Pre2 Alternating layers of facts and actions fully factored (nodes are propositions, not states!) Not all atoms in a layer can hold simultaneously solution = subgraph containing all goals, all supports, no mutexes

13 General Limited Inference Generated wff can be further simplified by consistency propagation techniques Compact (Crawford & Auton 1996) unit propagation: is Wff inconsistant by resolution against unit clauses? O(n) failed literal rule: is Wff + { P } inconsistant by unit propagation? O(n 2 ) binary failed literal rule: is Wff + { P V Q } inconsistant by unit propagation? O(n 3 ) Complements domain specific limited inference Discovers hidden local structure!

14 General Limited Inference

15 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?

16 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

17 Heavy Tailed Cost Distribution

18 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

19 Rapid Restart Speedup

20 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

21 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

22

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

24 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)

25 Notes All finalists based on SATPLAN, Graphplan, or A* ! Traditional non-linear planning no longer competitive Knowledge-intensive approaches require too much human effort Other new techniques Type-theoretic analysis of operators: can infer state invariants (package only in one vehicle, etc.) –powerful, generally applicable pre-processor Compilation of more expressive languages (conditional effects) to STRIPS Recent extensions to MDP’s of A* (Geffner), Graphplan (Blum), SATPLAN (Littman)

26 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

27 Current Research Issues Incorporating explicit domain knowledge (Kautz & Selman, 1998) state invariants optimality conditions declarative constraints - independent of search engine More expressive planning languages: optimizing resources can view bounded integer linear programming as generalization of SAT ILPPLAN - adapts SATPLAN framework to ILP, solve with WSAT(OIP) (local search for ILP) Initial results - can find better quality solutions (counting action costs) than previously known for benchmark logistics & scheduling problems (Kautz & Walser 1999)