Presentation is loading. Please wait.

Presentation is loading. Please wait.

Generalized Belief Propagation

Similar presentations


Presentation on theme: "Generalized Belief Propagation"— Presentation transcript:

1 Generalized Belief Propagation
Readings: K&F: 10.2, 10.3 Generalized Belief Propagation Graphical Models – 10708 Carlos Guestrin Carnegie Mellon University November 12th, 2008 – Carlos Guestrin

2 More details on Loopy BP
Difficulty SAT Grade Happy Job Coherence Letter Intelligence Numerical problem: messages < 1 get multiplied together as we go around the loops numbers can go to zero normalize messages to one: Zi!j doesn’t depend on Xj, so doesn’t change the answer Computing node “beliefs” (estimates of probs.): – Carlos Guestrin

3 Loopy BP in Factor graphs
From node i to factor j: F(i) factors whose scope includes Xi From factor j to node i: Scope[j] = Y[{Xi} Belief: Node: Factor: A B C D E ABC ABD BDE CDE – Carlos Guestrin

4 Loopy BP v. Clique trees: Two ends of a spectrum
DIG GJSL HGJ CD GSI Difficulty SAT Grade Happy Job Coherence Letter Intelligence – Carlos Guestrin 2006

5 Generalize cluster graph
Generalized cluster graph: For set of factors F Undirected graph Each node i associated with a cluster Ci Family preserving: for each factor fj 2 F, 9 node i such that scope[fi] ÍCi Each edge i – j is associated with a set of variables Sij Í Ci Ç Cj – Carlos Guestrin 2006

6 Running intersection property
(Generalized) Running intersection property (RIP) Cluster graph satisfies RIP if whenever X2 Ci and X2 Cj then 9 one and only one path from Ci to Cj where X2Suv for every edge (u,v) in the path – Carlos Guestrin 2006

7 Examples of cluster graphs
– Carlos Guestrin 2006

8 Two cluster graph satisfying RIP with different edge sets
– Carlos Guestrin 2006

9 Generalized BP on cluster graphs satisfying RIP
Initialization: Assign each factor  to a clique (), Scope[]ÍC() Initialize cliques: Initialize messages: While not converged, send messages: Belief: – Carlos Guestrin 2006

10 Cluster graph for Loopy BP
Difficulty SAT Grade Happy Job Coherence Letter Intelligence – Carlos Guestrin 2006

11 What if the cluster graph doesn’t satisfy RIP
– Carlos Guestrin 2006

12 Region graphs to the rescue
Can address generalized cluster graphs that don’t satisfy RIP using region graphs: Book: 10.3 Example in your homework!  – Carlos Guestrin 2006

13 Revisiting Mean-Fields
Choice of Q: Optimization problem: – Carlos Guestrin 2006

14 Announcements Recitation tomorrow HW5 out soon
Will not cover relational models this semester Instead, recommend Pedro Domingos’ tutorial on Markov Logic Markov logic is one example of a relational probabilistic model November 14th from 1:00 pm to 3:30 pm in Wean 4623 – Carlos Guestrin

15 Interpretation of energy functional
Exact if P=Q: View problem as an approximation of entropy term: – Carlos Guestrin 2006

16 Entropy of a tree distribution
Coherence Entropy term: Joint distribution: Decomposing entropy term: More generally: di number neighbors of Xi Difficulty Intelligence Grade SAT Letter – Carlos Guestrin 2006

17 Loopy BP & Bethe approximation
Difficulty SAT Grade Happy Job Coherence Letter Intelligence Energy functional: Bethe approximation of Free Energy: use entropy for trees, but loopy graphs: Theorem: If Loopy BP converges, resulting bij & bi are stationary point (usually local maxima) of Bethe Free energy! – Carlos Guestrin 2006

18 GBP & Kikuchi approximation
DIG GJSL HGJ CD GSI Exact Free energy: Junction Tree Bethe Free energy: Kikuchi approximation: Generalized cluster graph spectrum from Bethe to exact Theorem: If GBP converges, resulting bCi are stationary point (usually local maxima) of Kikuchi Free energy! Difficulty SAT Grade Happy Job Coherence Letter Intelligence – Carlos Guestrin 2006

19 What you need to know about GBP
Spectrum between Loopy BP & Junction Trees: More computation, but typically better answers If satisfies RIP, equations are very simple General setting, slightly trickier equations, but not hard Relates to variational methods: Corresponds to local optima of approximate version of energy functional – Carlos Guestrin 2006

20 Parameter learning in Markov nets
Readings: K&F: 10.2, 10.3 Parameter learning in Markov nets Graphical Models – 10708 Carlos Guestrin Carnegie Mellon University November 12th, 2008 – Carlos Guestrin

21 Learning Parameters of a BN
D S G H J C L I Log likelihood decomposes: Learn each CPT independently Use counts – Carlos Guestrin 2006

22 Log Likelihood for MN Log likelihood of the data: Difficulty SAT Grade
Happy Job Coherence Letter Intelligence – Carlos Guestrin 2006

23 Log Likelihood doesn’t decompose for MNs
A convex problem Can find global optimum!! Term log Z doesn’t decompose!! Difficulty SAT Grade Happy Job Coherence Letter Intelligence – Carlos Guestrin 2006

24 Derivative of Log Likelihood for MNs
Difficulty SAT Grade Happy Job Coherence Letter Intelligence – Carlos Guestrin 2006

25 Derivative of Log Likelihood for MNs 2
Difficulty SAT Grade Happy Job Coherence Letter Intelligence – Carlos Guestrin 2006

26 Derivative of Log Likelihood for MNs
Difficulty SAT Grade Happy Job Coherence Letter Intelligence Derivative: Computing derivative requires inference: Can optimize using gradient ascent Common approach Conjugate gradient, Newton’s method,… Let’s also look at a simpler solution – Carlos Guestrin 2006

27 Iterative Proportional Fitting (IPF)
Difficulty SAT Grade Happy Job Coherence Letter Intelligence Setting derivative to zero: Fixed point equation: Iterate and converge to optimal parameters Each iteration, must compute: – Carlos Guestrin 2006

28 What you need to know about learning MN parameters?
BN parameter learning easy MN parameter learning doesn’t decompose! Learning requires inference! Apply gradient ascent or IPF iterations to obtain optimal parameters – Carlos Guestrin 2006


Download ppt "Generalized Belief Propagation"

Similar presentations


Ads by Google