Domain-Independent Plan Adaptation Héctor Muñoz-Avila Department of Computer Science and Engineering Lehigh University USA.

Slides:



Advertisements
Similar presentations
Heuristic Search techniques
Advertisements

5.1 Real Vector Spaces.
Hierarchical Task Network (HTN) Planning Hai Hoang 4/17/2007.
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.
Exploiting Symmetry in Planning Maria Fox Durham Planning Group University of Durham, UK.
1 Graphplan José Luis Ambite * [* based in part on slides by Jim Blythe and Dan Weld]
Classical Planning via Plan-space search COMP3431 Malcolm Ryan.
1 1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 3 School of Innovation, Design and Engineering Mälardalen University 2012.
Copyright 2004 Koren & Krishna ECE655/DataRepl.1 Fall 2006 UNIVERSITY OF MASSACHUSETTS Dept. of Electrical & Computer Engineering Fault Tolerant Computing.
Best-First Search: Agendas
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.
CPSC 322, Lecture 23Slide 1 Logic: TD as search, Datalog (variables) Computer Science cpsc322, Lecture 23 (Textbook Chpt 5.2 & some basic concepts from.
CPSC 322, Lecture 19Slide 1 Propositional Logic Intro, Syntax Computer Science cpsc322, Lecture 19 (Textbook Chpt ) February, 23, 2009.
Artificial Intelligence 2005/06
1 Introduction to Computability Theory Lecture12: Decidable Languages Prof. Amos Israeli.
1 Introduction to Computability Theory Lecture15: Reductions Prof. Amos Israeli.
1 Introduction to Computability Theory Lecture12: Reductions Prof. Amos Israeli.
Planning Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 11.
Case-Based Reasoning, 1993, Ch11 Kolodner Adaptation method and Strategies Teacher : Dr. C.S. Ho Student : L.W. Pan No. : M Date : 1/7/2000.
Constraint Logic Programming Ryan Kinworthy. Overview Introduction Logic Programming LP as a constraint programming language Constraint Logic Programming.
3/25  Monday 3/31 st 11:30AM BYENG 210 Talk by Dana Nau Planning for Interactions among Autonomous Agents.
CPSC 322, Lecture 23Slide 1 Logic: TD as search, Datalog (variables) Computer Science cpsc322, Lecture 23 (Textbook Chpt 5.2 & some basic concepts from.
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.
Analysis of Algorithms CS 477/677
Planning Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 11.
On Solving Presburger and Linear Arithmetic with SAT Ofer Strichman Carnegie Mellon University.
1.1 Chapter 1: Introduction What is the course all about? Problems, instances and algorithms Running time v.s. computational complexity General description.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Classical Planning Chapter 10.
Issues with Data Mining
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
1 Plan-Space Planning Dr. Héctor Muñoz-Avila Sources: Ch. 5 Appendix A Slides from Dana Nau’s lecture.
(Classical) AI Planning. Some Examples Route search: Find a route between Lehigh University and the Naval Research Laboratory Project management: Construct.
General Purpose Case-Based Planning. General Purpose vs Domain Specific (Case-Based) Planning General purpose: symbolic descriptions of the problems and.
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:
Homework 1 ( Written Portion )  Max : 75  Min : 38  Avg : 57.6  Median : 58 (77%)
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Introduction Algorithms and Conventions The design and analysis of algorithms is the core subject matter of Computer Science. Given a problem, we want.
Chapter 8 Object Design Reuse and Patterns. Object Design Object design is the process of adding details to the requirements analysis and making implementation.
Formal Specification of Intrusion Signatures and Detection Rules By Jean-Philippe Pouzol and Mireille Ducassé 15 th IEEE Computer Security Foundations.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Automated Planning Dr. Héctor Muñoz-Avila. What is Planning? Classical Definition Domain Independent: symbolic descriptions of the problems and the domain.
Decision Trees Binary output – easily extendible to multiple output classes. Takes a set of attributes for a given situation or object and outputs a yes/no.
AI Lecture 17 Planning Noémie Elhadad (substituting for Prof. McKeown)
Problem Reduction So far we have considered search strategies for OR graph. In OR graph, several arcs indicate a variety of ways in which the original.
Intro to Planning Or, how to represent the planning problem in logic.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Strings Basic data type in computational biology A string is an ordered succession of characters or symbols from a finite set called an alphabet Sequence.
(Classical) AI Planning. General-Purpose Planning: State & Goals Initial state: (on A Table) (on C A) (on B Table) (clear B) (clear C) Goals: (on C Table)
1 Reasoning with Infinite stable models Piero A. Bonatti presented by Axel Polleres (IJCAI 2001,
Introduction to State Space Search
1 CMSC 471 Fall 2004 Class #21 – Thursday, November 11.
Automated Planning and Decision Making Prof. Ronen Brafman Automated Planning and Decision Making Graphplan Based on slides by: Ambite, Blyth and.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
CS623: Introduction to Computing with Neural Nets (lecture-7) Pushpak Bhattacharyya Computer Science and Engineering Department IIT Bombay.
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:
LINKED LISTS.
1 Passive Reinforcement Learning Ruti Glick Bar-Ilan university.
COP Introduction to Database Structures
Chapter 8: Concurrency Control on Relational Databases
Automated Planning & Computer Games: Perspectives and Applications
SNS College of Engineering Department of Computer Science and Engineering AI Planning Presented By S.Yamuna AP/CSE 5/23/2018 AI.
Abstraction Transformation & Heuristics
Knowledge Representation
Chapter 11 Limitations of Algorithm Power
Graphplan/ SATPlan Chapter
[* based in part on slides by Jim Blythe and Dan Weld]
Presentation transcript:

Domain-Independent Plan Adaptation Héctor Muñoz-Avila Department of Computer Science and Engineering Lehigh University USA

Topics General purpose versus domain specific Planning paradigms and named adaptation algorithms Universal Classical Planning (UCP) Transformational and Derivational Analogy in UCP Cases as Domain Knowledge Conclusions

General Purpose vs Domain Specific (Case-Based) Planning General purpose: symbolic descriptions of the problems and the domain. The (adaptation) generation rules are the same Domain Specific: The (adaptation) generation rules depend on the particular domain Advantage: - opportunity to have clear semantics Disadvantage: - symbolic description requirement Advantage: - can be very efficient Disadvantage: - lack of clear semantics - knowledge-engineering for adaptation (Case-Based) Planning: finding a sequence of actions to achieve a goal

Domain Specific: Chef Cases contain cooking recipes (plans) and there are rules indicating how to transform pieces of the recipes Typical transformation rules will indicate alternative ingredients and what steps need to be added/changed to adapt the recipe (Hammond, 1986) Example: if using broccoli instead of beans the cooking time need to be adjusted. The cases contain domain-knowledge and transformational adaptation is performed

Transformational adaptation: structural transformations are made to the plans Derivational transformation: Derivational vs. Transformational Adaptation (Carbonnel, 1986) Case: Plan step Case: sequence of planning decisions that led to the plan: Case Replay: re-applying those decisions relative to the new problem (I’ll define these formally later)

Topics General purpose versus domain specific Planning paradigms and named adaptation algorithms Universal Classical Planning (UCP) Transformational and Derivational Analogy in UCP Cases as Domain Knowledge Conclusions

Planning paradigms and named adaptation algorithms General purpose planners can be classified according to the space where the search is performed: SAT Task hierarchies Planning Graphs state-space plan-space Plan adaptation algorithms have been developed that improve running time performance

State-Space Plan Adaptation State-space planners transform the state of the world. These planners search for a sequence of transformations linking the starting state and a final state state Cases indicate sequence of state transformations ? New problem: Case: Derivational adaptation is used in Prodigy/Analogy (Veloso, 1994) (total order)

Plan-Space Plan Adaptation Plan-space planners transform the plans. These planners search for a a plan satisfying certain conditions Cases indicate sequences of plan transformations Derivational adaptation is used in derSNLP (Ihrig & Kambhampati, 1994); Caplan/CbC (Muñoz- Avila et al, 1994) (partial-order, least-commitment) New problem: Case: ? ?

Hierarchical Plan Adaptation Hierarchical planners refine high-level tasks into simpler ones until eventually actions are obtained. Cases indicate how tasks are decomposed Priar (Kambhampati & Hendler, 1992) task New problem: Case: ?

Planning Graph-based Plan Adaptation Disjunctive planners transform a special structure that contains all possible states that can be obtained from the initial state Adjust-plan (Gerevini & Serina, 2000):  Identifies inconsistencies between the new problem and the plan and pursues to repair the plan  Action’s precondition not satisfied  Goal in new problem not achieved  Pair of actions that are mutually exclusive Graphplan (Blum & Furst, 1997) …

Topics General purpose versus domain specific Planning paradigms and named adaptation algorithms Universal Classical Planning (UCP) Transformational and Derivational Analogy in UCP Cases as Domain Knowledge Conclusions

Loop: –If the current partial plan is a solution, then exit –Nondeterministically choose a way to refine the plan Some of the possible refinements –Forward & backward state-space refinement –Plan-space refinement –Hierarchical refinements Universal Classical Planning (UCP) (Khambampati, 1997) Plan-space partially instantiated steps, plus constraints add steps & constraints State-space

Partial Plans in UCP load(T2) move(T1,B) Move(T2,B) Move(T1,C)  load(T1) Unload(T2) load(T1) Unload(T1) Interval preservation constraint: atLocation(T1,B) Contiguity constraint ordering constraint

Abstract Example Initial state final state Initial plan: Plan-space refinement State-space refinement Plan-space refinement State-space refinement

Topics General purpose versus domain specific Planning paradigms and named adaptation algorithms Universal Classical Planning (UCP) Transformational and Derivational Analogy in UCP Cases as Domain Knowledge Conclusions

DerUCP: Universal Derivational Analogy (Chiu, Muñoz, & Nau, 2002) A case is a derivational trace of the sequence of decisions made to obtain a plan The breakthrough was being able to define what a refinement decision is in UCP. A decision in DerUCP consists of:  The kind of refinement forward/backward state-space, plan-space, etc.  The refinement goal: what portion of the partial plan is relevant for applying the refinement  The decision: which refinement was chosen from among the alternative refinements

Example of Refinement Forward state-space refinement (add an action at the head of a plan) The refinement decision includes –Refinement goal: the action-state s at the time the refinement was applied –Decision: what step t was chosen (out of the set of all steps whose preconditions are satisfied by s)

Transformational Analogy In transformational analogy a pre-selected plan is modified to solve a new problem. Possible modifications to the plan include: –Removing step(s) –Adding new step(s) –Changing the parameter(s) of the steps (binding constraints) – Addition/removal of ordering constraints –Addition/removal of contiguity constraints s 1  s 2 s3s3 s4s4 p s4s4 p s5s5 s4s4 p s4s4 p’ s5s5 s 1  s 2 s4s4 p’ s5s5  s5 s5 s 1  s 2 s4s4 p’

plan Adjust plan adjustedPlan refine plans in PlanPool planPool  {, } planPool yes planPool planPool empty? no failure! success! TransUCP retrieval problem case base is a solution? no success! yes (Vithal’s MS thesis has full diagram)

Search Space Traversal by TransUCP adjusted plan node Null plan node solution plan nodes Node A Node B

Example Case: New Problem:

Example: AdjustPlan Step New Problem: load(T2) move(T1,B) Move(T2,B) Move(T1,C)  load(T1) Unload(T2) load(T1) Unload(T1) ? ?

Example: Final Plan Generated New Problem: Move(T1,C) load(v1) load(T1) Unload(T1) Move(T1,D) load(T1) Move(T1,B) unload(T1) Steps kept from the case (5 total)

Some Plan Adaptation Algorithms/Systems SystemDerivationalDom. Ind.Transformational CHEF No  SPA Yes  MPA Yes  Priar Yes  Prodigy/Analogy  Yes CoBRA  No CAPlan/CbC  Yes derSNLP  Yes AdjustPlan Yes 

Topics General purpose versus domain specific Planning paradigms and named adaptation algorithms Universal Classical Planning (UCP) Transformational and Derivational Analogy in UCP –Theoretical results Cases as Domain Knowledge Conclusions

Some Theoretical Results “Conservative plan adaptation is harder (complexity-wise) than planning by first-principles” (Nebel & Koehler, 1995) An unified view allows to make analysis across multiple kinds of CBP systems “Derivational Adaptation for general purpose CBP systems is not conservative” (Chiu, Muñoz, & Nau, 2002) “Derivational Adaptation for general purpose CBP systems can reduce the search space exponentially compared to planning by first-principles” (Chiu, Muñoz, & Nau, 2002) Previous result also holds for transformational analogy (Vithal & Muñoz, 2006)

Complexity of Plan Adaptation Definitions from Nebel & Koehler (1995) Planning problem: a tuple  =  P,O,I,G  –P: a finite set of ground atoms Let L = {all possible literals}, i.e., L = P  {  p : p  P} –O: a finite set of operators of the form Pre  Post Pre  L and Post  L are the preconditions and effects –I  P is the initial state –G  L is the goal For complexity analysis, need to encode planning as a decision problem –a problem that has a yes/no answer PLAN-EXISTENCE (  ): –Given a planning problem  =  P,O,I,G , does there exist a plan  that solves  ?

A conservative plan-modification strategy: –Given a planning problem  =  P,O,I,G , a plan  that solves , and another planning problem  ' =  P,O,I',G'  –Find a plan  ' that solves  ' and reuses as much of  as possible This is an optimization problem Nebel & Koehler use the standard way of translating optimization problems into decision problems MODSAT ( , ,  ', k): –Given , , and  ' as above, is there a plan  ' that solves  ' and contains at least k steps of  ? Nebel & Koehler prove that –the worst-case complexity of MODSAT ( , ,  ', k) is worse than the worst-case complexity of PLAN-EXISTENCE (  )

Nebel & Koehler’s theorem does not apply to derivational/transformational analogy Derivational/transformaitonal analogy is not a conservative plan-modification strategy –It stops at the first decision record of  that isn’t applicable to  ' –It discards the remaining decision records of  A conservative strategy would instead try to fix the impasse –Add or revise plan steps, to enable adding more decision records from  Worst case: try all of the alternatives, to see if there is one that uses at least k steps of  Combinatorial explosion that does not occur with derivational analogy

Puzzle: Find a Conservative plan adaptation Case: New Problem: ` ` ` ` ` ` ?? Initial experiments suggest a density argument can be made showing it is unlikely that conservative plan can be made in this domain (Vithal & Muñoz, 2006)  But a general argument across many domains is still missing Looking for a PhD thesis?

Example: Conservative Plan Generated New Problem: Move(T1,C) load(T1) Unload(T1) Move(T1,B) load(T1) Move(T1,B) unload(T1) Move(T1,D) (6 steps kept from total)

Topics General purpose versus domain specific Planning paradigms and named adaptation algorithms Universal Classical Planning (UCP) Transformational and Derivational Analogy in UCP Cases as Domain Knowledge Conclusions

Why Enhancing The Domain Theory With Cases? In many practical applications, generating a complete domain theory is unpractical/unfeasible and episodic knowledge is available Example: Some kinds of military operations where two kinds of knowledge are available (Muñoz et al, 1999):  General guidelines and standard operational procedures which can be encoded as a (partial) domain theory  Whole compendium of actual operations and exercises which can be captured as cases general specific

Travel(UMD, Lehigh) Knowledge source Travel(UMD,National) Fly(National, L.V. International) Travel(L.V. Int’nal,Lehigh) domain Taxi(UMD,UMD-Metro) Metro(UMD-Metro,National) episodic Taxi(L.V. Int’nal,Lehigh) domain The SiN Algorithm (Muñoz et al, 2001) Hierarchical CBP system that combines domain knowledge and episodic knowledge (cases)

SiN: Knowledge Sources Algorithm Episodic Cases denote concrete task decompositions: Task: travelC( L.V. Int’nal,Lehigh ) Decomposition: take(taxi, L.V. Int’nal,Lehigh ) Conditions: enoughMoney() Domain Methods denote generic task decompositions and conditions for selecting those decompositions: Task: travel(A,B) Decomposition: travelC(A, Airp1) travelIC(Airp1,Airp2) travelC(Airp2, B) Conditions: in(A,City1) in(B,City2) airport(Airp1,City1) airport(Airp2,City2)

SiN: Definitions (Muñoz et al, 2001) We view cases as instances of unknown methods A case (T,ST,C) is an instance of a method (T’,ST’,C’) if there is a substitution  such that T = T’ , ST = ST’  and C = C’ 

SiN: Properties Given a domain theory I and a case base B, a domain theory DT is consistent with (I  B) if every case in B is an instance of a method in DT and I is a subset of DT DT Theorem: SiN produces plans that are correct with respect to domain theories that are consistent with its knowledge base Ok. So this works for hierarchical plan generation. What about other forms of planning (e.g., combining partial and total order)?

Universal SiN Idea: Use the notion of refinement decisions from DerUCP Tasks from SiN are a particular kind of refinement goal from DerUCP. Extend SiN to include other kinds of refinement goals Task decomposition is a particular kind of refinement. Extend SiN to include other kinds of refinements Extend decisions to include application of cases (concrete instances of methods or other knowledge artifacts as defined in UCP)

Universal SiN: Abstract Example Case C 1 : Case C 2 : First-principles planning with UCP Decision refinements Case C 1 Case C 2 copy case

(domain theory: I) (Case Base: B) Universal SiN Can Be Seen as derUCP Case C 1 : Case C 2 : UCP Case C 1 Case C 2 copy case Domain Theory: DT method/ Knowledge artifact method/ Knowledge artifact Instantiate Conjecture: From the view of DT applying a case simulates derivational replay since the case is telling which knowledge artifact to choose. Thus, Universal SiN cannot be conservative

Future Research Directions Extensions to derUCP and Universal SiN Given a collection of methods (knowledge artifacts) I and cases B, what is the most general domain theory that we can obtain that is consistent with (I  B) Instance of the problem: if only the case base CB is known Given a collection of cases for instances of derUCP, can we extract problem solving patterns?

Final Remarks For the derivational/transformational adaptation, the role of the cases can be seen as to provide refinement decisions. This view has important theoretical consequences Cases can help overcome the complete domain theory requirement of general purpose planners and still preserve clear semantics. We conjecture that this can be done without falling in worst case scenarios for plan adaptation Observation: For most planning paradigms, a plan adaptation algorithm has been built showing performance gains  State-space planning (Prodigy/Analogy)  Plan-space planning (derSNLP, CAPlan/CbC)  Planning Graphs (Adjust plan)  Heuristics planing (VHPOP+adaptation)