From Elimination to Belief Propagation

Similar documents
Searching Linked Lists. Perfect Skip List. Building a Skip List. Skip List Analysis (1) Assume the list is sorted, but is stored in a linked list.

Strongly Connected Components

Week 3: Connected Subgraphs

Propositional Logic. Combinatorial Problem Solving (CPS) Albert Oliveras Enric Rodríguez-Carbonell. May 17, 2018

Junction Tree Algorithm 1. David Barber

1 Minimum Cut Problem

Section 11.6: Directional Derivatives and the Gradient Vector

Addition of angular momentum

Computing and Communications -- Network Coding

cycle that does not cross any edges (including its own), then it has at least

On the Hamiltonian of a Multi-Electron Atom

Introduction to Arithmetic Geometry Fall 2013 Lecture #20 11/14/2013

Addition of angular momentum

EEO 401 Digital Signal Processing Prof. Mark Fowler

Abstract Interpretation: concrete and abstract semantics

Answer Homework 5 PHA5127 Fall 1999 Jeff Stark

CS 361 Meeting 12 10/3/18

That is, we start with a general matrix: And end with a simpler matrix:

Direct Approach for Discrete Systems One-Dimensional Elements

Physical Organization

1 Isoparametric Concept

Square of Hamilton cycle in a random graph

MCE503: Modeling and Simulation of Mechatronic Systems Discussion on Bond Graph Sign Conventions for Electrical Systems

Search sequence databases 3 10/25/2016

Chapter 6 Folding. Folding

The second condition says that a node α of the tree has exactly n children if the arity of its label is n.

Roadmap. XML Indexing. DataGuide example. DataGuides. Strong DataGuides. Multiple DataGuides for same data. CPS Topics in Database Systems

Y 0. Standing Wave Interference between the incident & reflected waves Standing wave. A string with one end fixed on a wall

priority queue ADT heaps 1

Supplementary Materials

PHYSICS 489/1489 LECTURE 7: QUANTUM ELECTRODYNAMICS

ECE 344 Microwave Fundamentals

Bifurcation Theory. , a stationary point, depends on the value of α. At certain values

Quasi-Classical States of the Simple Harmonic Oscillator

EXST Regression Techniques Page 1

The Equitable Dominating Graph

EEO 401 Digital Signal Processing Prof. Mark Fowler

A Propagating Wave Packet Group Velocity Dispersion

Background: We have discussed the PIB, HO, and the energy of the RR model. In this chapter, the H-atom, and atomic orbitals.

Enumerating Unlabeled and Root Labeled Trees for Causal Model Acquisition

Final Exam Solutions

ME 321 Kinematics and Dynamics of Machines S. Lambert Winter 2002

Analysis of Algorithms - Elementary graphs algorithms -

On spanning trees and cycles of multicolored point sets with few intersections

Analysis of Algorithms - Elementary graphs algorithms -

Dealing with quantitative data and problem solving life is a story problem! Attacking Quantitative Problems

Higher-Order Discrete Calculus Methods

Classical Magnetic Dipole

Abstract Interpretation. Lecture 5. Profs. Aiken, Barrett & Dill CS 357 Lecture 5 1

Inference in Graphical Models Variable Elimination and Message Passing Algorithm

CPSC 665 : An Algorithmist s Toolkit Lecture 4 : 21 Jan Linear Programming

Message Passing Algorithms and Junction Tree Algorithms

SCHUR S THEOREM REU SUMMER 2005

Coupled Pendulums. Two normal modes.

CS 6353 Compiler Construction, Homework #1. 1. Write regular expressions for the following informally described languages:

COHORT MBA. Exponential function. MATH review (part2) by Lucian Mitroiu. The LOG and EXP functions. Properties: e e. lim.

Elements of Statistical Thermodynamics

u 3 = u 3 (x 1, x 2, x 3 )

AS 5850 Finite Element Analysis

Probability Translation Guide

Sec 2.3 Modeling with First Order Equations

Systems of Equations

International Journal of Foundations of Computer Science c World Scientic Publishing Company Searching a Pseudo 3-Sided Solid Orthoconvex Grid ANTONIO

MIT Sloan School of Management

5.80 Small-Molecule Spectroscopy and Dynamics

The van der Waals interaction 1 D. E. Soper 2 University of Oregon 20 April 2012

Hydrogen Atom and One Electron Ions

Finding low cost TSP and 2-matching solutions using certain half integer subtour vertices

2.3 Matrix Formulation

22/ Breakdown of the Born-Oppenheimer approximation. Selection rules for rotational-vibrational transitions. P, R branches.

Recall that by Theorems 10.3 and 10.4 together provide us the estimate o(n2 ), S(q) q 9, q=1

[ ] 1+ lim G( s) 1+ s + s G s s G s Kacc SYSTEM PERFORMANCE. Since. Lecture 10: Steady-state Errors. Steady-state Errors. Then

Derangements and Applications

MAE4700/5700 Finite Element Analysis for Mechanical and Aerospace Design

FEM FOR HEAT TRANSFER PROBLEMS دانشگاه صنعتي اصفهان- دانشكده مكانيك

General Notes About 2007 AP Physics Scoring Guidelines

On the irreducibility of some polynomials in two variables

Ch. 24 Molecular Reaction Dynamics 1. Collision Theory

Basic Polyhedral theory

EECE 301 Signals & Systems Prof. Mark Fowler

MCB137: Physical Biology of the Cell Spring 2017 Homework 6: Ligand binding and the MWC model of allostery (Due 3/23/17)

GEOMETRICAL PHENOMENA IN THE PHYSICS OF SUBATOMIC PARTICLES. Eduard N. Klenov* Rostov-on-Don, Russia

Forces. Quantum ElectroDynamics. α = = We have now:

Symmetric centrosymmetric matrix vector multiplication

Approximation and Inapproximation for The Influence Maximization Problem in Social Networks under Deterministic Linear Threshold Model

The graph of y = x (or y = ) consists of two branches, As x 0, y + ; as x 0, y +. x = 0 is the

Construction of asymmetric orthogonal arrays of strength three via a replacement method

Lecture 4: Parsing. Administrivia

First derivative analysis

There is an arbitrary overall complex phase that could be added to A, but since this makes no difference we set it to zero and choose A real.

Similarity Queries: Their Conceptual Evaluation, Transformations, and Processing

Higher order derivatives

4.5 Minimum Spanning Tree. Chapter 4. Greedy Algorithms. Minimum Spanning Tree. Motivating application

10. The Discrete-Time Fourier Transform (DTFT)

Introduction to the Fourier transform. Computer Vision & Digital Image Processing. The Fourier transform (continued) The Fourier transform (continued)

The pn junction: 2 Current vs Voltage (IV) characteristics

Chapter 13 GMM for Linear Factor Models in Discount Factor form. GMM on the pricing errors gives a crosssectional

Middle East Technical University Department of Mechanical Engineering ME 413 Introduction to Finite Element Analysis

Mutually Independent Hamiltonian Cycles of Pancake Networks

surface of a dielectric-metal interface. It is commonly used today for discovering the ways in

Transcription:

School of omputr Scinc Th lif Propagation (Sum-Product lgorithm Probabilistic Graphical Modls (10-708 Lctur 5, Sp 31, 2007 Rcptor Kinas Rcptor Kinas Kinas X 5 ric Xing Gn G T X 6 X 7 Gn H X 8 Rading: J-hap 4 1 rom limination to lif Propagation Rcall that Inducd dpndncy during marginalization is capturd in limination cliqus Summation <-> limination Intrmdiat trm <-> limination cliqu an this lad to an gnric infrnc algorithm? G H ric Xing 2 1

Tr GMs Undirctd tr: a uniqu path btwn any pair of nods irctd tr: all nods xcpt th root hav xactly on parnt Poly tr: can hav multipl parnts W will com back to this latr ric Xing 3 quivalnc of dirctd and undirctd trs ny undirctd tr can b convrtd to a dirctd tr by choosing a root nod and dircting all dgs away from it dirctd tr and th corrsponding undirctd tr mak th sam conditional indpndnc assrtions Paramtrizations ar ssntially th sam. Undirctd tr: irctd tr: quivalnc: vidnc:? ric Xing 4 2

rom limination to mssag passing Rcall LIMINTION algorithm: hoos an ordring Z in which qury nod f is th final nod Plac all potntials on an activ list liminat nod i by rmoving all potntials containing i, tak sum/product ovr x i. Plac th rsultant factor back on th list or a TR graph: hoos qury nod f as th root of th tr Viw tr as a dirctd tr with dgs pointing towards from f limination ordring basd on dpth-first travrsal limination of ach nod can b considrd as mssag-passing (or lif Propagation dirctly along tr branchs, rathr than on som transformd graphs thus, w can us th tr itslf as a data-structur to do gnral infrnc!! ric Xing 5 Th limination algorithm Procdur Initializ (G, Z 1. Lt Z 1,...,Z k b an ordring of Z such that Z i Z j iff i < j 2. Initializ with th full th st of factors Procdur vidnc ( 1. for ach i Ι, = δ( i, i Procdur Sum-Product-Variabl- limination (, Z, 1. for i = 1,..., k Sum-Product-liminat-Var(, Z i 2. φ φ φ 3. rturn φ 4. Normalization (φ Procdur Normalization (φ 1. P(X =φ (X/ x φ (X Procdur Sum-Product-liminat-Var (, // St of factors Z // Variabl to b liminatd 1. {φ : Z Scop[φ]} 2. 3. ψ φ φ 4. τ Z ψ 5. rturn {τ} ric Xing 6 3

Mssag passing for trs f Lt m ij (x i dnot th factor rsulting from liminating variabls from bllow up to i, which is a function of x i : i This is rminiscnt of a mssag snt from j to i. j k l m ij (x i rprsnts a "blif" of x i from x j! ric Xing 7 limination on trs is quivalnt to mssag passing along tr branchs! f i j k l ric Xing 8 4

Th mssag passing protocol: nod can snd a mssag to its nighbors whn (and only whn it has rcivd mssags from all its othr nighbors. omputing nod marginals: Naïv approach: considr ach nod as th root and xcut th mssag passing algorithm m 21 (x 1 omputing P( m 32 (x 2 m 42 (x 2 ric Xing 9 Th mssag passing protocol: nod can snd a mssag to its nighbors whn (and only whn it has rcivd mssags from all its othr nighbors. omputing nod marginals: Naïv approach: considr ach nod as th root and xcut th mssag passing algorithm m 12 (x 2 omputing P( m 32 (x 2 m 42 (x 2 ric Xing 10 5

Th mssag passing protocol: nod can snd a mssag to its nighbors whn (and only whn it has rcivd mssags from all its othr nighbors. omputing nod marginals: Naïv approach: considr ach nod as th root and xcut th mssag passing algorithm m 12 (x 2 omputing P( m 23 (x 3 m 42 (x 2 ric Xing 11 omputing nod marginals Naïv approach: omplxity: N N is th numbr of nods is th complxity of a complt mssag passing ltrnativ dynamic programming approach 2-Pass algorithm (nxt slid omplxity: 2! ric Xing 12 6

Th mssag passing protocol: two-pass algorithm: m 21 ( m 12 ( m 32 ( m 42 ( m 24 ( m 23 ( ric Xing 13 lif Propagation (SP-algorithm: Squntial implmntation ric Xing 14 7

lif Propagation (SP-algorithm: Paralll synchronous implmntation or a nod of dgr d, whnvr mssags hav arrivd on any subst of d-1 nod, comput th mssag for th rmaining dg and snd! pair of mssags hav bn computd for ach dg, on for ach dirction ll incoming mssags ar vntually computd for ach nod ric Xing 15 orrctnss of P on tr ollollary: th synchronous implmntation is "non-blocking" Thm: Th Mssag Passag Guarants obtaining all marginals in th tr What about non-tr? ric Xing 16 8

nothr viw of SP: actor Graph xampl 1 X 5 f a f d X 5 f c f b f P( P( P(, P(X 5, P(, f a ( f b ( f c (,, f d (X 5,, f (,, ric Xing 17 actor Graphs xampl 2 f a f c ψ(x 1,x 2,x 3 = f a (x 1,x 2 f b (x 2,x 3 f c (x 3,x 1 f b xampl 3 f a ψ(x 1,x 2,x 3 = f a (x 1,x 2,x 3 ric Xing 18 9

actor Tr actor graph is a actor Tr if th undirctd graph obtaind by ignoring th distinction btwn variabl nods and factor nods is an undirctd tr f a ψ(x 1,x 2,x 3 = f a (x 1,x 2,x 3 ric Xing 19 Mssag Passing on a actor Tr Two kinds of mssags 1. ν: from variabls to factors 2. µ: from factors to variabls f s x i f 1 x j x i f s f 3 x k ric Xing 20 10

Mssag Passing on a actor Tr, con'd Mssag passing protocol: nod can snd a mssag to a nighboring nod only whn it has rcivd mssags from all its othr nighbors Marginal probability of nods: f s x i f 1 x j x i f s f 3 x k P(x i s 2 N(i µ si (x i ν is (x i µ si (x i ric Xing 21 P on a actor Tr ν 1d µ d2 µ 2 ν 3 f d µ d1 ν 2d ν 2 µ 3 µ µ a1 c3 µb2 ν 1a ν 2b f ν 3c f a f b f c ric Xing 22 11

X 5 X 6 Why factor graph? Tr-lik graphs to actor trs X 5 X 6 ric Xing 23 Poly-trs to actor trs X 5 X 5 ric Xing 24 12

X 5 X 6 Why factor graph? caus G turns tr-lik graphs to factor trs, and trs ar a data-structur that guarants corrctnss of P! X 5 X 6 X 5 X 5 ric Xing 25 Max-product algorithm: computing MP probabilitis f i j k l ric Xing 26 13

Max-product algorithm: computing MP configurations using a final bookkping backward pass f i j k l ric Xing 27 Summary Sum-Product algorithm computs singlton marginal probabilitis on: Trs Tr-lik graphs Poly-trs Maximum a postriori configurations can b computd by rplacing sum with max in th sum-product algorithm xtra bookkping rquird ric Xing 28 14

Infrnc on gnral GM Now, what if th GM is not a tr-lik graph? an w still dirctly run mssag mssag-passing protocol along its dgs? or non-trs, w do not hav th guarant that mssag-passing will b consistnt! Thn what? onstruct a graph data-structur from P that has a tr structur, and run mssag-passing on it! Junction tr algorithm ric Xing 29 limination liqu Rcall that Inducd dpndncy during marginalization is capturd in limination cliqus Summation <-> limination Intrmdiat trm <-> limination cliqu an this lad to an gnric infrnc algorithm? G H ric Xing 30 15

16 ric Xing 31 liqu Tr H G m h m g m m f m b m c m d = f g a m m d c p d c a m, ( (, (,, ( ric Xing 32 limination mssag passing on a cliqu tr Mssags can b rusd H G m h m g m m f m b m c m d G H G H G rom limination to Mssag Passing = f g a m m d c p d c a m, ( (, (,, (

rom limination to Mssag Passing limination mssag passing on a cliqu tr nothr qury... m d mc m m b m f G m g H m h Mssags m f and m h ar rusd, othrs nd to b rcomputd ric Xing 33 17