representation and reasoning with graphical models

27
Representation and Reasoning with Graphical Models Rina Dechter Information and Computer Science, UC- Irvine, and Radcliffe Institue of Advanced Study, Cambridge

Upload: herman-ayers

Post on 30-Dec-2015

39 views

Category:

Documents


1 download

DESCRIPTION

Representation and Reasoning with Graphical Models. Rina Dechter Information and Computer Science, UC-Irvine, and Radcliffe Institue of Advanced Study, Cambridge. Outline. Introduction to reasoning in AI Graphical models Constraint networks Probabilistic networks Graph-based reasoning. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Representation and Reasoning  with Graphical Models

Representation and Reasoning with Graphical Models

Rina Dechter

Information and Computer Science, UC-Irvine, and

Radcliffe Institue of Advanced Study, Cambridge

Page 2: Representation and Reasoning  with Graphical Models

Radcliffe Institute 2/6/06 2

Outline Introduction to reasoning in AI Graphical models

Constraint networks Probabilistic networks

Graph-based reasoning

Page 3: Representation and Reasoning  with Graphical Models

Radcliffe Institute 2/6/06 3

The Turing Test(Can Machine think? A. M. Turing, 1950)

Requires Natural language Knowledge representation Automated reasoning Machine learning (vision, robotics) for full test

Page 4: Representation and Reasoning  with Graphical Models

Radcliffe Institute 2/6/06 4

Propositional Reasoning

If Alex goes, then Becky goes: If Chris goes, then Alex goes:

Question: Is it possible that Chris goes to

the party but Becky does not?

Example: party problem

BA

A C

e?satisfiabl ,,

theIs

C B, ACBA

theorynalpropositio

= A

= B

= C

= A

Page 5: Representation and Reasoning  with Graphical Models

Radcliffe Institute 2/6/06 5

Sudoku –Constraint Satisfaction

Each row, column and major block must be alldifferent

“Well posed” if it has unique solution: 27 constraints

2 34 62

•Variables: empty slots

•Domains = {1,2,3,4,5,6,7,8,9}

•Constraints: •27 all-different

•Constraint •Propagation

•Inference

Page 6: Representation and Reasoning  with Graphical Models

Radcliffe Institute 2/6/06 6

Graphs

C E

A B

F G

D

A graph A tree

E G

B C

J K

F

DA

L

M

H

D O

F J

H PL

C

BA M

N

G K

E

A graph with one cycle

D

CA B

E

Directed graph

HF G J

Page 7: Representation and Reasoning  with Graphical Models

Radcliffe Institute 2/6/06 7

A Bred greenred yellowgreen redgreen yellowyellow greenyellow red

Example: map coloring Variables - countries (A,B,C,etc.)

Values - colors (red, green, blue)

Constraints: etc. ,ED D, AB,A

C

A

B

DE

F

G

A

Constraint Networks

A

B

E

G

DF

C

Constraint graph

Page 8: Representation and Reasoning  with Graphical Models

Radcliffe Institute 2/6/06 8

Example: map coloring Variables - countries (A,B,C,etc.)

Values - colors (e.g., red, green, yellow)

Constraints: etc. ,ED D, AB,A

AA BB CC DD E…E…

red green

red

green

blue

red blu gre green

blue

… … … … green

… … … … red

red blue

red

green red

Constraint Satisfaction Tasks

Are the constraints consistent?

Find a solution, find all solutions

Count all solutions

Find a good solution

Page 9: Representation and Reasoning  with Graphical Models

Radcliffe Institute 2/6/06 9

Information as Constraints I have to finish my talk in 30 minutes 180 degrees in a triangle Memory in our computer is limited The four nucleotides that makes up a DNA only

combine in a particular sequence Sentences in English must obey the rules of

syntax Susan cannot be married to both John and Bill Alexander the Great died in 333 B.C.

Page 10: Representation and Reasoning  with Graphical Models

Radcliffe Institute 2/6/06 10

Applications Planning and scheduling

Transportation scheduling, factory scheduling Configuration and design problems

floorplans Circuit diagnosis Scene labeling Spreadsheets Temporal reasoning, Timetabling Natural language processing Puzzles: crosswords, sudoku, cryptarithmetic

Page 11: Representation and Reasoning  with Graphical Models

Radcliffe Institute 2/6/06 11

Probabilistic ReasoningParty example: the weather effect

Alex is-likely-to-go in bad weather Chris rarely-goes in bad weather Becky is indifferent but unpredictable

Questions: Given bad weather, which group of

individuals is most likely to show up at the party?

What is the probability that Chris goes to the party but Becky does not?

P(W,A,C,B) = P(B|W) · P(C|W) · P(A|W) · P(W)

P(A,C,B|W=bad) = 0.9 · 0.1 · 0.5

P(A|W=bad)=.9W A

P(C|W=bad)=.1W C

P(B|W=bad)=.5W B

W

P(W)

P(A|W)P(C|W)P(B|W)

B CA

W A P(A|W)

good 0 .01

good 1 .99

bad 0 .1

bad 1 .9

Page 12: Representation and Reasoning  with Graphical Models

Radcliffe Institute 2/6/06 12

Bayesian Networks: Representation(Pearl, 1988)

P(S, C, B, X, D) = P(S) P(C|S) P(B|S) P(X|C,S) P(D|C,B)

lung Cancer

Smoking

X-ray

Bronchitis

DyspnoeaP(D|C,B)

P(B|S)

P(S)

P(X|C,S)

P(C|S)

Θ) (G,BN

CPD: C B P(D|C,B)0 0 0.1 0.90 1 0.7 0.31 0 0.8 0.21 1 0.9 0.1

Belief Updating:P (lung cancer=yes | smoking=no, dyspnoea=yes ) = ?

Page 13: Representation and Reasoning  with Graphical Models

Radcliffe Institute 2/6/06 13

The “alarm” network - 37 variables, 509 parameters (instead of 237)

PCWP CO

HRBP

HREKG HRSAT

ERRCAUTERHRHISTORY

CATECHOL

SAO2 EXPCO2

ARTCO2

VENTALV

VENTLUNG VENITUBE

DISCONNECT

MINVOLSET

VENTMACHKINKEDTUBEINTUBATIONPULMEMBOLUS

PAP SHUNT

ANAPHYLAXIS

MINOVL

PVSAT

FIO2PRESS

INSUFFANESTHTPR

LVFAILURE

ERRBLOWOUTPUTSTROEVOLUMELVEDVOLUME

HYPOVOLEMIA

CVP

BP

Monitoring Intensive-Care Patients

Page 14: Representation and Reasoning  with Graphical Models

Radcliffe Institute 2/6/06 14

Sample Domains Web Pages and Link Analysis Battlespace Awareness Epidemiological Studies Citation Networks Communication Networks (Cell phone Fraud

Detection) Intelligence Analysis (Terrorist Networks) Financial Transactions (Money Laundering) Computational Biology Object Recognition and Scene Analysis Natural Language Processing (e.g. Information

Extraction and Semantic Parsing)

Page 15: Representation and Reasoning  with Graphical Models

Radcliffe Institute 2/6/06 15

Graphical models in News:The New York Times, Dec 15, 2005 Three Technology Companies Join to Finance

Research in Graphical Models

David Patterson, center, founding director of the Berkeley lab, talks with Prof. Michael Jordan of Berkeley, right, and Prof. Armando Fox of Stanford.

Page 16: Representation and Reasoning  with Graphical Models

Radcliffe Institute 2/6/06 16

Complexity of Reasoning Tasks Constraint satisfaction Counting solutions Combinatorial

optimization Belief updating Most probable

explanation Decision-theoretic

planning

Reasoning is computationally hard

Linear / Polynomial / Exponential

0

200

400

600

800

1000

1200

1 2 3 4 5 6 7 8 9 10

n

f(n)

Linear

Polynomial

Exponential

Complexity isTime and space(memory)

Page 17: Representation and Reasoning  with Graphical Models

Radcliffe Institute 2/6/06 17

Tree-solving is easy

Belief updating (sum-prod)

MPE (max-prod)

CSP – consistency (projection-join)

#CSP (sum-prod)

P(X)

P(Y|X) P(Z|X)

P(T|Y) P(R|Y) P(L|Z) P(M|Z)

)(XmZX

)(XmXZ

)(ZmZM)(ZmZL

)(ZmMZ)(ZmLZ

)(XmYX

)(XmXY

)(YmTY

)(YmYT

)(YmRY

)(YmYR

Trees are processed in linear time and memory

Page 18: Representation and Reasoning  with Graphical Models

Radcliffe Institute 2/6/06 18

Transforming into a Tree By Inference (thinking)

Transform into a single, equivalent tree of sub-problems

By Conditioning (guessing) Transform into many tree-like sub-

problems.

Page 19: Representation and Reasoning  with Graphical Models

Radcliffe Institute 2/6/06 19

Inference and Treewidth

EK

F

L

H

C

BA

M

G

J

D

ABC

BDEF

DGF

EFH

FHK

HJ KLM

treewidth = 4 - 1 = 3treewidth = (maximum cluster size) - 1

Inference algorithm:Time: exp(tree-width)Space: exp(tree-width)

Page 20: Representation and Reasoning  with Graphical Models

Radcliffe Institute 2/6/06 20

Conditioning and Cycle cutset

C P

J A

L

B

E

DF M

O

H

K

G N

C P

J

L

B

E

DF M

O

H

K

G N

A

C P

J

L

E

DF M

O

H

K

G N

B

P

J

L

E

DF M

O

H

K

G N

C

Cycle cutset = {A,B,C}

C P

J A

L

B

E

DF M

O

H

K

G N

C P

J

L

B

E

DF M

O

H

K

G N

C P

J

L

E

DF M

O

H

K

G N

C P

J A

L

B

E

DF M

O

H

K

G N

Page 21: Representation and Reasoning  with Graphical Models

Radcliffe Institute 2/6/06 21

Search over the Cutset

A=yellow A=green

• Inference may require too much memory

• Condition (guessing) on some of the variables

C

B K

G

L

D

FH

M

J

E

C

B K

G

L

D

FH

M

J

E

AC

B K

G

L

D

FH

M

J

E

GraphColoringproblem

Page 22: Representation and Reasoning  with Graphical Models

Radcliffe Institute 2/6/06 22

Search over the Cutset (cont)

A=yellow A=green

B=red B=blue B=red B=blueB=green B=yellow

C

K

G

L

D

FH

M

J

E

C

K

G

L

D

FH

M

J

E

C

K

G

L

D

FH

M

J

E

C

K

G

L

D

FH

M

J

E

C

K

G

L

D

FH

M

J

E

C

K

G

L

D

FH

M

J

E

• Inference may require too much memory

• Condition on some of the variablesA

C

B K

G

L

D

FH

M

J

E

GraphColoringproblem

Page 23: Representation and Reasoning  with Graphical Models

Radcliffe Institute 2/6/06 23

Inference vs. Conditioning By Inference (thinking)

E K

F

L

H

C

BA

M

G

J

DABC

BDEF

DGF

EFH

FHK

HJ KLM

By Conditioning (guessing)

Exponential in treewidth

Time and memory

Exponential in cycle-cutsetTime-wise, linear memory

A=yellow A=green

B=blue B=red B=blueB=green

CK

G

LD

F H

M

J

EACB K

G

LD

F H

M

J

E

CK

G

LD

F H

M

J

EC

K

G

LD

F H

M

J

EC

K

G

LD

F H

M

J

E

Page 24: Representation and Reasoning  with Graphical Models

Radcliffe Institute 2/6/06 24

My Work

Constraint networks: Graph-based parameters and algorithms for constraint satisfaction, tree-width and cycle-cutset, summarized in “Constraint Processing”, Morgan Kaufmann, 2003

Probabilistic networks: Transferring these ideas to Probabilistic network, helping unifying the principles.

Current work: Mixing probabilistic and deterministic network

Page 25: Representation and Reasoning  with Graphical Models

Radcliffe Institute 2/6/06 25

A B

C

DE

F

A B

C

DS

F

A B

C

DE

F

A B

C

DS

F

3. Mix: combine? Subsume?

Semantic?Algorithms?

1.

2.

Research in Radcliffe:Mixed Probabilistic and Deterministic networks

),|( CABP

CA

),|( CABP

CA

BNCN

Page 26: Representation and Reasoning  with Graphical Models

Radcliffe Institute 2/6/06 26

Research in Radcliffe:Mixed Probabilistic and Deterministic networks

P(C|W)P(B|W)

P(W)

P(A|W)

W

B A C

Query:Is it likely that Chris goes to the party if Becky does not but the weather is bad?

PN

CN

Semantics?

Algorithms?),,|,( ACBAbadwBCP

A→B C→A

B A CP(C|W)P(B|W)

P(W)

P(A|W)

W

B A C

A→B C→A

B A C

Page 27: Representation and Reasoning  with Graphical Models

The End

Thank You