Belief Propagation Kai Ju Liu March 9, 2006
Statistical Problems Medicine Finance Internet Computer vision
Inference Problems Given data B, infer A: p(A|B) Computer vision –Given image, find objects –Given two images, resolve 3D object –Given multiple images, track object
Conditional Probability Given event B, what is probability of A? Independence: p(A|B)=p(A) AB
Bayes’ Rule
e.g. ColdWeekday Party Hangover Marginal Probability: 8-sum Joint Probability:
e.g. (cont.) ColdWeekday Party Hangover Marginal Probability: 8-sum Localize probabilities:
Approach Define variables and connections Calculate marginal probabilities efficiently Find most likely configuration
Pairwise Markov Random Field Basic structure: vertices, edges
Pairwise Markov Random Field Basic structure: vertices, edges Vertex i has set of possible states X i and observed value y i Compatibility between states and observed values, Compatibility between neighboring vertices i and j,
Pairwise MRF: Probabilities Joint probability: Marginal probability: –Advantage: allows average over ambiguous states –Disadvantage: complexity exponential in number of vertices
Belief Propagation
Beliefs replace probabilities: Messages propagate information:
Belief Propagation Example
BP: Questions When can we calculate beliefs exactly? When do beliefs equal probabilities? When is belief propagation efficient? Answer: Singly-Connected Graphs (SCG’s) Graphs without loops Messages terminate at leaf vertices Beliefs equal probabilities Complexity in previous example reduced from 13S 5 to 24S 2
BP on Loopy Graphs Messages do not terminate Possible approximate solutions –Standard belief propagation –Generalized belief propagation BP-TwoGraphs: Goals Utilize advantages of SCG’s Be accurate and efficient on loopy graphs
BP-TwoGraphs: SCG’s Calculate beliefs on each set of SCG’s: – Select maximum beliefs from both sets – Consider loopy graph with n vertices Select two sets of SCG’s that approximate the graph –
BP-TwoGraphs: Vision SCG’s Rectangular grid of pixel vertices H i : horizontal graphs G i : vertical graphs
Image Segmentation add noise segment
Image Segmentation: Results
Real Image Segmentation
Real Image Segmentation: Training
Real Image Segmentation: Results
Stereo Vision