Beyond Trees: MRF Inference via Outer-Planar Decomposition [(To appear) CVPR ‘10] Dhruv Batra Carnegie Mellon University Joint work: Andrew Gallagher (Eastman.

Slides:



Advertisements
Similar presentations
Mean-Field Theory and Its Applications In Computer Vision1 1.
Advertisements

Algorithms for MAP estimation in Markov Random Fields Vladimir Kolmogorov University College London Tutorial at GDR (Optimisation Discrète, Graph Cuts.
1 LP, extended maxflow, TRW OR: How to understand Vladimirs most recent work Ramin Zabih Cornell University.
Focused Inference with Local Primal-Dual Gaps
Tutorial at ICCV (Barcelona, Spain, November 2011)
Introduction to Markov Random Fields and Graph Cuts Simon Prince
ICCV 2007 tutorial Part III Message-passing algorithms for energy minimization Vladimir Kolmogorov University College London.
CS774. Markov Random Field : Theory and Application Lecture 17 Kyomin Jung KAIST Nov
ICCV 2007 tutorial on Discrete Optimization Methods in Computer Vision part I Basic overview of graph cuts.
Discrete optimization methods in computer vision Nikos Komodakis Ecole Centrale Paris ICCV 2007 tutorial Rio de Janeiro Brazil, October 2007.
GrabCut Interactive Image (and Stereo) Segmentation Carsten Rother Vladimir Kolmogorov Andrew Blake Antonio Criminisi Geoffrey Cross [based on Siggraph.
Pseudo-Bound Optimization for Binary Energies Presenter: Meng Tang Joint work with Ismail Ben AyedYuri Boykov 1 / 27.
1 Fast Primal-Dual Strategies for MRF Optimization (Fast PD) Robot Perception Lab Taha Hamedani Aug 2014.
Corp. Research Princeton, NJ Computing geodesics and minimal surfaces via graph cuts Yuri Boykov, Siemens Research, Princeton, NJ joint work with Vladimir.
Markov Nets Dhruv Batra, Recitation 10/30/2008.
CS774. Markov Random Field : Theory and Application Lecture 04 Kyomin Jung KAIST Sep
Learning to Detect A Salient Object Reporter: 鄭綱 (3/2)
Robust Higher Order Potentials For Enforcing Label Consistency
Schedule Introduction Models: small cliques and special potentials Tea break Inference: Relaxation techniques:
Improved Moves for Truncated Convex Models M. Pawan Kumar Philip Torr.
Efficiently Solving Convex Relaxations M. Pawan Kumar University of Oxford for MAP Estimation Philip Torr Oxford Brookes University.
Understanding Belief Propagation and its Applications Dan Yuan June 2004.
MAP estimation in MRFs via rank aggregation Rahul Gupta Sunita Sarawagi (IBM India Research Lab) (IIT Bombay)
What Energy Functions Can be Minimized Using Graph Cuts? Shai Bagon Advanced Topics in Computer Vision June 2010.
Measuring Uncertainty in Graph Cut Solutions Pushmeet Kohli Philip H.S. Torr Department of Computing Oxford Brookes University.
Graph-Cut Algorithm with Application to Computer Vision Presented by Yongsub Lim Applied Algorithm Laboratory.
Computer vision: models, learning and inference
Extensions of submodularity and their application in computer vision
MAP Estimation Algorithms in M. Pawan Kumar, University of Oxford Pushmeet Kohli, Microsoft Research Computer Vision - Part I.
Computer vision: models, learning and inference
MRFs and Segmentation with Graph Cuts Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 03/31/15.
Michael Bleyer LVA Stereo Vision
MRFs and Segmentation with Graph Cuts Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 02/24/10.
Graph Cut 韋弘 2010/2/22. Outline Background Graph cut Ford–Fulkerson algorithm Application Extended reading.
City University of Hong Kong 18 th Intl. Conf. Pattern Recognition Self-Validated and Spatially Coherent Clustering with NS-MRF and Graph Cuts Wei Feng.
CS774. Markov Random Field : Theory and Application Lecture 13 Kyomin Jung KAIST Oct
Planar Cycle Covering Graphs for inference in MRFS The Typhon Algorithm A New Variational Approach to Ground State Computation in Binary Planar Markov.
Object Stereo- Joint Stereo Matching and Object Segmentation Computer Vision and Pattern Recognition (CVPR), 2011 IEEE Conference on Michael Bleyer Vienna.
Multiplicative Bounds for Metric Labeling M. Pawan Kumar École Centrale Paris Joint work with Phil Torr, Daphne Koller.
Fast Parallel and Adaptive Updates for Dual-Decomposition Solvers Ozgur Sumer, U. Chicago Umut Acar, MPI-SWS Alexander Ihler, UC Irvine Ramgopal Mettu,
An Efficient Message-Passing Algorithm for the M-Best MAP Problem Dhruv Batra (Currently) Research Assistant Professor TTI-Chicago (Spring 2013) Assistant.
Algorithms for MAP estimation in Markov Random Fields Vladimir Kolmogorov University College London.
Discrete Optimization in Computer Vision M. Pawan Kumar Slides will be available online
Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.
Discrete Optimization Lecture 3 – Part 1 M. Pawan Kumar Slides available online
1 Markov Random Fields with Efficient Approximations Yuri Boykov, Olga Veksler, Ramin Zabih Computer Science Department CORNELL UNIVERSITY.
Fast and accurate energy minimization for static or time-varying Markov Random Fields (MRFs) Nikos Komodakis (Ecole Centrale Paris) Nikos Paragios (Ecole.
Probabilistic Inference Lecture 5 M. Pawan Kumar Slides available online
Dynamic Tree Block Coordinate Ascent Daniel Tarlow 1, Dhruv Batra 2 Pushmeet Kohli 3, Vladimir Kolmogorov 4 1: University of Toronto3: Microsoft Research.
Update any set S of nodes simultaneously with step-size We show fixed point update is monotone for · 1/|S| Covering Trees and Lower-bounds on Quadratic.
Approximate Inference: Decomposition Methods with Applications to Computer Vision Kyomin Jung ( KAIST ) Joint work with Pushmeet Kohli (Microsoft Research)
MRF optimization based on Linear Programming relaxations Nikos Komodakis University of Crete IPAM, February 2008.
CVPR 2013 Diversity Tutorial Beyond MAP: Making Multiple Predictions: Diversity, DPPs and more. Dhruv Batra Virginia Tech Alex Kulesza Univ. of Michigan.
Using Combinatorial Optimization within Max-Product Belief Propagation
Machine Learning – Lecture 15
Inference for Learning Belief Propagation. So far... Exact methods for submodular energies Approximations for non-submodular energies Move-making ( N_Variables.
Pushmeet Kohli. E(X) E: {0,1} n → R 0 → fg 1 → bg Image (D) n = number of pixels [Boykov and Jolly ‘ 01] [Blake et al. ‘04] [Rother, Kolmogorov and.
A global approach Finding correspondence between a pair of epipolar lines for all pixels simultaneously Local method: no guarantee we will have one to.
Tightening LP Relaxations for MAP using Message-Passing David Sontag Joint work with Talya Meltzer, Amir Globerson, Tommi Jaakkola, and Yair Weiss.
Photoconsistency constraint C2 q C1 p l = 2 l = 3 Depth labels If this 3D point is visible in both cameras, pixels p and q should have similar intensities.
IEEE 2015 Conference on Computer Vision and Pattern Recognition Active Learning for Structured Probabilistic Models with Histogram Approximation Qing SunAnkit.
Markov Random Fields in Vision
MRFs and Segmentation with Graph Cuts Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 03/27/12.
Introduction of BP & TRW-S
The M-Best Mode Problem
Alexander Shekhovtsov and Václav Hlaváč
Integration and Graphical Models
Expectation-Maximization & Belief Propagation
Parallel and Distributed Graph Cuts by Dual Decomposition
“Traditional” image segmentation
Presentation transcript:

Beyond Trees: MRF Inference via Outer-Planar Decomposition [(To appear) CVPR ‘10] Dhruv Batra Carnegie Mellon University Joint work: Andrew Gallagher (Eastman Kodak), Devi Parikh (TTI-C), Tsuhan Chen (Cornell, CMU)

Labelling Problems in Vision Segmentation –[Ren et al. ECCV ’06], [Boykov and Jolly, ICCV ’01], [Batra et al. BMVC ’08], [Rother et al., SIGGRAPH ’04] –[He et al. ECCV ’06], [Yang et al. CVPR ’07], [Shotton et al. IJCV ’09], [Batra et al. CVPR ’08]. 2(C) Dhruv Batra

Labelling Problems in Vision Geometric Labelling –[Hoiem et al. IJCV ’07], [Hoiem et al. CVPR ’08], [Saxena PAMI ’08], [Ramalingam et al. CVPR ‘08]. 3(C) Dhruv Batra

Labelling Problems in Vision Name-Face Association –[Berg et al. CVPR ’04, Phd-Thesis ‘07], [Gallagher et al. CVPR ’08]. 4(C) Dhruv Batra President George W. Bush makes a statement in the Rose Garden while Secretary of Defense Donald Rumsfeld looks on, July 23, Rumsfeld said the United States would release graphic photographs of the dead sons of Saddam Hussein to prove they were killed by American troops. Photo by Larry Downing/Reuters British director Sam Mendes and his partner actress Kate Winslet arrive at the London premiere of ’The Road to Perdition’, September 18, The films stars Tom Hanks as a Chicago hit man who has a separate family life and co-stars Paul Newman and Jude Law. REUTERS/Dan Chung Mildred and Lisa Lisa Mildred

Labelling Problems in Vision Stereo (Disparity Labelling) –[Roy and Cox, ICCV ‘98], [Boykov et al. CVPR ’97, PAMI ‘01], [Scharstein et al. PAMI ’02]. Motion Flow –[Boykov et al. PAMI ’01] Denoising –[Sebastiani et al. Signal Proc. ’97], [Roth et al. IJCV ‘09], [Li et al. ECCV ’08], [Ishikawa CVPR ’09]. 5(C) Dhruv Batra Left imageRight imageDisparity map

Markov Random Fields Set of random variables Pairwise MRF MAP Inference 6(C) Dhruv Batra X1X1 X2X2 … XnXn

Inference MAP problem In general NP-hard (C) Dhruv Batra7 Approximate Algorithms Exact Algorithms for subclasses Trees [Pearl, AAAI ’82] Submodular Energies [Hammer ’65, Kolmogorov PAMI ’04] Outer-planar graphs [Schraudolph NIPS ’08] Loopy BP[Pearl, ‘88] Tree-Reweighted MP[Wainwright ‘05, Kolmogorov ’06, Komodakis ‘07] Outer-Planar Decomposition (OPD)

Decomposition Methods Decompose into subproblems (C) Dhruv Batra8

Decomposition Methods Comparisons: –Max-Product BP [Pearl, ’88] –Tree-Reweighted MP [Wainwright ‘05, Kolmogorov ’06, Komodakis ‘07] (C) Dhruv Batra9

Decomposition Methods Progression (C) Dhruv Batra10 BPTRWOPD

Outer-planarity G is outer-planar –Allows a planar embedding –All nodes are accessible from “outside” Lie on an unbounded external face Add an extra node connected to all other. Result should be planar. Examples –Trees –A lot more, e.g. (C) Dhruv Batra

Planar Inference Planar-Cut Construction –[Schraudolph et al. NIPS ’08] E(X 1,X 2,X 3,X 4 ) X 1 = 1 X 2 = 0 X 3 = 0 X 4 = 1 E(1,0,0,1) = 8 + const Cost of st-cut = 8 Source (0) X1X1 X2X2 X4X4 X3X3

Planar Inference Planar-Cut Source (0) X1X1 X2X2 X4X4 X3X3 Planar-cutOuter-planarity E(X 1,X 2,X 3,X 4 )

Outer-planar Decomposition Outer-planarity is a strong constraint –These are not OP: So now? –We will leverage this new subclass to propose a new approximate MAP inference algorithm –Outer-Planar Decomposition (OPD) (C) Dhruv Batra14 Very important for vision

Outer-planar Decomposition OPD (C) Dhruv Batra15 Non-outerplanar graph

Outer-planar Decomposition OPD (C) Dhruv Batra 16 Non-outerplanar graph OPD Planar graphs

Outer-planar Decomposition OPD Message-Passing –OPD-MP: Generalizes BP –OPD-DD: Generalizes TRW-DD –OPD-T: Generalizes TRW-T –OPD-S: Generalizes TRW-S (C) Dhruv Batra17 [Dual Decomposition, Komodakis, ICCV ‘07, CVPR ‘09] [Wainwright, Inf. Theory ’05] [Kolmogorov, PAMI ‘06]

Outer-planar Decomposition OPD (C) Dhruv Batra18 Agreement Variables messages

Outer-planar Decomposition OPD-MP: Message (C) Dhruv Batra19 Non-outerplanar graph OPD Agreement Variables

Outer-planar Decomposition OPD-MP: Message (C) Dhruv Batra20 Non-outerplanar graph OPD Agreement Variables Min-marginal Message

Guarantees OPD-MP –same as BP None! –Contains BP as a special case OPD-DD –Can be analyzed as projected subgradient ascent on dual. –Guaranteed to converge. –Contains TRW as a special case –Guaranteed to perform better than TRW! (C) Dhruv Batra21

Decompositions Where do sub-graphs come from? In general: NP-hard –Maximum outer-planar sub-graph problem (C) Dhruv Batra22

Decompositions Where do sub-graphs come from? Heuristic: –Start with a spanning tree –Add edges till maximal outer-planar –Remove edges from graph, repeat (C) Dhruv Batra23

Outer-Planar Decomposition For Grids: –Theorem [Goncalves STOC ‘05]: Every planar graph can be decomposed into 2 outer-planar graphs Linear-time algorithm (C) Dhruv Batra24

Experiments Synthetic (constructed) energies Real-world applications –Face-Gender Labelling –Semantic Object Segmentation –Optical Flow (C) Dhruv Batra25

Experiments Synthetic parameters –Randomly sampled energies from Gaussian dist. (C) Dhruv Batra26

Results Synthetic parameters –Randomly sampled energies from Gaussian dist. (C) Dhruv Batra27 K 4 : 2-label problem Harder Problems (More interaction) Energy Lower bound

Results Synthetic parameters –Randomly sampled energies from Gaussian dist. (C) Dhruv Batra28 30 x 30 grid: 2-label

Results Gender-Face Assignment (C) Dhruv Batra29

Results Multi-class Object Labelling (C) Dhruv Batra30

Results Optical Flow (C) Dhruv Batra31 ArmyWoodel

Take-home Messages For people working on these problems: –First step towards structures topologically more complex than trees –OPD-approximation is guaranteed to be tighter than TRW –OPD is useful for hard non-submodular problems –Traditional vision benchmarks might be saturated For people using BP/TRW: –Stop! –Use OPD. (C) Dhruv Batra32

Thank You!

Results Synthetic parameters –Randomly sampled energies from Gaussian dist. (C) Dhruv Batra34 K 50 : 2-label problem

Results Synthetic parameters –Randomly sampled energies from Gaussian dist. (C) Dhruv Batra35 K 50 : 4-label problem

Outer-planar Decomposition OPD-DD: Message (C) Dhruv Batra36 Non-outerplanar graph OPD Agreement Variables

Decompositions Heuristic: –Able to find 2-subgraph decompositions surprisingly often (C) Dhruv Batra37

Decomposition Methods “Certificate” property Decomposition Lower Bound (C) Dhruv Batra38 G st Given graph G, can we push an s-t flow of value > k? Flow-value >k Cut-value <= k

Max-flow / Min-cut Construction –[Hammer ‘65], [Kolmogorov, PAMI ’04] (C) Dhruv Batra39 E(X 1,X 2 ) X 1 = 1 X 2 = 0 E(1,0) = 8 + const Cost of st-cut = 8 Source (0) 2 9 Sink (1) X1X1 X2X2 1

Inference Construction –[Hammer ‘65], [Kolmogorov, PAMI ’04] (C) Dhruv Batra40 Source (0) X1X1 X2X2 2 E(X 1,X 2 ) Max-flow / min-cutSubmodularity! Sink (1)

Planar Inference Planar-Cut Construction –[Schraudolph et al. NIPS ’08]

Outer-planar Decomposition On Grid Graph Non-outerplanar graph decomp C1C2C3C4 C1C2C3C4C2C3

Convergence Guarantees –Currently, same as BP None! –Possible TRW-S scheduling schemes (C) Dhruv Batra43

Run-Time Run-time: –K iterations x D decompositions x N cuts Complexity of min-cut –Best known algorithm: –Current implementation: Complexity of max-flow/min-cut –(Smart) Push-relabel: –(Dynamic tree) Push-relabel (C) Dhruv Batra44

Dynamic Planar Cuts How many cuts? –2*N [Naively] –N+1 [Slightly smarter] –1 + N updates[Proposed] (C) Dhruv Batra45 Non-outerplanar graph OPD Agreement Variables message

Inference Construction –[Hammer ‘65], [Kolmogorov, PAMI ’04] (C) Dhruv Batra46 E(X 1,X 2 ) X 1 = 1 X 2 = 0 E(1,0) = 8 + const Cost of st-cut = 8 Source (0) 2 9 Sink (1) X1X1 X2X2 1

Planar Inference Comparison (C) Dhruv Batra47 Max-flow / min-cutSubmodularity! Planar-cutOuter-planarity! Constraint on parameters Constraint on structure

Dual Decomposition Primal problem Want to solve independently –To parallelize –Each sub-problem easy, cumulative problem hard (C) Dhruv Batra48

Dual Decomposition Primal problem Re-formulate Relax (Langragian dual) (C) Dhruv Batra49

Dual Decomposition Dual (Master) Problem Dual (Slave) Problems Can solve master with Projected Subgradient descent (C) Dhruv Batra50

Dual Decomposition Projected Subgradient Descent What is subgradient? (C) Dhruv Batra51

Dual Decomposition Overview (C) Dhruv Batra52

MAP Goal Integer Program formulation (C) Dhruv Batra53

MAP as TRW Distribute parameters: Decompose energy (C) Dhruv Batra54

MAP as DD Primal Problem Dual (C) Dhruv Batra55

MAP as DD Dual (Master) Problem Dual (Slave) Problems Can solve master with Projected Subgradient descent (C) Dhruv Batra56

MAP as DD Algorithm Interpretation (C) Dhruv Batra57

MAP as DD Theoretical Guarantees (C) Dhruv Batra58