Probabilistic Planning Jim Blythe November 6th. 2 CS 541 Probabilistic planning A slide from August 30th: Assumptions (until October..) Atomic time All.

Slides:



Advertisements
Similar presentations
Chapter 5 Plan-Space Planning.
Advertisements

Planning with Non-Deterministic Uncertainty (Where failure is not an option) R&N: Chap. 12, Sect (+ Chap. 10, Sect 10.7)
Making Simple Decisions
Causal-link Planning II José Luis Ambite. 2 CS 541 Causal Link Planning II Planning as Search State SpacePlan Space AlgorithmProgression, Regression POP.
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.
Situation Calculus for Action Descriptions We talked about STRIPS representations for actions. Another common representation is called the Situation Calculus.
Plan Generation & Causal-Link Planning 1 José Luis Ambite.
Partially Observable Markov Decision Process (POMDP)
PROBABILITY. Uncertainty  Let action A t = leave for airport t minutes before flight from Logan Airport  Will A t get me there on time ? Problems :
SA-1 Probabilistic Robotics Planning and Control: Partially Observable Markov Decision Processes.
THE HONG KONG UNIVERSITY OF SCIENCE & TECHNOLOGY CSIT 5220: Reasoning and Decision under Uncertainty L09: Graphical Models for Decision Problems Nevin.
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.
Probabilistic Planning Jim Blythe. 2 CS 541 Probabilistic planning Some ‘classical planning’ assumptions Atomic time All effects are immediate Deterministic.
Engineering Economic Analysis Canadian Edition
CPSC 502, Lecture 11Slide 1 Introduction to Artificial Intelligence (AI) Computer Science cpsc502, Lecture 11 Oct, 18, 2011.
Planning under Uncertainty
Decision Theory: Single Stage Decisions Computer Science cpsc322, Lecture 33 (Textbook Chpt 9.2) March, 30, 2009.
AI – Week AI Planning – Plan Generation Algorithms: GraphPlan Lee McCluskey, room 2/09
Planning Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 11.
Artificial Intelligence Chapter 11: Planning
Introduction to Decision Analysis
GraphPlan ● (you don't have to know anything about this, but I put it here to point out that there are many clever approaches to try to find plans more.
1 search CS 331/531 Dr M M Awais A* Examples:. 2 search CS 331/531 Dr M M Awais 8-Puzzle f(N) = g(N) + h(N)
CS121 Heuristic Search Planning CSPs Adversarial Search Probabilistic Reasoning Probabilistic Belief Learning.
1 Planning Chapters 11 and 12 Thanks: Professor Dan Weld, University of Washington.
Solving problems by searching
Decision Making Under Uncertainty Russell and Norvig: ch 16, 17 CMSC421 – Fall 2003 material from Jean-Claude Latombe, and Daphne Koller.
CMSC 671 Fall 2003 Class #26 – Wednesday, November 26 Russell & Norvig 16.1 – 16.5 Some material borrowed from Jean-Claude Latombe and Daphne Koller by.
PLANNING Partial order regression planning Temporal representation 1 Deductive planning in Logic Temporal representation 2.
CS Reinforcement Learning1 Reinforcement Learning Variation on Supervised Learning Exact target outputs are not given Some variation of reward is.
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:
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Planning with Non-Deterministic Uncertainty. Recap Uncertainty is inherent in systems that act in the real world Last lecture: reacting to unmodeled disturbances.
Engineering Economic Analysis Canadian Edition
Computing & Information Sciences Kansas State University Wednesday, 15 Oct 2008CIS 530 / 730: Artificial Intelligence Lecture 20 of 42 Wednesday, 15 October.
Week 10Complexity of Algorithms1 Hard Computational Problems Some computational problems are hard Despite a numerous attempts we do not know any efficient.
Quiz 4 : Minimax Minimax is a paranoid algorithm. True
Conformant Probabilistic Planning via CSPs ICAPS-2003 Nathanael Hyafil & Fahiem Bacchus University of Toronto.
Deciding Under Probabilistic Uncertainty Russell and Norvig: Sect ,Chap. 17 CS121 – Winter 2003.
Automated Planning and Decision Making Prof. Ronen Brafman Automated Planning and Decision Making Partial Order Planning Based on slides by: Carmel.
Decision Theoretic Planning. Decisions Under Uncertainty  Some areas of AI (e.g., planning) focus on decision making in domains where the environment.
Intro to Planning Or, how to represent the planning problem in logic.
1 CMSC 471 Fall 2004 Class #21 – Thursday, November 11.
1 Chapter 17 2 nd Part Making Complex Decisions --- Decision-theoretic Agent Design Xin Lu 11/04/2002.
Planning I: Total Order Planners Sections
Markov Decision Process (MDP)
Web-Mining Agents Agents and Rational Behavior Decision-Making under Uncertainty Simple Decisions Ralf Möller Universität zu Lübeck Institut für Informationssysteme.
Search Control.. Planning is really really hard –Theoretically, practically But people seem ok at it What to do…. –Abstraction –Find “easy” classes of.
R. Brafman and M. Tennenholtz Presented by Daniel Rasmussen.
Causal-link planning 1 Jim Blythe. 2 USC INFORMATION SCIENCES INSTITUTE Causal Link Planning The planning problem Inputs: 1. A description of the world.
Heuristic Search Planners. 2 USC INFORMATION SCIENCES INSTITUTE Planning as heuristic search Use standard search techniques, e.g. A*, best-first, hill-climbing.
Nevin L. Zhang Room 3504, phone: ,
Last time: search strategies
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
A New Algorithm for Computing Upper Bounds for Functional EmajSAT
Where are we in CS 440? Now leaving: sequential, deterministic reasoning Entering: probabilistic reasoning and machine learning.
Games with Chance Other Search Algorithms
Planning José Luis Ambite.
Decision Theory: Sequential Decisions
Decision Theory: Single Stage Decisions
Chapter 6 Planning-Graph Techniques
Class #20 – Wednesday, November 5
Causal-link planning 2 Jim Blythe.
CS 416 Artificial Intelligence
Reinforcement Learning Dealing with Partial Observability
Unit II Game Playing.
Presentation transcript:

Probabilistic Planning Jim Blythe November 6th

2 CS 541 Probabilistic planning A slide from August 30th: Assumptions (until October..) Atomic time All effects are immediate Deterministic effects Omniscience Sole agent of change Goals of attainment

3 CS 541 Probabilistic planning Assumptions (until October..) Atomic time All effects are immediate Deterministic effects Omniscience Sole agent of change Goals of attainment

4 CS 541 Probabilistic planning Sources of uncertainty When we try to execute plans, uncertainty from several different sources can affect success. ? ? Firstly, we might have uncertainty about the state of the world

5 CS 541 Probabilistic planning Sources of uncertainty Actions we take might have uncertain effects even when we know the world state ? ?

6 CS 541 Probabilistic planning Sources of uncertainty External agents might be changing the world while we execute our plan. MeXX

7 CS 541 Probabilistic planning Dealing with uncertainty: re-planning Make a plan assuming nothing bad will happen Monitor for problems during execution Build a new plan if a problem is found  Either re-plan to the goal state  Or try to patch the existing plan

8 CS 541 Probabilistic planning Dealing with uncertainty: Conditional planning Deal with contingencies (bad outcomes) at planning time before they occur Reactive planning might be viewed as conditional planning where every possible contingency is covered (somehow) in the policy.

9 CS 541 Probabilistic planning Tradeoffs in strategies for uncertainty My re-planner housemate: “Why are you taking an umbrella? It’s not raining!”  Can’t find plans that require steps taken before the contingency is discovered My conditional planner housemate: “Why are you leaving the house? Class may be cancelled. It might rain. You might have won the lottery. Was that an earthquake?….”  Impossible to plan for every contingency. Need a representation that captures tradeoffs.

10 CS 541 Probabilistic planning Probabilistic planning lets us explore the middle ground Different contingencies have different probabilities of occurring. Plan ahead for likely contingencies that may need steps taken before they occur. Use probability theory to judge plans that address some contingencies: seek a plan that is above some minimum probability of success.

11 CS 541 Probabilistic planning Some issues to think about How do we figure out the probability of a plan succeeding? Is it expensive to do? How do we know what the most likely contingencies are? Can we distinguish bad outcomes (not holding the cup) from really bad outcomes (broken the cup, spilled the anthrax agent..)?

12 CS 541 Probabilistic planning Representing actions with uncertain outcomes

13 CS 541 Probabilistic planning Reminder: POP algorithm POP((A, O, L), agenda, PossibleActions): If agenda is empty, return (A, O, L) Pick (Q, An) from agenda Ad = choose an action that adds Q. If no such action exists, fail. Add the link Ad Ac to L and the ordering Ad < Ac to O If Ad is new, add it to A. Remove (Q, An) from agenda. If Ad is new, for each of its preconditions P add (P, Ad) to agenda. For every action At that threatens any link Choose to add At < Ap or Ac < At to O. If neither choice is consistent, fail. POP((A, O, L), agenda, PossibleActions) Q Ap Ac Q

14 CS 541 Probabilistic planning Buridan (an SNLP-based planner) An SNLP-based planner might come up with this plan for a deterministic action representation:

15 CS 541 Probabilistic planning A plan that works 70% of the time..

16 CS 541 Probabilistic planning Modifications to the UCPOP algorithm Allow more than one causal link for each condition in the plan. Confront a threat by decreasing the probability that it will happen. (By adding conditions negating the trigger of the threat). Terminate when sufficient probability reached (may still have threats).

17 CS 541 Probabilistic planning Computing probability of plan success 1: forward projection Simulate the plan, keep track of possible states and their probabilities, finally sum the probabilities of states that satisfy the goal. Here, the china is packed in the initial state with probability 0.5 (and is not packed with probability 0.5) What is the worst-case time complexity of this algorithm?

18 CS 541 Probabilistic planning Computing the probability of success 2: Bayes nets Time-stamped literal node Action outcome node What is the worst-case time complexity of this algorithm?

19 CS 541 Probabilistic planning Tradeoffs in computing probability of success Belief net approach is often faster because it ignores irrelevant differences in the state. Neither approach is guaranteed to be faster. Often, the time to compute the probability of success dominates the planning time.

20 CS 541 Probabilistic planning Conditional planning in this framework: CNLP and C-Buridan Tricky to represent conditional branches in partially-ordered plans. Actions can produce “observation labels” as well as effects, e.g. “the weather is good”. After introducing an action with observation labels, the possible values can be used as “context labels” assigned to actions ordered after the observation step.

21 CS 541 Probabilistic planning Example: drive around the mountain

22 CS 541 Probabilistic planning DRIPS: (Decision-theoretic Refinement Planner) Considers plan utility, taking into account action costs, benefits of different states. Searches for a plan with Maximum Expected Utility (MEU), not just above a threshold. A skeletal planner, makes use of ranges of utility of abstract plans in order to search efficiently. Prune abstract plans whose utility range is completely below the range of some alternative (dominated plans)

23 CS 541 Probabilistic planning Abstract action for moving china

24 CS 541 Probabilistic planning MAXPLAN Inspired by SATPLAN. Compile planning problem to an instance of E-MAJSAT E-MAJSAT: given a boolean formula with variables that are either choice variables or chance variables, find an assignment to the choice variables that maximises the probability that the formula is true. Choice variables: we can control them  e.g. which action to use Chance variables: we cannot control them  e.g. the weather, the outcome of each action,.. Then use standard algorithm to compute and maximise probability of success

25 CS 541 Probabilistic planning Thinking about MAXPLAN As it stands, does MAXPLAN build conditional plans? How could we make MAXPLAN build conditional plans?

26 CS 541 Probabilistic planning Other approaches that have been used Graphplan (pointers to Weld and Smith’s work in paper) Prodigy (more in next class) HTN planning (Cypress) Markov decision problems (more in the class after next)

27 CS 541 Probabilistic planning With all approaches, we must consider the same issues Tractability  Plans can have many possible outcomes  How to reason about when to add sensing Plan utility  Is probability of success enough?  What measures of cost and benefit can be used tractably?  Can operator costs be summed? What difference do time- based utilities like deadlines make? Observability and conditional planning  Classical planning is “open-loop” with no sensing  A “policy” assumes we can observer everything  Can we model limited observability, noisy sensors, bias..?