CSE 5731 Lecture 19 Reasoning about Time and Change CSE 573 Artificial Intelligence I Henry Kautz Fall 2001 Salvador Dali, Persistence of Memory.

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

REVIEW : Planning To make your thinking more concrete, use a real problem to ground your discussion. –Develop a plan for a person who is getting out of.
Planning Module THREE: Planning, Production Systems,Expert Systems, Uncertainty Dr M M Awais.
CLASSICAL PLANNING What is planning ?  Planning is an AI approach to control  It is deliberation about actions  Key ideas  We have a model of the.
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.
Finding Search Heuristics Henry Kautz. if State[node] is not in closed OR g[node] < g[LookUp(State[node],closed)] then A* Graph Search for Any Admissible.
1 Graphplan José Luis Ambite * [* based in part on slides by Jim Blythe and Dan Weld]
Situation Calculus for Action Descriptions We talked about STRIPS representations for actions. Another common representation is called the Situation Calculus.
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.
Planning Graphs * Based on slides by Alan Fern, Berthe Choueiry and Sungwook Yoon.
Planning CSE 473 Chapters 10.3 and 11. © D. Weld, D. Fox 2 Planning Given a logical description of the initial situation, a logical description of the.
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.
Artificial Intelligence 2005/06
AI – Week AI Planning – Plan Generation Algorithms: GraphPlan Lee McCluskey, room 2/09
CPSC 322, Lecture 18Slide 1 Planning: Heuristics and CSP Planning Computer Science cpsc322, Lecture 18 (Textbook Chpt 8) February, 12, 2010.
Planning Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 11.
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 BLACKBOX: A New Paradigm for Planning 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.
Classical Planning via State-space search COMP3431 Malcolm Ryan.
Planning II CSE 573. © Daniel S. Weld 2 Logistics Reading for Wed Ch 18 thru 18.3 Office Hours No Office Hour Today.
Classical Planning Chapter 10.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Feng Zhiyong Tianjin University Fall planning.
CS444-Autumn of 20 Planning as Satisfiability Henry Kautz University of Rochester in collaboration with Bart Selman and Jöerg Hoffmann.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
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.
First-Order Logic and Plans Reading: C. 11 (Plans)
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.
Ch. 13 Ch. 131 jcmt CSE 3302 Programming Languages CSE3302 Programming Languages (notes?) Dr. Carter Tiernan.
Introduction to Planning Dr. Shazzad Hosain Department of EECS North South Universtiy
CS 5411 Compilation Approaches to AI Planning 1 José Luis Ambite* Some slides are taken from presentations by Kautz and Selman. Please visit their.
AI Lecture 17 Planning Noémie Elhadad (substituting for Prof. McKeown)
CPSC 422, Lecture 21Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21 Oct, 30, 2015 Slide credit: some slides adapted from Stuart.
Classical Planning Chapter 10 Mausam / Andrey Kolobov (Based on slides of Dan Weld, Marie desJardins)
11 Artificial Intelligence CS 165A Thursday, October 25, 2007  Knowledge and reasoning (Ch 7) Propositional logic 1.
Graphplan.
Planning I: Total Order Planners Sections
Automated Planning and Decision Making Prof. Ronen Brafman Automated Planning and Decision Making Graphplan Based on slides by: Ambite, Blyth and.
CS357 Lecture 13: Symbolic model checking without BDDs Alex Aiken David Dill 1.
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.
Artificial Intelligence 2004 Planning: Situation Calculus Review STRIPS POP Hierarchical Planning Situation Calculus (John McCarthy) situations.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
1 Chapter 6 Planning-Graph Techniques. 2 Motivation A big source of inefficiency in search algorithms is the branching factor  the number of children.
Planning as Satisfiability
Planning as Search State Space Plan Space Algorihtm Progression
Classical Planning via State-space search
Review for the Midterm Exam
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
Class #19 – Monday, November 3
Chapter 6 Planning-Graph Techniques
Graphplan/ SATPlan Chapter
Graphplan/ SATPlan Chapter
[* based in part on slides by Jim Blythe and Dan Weld]
Presentation transcript:

CSE 5731 Lecture 19 Reasoning about Time and Change CSE 573 Artificial Intelligence I Henry Kautz Fall 2001 Salvador Dali, Persistence of Memory

CSE 5732 Representing Change So far we’ve talked about Ontologies that represent the eternal properties of kinds of objects How to represent change and action? Key notion:

CSE 5733 Time What is the shape of time?

CSE 5734 States States: a snapshot of time On(CAT99, MAT37, S0)  Warm(CAT99, S0)  On(CAT99, MAT37, S1)   Warm(CAT99, S1)  c,s. On(c, MAT37, s)  Warm(c, s) Alternative notation using terms instead of predicates: Holds(and(on(CAT99, MAT37),warm(CAT99)), S0) But I won’t use this notation!

CSE 5735 Actions We want to relate changes in the world over time to actions associated with those changes How are actions represented? 1.As functions from one state to another 2.As predicates that are true in the state in which they (begin to) occur

CSE 5736 Actions as Functions: “Situation Calculus” On(CAT99, MAT37, S0)  Warm(CAT99, S0)  On(CAT99, MAT37, kick(CAT99,S0)) kick(CAT99,S0) is the state that results from kicking CAT99 in state 0. kick(CAT99, pet(CAT99, S0)) = ? Branching time: Note: I personally love cats, and have two that I never kick!

CSE 5737 Actions as Predicates: “Action Calculus” On(CAT99, MAT37, S0)  Warm(CAT99, S0) Pet(CAT99, S0) On(CAT99, MAT37, S1)  Warm(CAT99, S1) Kick(CAT99, S1)  On(CAT99, MAT37, S2)   Warm(CAT99, S2) Can identify states with integers, or use a “next state” function: S1 1 next(S0) S2 2 next(next(S0)) Linear time:

CSE 5738 Issues How to relate an action to it’s preconditions – what must be when when the action begins to occur effects – what the action changes in the next state How to make sure facts that are not changed by any actions persist – the frame problem How to formally represent a planning problem: given an initial state and a goal, find a sequence of actions that achieves the goal

CSE 5739 Advantages of Action Calculus* Easy to represent parallel actions Kick(CAT99, S0)  Pet(DOG25, S0) Can talk about goals that must occur at specific times On(CAT99, MAT37, 5)  On(DOG25, MAT37, 8) Leads to an efficient planning algorithm based on satisfiability testing *The name “action calculus” is not standard in the literature. It is related to but simpler than Kowalski’s “event calculus”. It is nearly always associated with planning as satisfiability.

CSE Relating Actions to Preconditions & Effects Strips notation: Action: Fly( plane, start, dest ) Precondition: Airplane(plane), City(start), City(dest), At(plane, start) Effect: At(plane, dest),  At(plane, start) Pure strips: no negative preconditions! Need to represent logically: An action requires it’s predications An action causes it’s effects Interfering actions do not co-occur Changes in the world are the result of actions.

CSE Preconditions & Effects  plane, start, dest, s. Fly(plane, start, dest, s)  [ At(plane, start, s)  Airplane(plane,s)  City(start)  City(dest) ] Note: state indexes on predicates that never change not necessary.  plane, start, dest, s. Fly(plane, start, dest, s)  At(plane, dest, s+1) In action calculus, the logical representation of “requires” and “causes” is the same! Not a full blown theory of causation, but good enough…

CSE Interfering Actions Want to rule out: Fly( PLANE32, NYC, DETROIT, S4)  Fly( PLANE32, NYC, DETROIT, S4) Actions interfere if one changes a precondition or effect of the other They are mutually exclusive – “mutex”  p, c1, c2, c3, c4, s. [Fly(p, c1, c2, s)  (c1  c3  c2  c4) ]   Fly(p, c3, c4, s) (Similar for any other actions Fly is mutex with)

CSE Explanatory Axioms Don’t want world to change “by magic” – only actions change things If a proposition changes from true to false (or vice-versa), then some action that can change it must have occurred  plane, start, s. [ Airplane(plane)  City(start) At(plane,start,s)   At(plane,city,s+1) ]   dest. [ City(dest)  Fly(plane, start, dest, s) ]  plane, dest, s. [ Airplane(plane)  City(start)  At(plane,dest,s)  At(plane,dest,s+1) ]   start. [ City(start)  Fly(plane, start, dest, s) ]

CSE The Frame Problem General form of explanatory axioms: [ p(s)   p(s+1) ]  [ A1(s)  A2(s)  …  An(s) ] As a logical consequence, if none of these actions occurs, the proposition does not change [  A1(s)   A2(s)  …   An(s) ]  [ p(s)  p(s+1) ] This solves the “frame problem” – being able to deduce what does not change when an action occurs

CSE Frame Problem in AI Frame problem identified by McCarthy in his first paper on the situation calculus (1969) 667 papers in researchindex ! Lead to a (misguided?) 20 year effort to develop non-standard logics where no frame axioms are required (“non-monotonic”) 7039 papers! Haas and Schubert independently pointed out that explanatory axioms are pretty easy to write down

CSE The Planning Problem Given a description of an initial state, find a sequence of actions that achieves a goal state Initial: At(PLANE32,DETROIT)  At(PACKAGE88,NYC) Goal: At(PACKAGE88, CHICAGO) Plan: Fly(PLANE32,DETROIT,NYC, 1) Load(PACKAGE88,PLANE32,NYC, 2) Fly(PLANE32,NYC,CHICAGO, 3) Unload(PACKAGE88,PLANE32,CHICAGO, 4)

CSE With Parallel Actions Initial: At(PLANE32,DETROIT)  At(PACKAGE88,NYC)  At(PACKAGE16,NYC) Goal: At(PACKAGE88, CHICAGO)  At(PACKAGE16,CHICAGO) Plan: Fly(PLANE32,DETROIT,NYC, 1) Load(PACKAGE88,PLANE32,NYC, 2) Load(PACKAGE16,PLANE32,NYC, 2) Fly(PLANE32,NYC,CHICAGO, 3) Unload(PACKAGE88,PLANE32,NYC, 4) Unload(PACKAGE16,PLANE32,NYC, 4)

CSE Planning in Logic: Deduction The oldest approach to planning in the situation calculus was to do theorem-proving: Axioms  Initial   s. Goal(s) A theorem-prover can be designed to construct a name (compound term) for the state – that name is the plan! Example (only one airplane, not named): ? KB   s. At(P88, CHICAGO, s) might return s = unload(P88, fly(NYC, CHICAGO, load(P88, S0)))

CSE Planning in Logic: Deduction Much “formal” work on deductive planning. Does not scale beyond tiniest problems: Package delivery: 3 locations, 2 packages Blocks world: 4 blocks Success in scaling up satisfiability algorithms led to idea of planning as model-finding (Kautz & Selman 1993)

CSE Planning in Logic: Model- Finding Idea: in action calculus, simply assert that initial state holds at time 0, and goal holds at some time (in the future): Axioms  Initial   s. Goal(s) Any model that satisfies these assertions and the axioms for actions corresponds to a plan! Just read off the actions that are “true” in that model!

CSE Planning as Satisfiability We don’t have good model-finding algorithms for full FOL Instead, we do bounded model finding, i.e. satisfiability testing: 1.Assert goal holds at a particular time K 2.Ground out (instantiate) the theory up to time K 3.Try to find a model; if so, done! 4.Otherwise, increment K and repeat

CSE Grounding the Theory Expand first-order formulas by: Expanding variables that represent objects (airplanes, packages, etc) by all instances of that type –See discussion in Lecture 13/14 FOL on grounding theories! Expand state variables by integers 1 to K Blowup: K * (number objects) (max arity)

CSE Obvious Inefficiencies Given: At(PACKAGE88, NYC, 1) why create any ground formulas referring to At(PACKAGE88, CHICAGO, 1) since that proposition can never be true? Improvement: only instantiate propositions that could be reached by some sequence of actions Can compute this much more cheaply than actually solving planning problem!

CSE Reachability Analysis: Graphplan It turned out this kind of reachability analysis was performed by a different kind of planning algorithm, called Graphplan (Blum&Furst 1995) –read all about it in the handout Ch 11.4 Graphplan also computes some additional implied mutexes After reachability, the complete Graphplan planner performs backtracking search to see if goals can be reached simultaneously –reachability only checks for one goal at a time

CSE Blackbox = Reachability + Satisfiability Blackbox Planner (Kautz 1997) uses the first part of Graphplan (reachability analysis) to determine which propositions to instantiate Then formula is generated (up to a bounded length K) and checked for SAT –can specify Walksat, various kinds of DP –current best: CHAFF (version DP) –can also run Graphplan on reachability graph for a few seconds to catch “easy” cases If a solution found, then model is translated back to a parallel plan Else max length K is incremented, and repeat

CSE Improved Encodings Translations of Logistics.a: STRIPS  Axiom Schemas  SAT (Medic system, Weld et. al 1997) 3,510 variables, 16,168 clauses 24 hours to solve STRIPS  Plan Graph  SAT (Blackbox) 2,709 variables, 27,522 clauses 5 seconds to solve!

CSE How Well Does it Work? 1992 – first incarnation of SATPLAN (Kautz & Selman), competitive with other planners (UCPOP) at the time 1995 – Graphplan (Blum & Furst) best planning algorithm –Constraint-satisfaction style solver, but no explicit translation to SAT –Blew everything previous out of the water! 1996 – SATPLAN with new SAT solvers (walksat+new local search heuristics, satz-rand, etc.) –competitive with Graphplan – sometimes much faster – but requires hand-written axioms 1998 – Debut of Blackbox –Generates axioms automatically from STRIPS operators –Beats Graphplan when size & cost of generating formula small compared to graph search cost –Some domains kill it by blowing up size of formula: Blocks World, “Gripper” –Overall “winners” at AIP-98 competition were all constraint-based approaches (variants of SATPLAN and Graphplan)

CSE Results: Logistics Planning > 24 hours28 seclogistics.d > 24 hours9 seclogistics.c 13 minutes7 seclogistics.b 31 minutes5 seclogistics.a 55 sec5 secrocket.b GraphplanBlackbox

CSE Current State of the Art? Since 1998 there has been a sudden resurgence in a very early approach to planning… A* Search Next: when, why, and how A* works for planning Handout Ch 11.2