CSE 574 Planning - PowerPoint PPT Presentation

About This Presentation
Title:

CSE 574 Planning

Description:

(which is actually more of the former and less of the latter) Subbarao Kambhampati http://rakaposhi.eas.asu.edu/cse574 Personnel Instructor: Subbarao Kambhampati No ... – PowerPoint PPT presentation

Number of Views:69
Avg rating:3.0/5.0
Slides: 34
Provided by: mbe80
Category:

less

Transcript and Presenter's Notes

Title: CSE 574 Planning


1
CSE 574 Planning Learning(which is actually
more of the former and less of the latter)
  • Subbarao Kambhampati
  • http//rakaposhi.eas.asu.edu/cse574

2
Most everything Will be on Homepage
Fill and return the survey form
3
Personnel
  • Instructor Subbarao Kambhampati
  • No official TA
  • Menkes van den Briel (menkes_at_asu.edu)
  • Will Cushing (wcushing_at_asu.edu)
  • J. Benton (j.benton_at_asu.edu)
  • Will kindly provide unofficial Teaching Czar
    support
  • Dr. Sungwook Yoon may also make cameo appearances

4
Grading Criteria
  • Caveats
  • Graduate level class. Participation required and
    essential
  • Evaluation (subject to change)
  • Participation (20)
  • Do readings before classes. Attend classes. Take
    part in discussions.
  • Volunteer to be a scribe for at least two classes
  • Projects/Homeworks (35)
  • May involve using existing planners, writing new
    domains
  • Semester project (20)
  • Either a term paper or a code-based project
  • Mid-term and Final (25)

5
Wiki-scribing..
  • As an experiment, I plan to have designated
    students be scribes for each class
  • The scribe shall take careful notes during the
    class, and summarize the main points within 3
    days of the class
  • Summary will be written on the class wiki
  • Planning.wiki.asu.edu
  • Rest of the class/czars/rao will modify the notes
    as needed (thus the wiki)

6
Pre-requisites (CSE471)
Search
A Search (admissbility, informedness etc)
Local search
Heuristics as distances in relaxed problems
CSP
Definition of CSP problems and SAT problems
Standard techniques for CSP and SAT
Planning
State space search (progression, regression)
Planning graph
-- as a basis for search
-- as a basis for heuristics
Logic
--Propositional logic
--Syntax/semantics of First order logic
Probabilistic Reasoning
Bayes networks
-- as a compact way of representing joint distribution
-- Some idea of standard approaches for reasoning with bayes nets
Do fill-in and return the survey form
7
On the Text Book vs. Readings
  • There is a recommended textbook. Its coverage
    overlaps with the expected coverage of this
    course to about 50
  • You may have to get the book from Amazon
  • Caveats
  • In some cases, my presentation may be slightly
    different from that in the text book
  • In many cases, we will go out of the textbook and
    read papers. This will happen in two ways
  • 1. Every so often (a week?), I will assign a
    paper for critical reading. This paper will add
    to what has been discussed in the class. The
    intent is to get you to read research papers
  • You would be expected to provide a short written
    review of the paper.
  • 2. In some cases, the best treatment of a topic
    may be an outside paper

8
Teaching Methodology
  • I would like to try and run it as a true
    graduate course
  • I will expect you to have read the required
    readings before coming to the class
  • I will see my role as adding to the readings
    rather than explaining everything for the first
    time
  • If I find too many blank faces indicating missed
    readings, I will consider required reading
    summaries before class
  • I will assume that you are interested not just in
    figuring out what has been done but where most
    action is currently

9
Expectations game..
  • What I expect
  • Serious time commitment for the course..
  • Active participation
  • In reading
  • In attending
  • In wiki-scribing
  • In online discussions
  • What you can expect
  • Background on the current state of the art in
    automated planning research
  • Ability to read, understand and critique latest
    research papers in the area
  • Ability to formulate and attempt to solve
    research problems in the area

10
No reason for reduced expectations..
  • 17 students registered currently
  • 10 are PhD students
  • 11 have taken CSE471 with Rao and got an A or
    more
  • 6 have got A!
  • In other words, these are people who have no life
    outside of university
  • The real question to can the course be made
    challenging/interesting enough for this
    uber-super-student-crowd.

11
Planning The big picture
  • Synthesizing goal-directed behavior
  • Planning involves
  • Action selection Handling causal dependencies
  • Action sequencing and handling resource
    allocation
  • typically called SCHEDULING
  • Depending on the problem, plans can be
  • action sequences
  • or policies (action trees, state-action
    mappings etc.)

12
Domain-Independent vs. Domain Specific vs. Domain
Customized
  • Domain independent planners only expect as input
    the description of the actions (in terms of their
    preconditions and effects), and the description
    of the goals to be achieved
  • Domain dependent planners make use of additional
    knowledge beyond action and goal specification
  • Domain dependent planners may either be stand
    alone programs written specifically for that
    domain OR domain independent planners customized
    to a specific domain
  • In the case of domain-customized planners, the
    additional knowledge they exploit can come in
    many varieties (declarative control rules or
    procedural directives on which search choices to
    try and in what order)
  • The additional knowledge can either be input
    manually or in some cases, be learned
    automatically

Unless noted otherwise, we will be talking about
domain-independent planning
13
The Many Complexities of Planning
(Discrete vs. Continuous)
(Static vs. Dynamic)
(Observable vs. Partially Observable)
Environment
perception
(perfect vs. Imperfect)
(Full vs. Partial satisfaction)
(Instantaneous vs. Durative)
action
Goals
(Deterministic vs. Stochastic)
The Question
What action next?
14
Planning (Classical Planning)
(Static)
Environment
(Observable)
Goals
perception
action
(perfect)
(deterministic)
What action next?
I initial state G goal state

Oi
(prec)
(effects)
I
G
Oi
Oj
Ok
Om
15
Metric-Temporal Planning
16
State of the Field
  • Automated Planning, as a subfield of AI, is as
    old as AI
  • The area has become very active for the last
    several years
  • Papers appear in AAAI IJCAI AIJ JAIR as well
    as AIPS, ECP which have merged to become ICAPS
  • Tremendous strides in deterministic plan
    synthesis
  • Bi-annual Intl. Planning Competitions
  • Current interest is in exploiting the insights
    from deterministic planning techniques to other
    planning scenarios.

17
Topics to be covered
  • Plan Synthesis under a variety of assumptions
  • Classical, Metric Temporal, Non-deterministic,
    Stochastic, Partially Observable
  • Plan Management
  • Reasoning with actions and plans (even if you
    didnt synthesize them)
  • Execution management (Re-planning)
  • State estimation and Plan Recognition
  • Estimating the current state of an agent given a
    sequence of actions and observations
  • Recognize the high-level goals that the agent is
    attempting to satisfy
  • Connections to Workflows, Web services, UBICOMP
    etc

18
List of topics to be covered
  • Introduction, representation search (1 week)
  • State Space and Plan Space Planning, Lifting (1
    week)
  • Reachability heuristics (1- week)
  • SAT/CSP/IP based planning graph search Planning
    as model-finding (1- week)
  • Refinement Planning as a unifying framework (1
    week?)
  • RECITATION Case studies of heuristic planners.
    Graphplan search
  • Partial satisfaction planning (1 class)
  • Knowledge-based planning with some emphasis on
    HTN planning (1 week)
  • Model-lite planning (1 class?)
  • Metric/Temporal Planning (1 week)
  • Scheduling (1 week)
  • Non-deterministic Planning Conformant and
    Conditional planning (1 week)
  • Probabilistic planning MDPs and POMDPS (2
    weeks)
  • Plan Activity recognition (1 week)
  • Monitoring and Diagnosis (1 class)

19
Topics from the last offering(and how this
offering will be different)
  1. Introduction (Week 1 8/238/25)
  2. State Space and Plan Space Planning (Week 2
    8/30 9/1
  3. Refinement Planning as a unifying framework (Week
    3 9/8)
  4. Lifting and Reachability Heuristics (Week 4
    9/13 9/15)
  5. Case studies of herustic planners. Graphplan
    search (Week 5 9/20 9/23)
  6. Cost-based planning SAT/CSP based planning graph
    search Planning as model-finding (Week 6 9/27
    9/29)
  7. Knowledge-based planning (Week 7)
  • 8. Metric/Temporal Planning (Week 8)
  • Audio recording of 10/13 lecture
  • 9. Metric/Temporal Planning Planners Heuristics
    (week 9)
  • 10. Temporal Networks (week 10)
  • 11. Temporal Networks contd Scheduling (Week 11)
  • 12. Planning in Belief States... (Week 12)
  • 13. Planning in Belief States contd. (Week 13)
  • 14. Conditional Planning Replanning MDP start
    (Week 14)
  • 15. More MDPs (Week 15)

--Would like to condense 1-7 into 4 weeks --Keep
8-11 to about the same --Significantly expand
13-15 --Add other topics
20
Applications
  • Scheduling problems with action choices as well
    as resource handling requirements
  • Problems in supply chain management
  • HSTS (Hubble Space Telescope scheduler)
  • Workflow management
  • Autonomous agents
  • RAX/PS (The NASA Deep Space planning agent)
  • Software module integrators
  • VICAR (JPL image enhancing system) CELWARE
    (CELCorp)
  • Test case generation (Pittsburgh)
  • Interactive decision support
  • Monitoring subgoal interactions
  • Optimum AIV system
  • Plan-based interfaces
  • E.g. NLP to database interfaces
  • Plan recognition

21
Applications (contd)
  • Web services
  • Composing web services, and monitoring their
    execution has a lot of connections to planning
  • Many of the web standards have a lot of
    connections to plan representation languages
  • BPEL BPEL-4WS allow workflow specifications
  • DAML-S allows process specifications
  • Grid services/Scientific workflow management
  • UBICOMP applications
  • State estimation plan recognition to figure out
    what a user is upto (so she can be provided
    appropriate help)
  • Taking high-level goals and converting them to
    sequences of actions

22
Who hires planning folks?
  • Raos former students are at
  • Xerox Palo Alto Labs
  • USC Information Sciences Inst
  • Stanford Research Inst
  • CMU Robotics Inst
  • IBM India Research Labs
  • Other places include
  • NASA
  • Honeywell
  • Lockheed Martin
  • BBN
  • General Dynamics
  • MBARI
  • Google (who will then convert them into search
    hackers -)

23
Modeling (Deterministic) Planning
ProblemsActions, States, Correctness
24
Transition Sytems Perspective
  • We can think of the agent-environment dynamics in
    terms of the transition systems
  • A transition system is a 2-tuple ltS,Agt where
  • S is a set of states
  • A is a set of actions, with each action a being a
    subset of SXS
  • Transition systems can be seen as graphs with
    states corresponding to nodes, and actions
    corresponding to edges
  • If transitions are not deterministic, then the
    edges will be hyper-edgesi.e. will connect
    sets of states to sets of states
  • The agent may know that its initial state is some
    subset S of S
  • If the environment is not fully observable, then
    Sgt1 .
  • It may consider some subset Sg of S as desirable
    states
  • Finding a plan is equivalent to finding
    (shortest) paths in the graph corresponding to
    the transition system
  • Search graph is the same as transition graph for
    deterministic planning
  • For non-deterministic actions and/or partially
    observable environments, the search is in the
    space of sets of states (called belief states 2S)

25
Transition System Models
Each action in this model can be Represented by
incidence matrices (e.g. below) The set of all
possible transitions Will then simply be the SUM
of the Individual incidence matrices Transitions
entailed by a sequence of actions will be
given by the (matrix) multiplication of the
incidence matrices
A transition system is a two tuple ltS, Agt Where
S is a set of states A is a set of
transitions each transition a is a subset
of SXS --If a is a (partial) function then
deterministic transition --otherwise, it is
a non-deterministic transition --It is
a stochastic transition If there are
probabilities associated with each state a takes
s to --Finding plans becomes is equivalent
to finding paths in the transition system
Transition system models are called Explicit
state-space models In general, we would like
to represent the transition systems more
compactly e.g. State variable representation
of states. These latter are called Factored
models
26
Manipulating Transition Systems
Reachable states can be computed this way
27
MDPs as general cases of transition systems
  • An MDP (Markov Decision Process) is a general
    (deterministic or non-deterministic) transition
    system where the states have Rewards
  • In the special case, only a certain set of goal
    states will have high rewards, and everything
    else will have no rewards
  • In the general case, all states can have varying
    amount of rewards
  • Planning, in the context of MDPs, will be to find
    a policy (a mapping from states to actions)
    that has the maximal expected reward
  • We will talk about MDPs later in the semester

28
Problems with transition systems
  • Transition systems are a great conceptual tool to
    understand the differences between the various
    planning problems
  • However direct manipulation of transition
    systems tends to be too cumbersome
  • The size of the explicit graph corresponding to a
    transition system is often very large (see
    Homework 1 problem 1)
  • The remedy is to provide compact
    representations for transition systems
  • Start by explicating the structure of the
    states
  • e.g. states specified in terms of state variables
  • Represent actions not as incidence matrices but
    rather functions specified directly in terms of
    the state variables
  • An action will work in any state where some state
    variables have certain values. When it works, it
    will change the values of certain (other) state
    variables

29
State-Variable Models
  • States are modeled in terms of (binary)
  • state-variables
  • -- Complete initial state, partial goal
    state
  • Actions are modeled as state
  • transformation functions
  • -- Syntax ADL language (Pednault)
  • -- Apply(A,S) (S \ eff(A)) eff(A)
  • (If Precond(A) hold in S)

At(A,M),At(B,M) In(A), In(B)
Appolo 13
Earth
Earth
At(A,E), At(B,E),At(R,E)
Effects
30
Blocks world
Init Ontable(A),Ontable(B), Clear(A),
Clear(B), hand-empty Goal clear(B),
hand-empty
State variables Ontable(x) On(x,y) Clear(x)
hand-empty holding(x)
Initial state Complete specification of T/F
values to state variables --By convention,
variables with F values are omitted
Goal state A partial specification of the
desired state variable/value combinations
Pickup(x) Prec hand-empty,clear(x),ontable(x)
eff holding(x),ontable(x),hand-empty,Clear(x
)
Putdown(x) Prec holding(x) eff Ontable(x),
hand-empty,clear(x),holding(x)
Unstack(x,y) Prec on(x,y),hand-empty,cl(x)
eff holding(x),clear(x),clear(y),hand-empty
Stack(x,y) Prec holding(x), clear(y) eff
on(x,y), cl(y), holding(x), hand-empty
31
Why is this more compact?(than explicit
transition systems)
  • In explicit transition systems actions are
    represented as state-to-state transitions where
    in each action will be represented by an
    incidence matrix of size SxS
  • In state-variable model, actions are represented
    only in terms of state variables whose values
    they care about, and whose value they affect.
  • Consider a state space of 1024 states. It can be
    represented by log2102410 state variables. If an
    action needs variable v1 to be true and makes v7
    to be false, it can be represented by just 2 bits
    (instead of a 1024x1024 matrix)
  • Of course, if the action has a complicated
    mapping from states to states, in the worst case
    the action rep will be just as large
  • The assumption being made here is that the
    actions will have effects on a small number of
    state variables.

32
Some notes on action representation
  • STRIPS Assumption Actions must specify all the
    state variables whose values they change...
  • No disjunction allowed in effects
  • Conditional effects are NOT disjunctive
  • (antecedent refers to the previous state
    consequent refers to the next state)
  • Quantification is over finite universes
  • essentially syntactic sugaring
  • All actions can be compiled down to a canonical
    representation where preconditions and effects
    are propositional
  • Exponential blow-up may occur (e.g removing
    conditional effects)
  • We will assume the canonical representation

33
Pros Cons of Compiling to Canonical Action
Representation (Added)
  • As mentioned, it is possible to compile down ADL
    actions into STRIPS actions
  • Quantification is written as conjunctions/disjunct
    ions over finite universes
  • Actions with conditional effects are compiled
    into multiple (exponentially more) actions
    without conditional effects
  • Actions with disjunctive effects are compiled
    into multiple actions, each of which take one of
    the disjuncts as their preconditions
  • (Domain axioms can be compiled down into the
    individual effects of the actions so all actions
    satisfy STRIPS assumption)
  • Compilation is not always a win-win.
  • By compiling down to canonical form, we can
    concentrate on highly efficient planning for
    canonical actions
  • However, often compilation leads to an
    exponential blowup and makes it harder to exploit
    the structure of the domain
  • By leaving actions in non-canonical form, we can
    often do more compact encoding of the domains as
    well as more efficient search
  • However, we will have to continually extend
    planning algorithms to handle these
    representations
  • The basic tradeoff here is akin to the RISC vs.
    SISC tradeoff..
  • And we will re-visit it again when we consider
    compiling planning problems themselves down into
    other combinatorial substrates such as CSP, ILP,
    SAT etc..

34
Boolean vs. Multi-valued fluents
  • The state variables (fluents) in the factored
    representations can be either boolean or
    multi-valued
  • Most planners have conventionally used boolean
    fluents
  • Many domains are sometimes more compactly and
    naturally represented in terms of multi-valued
    variables.
  • Given a multi-valued state-variable
    representation, it is easy to compile it down to
    a boolean state-variable representation.
  • Each D-domain multi-valued fluent gets translated
    to D boolean variables of the form
    fluent-has-the-value-v
  • Complete conversion should also put in a domain
    axiom to the effect that only one of those D
    boolean variables can be true in any state
  • Unfortunately, since ordinary STRIPS
    representation doesnt allow domain axioms, this
    piece of information is omitted during conversion
    (forcing planners to figure this out through
    costly search failures)
  • Conversion from boolean to multi-valued
    representation is trickier.
  • Need to find cliques of boolean variables where
    no more than one variable in the clique can be
    true at the same time and convert that clique
    into a multi-valued state variable.
Write a Comment
User Comments (0)
About PowerShow.com