35
Focused Inference with Local Primal-Dual Gaps Dhruv Batra (TTIC) Joint work with: Daniel Tarlow (U Toronto), Sebastian Nowozin (MSRC), Pushmeet Kohli (MSRC), Vladimir Kolmogorov (UCL)

Focused Inference with Local Primal-Dual Gaps

  • Upload
    joanne

  • View
    34

  • Download
    0

Embed Size (px)

DESCRIPTION

Focused Inference with Local Primal-Dual Gaps. Dhruv Batra (TTIC) Joint work with: Daniel Tarlow (U Toronto), Sebastian Nowozin (MSRC), Pushmeet Kohli (MSRC), Vladimir Kolmogorov (UCL). Overview. Discrete Labelling Problems in Computer Vision Focused Inference - PowerPoint PPT Presentation

Citation preview

Page 1: Focused  Inference with  Local Primal-Dual Gaps

Focused Inference with Local Primal-Dual Gaps

Dhruv Batra (TTIC)

Joint work with: Daniel Tarlow (U Toronto), Sebastian Nowozin (MSRC), Pushmeet Kohli (MSRC), Vladimir Kolmogorov (UCL)

Page 2: Focused  Inference with  Local Primal-Dual Gaps

Overview• Discrete Labelling Problems in Computer Vision

• Focused Inference

• Local Primal-Dual Gap– [Batra, Nowozin, Kohli AISTATS ‘11]– [Batra, Kohli CVPR ‘11]– [Tarlow, Batra, Kohli, Kolmogorov ICML ‘11]

(C) Dhruv Batra 2

Page 3: Focused  Inference with  Local Primal-Dual Gaps

Labelling Problems in Vision

(C) Dhruv Batra 3

Left image Right image Disparity map

Segmentation Stereo

Geometric Labelling

Motion Flow

DenoisingName-Face Association

Page 4: Focused  Inference with  Local Primal-Dual Gaps

MAP Inference in MRFs

• Set of discrete random variables

• (Pairwise) Cost/Energy Function

• MAP Inference

4(C) Dhruv Batra

X1

X2

Xn

Node Energies / Local Costs Edge Energies / Distributed Prior

kx1 kxk

Page 5: Focused  Inference with  Local Primal-Dual Gaps

Inference• MAP problem

• In general NP-hard [Shimony ‘94]

(C) Dhruv Batra 5

Approximate Inference

• Loopy BP [Pearl, ‘88]

• α-Expansion [Boykov ’01, Komodakis ‘05]

• LP Relaxations [Schlesinger ‘76, Wainwright ’05, Sontag ‘08]

• Outer-Planar & High-order Decompositions [Batra ‘10, Kappes ‘10]

Page 6: Focused  Inference with  Local Primal-Dual Gaps

Approximate Inference

(C) Dhruv Batra 6

Carpet Bombing

Page 7: Focused  Inference with  Local Primal-Dual Gaps

Focused Inference

(C) Dhruv Batra 7

Page 8: Focused  Inference with  Local Primal-Dual Gaps

Focused Inference

(C) Dhruv Batra 8

FocusedInference

Energy-AwareMessage-Passing

ICML ‘11

Label Re-orderingin α-Expansion

CVPR ‘11

Tightening LPRelaxationsAISTATS ‘11

Ordering of LabelsMove

NumberClassical

ExpansionsOur Guided Expansions

1 Airplane Sheep

2 Bicycle Dog

3 Bird Bird

4 Boat Cow

5 Bottle Cat

Page 9: Focused  Inference with  Local Primal-Dual Gaps

Common Theme• LP-relaxation

– [Schlesinger ‘76, Koster ’98, Chekuri ‘01, Wainwright ’05]

(C) Dhruv Batra 9

Primal LP

Dual LP Computation

Obj

ectiv

e

Page 10: Focused  Inference with  Local Primal-Dual Gaps

Common Theme• LP-relaxation

– [Schlesinger ‘76, Koster ’98, Chekuri ‘01, Wainwright ’05]

• Local Primal-Dual Gaps– Primal contribution minus Dual Contribution– Distributed Primal-Dual Gap– Generalization of Complimentary Slackness Conditions(C) Dhruv Batra 10

ComputationO

bjec

tive

Current Primal-Dual Gap

Page 11: Focused  Inference with  Local Primal-Dual Gaps

MAP-MRF• Over-Complete Representation

(C) Dhruv Batra 11

kx1

k2x1

Page 12: Focused  Inference with  Local Primal-Dual Gaps

MAP-MRF• Energy

(C) Dhruv Batra 12

kx1

k2x1

Page 13: Focused  Inference with  Local Primal-Dual Gaps

MAP-MRF• Integer Program

(C) Dhruv Batra 13

Indicator Variables

Unique Label

Consistent Assignments

Page 14: Focused  Inference with  Local Primal-Dual Gaps

LP Relaxation• Linear Program

(C) Dhruv Batra 14

Tractable (but not scalable)

Page 15: Focused  Inference with  Local Primal-Dual Gaps

LP Relaxation• Linear Program --- Dual Program

(C) Dhruv Batra 15

Page 16: Focused  Inference with  Local Primal-Dual Gaps

LP Relaxation• Interpretation of Dual Program

(C) Dhruv Batra 16

Independently minimize terms

Subject to Reparameterization

Page 17: Focused  Inference with  Local Primal-Dual Gaps

LP Relaxation• Solving LP

• Block Co-ordinate Ascent on Dual– Choose a block (set) of variables– Optimize block; fix rest– Repeat

(C) Dhruv Batra 17

Page 18: Focused  Inference with  Local Primal-Dual Gaps

LP Relaxation• Linear Program --- Dual Program

• Complementary Slackness:

(C) Dhruv Batra 18

Page 19: Focused  Inference with  Local Primal-Dual Gaps

Local Primal-Dual Gap• Local Primal-Dual Gap

– Defined for nodes & edges (higher order extensions later)– Contribution of each node and edge to the Primal-Dual Gap

(C) Dhruv Batra 19

Primal Dual

Page 20: Focused  Inference with  Local Primal-Dual Gaps

Local Primal-Dual Gap• Intuition

(C) Dhruv Batra 20

Page 21: Focused  Inference with  Local Primal-Dual Gaps

Local Primal-Dual Gap• Properties

– Decomposability – Quickly Computable

– Sums to the total Primal-Dual Gap

– Can easily define LPDG for sub-graphs

– If no sub-graph with strictly positive LPDG exists, LP is tight

(C) Dhruv Batra 21

Page 22: Focused  Inference with  Local Primal-Dual Gaps

Focused Inference

(C) Dhruv Batra 22

FocusedInference

Energy-AwareMessage-Passing

ICML ‘11

Label Re-orderingin α-Expansion

CVPR ‘11

Tightening LPRelaxationsAISTATS ‘11

Ordering of LabelsMove

NumberClassical

ExpansionsOur Guided Expansions

1 Airplane Sheep

2 Bicycle Dog

3 Bird Bird

4 Boat Cow

5 Bottle Cat

Page 23: Focused  Inference with  Local Primal-Dual Gaps

Focused Inference• Dynamic Tree Block Coordinate Ascent [ICML ‘11]

(C) Dhruv Batra 23

Image Current Seg. Update Mask Updated Seg. Messages

Page 24: Focused  Inference with  Local Primal-Dual Gaps

Focused Inference

(C) Dhruv Batra 24

FocusedInference

Energy-AwareMessage-Passing

ICML ‘11

Label Re-orderingin α-Expansion

CVPR ‘11

Tightening LPRelaxationsAISTATS ‘11

Ordering of LabelsMove

NumberClassical

ExpansionsOur Guided Expansions

1 Airplane Sheep

2 Bicycle Dog

3 Bird Bird

4 Boat Cow

5 Bottle Cat

Page 25: Focused  Inference with  Local Primal-Dual Gaps

Dynamic Re-ordering of Blocks• Goal: Category Segmentation

• α-Expansion solves the standard LP relaxation

(C) Dhruv Batra

Current Soln 2-Label Problem + GC New Soln

Loop over α

α-Expansion α

Page 26: Focused  Inference with  Local Primal-Dual Gaps

Dynamic Re-ordering of Blocks

(C) Dhruv Batra 26

Ordering of LabelsMove

NumberClassical

ExpansionsOur Guided Expansions

Image 11 Airplane Car

2 Bicycle Person

3 Bird Motorbike

4 Boat Train

5 Bottle Airplane

Image 21 Airplane Sheep

2 Bicycle Dog

3 Bird Bird

4 Boat Cow

5 Bottle Cat

Page 27: Focused  Inference with  Local Primal-Dual Gaps

Dynamic Re-ordering of Blocks• LPDG score

– For each node i, label

(C) Dhruv Batra 27

Primal Dual

Page 28: Focused  Inference with  Local Primal-Dual Gaps

Experiments

(C) Dhruv Batra 28

Page 29: Focused  Inference with  Local Primal-Dual Gaps

Focused Inference

(C) Dhruv Batra 29

FocusedInference

Energy-AwareMessage-Passing

ICML ‘11

Label Re-orderingin α-Expansion

CVPR ‘11

Tightening LPRelaxationsAISTATS ‘11

Ordering of LabelsMove

NumberClassical

ExpansionsOur Guided Expansions

1 Airplane Sheep

2 Bicycle Dog

3 Bird Bird

4 Boat Cow

5 Bottle Cat

Page 30: Focused  Inference with  Local Primal-Dual Gaps

LP Relaxation• LP-relaxation

– [Schlesinger ‘76, Koster ’98, Chekuri ‘01, Wainwright ’05]

(C) Dhruv Batra 30

Primal LP

Dual LP Computation

Obj

ectiv

e

Page 31: Focused  Inference with  Local Primal-Dual Gaps

LP Relaxation• LP-relaxation

– [Schlesinger ‘76, Koster ’98, Chekuri ‘01, Wainwright ’05]

(C) Dhruv Batra 31

Primal LP

Dual LP Computation

Obj

ectiv

e

Page 32: Focused  Inference with  Local Primal-Dual Gaps

Hierarchy of LPs

(C) Dhruv Batra 32

Edge-Consistent LP Triplet-Clique Consistent LP

Increasingly Complex Sub-problems

LPDG to the rescue!-- Score Clusters / Constraints-- Add high scoring ones

Page 33: Focused  Inference with  Local Primal-Dual Gaps

Experiments

(C) Dhruv Batra 33

Page 34: Focused  Inference with  Local Primal-Dual Gaps

Summary• Focused Inference vs. Energy-Agnostic Inference

• Exploiting structure of the problem

• First wave of success– Submodularity– Distance Transforms– Truncated Convex Potentials

• Second wave of success– Focused Message Passing– Task Specific Computation

(C) Dhruv Batra 34

Page 35: Focused  Inference with  Local Primal-Dual Gaps

Thank You!