Download presentation
Presentation is loading. Please wait.
Published byLorena Willis Modified over 9 years ago
1
Domain-Independent Plan Adaptation Héctor Muñoz-Avila Department of Computer Science and Engineering Lehigh University USA
2
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
3
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
4
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
5
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)
6
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
7
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
8
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)
9
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: ? ?
10
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: ?
11
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) …
12
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
13
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
14
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
15
Abstract Example Initial state final state Initial plan: Plan-space refinement State-space refinement Plan-space refinement State-space refinement
16
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
17
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
18
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)
19
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’
20
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)
21
Search Space Traversal by TransUCP adjusted plan node Null plan node solution plan nodes Node A Node B
22
Example Case: New Problem:
23
Example: AdjustPlan Step New Problem: load(T2) move(T1,B) Move(T2,B) Move(T1,C) load(T1) Unload(T2) load(T1) Unload(T1) ? ?
24
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)
25
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
26
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
27
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)
28
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 ?
29
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 ( )
30
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
31
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?
32
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)
33
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
34
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
35
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)
36
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)
37
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’
38
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)?
39
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)
40
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
41
(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
42
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?
43
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)
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.