¾: the saddam and george show blair: let's move on. saddam, are you willing to destroy your...

34
¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons inspectors' orders? Saddam: I explain to you now that if Iraq possessed these so-called weapons, we would never destroy them, but since we do not have any such weapons, we are happy to comply, even though these non-existent weapons certainly do not exceed the proscribed range of 150 kms. I've tested them myself, and we don't have any. Blair: The final question is for George Bush. Mr President, is there any way that Saddam Hussein can avoid war, and what steps must he now take in order to reach a negotiated solution? Bush: Listen to me. It's very simple. First Saddam must compile 200% with the UN inspectorers, and I mean activated compilation, not passivist compilation. Second, he must disarm fully, in keeping with UN revelation 1441 and the next one coming, 1441B, which will require him to disarm even more fully that. Then he must destroy all Samoud missiles and any other weapons of mass destruction he is found, or not found, to be possessive of, without being asked. Finally, there is one more task he must perform, which I am not at liberty to revulge. And even that will not be enough. Tim Dowling; Guardian 2/25

Post on 20-Dec-2015

217 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: ¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons

¾: The Saddam and George show

• Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons inspectors' orders?

• Saddam: I explain to you now that if Iraq possessed these so-called weapons, we would never destroy them, but since we do not have any such weapons, we are happy to comply, even though these non-existent weapons certainly do not exceed the proscribed range of 150 kms. I've tested them myself, and we don't have any.

• Blair: The final question is for George Bush. Mr President, is there any way that Saddam Hussein can avoid war, and what steps must he now take in order to reach a negotiated solution?

• Bush: Listen to me. It's very simple. First Saddam must compile 200% with the UN inspectorers, and I mean activated compilation, not passivist compilation. Second, he must disarm fully, in keeping with UN revelation 1441 and the next one coming, 1441B, which will require him to disarm even more fully that. Then he must destroy all Samoud missiles and any other weapons of mass destruction he is found, or not found, to be possessive of, without being asked. Finally, there is one more task he must perform, which I am not at liberty to revulge. And even that will not be enough.

Tim Dowling; Guardian 2/25

Page 2: ¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons

3/4

A bit on the EBL/Memo connection

Alternative encoding substrates

Direct encodings

Page 3: ¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons
Page 4: ¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons
Page 5: ¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons

onT-A

onT-B

cl-A

cl-B

he

Pick-A

Pick-B

onT-A

onT-B

cl-A

cl-B

he

h-A

h-B

~cl-A

~cl-B

~he

St-A-B

St-B-A

Ptdn-A

Ptdn-B

Pick-A

onT-A

onT-B

cl-A

cl-B

he

h-Ah-B

~cl-A

~cl-B

~he

on-A-B

on-B-A

Pick-B

Variables/Domains:~cl-B-2: { #, St-A-B-2, Pick-B-2,~cl-B-1}he-2: {#, St-A-B-2, St-B-A-2,Ptdn-A-2,Ptdn-B-2,he-1}h-A-1: {#, Pick-A-1,h-A-0}h-B-1: {#,Pick-B-1,h-B-0 }….

Constraints: he-2 = St-A-B-2 => h-A-1 !=# {activation}

On-A-B-2 = St-A-B-2 => On-B-A-2 != St-B-A-2 {mutex constraints} Goals:~cl-B-2 != # he-2 !=#

Conversion to CSP

-- This search can also be cast as a CSP Variables: literals in proposition lists Values: actions supporting them Constraints: Mutex and Activation constraints

Page 6: ¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons

Why is Memoization such a neat idea for Graphplan??

Page 7: ¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons
Page 8: ¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons

Mutex propagation as CSP pre-processing

• Suppose we start with a PG that only marks every pair of “interfering” actions as mutex

• Any pair of non-noop actions are interfering• Any pair of actions are interfering if one gives P and other gives or requires ~P• No propagation is done

– Converting this PG and CSP and solving it will still give a valid solution (if there is one)

– So what is mutex propagation doing?• It is “explicating” implicit constraints• A special subset of “3-consistency” enforcement

– Recall that enforcing k-consistency involves adding (k-1)-ary constraints– *Not* full 3-consistency (which can be much costlier)

» So enforcing the consistency on PG is cheaper than enforcing it after conversion to CSP...

Page 9: ¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons

Alternative encodings..

• The problem of finding a valid plan from the planning graph can be encoded on any combinatorial substrate

• Alternatives:– CSP [GP-CSP]– SAT [Blackbox; SATPLAN]– IP [Vossen et. Al]

Page 10: ¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons

Compilation to CSP[D

o & K

ambhampati, 2000]

Variables: Propositions (In-A-1, In-B-1, ..At-R-E-0 …)Domains: Actions supporting that proposition in the plan In-A-1 : { Load-A-1, #} At-R-E-1: {P-At-R-E-1, #} Constraints: Mutual exclusion ~[ ( In-A-1 = Load-A-1) & (At-R-M-1 = Fly-R-1)] ; etc..

Activation In-A-1 != # & In-B-1 != # (Goals must have action assignments) In-A-1 = Load-A-1 => At-R-E-0 != # , At-A-E-0 != # (subgoal activation constraints)

[Corr

esp

onds

to a

regre

ssio

n-b

ase

d p

roof]

At(R,E)

At(A,E)

At(B,E)

1: Load(A)

2 : Load(B)

3 : Fly(R)

P-At(R,E)

P-At(A,E)

P-At(B,E)

In(A)

In(B)

At(R,M)

At(R,E)

At(A,E)

At(B,E)

Goals: In(A),In(B)

CSP: Given a set of discrete variables,the domains of the variables, and constraintson the specific values a set of variables can takein combination, FIND an assignment of values toall the variables which respects all constraints

Page 11: ¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons

Compilation to SAT

Init: At-R-E-0 & At-A-E-0 & At-B-E-0Goal: In-A-1 & In-B-1

Graph: “cond at k => one of the supporting actions at k-1” In-A-1 => Load-A-1 In-B-1 => Load-B-1 At-R-M-1 => Fly-R-1 At-R-E-1 => P-At-R-E-1

Load-A-1 => At-R-E-0 & At-A-E-0 “Actions => preconds” Load-B-1 => At-R-E-0 & At-B-E-0 P-At-R-E-1 => At-R-E-0h

~In-A-1 V ~ At-R-M-1 ~In-B-1 V ~At-R-M-1 “Mutexes”

At(R,E)

At(A,E)

At(B,E)

1: Load(A)

2 : Load(B)

3 : Fly(R)

P-At(R,E)

P-At(A,E)

P-At(B,E)

In(A)

In(B)

At(R,M)

At(R,E)

At(A,E)

At(B,E)

[Kautz

& Selman]

Goals: In(A),In(B)

SAT is CSP with Boolean Variables

Page 12: ¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons

Blackbox

• Blackbox solves planning problems by converting them into SAT. – Very fast– Tried different solvers

• Local search (GSAT)• Systematic search with EBL (RelSAT)• In 2000, GP-CSP could beat Blackbox

– But in 2001, a newer “SUPER-DUPER” SAT solver called CHAFF was developed, that significantly speeds up Graphplan

» By folks in CAD community (EE folks—see getting other people to do our work)

– Currently, CSP people are trying to copy over the ideas from CHAFF to CSP.

Page 13: ¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons

CSP Encodings can be more compact: GP-CSP

Graphplan Satz Relsat GP-CSP

Problem time (s) mem time(s) mem time (s) mem time (s) mem

bw-12steps 0.42 1 M 8.17 64 M 3.06 70 M 1.96 3M

bw-large-a 1.39 3 M 47.63 88 M 29.87 87 M 1.2 11M

rocket-a 68 61 M 8.88 70 M 8.98 73 M 4.01 3M

rocket-b 130 95 M 11.74 70 M 17.86 71 M 6.19 4 M

log-a 1771 177 M 7.05 72 M 4.40 76 M 3.34 4M

log-b 787 80 M 16.13 79 M 46.24 80 M 110 4.5M

hsp-bw-02 0.86 1 M 7.15 68 M 2.47 66 M .89 4.5 M

hsp-bw-03 5.06 24 M > 8 hs - 194 121 M 4.47 13 M

hsp-bw-04 19.26 83 M > 8 hs - 1682 154 M 39.57 64 M

Do & Kambhampati, 2000

Page 14: ¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons

Compilation to Integer Linear Programming

• Motivations– Ability to handle numeric quantities, and do optimization

– Heuristic value of the LP relaxation of ILP problems

• Conversion – Convert a SAT/CSP encoding to ILP inequalities

• E.g. X v ~Y v Z => x + (1 - y) + z >= 1

– Explicitly set up tighter ILP inequalities (Cutting constraints)• If X,Y,Z are pairwise mutex, we can write x+y+z <= 1

(instead of x+y <=1 ; y+z <=1 ; z +x <= 1)[ W

alser & Kautz;

Vossen et. al;

Bockmayr & Dimopolous]

ILP: Given a set of real valued variables, a linear objective function on the variables, a set of linear inequalities on the variables, and a set of integrality restrictions on the variables, Find the values of the feasible variables for which the objective function attains the maximum value -- 0/1 integer programming corresponds closely to SAT problem

Page 15: ¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons

Vossen/Ball/Lotem/Nau work

• Vossen et. Al. [IJCAI 99] tried two different IP encodings– First one is the simple conversion of a planning graph SAT

encoding to IP (see previous slide)– The second encoding used two ideas

• Compile away proposition variables.– The change of truth value of a proposition is equated to the occurrence of

one of the actions that can give that proposition. This is basically a known transformation—see the McAllester/Kautz/Selman paper. (see next slide)

• Reformulate the constraints to make better use of expressiveness provided by IP

– E.g. IP is particularly good at compactly encoding n-ary mutex constraints—even for n>2

– To say only one of X1..Xn can be true, we just say X1+X2+…Xn <= 1 – In SAT, we have to write n constraints of the form

» Xi => ~X1,~X2…~Xi-1,~Xi+1,….~Xn– (IP, on the other hand, will have harder time representing “All-different”

constraints)

Page 16: ¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons
Page 17: ¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons
Page 18: ¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons
Page 19: ¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons

Empirical performance of IP Encodings

• As seen in the previous slide, IP encodings are not competitive with SAT/CSP encodings for classical planning

• Not surprising because we are neither exercizing the “optimizing” properties of IP, nor are we exercizing its ability to encode numerical variables – IP may well do better if we are interested in finding “cost-optimal”

plans of a given makespan (length)• No one has confirmed this as yet…

– IP encodings may well be more useful when we have numerical quantities such as actions consuming metric resources (preconditions and effects involve numbers)

• See the work by Kautz and Walser(AAAI-99) or LPSat (Wolfman/Weld—IJCAI 99).

Page 20: ¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons

Relative Tradeoffs Offered bythe various compilation substrates

• CSP encodings support implicit representations– More compact encodings [Do & Kambhampati, 2000]– Easier integration with Scheduling techniques

• ILP encodings support numeric quantities – Seamless integration of numeric resource constraints [Walser & Kautz, 1999]– Not competitive with CSP/SAT for problems without numeric constraints

• SAT encodings support axioms in propositional logic form– May be more natural to add (for whom ;-)– Very active research on finding faster solvers..

• Davis Putnam ( Satz; RelSat; Chaff)• Gsat

Page 21: ¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons

Direct vs. compiled solution extraction

Need to adapt CSP/SAT techniques

Can exploit approaches for compacting the plan

Can make the search incremental across iterations

Can exploit the latest advances in SAT/CSP solvers

Compilation stage can be time consuming, leads to memory blow-up

Makes it harder to exploit search from previous iterations

Makes it easier to add declarative control knowledge

DIRECT Compiled

Page 22: ¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons

LPG: Local Search on Planning Graphs

• The winner of the 2003 planning competition was “LPG”– LPG does local search on the planning graphs directly (rather than,

say, convert to SAT and use GSAT/WalkSAT).• Select a seed subgraph of a k-length graph• If it is solution; you are done.• If not “Repair” it

– Repairs include adding/deleting action/precondition nodes– + expanding the planning graph

– Repair techniques tend to be more tuned to planning graphs, and are thus more effective in solving planning problems.

[A short paper is in AIPS 2002. http://prometeo.ing.unibs.it/lpg]

Page 23: ¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons

But why go from Planning Graph to CSP/SAT/ILP?

Why not directly make those encodings?

What—if any thing is Planning Graph Buying us?

Page 24: ¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons
Page 25: ¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons

Basically GP minimum Mutex propagation (which willadd more derived constraints)

Page 26: ¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons
Page 27: ¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons
Page 28: ¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons
Page 29: ¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons
Page 30: ¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons
Page 31: ¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons
Page 32: ¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons

Should we bother with Proof-based encodings?

• Clearly Graphplan-based encodings are better than backward-proof based encodings– Because Graphplan does Mutex propagation– And mutex propagation is harder to do on direct SAT

• And yet, it is useful to know how to set up encodings directly—since if we don’t know how to do directed consistency enforcement, then we at least know how to solve the problem – Particularly useful for non-classical problems, where we haven’t

yet found really effective mutex propagation procedures.– If “neural networks are often the second best way of solving any

problem”, you can say that direct SAT(or other) encodings are the second best way of solving planning problems

• Which is better than “no way at all”

Page 33: ¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons
Page 34: ¾: The Saddam and George show Blair: Let's move on. Saddam, are you willing to destroy your stockpile of Samoud 2 missiles in accordance with UN weapons