Fragment-Based Conformant Planning James Kurien Palo Alto Research Center Pandu NayakStratify, Inc. David E. SmithNASA Ames Research Center.

Slides:



Advertisements
Similar presentations
Hybrid BDD and All-SAT Method for Model Checking Orna Grumberg Joint work with Assaf Schuster and Avi Yadgar Technion – Israel Institute of Technology.
Advertisements

Construction process lasts until coding and testing is completed consists of design and implementation reasons for this phase –analysis model is not sufficiently.
Constraint Satisfaction Problems Russell and Norvig: Chapter
Planning with Non-Deterministic Uncertainty (Where failure is not an option) R&N: Chap. 12, Sect (+ Chap. 10, Sect 10.7)
Chaff: Engineering an Efficient SAT Solver Matthew W.Moskewicz, Concor F. Madigan, Ying Zhao, Lintao Zhang, Sharad Malik Princeton University Presenting:
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.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Resource Management §A resource can be a logical, such as a shared file, or physical, such as a CPU (a node of the distributed system). One of the functions.
MBD and CSP Meir Kalech Partially based on slides of Jia You and Brian Williams.
Top 5 Worst Times For A Conference Talk 1.Last Day 2.Last Session of Last Day 3.Last Talk of Last Session of Last Day 4.Last Talk of Last Session of Last.
1 Graphplan José Luis Ambite * [* based in part on slides by Jim Blythe and Dan Weld]
Counting the bits Analysis of Algorithms Will it run on a larger problem? When will it fail?
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2007.
Plan Generation & Causal-Link Planning 1 José Luis Ambite.
Parallel Programming Motivation and terminology – from ACM/IEEE 2013 curricula.
Master/Slave Architecture Pattern Source: Pattern-Oriented Software Architecture, Vol. 1, Buschmann, et al.
IPOG: A General Strategy for T-Way Software Testing
4/22: Scheduling (contd) Planning with incomplete info (start) Earth which has many heights, and slopes and the unconfined plain that bind men together,
Planning under Uncertainty
3/25  Monday 3/31 st 11:30AM BYENG 210 Talk by Dana Nau Planning for Interactions among Autonomous Agents.
Ryan Kinworthy 2/26/20031 Chapter 7- Local Search part 1 Ryan Kinworthy CSCE Advanced Constraint Processing.
GIPO [Graphical Interface for Planning with Objects] Demonstration case-tool for Knowledge Engineering to support Domain Independent Planning Ron Simpson.
Constraint Satisfaction Problems
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Parallel Programming with MPI and OpenMP Michael J. Quinn.
Handling non-determinism and incompleteness. Problems, Solutions, Success Measures: 3 orthogonal dimensions  Incompleteness in the initial state  Un.
Planning II CSE 473. © Daniel S. Weld 2 Logistics Tournament! PS3 – later today Non programming exercises Programming component: (mini project) SPAM detection.
MAE 552 – Heuristic Optimization
Lecture 5 Today’s Topics and Learning Objectives Quinn Chapter 7 Predict performance of parallel programs Understand barriers to higher performance.
Minh Do - PARC Planning with Goal Utility Dependencies J. Benton Department of Computer Science Arizona State University Tempe, AZ Subbarao.
1 BLACKBOX: A New Paradigm for Planning Bart Selman Cornell University.
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.
Chapter 5 Outline Formal definition of CSP CSP Examples
1 Planning Chapters 11 and 12 Thanks: Professor Dan Weld, University of Washington.
Planning II CSE 573. © Daniel S. Weld 2 Logistics Reading for Wed Ch 18 thru 18.3 Office Hours No Office Hour Today.
Simple search methods for finding a Nash equilibrium Ryan Porter, Eugene Nudelman, and Yoav Shoham Games and Economic Behavior, Vol. 63, Issue 2. pp ,
Classical Planning Chapter 10.
CSE 486/586 CSE 486/586 Distributed Systems PA Best Practices Steve Ko Computer Sciences and Engineering University at Buffalo.
Issues with Data Mining
(Classical) AI Planning. Some Examples Route search: Find a route between Lehigh University and the Naval Research Laboratory Project management: Construct.
Stochastic Algorithms Some of the fastest known algorithms for certain tasks rely on chance Stochastic/Randomized Algorithms Two common variations – Monte.
Lecture 9 TTH 03:30AM-04:45PM Dr. Jianjun Hu CSCE569 Parallel Computing University of South Carolina Department of.
Simultaneously Learning and Filtering Juan F. Mancilla-Caceres CS498EA - Fall 2011 Some slides from Connecting Learning and Logic, Eyal Amir 2006.
JETT 2005 Session 5: Algorithms, Efficiency, Hashing and Hashtables.
Conformant Probabilistic Planning via CSPs ICAPS-2003 Nathanael Hyafil & Fahiem Bacchus University of Toronto.
AI Lecture 17 Planning Noémie Elhadad (substituting for Prof. McKeown)
CS6502 Operating Systems - Dr. J. Garrido Deadlock – Part 2 (Lecture 7a) CS5002 Operating Systems Dr. Jose M. Garrido.
Arc Consistency CPSC 322 – CSP 3 Textbook § 4.5 February 2, 2011.
Ames Research Center Incremental Contingency Planning Richard Dearden, Nicolas Meuleau, Sailesh Ramakrishnan, David E. Smith, Rich Washington window [10,14:30]
(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)
Robust Planning using Constraint Satisfaction Techniques Daniel Buettner and Berthe Y. Choueiry Constraint Systems Laboratory Department of Computer Science.
1 CMSC 471 Fall 2004 Class #21 – Thursday, November 11.
Searching Topics Sequential Search Binary Search.
Automated Planning and Decision Making Prof. Ronen Brafman Automated Planning and Decision Making Graphplan Based on slides by: Ambite, Blyth and.
Graphplan CSE 574 April 4, 2003 Dan Weld. Schedule BASICS Intro Graphplan SATplan State-space Refinement SPEEDUP EBL & DDB Heuristic Gen TEMPORAL Partial-O.
Dynamic Backtracking Explained (clearly) Presented by Phil Oertel.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Understanding AI of 2 Player Games. Motivation Not much experience in AI (first AI project) and no specific interests/passion that I wanted to explore.
Hybrid BDD and All-SAT Method for Model Checking
SNS College of Engineering Department of Computer Science and Engineering AI Planning Presented By S.Yamuna AP/CSE 5/23/2018 AI.
Reading B. Williams and P. Nayak, “A Reactive Planner for a Model-based Executive,” International Joint Conference on Artificial Intelligence, 1997.
Planning as Search State Space Plan Space Algorihtm Progression
Computer Science cpsc322, Lecture 13
SAT-Based Area Recovery in Technology Mapping
Massive Parallelization of SAT Solvers
IPOG: A General Strategy for T-Way Software Testing
Class #20 – Wednesday, November 5
Heuristics Local Search
Graphplan/ SATPlan Chapter
[* based in part on slides by Jim Blythe and Dan Weld]
Presentation transcript:

Fragment-Based Conformant Planning James Kurien Palo Alto Research Center Pandu NayakStratify, Inc. David E. SmithNASA Ames Research Center

Motivation: Planning for Spacecraft Recovery ClosedOpen Stuck Valve System failures lead to uncertainty Internal actions are fairly reliable but do fail System interactions are complex Observability is limited Diagnosis yields multiple states ranked by magnitude of probability The system must choose actions to respond to the failure Under certain conditions an action may be damaging or disallowed

Conformant Planning Problem Instance –Let Domain be a description of a planning domain –Let Worlds be a set of initial states of the domain, {w 1, w 2, … w n } –Let G be a goal description –There are no sensing actions Task: Find plan P that applied to any w i results in a state entailing G P is a conformant plan Challenge: Actions chosen in w i may have undesirable effects in w j P w1,w2,…wnw1,w2,…wn G

Existing Approaches to Conformant Planning Generate a plan in w i and test if it achieves G in all Worlds CGPSmith & Weld 1998Graphplan over multiple plan graphs CMBPCimatti & Roveri 1999BDD representation of belief state GPTBonet & Geffner 2001Heuristic search in space of belief states HSCPBertoli, Cimatti & Roveri 2001BDD + heuristic search CPlanCastellini, Giunchiglia & Tachella 2001 SAT encoding determines possible plans which must be checked Select actions for P by considering all Worlds simultaneously

An Observation on Conformant Plans Plan Step Action 1Dunk p3 2Flush 3Dunk p2 4Flush 5Dunk p1 6Flush 7Dunk p6 8Flush 9Dunk p4 10Flush 11Dunk p5 Bomb in the Toilet 6 packages, 1 toilet Example Domain: Bomb in the Toilet –Set of N packages, p1 through pN –Packages may have bombs (1, many, a subset) –Bombs defused by dunking the package in the toilet –The toilet must be flushed before dunking again Example Problem –1 toilet –6 packages –A bomb is in p1, p2, p3, p5 or (p4 & p6)

An Observation on Conformant Plans Example Domain: Bomb in the Toilet –Set of N packages, p1 through pN –Packages may have bombs (1, many, a subset) –Bombs defused by dunking the package in the toilet –The toilet must be flushed before dunking again Plan Step Action 1Dunk p3 2Flush 3Dunk p2 4Flush 5Dunk p1 6Flush 7Dunk p6 8Flush 9Dunk p4 10Flush 11Dunk p5 Bomb in the Toilet 6 packages, 1 toilet Fragment if bomb in p1

An Observation on Conformant Plans Example Domain: Bomb in the Toilet –Set of N packages, p1 through pN –Packages may have bombs (1, many, a subset) –Bombs defused by dunking the package in the toilet –The toilet must be flushed before dunking again Plan Step Action 1Dunk p3 2Flush 3Dunk p2 4Flush 5Dunk p1 6Flush 7Dunk p6 8Flush 9Dunk p4 10Flush 11Dunk p5 Bomb in the Toilet 6 packages, 1 toilet Fragment if bomb in p1 Fragment if bombs in p6 and p4

An Observation on Conformant Plans Example Domain: Bomb in the Toilet –Set of N packages, p1 through pN –Packages may have bombs (1, many, a subset) –Bombs defused by dunking the package in the toilet –The toilet must be flushed before dunking again Plan Step Action 1Dunk p3 2Flush 3Dunk p2 4Flush 5Dunk p1 6Flush 7Dunk p6 8Flush 9Dunk p4 10Flush 11Dunk p5 Bomb in the Toilet 6 packages, 1 toilet Fragment if bombs in p6 and p4 Fragment if bomb in p1 Repair action to unify fragments

An Observation on Conformant Plans Every conformant plan P must contain a fragment that achieves the goal in each world Each world has plans that are fragments of some P Approach: Grow a set of fragments into a conformant plan Plan Step Action 1Dunk p3 2Flush 3Dunk p2 4Flush 5Dunk p1 6Flush 7Dunk p6 8Flush 9Dunk p4 10Flush 11Dunk p5 Bomb in the Toilet 6 packages, 1 toilet Example Domain: Bomb in the Toilet –Set of N packages, p1 through pN –Packages may have bombs (1, many, a subset) –Bombs defused by dunking the package in the toilet –The toilet must be flushed before dunking again

Fragment-based Conformant Planning Intuition For each w i in Worlds 1. Generate a plan for Domain to achieve G in w i 2. Add the planned actions to Domain Step 2 ensures the plan for w i+1 includes the actions that achieved G in {w 1 … w i }

Fragment-based Conformant Planning Plan Step Plan for p1 1Dunk p Planning Process

Fragment-based Conformant Planning Plan Step Plan for p1 Fragments for p2 plan 1Dunk p Planning Process

Fragment-based Conformant Planning Plan Step Plan for p1 Fragments for p2 plan Plan for {p1,p2} 1Dunk p1 2 3Flush 4 5Dunk p2 Planning Process

Fragment-based Conformant Planning Plan Step Plan for p1 Fragments for p2 plan Plan for {p1,p2} Extracted fragment 1Dunk p1 2 3Flush 4 5Dunk p2 Planning Process

Fragment-based Conformant Planning Plan Step Plan for p1 Fragments for p2 plan Plan for {p1,p2} Extracted fragment Fragments for p3 plan 1Dunk p1 2 3Flush 4 5Dunk p2 Planning Process

Fragment-based Conformant Planning Plan Step Plan for p1 Fragments for p2 plan Plan for {p1,p2} Extracted fragment Fragments for p3 plan Plan for {p1,p2,p3} 1Dunk p1 2Flush 3 Dunk p3 4Flush 5Dunk p2 Planning Process Search will be required –The fragment chosen for w1 may not allow a plan for w2 –The fragment chosen for w2 may disrupt the plan for w1

The FragPlan Algorithm completed=  While (Worlds   ) select and remove world w i from Worlds Choose a plan P i for Domain that achieves G in w i Fail if P i doesn’t achieve G for all w  completed Extract fragment F i from P i Domain = Domain + F i add w i to completed Return P i

Search Strategies Chronological Backtracking Probing –Extend fragments to as many worlds as possible, then restart –On failure, discard all fragments and empty completed –Effective even when a small subset of worlds are very difficult –Fits well with deterministic planner we use to choose P i for w i Bubbling –Find difficult worlds. Solve first by moving them up the stack. w1w1 F1F2F3 w3w3 F1F2F3 w2w2 F1F2F3 W 1 fragments First world selected

Implementation No actions with conditional outcomes in current implementation –Planning graph cannot represent conditional outcome –Conditional extension (Gazen & Knoblock 1997) not applicable No non-deterministic actions Essentially conformant BlackBox (Kautz & Selman 99) Graph Builder Graph to WFF SAT (satz) WFF Plan Graph BlackBox Planning Domain Plan P i Fragments wiwi PDDL Worlds Specification Fragment Extraction Search Control FragPlan Conformant Plan

Experimental Setup FragPlan tested on a number of domains –Several variations of the bomb in the toilet problem –Modified ringworld with no uncertain outcomes –Logistics domain with uncertainty Compared to performance quoted in the literature –CMBP, C-Plan, GTP from (Castellini, Giunchiglia, & Tacchella 2001) –HSCP from (Bertoli, Cimatti, & Roveri 2001) FragPlan performance averaged over 30 probing runs

Performance on Bomb in the Toilet Problems HSCP dominates on serial instances FragPlan is balanced –HSCP, CMBP, GPT do not produce parallel plans –C-Plan does poorly on serial instances of this problem

10 Package Bomb in the Toilet with Parallelism Space of serialized plans explodes as parallelism increases Parallelism renders fragments independent, yielding linear speedup

FragPlan Performance on Many Worlds Independent sources of uncertainty yield many worlds Less planning, more checking –Fragment for n independent events is often a plan for each –If n is high, a few fragments yield a conformant plan. –In effect the plan is only checked on the remaining worlds Constant space usage, except for fragments – N rooms with window open, closed or locked  3 n worlds ( NKNK ) – K bombs in N packages  worlds

Handling Non-Deterministic Actions Action A has n possible outcomes Disjunction doesn’t ensure conformance A Effect 1 Effect 2 or Worlds {w 1 w 2 }

Handling Non-Deterministic Actions Action A has n possible outcomes Disjunction doesn’t ensure conformance A Effect 1 Effect 2 or Worlds {w 1 w 2 } Worlds {w 1,P w 1,P w 2,P w 2,P } A’ Effect 1 Effect 2 P P

Handling Non-Deterministic Actions Action A has n possible outcomes Disjunction doesn’t ensure conformance A Effect 1 Effect 2 or Worlds {w 1 w 2 } Worlds {w 1,P w 1,P w 2,P w 2,P } A’ Effect 1 Effect 2 P P Algorithm changes –Implement conditional effects –Generate plan P i for one execution in w i using A –Substitute A’/A in P i. –Split completed worlds and w i –Check P i in all worlds, as before

Message Performs well on both serial and parallel problems More scalable than other possible worlds approaches –Memory usage is constant as the number of worlds increases –Computation is less susceptible to explosive growth Probing is effective Constructive approach –Always have a plan –Conformance increases in an anytime manner –Can delete and add worlds and re-use partial results

Motivation: Planning for Spacecraft Recovery Complex Plan Utility Function No safe, conformant plan may exist Safety always desired, often dominates Certain goals dominate at critical junctures A failure may force all actions to be unsafe Time for planning not known a priori We must have some plan Given: Utility function on goals, safety, and worlds Return: Best plan the available time allows Initial State Uncertainty Internal actions are fairly reliable Systems are complex Observability is limited Failures yield multiple diagnoses ClosedOpen Stuck Valve

Safe, Conformant Planning with Optimization Problem Instance –Let Domain be a description of a planning domain –Let Worlds be a set of initial states of the domain, {w 1, w 2, … w n } –Let G be a set of goals –Let S be a set of safety constraints –Let U be a function from (world x goal x safety) ->  Task: –Find a plan P with highest U (in available time) Challenge: –Which subsets of {G  S  Worlds} admit a plan? –Will we have a plan when time runs out?

SCOPE – Safe, Conformant, Optimizing Planning Engine Approach: Manipulate the scope of the problem While (Time  0) select constraints from {G  S  Worlds} FragPlan(constraints)

SCOPE – Safe, Conformant, Optimizing Planning Engine Approach: Manipulate the scope of the problem While (Time  0) select constraints from {G  S  Worlds} FragPlan(constraints) for some time Balance solving current constraints vs. exploration

SCOPE – Safe, Conformant, Optimizing Planning Engine Approach: Manipulate the scope of the problem While (Time  0) select constraints from {G  S  Worlds} FragPlan(constraints) for some time Strategy: Start small and grow –On success, add constraints guided by U(world x goal x safety) –Anytime

SCOPE – Safe, Conformant, Optimizing Planning Engine Approach: Manipulate the scope of the problem While (Time  0) select constraints from {G  S  Worlds} FragPlan(constraints) for some time Strategy: Start small and grow –On success, add constraints guided by U(world x goal x safety) –Anytime Strategy: Start big, shrink –Failures reveal difficult constraint combinations –On failure, remove constraints guided by U, difficulty