Eyal Amir (UC Berkeley) Barbara Engelhardt (UC Berkeley)

Slides:



Advertisements
Similar presentations
Poly-Logarithmic Approximation for EDP with Congestion 2
Advertisements

Constraint Based Reasoning over Mutex Relations in Graphplan Algorithm Pavel Surynek Charles University, Prague Czech Republic.
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.
Probabilistic Planning (goal-oriented) Action Probabilistic Outcome Time 1 Time 2 Goal State 1 Action State Maximize Goal Achievement Dead End A1A2 I A1.
Situation Calculus for Action Descriptions We talked about STRIPS representations for actions. Another common representation is called the Situation Calculus.
Hierarchical Task and Motion Planning in Now Leslie P. Kaelbling and Tomas Lozano-Perez Department of Computer Science & Engineering, MIT Kai Liu June.
Dynamic Bayesian Networks (DBNs)
Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus.
Belief Propagation by Jakob Metzler. Outline Motivation Pearl’s BP Algorithm Turbo Codes Generalized Belief Propagation Free Energies.
Generalizing Plans to New Environments in Relational MDPs
CPSC 322, Lecture 4Slide 1 Search: Intro Computer Science cpsc322, Lecture 4 (Textbook Chpt ) January, 12, 2009.
Concurrent Markov Decision Processes Mausam, Daniel S. Weld University of Washington Seattle.
A Summary of the Article “Intelligence Without Representation” by Rodney A. Brooks (1987) Presented by Dain Finn.
Solving Factored POMDPs with Linear Value Functions Carlos Guestrin Daphne Koller Stanford University Ronald Parr Duke University.
Brent Dingle Marco A. Morales Texas A&M University, Spring 2002
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Parallel Programming in C with MPI and OpenMP Michael J. Quinn.
Stochastic greedy local search Chapter 7 ICS-275 Spring 2007.
Constant Factor Approximation of Vertex Cuts in Planar Graphs Eyal Amir, Robert Krauthgamer, Satish Rao Presented by Elif Kolotoglu.
A1A1 A4A4 A2A2 A3A3 Context-Specific Multiagent Coordination and Planning with Factored MDPs Carlos Guestrin Shobha Venkataraman Daphne Koller Stanford.
Graph Coalition Structure Generation Maria Polukarov University of Southampton Joint work with Tom Voice and Nick Jennings HUJI, 25 th September 2011.
Chapter 3 Parallel Algorithm Design. Outline Task/channel model Task/channel model Algorithm design methodology Algorithm design methodology Case studies.
Hybrid Behavior Co-evolution and Structure Learning in Behavior-based Systems Amir massoud Farahmand (a,b,c) (
1 Constraints for Multimedia Presentation Generation Joost Geurts, Multimedia and Human-Computer Interaction CWI Amsterdam
DRAGO: Distributed Reasoning Architecture for the Semantic Web Andrei Tamilin and Luciano Serafini Work is supported by 1 June 2005 Second European Semantic.
Solving Large Markov Decision Processes Yilan Gu Dept. of Computer Science University of Toronto April 12, 2004.
Knowledge Repn. & Reasoning Lec #11: Partitioning & Treewidth UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004.
Lyra – A service-oriented and component-based method for the development of communicating systems (by Sari Leppänen, Nokia/NRC) Traditionally, the design,
Simultaneously Learning and Filtering Juan F. Mancilla-Caceres CS498EA - Fall 2011 Some slides from Connecting Learning and Logic, Eyal Amir 2006.
Lecture 4 TTH 03:30AM-04:45PM Dr. Jianjun Hu CSCE569 Parallel Computing University of South Carolina Department of.
Decision Making Under Uncertainty CMSC 471 – Spring 2041 Class #25– Tuesday, April 29 R&N, material from Lise Getoor, Jean-Claude Latombe, and.
Decision Making Under Uncertainty Lec #1: Introduction UIUC CS 598: Section EA Professor: Eyal Amir Spring Semester 2005.
1 CMSC 471 Fall 2004 Class #21 – Thursday, November 11.
1 Propositional Logic Limits The expressive power of propositional logic is limited. The assumption is that everything can be expressed by simple facts.
1 Instance Store Database Support for Reasoning over Individuals S Bechhofer, I Horrocks, D Turi. Instance Store - Database Support for Reasoning over.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
Reducing Structural Bias in Technology Mapping
SMART VACUUM CLEANER PRESENTED BY PROJECT PRESENTATION CSE 591
Algorithms and Problem Solving
Hans Bodlaender, Marek Cygan and Stefan Kratsch
Chapter 17: Designing an Architecture
Resolution in the Propositional Calculus
Knowledge Evolution Tools
Consistency Methods for Temporal Reasoning
Parallel Programming By J. H. Wang May 2, 2017.
Lecture 22 Complexity and Reductions
Review for the Midterm Exam
Brad Clement and Ed Durfee Artificial Intelligence Laboratory
Artificial Intelligence Problem solving by searching CSC 361
Alan Mishchenko Robert Brayton UC Berkeley
Chapter 6. Large Scale Optimization
For convex optimization
Brad Clement and Ed Durfee Artificial Intelligence Laboratory
CIS 488/588 Bruce R. Maxim UM-Dearborn
Sungho Kang Yonsei University
Class #20 – Wednesday, November 5
Hierarchical Search on DisCSPs
CS 584 Lecture7 Assignment -- Due Now! Paper Review is due next week.
Robot Intelligence Kevin Warwick.
Divide-and-Conquer 7 2  9 4   2   4   7
Hierarchical Search on DisCSPs
Compact Propositional Encoding of First Order Theories
CRISP Process Stephen Wyrick.
Parallel Programming in C with MPI and OpenMP
Tantan Liu, Fan Wang, Gagan Agrawal The Ohio State University
Chapter 6. Large Scale Optimization
Class #17 – Tuesday, October 30
Information Systems in Organizations 2
Multidisciplinary Optimization
Presentation transcript:

Eyal Amir (UC Berkeley) Barbara Engelhardt (UC Berkeley) Factored Planning Eyal Amir (UC Berkeley) Barbara Engelhardt (UC Berkeley) Basic goal. – state in page 2 Factored Planning

Motivation Planning in structured domains Scale up planners to large domains Avoid backtracking of search for plans Techniques: Similar to structured exact logical and probabilistic reasoning (Pearl’88), (Dechter & Rish’94), (Amir & McIlraith ’00,’01), (McCartney etal. ’03) Factored Planning

Talk Outline Factored domains Factored planning algorithm Decomposition algorithm Factored Planning

Example Planning Domain Room 1 (20 windows) Room 2 (20 windows) Fluents: closed(x), done1, done2, at1, at2 Actions: close(x), move-R, move-L Goal: done1,done2 (all windows closed) Initial state: at2 Factored Planning

Example Planning Domain move-left 2. close(1), close(2), … 3. move-right close(21), close(22), … Fluents: closed(x), done1, done2, at1, at2 Actions: close(x), move-R, move-L Goal: done1,done2 (all windows closed) Initial state: at2 Factored Planning

Example Planning Domain Room 1 (20 windows) Room 2 (20 windows) at2 Fluents: closed(x), done1, done2, at1, at2 Actions: close(x), move-R, move-L Goal: done1,done2 (all windows closed) Initial state: at2 Factored Planning

Example Planning Domain Room 1 (20 windows) Room 2 (20 windows) at2 Fluents: closed(x), done1, done2, at1, at2 Actions: close(x), move-R, move-L Goal: done1,done2 (all windows closed) Initial state: at2 Factored Planning

Example Planning Domain Room 1 (20 windows) Room 2 (20 windows) at1 Fluents: closed(x), done1, done2, at1, at2 Actions: close(x), move-R, move-L Goal: done1,done2 (all windows closed) Initial state: at2 Factored Planning

Example Planning Domain Room 1 (20 windows) Room 2 (20 windows) at1 Fluents: closed(x), done1, done2, at1, at2 Actions: close(x), move-R, move-L Goal: done1,done2 (all windows closed) Initial state: at2 Factored Planning

Example Planning Domain Room 1 (20 windows) Room 2 (20 windows) at1 Fluents: closed(x), done1, done2, at1, at2 Actions: close(x), move-R, move-L Goal: done1,done2 (all windows closed) Initial state: at2 Factored Planning

Example Planning Domain Room 1 (20 windows) Room 2 (20 windows) done1 at1 Fluents: closed(x), done1, done2, at1, at2 Actions: close(x), move-R, move-L Goal: done1,done2 (all windows closed) Initial state: at2 Factored Planning

Example Planning Domain Room 1 (20 windows) Room 2 (20 windows) done1 at1 Fluents: closed(x), done1, done2, at1, at2 Actions: close(x), move-R, move-L Goal: done1,done2 (all windows closed) Initial state: at2 Factored Planning

Example Planning Domain Room 1 (20 windows) Room 2 (20 windows) done1 at2 Fluents: closed(x), done1, done2, at1, at2 Actions: close(x), move-R, move-L Goal: done1,done2 (all windows closed) Initial state: at2 Factored Planning

Example Planning Domain Room 1 (20 windows) Room 2 (20 windows) done1 at2 Fluents: closed(x), done1, done2, at1, at2 Actions: close(x), move-R, move-L Goal: done1,done2 (all windows closed) Initial state: at2 Factored Planning

Example Planning Domain Room 1 (20 windows) Room 2 (20 windows) done1 at2 Fluents: closed(x), done1, done2, at1, at2 Actions: close(x), move-R, move-L Goal: done1,done2 (all windows closed) Initial state: at2 Factored Planning

Example Planning Domain Room 1 (20 windows) Room 2 (20 windows) done1 done2 at2 Fluents: closed(x), done1, done2, at1, at2 Actions: close(x), move-R, move-L Goal: done1,done2 (all windows closed) Initial state: at2 Factored Planning

Example Planning Domain move-left 2. close(1), close(2), … 3. move-right close(21), close(22), … Fluents: closed(x), done1, done2, at1, at2 Actions: close(x), move-R, move-L Goal: done1,done2 (all windows closed) Initial state: at2 Factored Planning

Factored Planning Domain move-left 2. close(1), close(2), … 3. move-right close(21), close(22), … Fluents: closed(x) (1x20) done1, at1, at2 Actions: Close(x) (1x20) Move-R, move-L Fluents: closed(x) (21x40) done1,done2,at1,at2 Actions: Close(x) (21x40) Move-R, move-L at1,at2 done1 Factored Planning

Intuition Planning separately in different parts Combine separate plans to form complete plan Difficulty: want a sound + complete procedure that is always applicable Potential benefits: Fast planning & replanning Scaling to very large domains Factored Planning

Talk Outline Factored domains Factored planning algorithm Decomposition algorithm Factored Planning

Planning via Dynamic Program Room 1 (20 windows) Room 2 (20 windows) Send Messages (one way) Do some Processing In subdomain 1 Do some Processing In subdomain 2 + messages Factored Planning

Planning Algorithm (example) Room 1 (20 windows) Room 2 (20 windows) Find capabilities of subdomain 1 relevant to subdomain 2 Factored Planning

Planning Algorithm (example) Room 1 “if at1, then there is a way to make done1 true” Room 2 (20 windows) Find capabilities of subdomain 1 relevant to subdomain 2 Factored Planning

Planning Algorithm (example) Room 1 “if at1, then there is a way to make done1 true” Room 2 (20 windows) Find capabilities of subdomain 1 Create a new action In subdomain 2: relevant to subdomain 2 “make done1 true” Precond: at1 Effect: done1 Factored Planning

Planning Algorithm (example) Room 1 “if at1, then there is a way to make done1 true” Room 2 (20 windows) Find capabilities of subdomain 1 Find plan in subdomain 2 relevant to subdomain 2 “make done1 true” Precond: at1 Effect: done1 Factored Planning

Planning Algorithm (example) Room 2 Room 1 “if at1, then there is a way to make done1 true” Plan: move-left “make done1 true” move-right close(21), close(22), … Find capabilities of subdomain 1 Find plan in subdomain 2 relevant to subdomain 2 “make done1 true” Precond: at1 Effect: done1 Factored Planning

Planning Algorithm (example) Room 2 Room 1 “if at1, then there is a way to make done1 true” Plan: move-left “make done1 true” move-right close(21), close(22), … Find capabilities of subdomain 1 Expand plan to Include only atomic actions relevant to subdomain 2 Factored Planning

Planning Algorithm (example) Room 2 Room 1 “if at1, then there is a way to make done1 true” Plan: move-left A. close(1), B. close(2), … 3. move-right close(21), close(22), … Find capabilities of subdomain 1 Expand plan to Include only atomic actions relevant to subdomain 2 Factored Planning

Summary & Outlook So far: example of algorithm Next: algorithm + generalization Separator Fluents: closed(x) (0<x<21) done1, at1, at2 Actions: Close(x) (0<x<21) Move-R, move-L closed(x) (19<x<41) done1,done2,at1,at2 Close(x) (19<x<41) at1,at2 done1 Factored Planning

Planning Algorithm (2 partitions) INPUT: 2 Partitions of fluents and actions Initial state, Goal condition Iterate over values V for separator: A. Find achievable goals for part 1 from V B. Send found plans to part 2 Add new actions for plans of part 1 Find plan for goal in part 2 Replace new actions with atomic ones Factored Planning

General Messages Room 1 “if at1, then there is a way to make done1 true” Room 2 (20 windows) power Not true anymore What if we need more interactions between rooms? Example: robot must recharge batteries Factored Planning

General Messages Room 1 Room 2 “if at1, and when (20 windows) needed battery_ok, then we can make done1 true” Room 2 (20 windows) power What if we need more interactions between rooms? Example: robot must recharge batteries Factored Planning

Planning Algorithm INPUT: m Partitions of fluents and actions Initial state, Goal condition Factored Planning

Planning Algorithm INPUT: m Partitions of fluents and actions Initial state, Goal condition Factored Planning

Planning Algorithm INPUT: m Partitions of fluents and actions Initial state, Goal condition Factored Planning

Planning Algorithm INPUT: m Partitions of fluents and actions Initial state, Goal condition Factored Planning

Planning Algorithm INPUT: m Partitions of fluents and actions Initial state, Goal condition Factored Planning

Planning Algorithm INPUT: m Partitions of fluents and actions Initial state, Goal condition Factored Planning

Planning Algorithm INPUT: m Partitions of fluents and actions Initial state, Goal condition Factored Planning

Planning Algorithm INPUT: m Partitions of fluents and actions Initial state, Goal condition Factored Planning

Planning Algorithm INPUT: m Partitions of fluents and actions Initial state, Goal condition Factored Planning

Planning Algorithm INPUT: m Partitions of fluents and actions Initial state, Goal condition Factored Planning

Planning Algorithm INPUT: m Partitions of fluents and actions Initial state, Goal condition Factored Planning

Planning Algorithm INPUT: m Partitions of fluents and actions Initial state, Goal condition Find plan in final partition Replace new actions with atomic actions Factored Planning

Analysis of Algorithm Theorem: Planning algorithm is sound and complete. Theorem: Algorithm runs in time O(m • 2k1•k2) m = number of partitions k1 = # fluents in largest partition k2 = “plan width”: # back-and-forth interactions between partitions in a plan Factored Planning

Analysis of Algorithm Theorem: Planning algorithm is sound and complete. Theorem: Algorithm runs in time O(m • 2k1•k2) Two Rooms Example: m = 2 k1 = 24 k2 = 1 Factored planning: O(2 • 224) Traditional planning: O(244) Factored Planning

Experiment: Ring of Rooms Time (in milliseconds) Number of rooms Factored Planning

Talk Outline Factored domains Factored planning algorithm Decomposition algorithm Factored Planning

Decomposition Algorithm Convert into a graph problem Find a tree decomposition of low width Decompose the problem using tree Factored Planning

Decomposition Algorithm 1. Convert into a graph problem closed(1) close(1) close(21) closed(21) closed(2) close(2) close(22) closed(22) done1 move-R done2 move-L at1 at2 Factored Planning

Decomposition Algorithm 1. Convert into a graph problem closed(1) close(1) close(21) closed(21) closed(2) close(2) close(22) closed(22) done1 move-R done2 move-L at1 at2 Factored Planning

Decomposition Algorithm 1. Convert into a graph problem closed(1) close(1) close(21) closed(21) closed(2) close(2) close(22) closed(22) done1 move-R done2 move-L at1 at2 Factored Planning

Decomposition Algorithm 1. Convert into a graph problem closed(1) close(1) close(21) closed(21) closed(2) close(2) close(22) closed(22) done1 move-R done2 move-L at1 at2 Factored Planning

Decomposition Algorithm 2. Find a tree decomposition of low width closed(1) close(1) close(21) closed(21) closed(2) close(2) close(22) closed(22) done1 move-R done2 move-L at1 at2 Factored Planning

Decomposition Algorithm 2. Find a tree decomposition of low width closed(1) close(1) close(21) closed(21) closed(2) close(2) close(22) closed(22) done1 move-R done2 move-L at1 at2 Factored Planning

Decomposition Algorithm 3. Decompose planning problem accordingly closed(1) close(1) close(21) closed(21) closed(2) close(2) close(22) closed(22) done1 move-R done2 move-L at1 at2 Factored Planning

Decomposition Algorithm 3. Decompose planning problem accordingly done1 Fluents: closed(x) (0<x<21) done1, at1, at2 Actions: Close(x) (0<x<21) Move-R, move-L Fluents: closed(x) (19<x<41) done1,done2,at1,at2 Actions: Close(x) (19<x<41) Move-R, move-L at1 at2 Factored Planning

Decomposition Algorithm 3. Decompose planning problem accordingly Room 1 (20 windows) Room 2 (20 windows) Factored Planning

Decomposition Algorithm Convert into a graph problem Find a tree decomposition of low width Can be done using known algorithms (e.g., (Rose ’76), (Amir 2001)) Decompose the problem using tree Factored Planning

Conclusions Factored planning algorithm Decomposition algorithm relies on known graph algorithms Algorithm applicable to all domains Always sound and complete (unlike (Guestrin etal. ’01) - MDPs) Tractability of algorithm depends on quality of domain decomposition and decomposition properties of solution Factored Planning

Applications & Future Work Nondeterministic domains Stochastic domains First-order decompositions Automatic generation of subsumption architectures Factored Planning

THE END Factored Planning

Related Works Factored reasoning [Pearl’88], [Amir & McIlraith’00,’01], [MacCartney etal.’03] Structured planning: Hierarchical planning, structured planning [Lanskey & Getoor ’95], Agents [Lansky’91], … Stochastic planning: [Parr’99], [Guestrin etal. ’01] Factored Planning

Factored Planning