probabilistic planning 2: exogenous events

21
Probabilistic Planning 2: Exogenous events Jim Blythe November 8th

Upload: lacey-roberson

Post on 30-Dec-2015

23 views

Category:

Documents


1 download

DESCRIPTION

Probabilistic Planning 2: Exogenous events. Jim Blythe November 8th. Assumptions (until October..). Atomic time All effects are immediate Deterministic effects Omniscience Sole agent of change Goals of attainment. Me. Me. X. X. Recap: uncertainty from external change. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Probabilistic Planning 2: Exogenous events

Probabilistic Planning 2:Exogenous events

Jim Blythe

November 8th

Page 2: Probabilistic Planning 2: Exogenous events

2CS 541 Probabilistic planning

Assumptions (until October..)

Atomic time All effects are immediate Deterministic effects Omniscience Sole agent of change Goals of attainment

Page 3: Probabilistic Planning 2: Exogenous events

3CS 541 Probabilistic planning

Recap: uncertainty from external change

External agents might be changing the world while we execute our plan.

MeX

X

Me

Page 4: Probabilistic Planning 2: Exogenous events

4CS 541 Probabilistic planning

Representing external sources of change

Model actions that external agents can take in the same way as actions that the planner can take.

(event oil-spills

(probability 0.1)

(preconds

(and (oil-in-tanker <sea-sector>)

(poor-weather <sea-sector>)))

(effects

(del (oil-in-tanker <sea-sector>))

(add (oil-in-sea <sea-sector>))))

Page 5: Probabilistic Planning 2: Exogenous events

5CS 541 Probabilistic planning

Random external processes

Some agents, like robot agent X, have intentions, beliefs and desires, and their actions are based on planning May be co-operative, neutral or adversarial

Some “external agents” like weather, can be thought of as random processes Not affected by knowledge of our goals Can’t argue with forces of nature But sometimes we can influence random processes indirectly,

through states of the world that affect their outcomes.

Page 6: Probabilistic Planning 2: Exogenous events

6CS 541 Probabilistic planning

Impact of random events on planning

Many random events are constantly taking place in most domains in which we execute plans

Most do not affect the plans we execute

Given a plan being considered (e.g. move a barge to some location, use it to clean up spilled

oil),

we can find the random events that do matter (e.g. the weather at that location, how spread out the oil is)

Page 7: Probabilistic Planning 2: Exogenous events

7CS 541 Probabilistic planning

Difficulty of handling random events

Harder than uncertain action outcomes Have to find the relevant events Effects take place asynchronously

Easier than co-operative or adversarial planning in general No communication of goals, plans No second-guessing other agents

Question: does having uncertaint external events increase the expressivity of a planner that already has uncertain action outcomes?

Page 8: Probabilistic Planning 2: Exogenous events

8CS 541 Probabilistic planning

Improving plans affected by random events

Add a conditional branch

Try to decrease the probability of a bad event, by decreasing the probability of its preconditions or shortening the time during which it can happen.

Sometimes select a random event as part of a plan (e.g. to wash a car, leave it outside and wait for rain)

then try to increase probability by increase probability of preconditions or waiting longer.

Page 9: Probabilistic Planning 2: Exogenous events

9CS 541 Probabilistic planning

Example events governing an oil-spill cleanup problem

The oil-spills event from an earlier slide, and:

(event weather-brightens

(probability 0.25)

(preconds (poor-weather))

(effects

(del (poor-weather))

(add (fair-weather))))

Page 10: Probabilistic Planning 2: Exogenous events

10CS 541 Probabilistic planning

Semantics of STRIPS-style representation of external events

Many different interpretations might be possible

In Blythe 96, assume that at each time point, any event that could take place does so with the probability given in the event.

Page 11: Probabilistic Planning 2: Exogenous events

11CS 541 Probabilistic planning

Evaluating a plan in the oil-spill domain Given this non-deterministic operator:

(operator move-barge

(preconds (at <barge> <from>))

(effects

(0.667

(del (at <barge> <from>))

(add (at <barge> <to>)))

(0.333

(del (at <barge> <from>))

(add (at <barge> <to>))

(del (operational <barge>)))))

Page 12: Probabilistic Planning 2: Exogenous events

12CS 541 Probabilistic planning

Consider this conditional plan:

(move barge1 dock spill-site)

IF (operational barge1)

THEN

(pump oil barge1)

ELSE

(move barge2 further-dock spill-site)

(pump oil barge2)

Pump-oil has preconds (operational <barge>) and (fair-weather).

Move takes some time depending on the distance.

Page 13: Probabilistic Planning 2: Exogenous events

13CS 541 Probabilistic planning

Computing the probability of success1: forward projection

Title: reach.figCreator: fig2dev Version 3.1 Patchlevel 2Preview: This EPS picture was not saved with a preview (TIFF or PICT) included in itComment: This EPS picture will print to a postscript printer but not to other types of printers

Page 14: Probabilistic Planning 2: Exogenous events

14CS 541 Probabilistic planning

Computing probability of success2: constructing a belief net from the plan

Add nodes for actions and literals, then investigate “persistence intervals”.

Add any events that might affect persistence intervals in the plan.

Title: Window .temp.f.cCreator: Tk Canvas WidgetPreview: This EPS picture was not saved with a preview (TIFF or PICT) included in itComment: This EPS picture will print to a postscript printer but not to other types of printers

Title: Window .temp.f.cCreator: Tk Canvas WidgetPreview: This EPS picture was not saved with a preview (TIFF or PICT) included in itComment: This EPS picture will print to a postscript printer but not to other types of printers

Page 15: Probabilistic Planning 2: Exogenous events

15CS 541 Probabilistic planning

Belief net with marginal probabilitiesTitle: ch1-bel1-tables.figCreator: fig2dev Version 3.1 Patchlevel 2Preview: This EPS picture was not saved with a preview (TIFF or PICT) included in itComment: This EPS picture will print to a postscript printer but not to other types of printers

Page 16: Probabilistic Planning 2: Exogenous events

16CS 541 Probabilistic planning

The “explicit events” construction quickly gets expensive:

This is the second branch of the conditional plan being evaluated.

Title: Window .temp.f.cCreator: Tk Canvas WidgetPreview: This EPS picture was not saved with a preview (TIFF or PICT) included in itComment: This EPS picture will print to a postscript printer but not to other types of printers

Page 17: Probabilistic Planning 2: Exogenous events

17CS 541 Probabilistic planning

Constructing a cheaper belief net using markov chains.

The semantics given to events lead them to have a markov chain structure, so the explicit event nodes can be replaced by single arcs as shown here.

Title: Window .temp.f.cCreator: Tk Canvas WidgetPreview: This EPS picture was not saved with a preview (TIFF or PICT) included in itComment: This EPS picture will print to a postscript printer but not to other types of printers

Page 18: Probabilistic Planning 2: Exogenous events

18CS 541 Probabilistic planning

Example: the weather events and the corresponding markov chain

The markov chain shows possible states independent of time.

As long as transition probabilities are independent of time, the probability of the state at some future time t can be computed in logarithmic time complexity in t.

The computation time is polynomial in the number of states in the markov chain.

Title: weather-mc.figCreator: fig2dev Version 3.1 Patchlevel 2Preview: This EPS picture was not saved with a preview (TIFF or PICT) included in itComment: This EPS picture will print to a postscript printer but not to other types of printers

Page 19: Probabilistic Planning 2: Exogenous events

19CS 541 Probabilistic planning

Wrinkle: how do we know which states need to be included in the markov chain?

The markov chain to compute the probability of oil spill needs to have four states. Why?

Title: oil-chain.figCreator: fig2dev Version 3.1 Patchlevel 2Preview: This EPS picture was not saved with a preview (TIFF or PICT) included in itComment: This EPS picture will print to a postscript printer but not to other types of printers

Page 20: Probabilistic Planning 2: Exogenous events

20CS 541 Probabilistic planning

The event graph

Captures the dependencies between events needed to build small but correct markov chains.

Any event whose literals should be included will be an ancestor of the events governing objective literals.

Title: event-graph.figCreator: fig2dev Version 3.1 Patchlevel 2Preview: This EPS picture was not saved with a preview (TIFF or PICT) included in itComment: This EPS picture will print to a postscript printer but not to other types of printers

Page 21: Probabilistic Planning 2: Exogenous events

21CS 541 Probabilistic planning

General ideas

To capture uncertainty from different forms, we can use structures like Markov chains that take advantage of the time-independence of STRIPS-style operators.

To make computations efficient, we can make use of the structure of the problem to remove irrelevant calculations. The same idea is used in efficient planning techniques, e.g.

Knoblock’s abstraction hierarchies, Etzioni’s machine learning. The same idea is also used to try to make MDP planning

efficient as we will see next class.