dynamic probabilistic relational models paper by: sumit sanghai, pedro domingos, daniel weld

33
Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld Anna Yershova [email protected] Presentation slides are adapted from: Lise Getoor, Eyal Amir and Pedro Domingos slides

Upload: dea

Post on 12-Jan-2016

25 views

Category:

Documents


0 download

DESCRIPTION

Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld. Anna Yershova [email protected]. Presentation slides are adapted from: Lise Getoor, Eyal Amir and Pedro Domingos slides. The problem. How to represent/model uncertain sequential phenomena?. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld

Dynamic Probabilistic Relational Models

Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld

Anna Yershova

[email protected]

Presentation slides are adapted from: Lise Getoor, Eyal Amir and Pedro Domingos slides

Page 2: Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld

The problem

How to represent/model uncertain sequential phenomena?

Page 3: Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld
Page 4: Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld

Limitations of the DBNs

How to represent: • Classes of objects and multiple instances of a

class • Multiple kinds of relations • Relations evolving over time

Example: Early fault detection in manufacturing Complex and diverse relations evolving over the manufacturing process.

Page 5: Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld

PLATE

weightshapecolor

PLATE

weightshapecolor

PLATE

weightshapecolor

Fault detection in manufacturing

PLATE

weightshapecolor

PLATE

weightshapecolor

BRACKETweightshapecolor

welded tobolt

PLATE

weightshapecolor

PLATE

weightshapecolor

PLATE

weightshapecolor

BOLTweightsizetype

welded tobolt

PLATEweightshapecolor

welded tobolt

PLATE

weightshapecolor

PLATE

weightshapecolor

PLATE

weightshapecolor

ACTION

action

Page 6: Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld
Page 7: Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld
Page 8: Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld
Page 9: Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld
Page 10: Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld

Strain s1

Patient p1

Patient p2

Contactc3

Contactc2

Contactc1

Strain s2

Patient p3

Strain

Patient

Contact

DPRM with AU Semantics

)).(|.(),S,|( ,.

AxparentsAxPP Sx Ax

I

AttributesObjects

probability distribution over completions I:

2TPRM relational skeletons 12+ =

Strain

Patient

Contact

Strain s1

Patient p1

Patient p2

Contactc3

Contactc2

Contactc1

Strain s2

Patient p3

Page 11: Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld
Page 12: Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld

Particle Filtering

Page 13: Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld

The Objective of PF

• The objective of the particle filter is to compute the conditional distribution

• To do this analytically - expensive• The particle filter gives us an approximate

computational technique.

Page 14: Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld

Particle Filter Algorithm

• Create particles as samples from the initial state distribution p(A1, B1, C1).

• For i going from 1 to N– Update each particle using the state update

equation.– Compute weights for each particle using the

observation value.– (Optionally) resample particles.

Page 15: Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld

Initial State Distribution

A1, B1, C1

A1, B1, C1

Page 16: Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld

Prediction

At, Bt, Ct

At, Bt, Ct = f (At, Bt, Ct )

At, Bt, Ct

Page 17: Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld

Compute Weights

Before

After

At, Bt, Ct

At, Bt, Ct

At, Bt, Ct

Page 18: Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld

Resample

At, Bt, Ct

At, Bt, Ct

Page 19: Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld
Page 20: Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld
Page 21: Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld

Rao-Blackwellised PF

Page 22: Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld
Page 23: Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld

Another Issue

• Rao-Blackwellising the relational attributes can vastly reduce the size of the state space.

• If the relational skeleton contains a large number of objects and relations, storing and updating all the requisite probabilities can still become quite expensive.

• Use some particular knowledge of the domain

Page 24: Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld

Abstraction trees

• Replace the vector of probabilities with a tree structure

• leaves represent probabilities for entire sets of objects

• nodes represent all combinations of the propositional attributes

Part21 - pf

Uniform distr. over the rest of the objects

trueP(Part1.mate | Bolt(Part1, Part2))

Page 25: Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld

PLATE

weightshapecolor

PLATE

weightshapecolor

PLATE

weightshapecolor

Experiments

PLATE

weightshapecolor

PLATE

weightshapecolor

BRACKETweightshapecolor

welded tobolt

PLATE

weightshapecolor

PLATE

weightshapecolor

PLATE

weightshapecolor

BOLTweightsizetype

welded tobolt

PLATEweightshapecolor

welded tobolt

PLATE

weightshapecolor

PLATE

weightshapecolor

PLATE

weightshapecolor

ACTION

action

Dom(ACTION.action) ={paint, drill, polish,Change prop. Attr.,Change rel. Attr.}

Page 26: Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld

Fault Model Used

With probability 1 pf an action produces the intended effect, with probability pf one of the several faults occur:

• Painting not being completed

• Wrong color used

• Bolting the wrong object

• Welding the wrong object

Page 27: Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld

Observation Model Used

With probability 1 po the truth value of the attribute is observed, with probability po an incorrect value is observed

Page 28: Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld

Measure of the Accuracy

• K-L divergence between distributions

• Computing is infeasible – approximation is needed

Page 29: Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld

Approximation of K-L Divergence

• We are interested only in measuring the differences in performance of different approximation methods -> first term is eliminated

• Take S samples from the true distribution (S = 10,000 in the experiments)

Page 30: Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld
Page 31: Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld
Page 32: Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld

Experimental Results

• Abstraction trees reduced RBPF’s time and memory by a factor of 30 to 70

• On average six times longer and 11 times the memory of PF, per particle.

• However, note that we ran PF with 40 times more particles than RBPF.

• Thus, RBPF is using less time and memory than PF, and performing far better in accuracy.

Page 33: Dynamic Probabilistic Relational Models Paper by: Sumit Sanghai, Pedro Domingos, Daniel Weld

Conclusions and future work

• Relaxing the assumptions made

• Further scaling up inference

• Studying the properties of the abstraction trees

• Handling continuous variables

• Learning DPRMs

• Applying them to the real world problems