The M-Best Mode Problem

49
The M-Best Mode Problem Dhruv Batra Research Assistant Professor TTI-Chicago Joint work with: Abner Guzman-Rivera (UIUC), Greg Shakhnarovich (TTIC), Payman Yadollahpour (TTIC).

description

The M-Best Mode Problem. Dhruv Batra Research Assistant Professor TTI-Chicago Joint work with: Abner Guzman-Rivera (UIUC), Greg Shakhnarovich (TTIC), Payman Yadollahpour (TTIC ). Local Ambiguity. slide credit: Fei- Fei Li, Rob Fergus & Antonio Torralba. Local Ambiguity. - PowerPoint PPT Presentation

Transcript of The M-Best Mode Problem

Page 1: The M-Best Mode  Problem

The M-Best Mode Problem

Dhruv Batra Research Assistant Professor

TTI-Chicago

Joint work with:Abner Guzman-Rivera (UIUC), Greg Shakhnarovich (TTIC), Payman Yadollahpour (TTIC).

Page 2: The M-Best Mode  Problem

Local Ambiguity

(C) Dhruv Batra 2slide credit: Fei-Fei Li, Rob Fergus & Antonio Torralba

Page 3: The M-Best Mode  Problem

Local Ambiguity• “While hunting in Africa, I shot an elephant in my pajamas.

How an elephant got into my pajamas, I’ll never know!”

– Groucho Marx (1930)

(C) Dhruv Batra 3

Page 4: The M-Best Mode  Problem

Output-Space Explosion

(C) Dhruv Batra 4

+1, -1

k Classesall graph-labelings

Exponentially Many Classes

Page 5: The M-Best Mode  Problem

Structured Output• Segmentation

– [Batra et al. CVPR ‘10, IJCV ’11]

– [Batra et al. CVPR ’08], [Batra ICML ‘11, CVPR ‘11]

5(C) Dhruv Batra

grass

sky

cow

(#Labels)#Pixels

Page 6: The M-Best Mode  Problem

Structured Output• Object Detection: parts-based models

– [Felzenszwalb et al. PAMI ‘10], [Yang and Ramanan, ICCV ‘11]

(C) Dhruv Batra 6

(#Pixels)#Parts

Page 7: The M-Best Mode  Problem

Structured Output• Dependency parsing

(C) Dhruv Batra 7Figure courtesy Rush & Collins NIPS11

|Sentence-Length||Sentence-length|-2

Page 8: The M-Best Mode  Problem

Conditional Random Fields

• Discrete random variables

• Factored-Exponential Model

8(C) Dhruv Batra

Node Energies / Local Costs Edge Energies / Distributed Prior

X1

X2

XnXi

kx11 1 10 0

kxk

10

1010

10

0

0

Page 9: The M-Best Mode  Problem

MAP Inference

• In general NP-hard [Shimony ‘94]

(C) Dhruv Batra 9

Approximate Inference

• Heuristics: Loopy BP [Pearl, ‘88]

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

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

• QP/SDP Relaxations: [Ravikumar ’06, Kumar ‘09]

Page 10: The M-Best Mode  Problem

MAP Inference

• In general NP-hard [Shimony ‘94]

(C) Dhruv Batra 10

Approximate Inference

• Heuristics: Loopy BP [Pearl, ‘88]

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

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

• QP/SDP Relaxations: [Ravikumar ’06, Kumar ‘09]

This is a job for Optimization Man

Page 11: The M-Best Mode  Problem

I have a new Fancy Approximate Inference Alg. Worship Me!

(C) Dhruv Batra 11

Page 12: The M-Best Mode  Problem

MAP ≠ Ground-truth• Large-scale studies

“the global OPT does not solve many of the problems in the BP or Graph Cuts solutions.”- [Meltzer, Yanover, Weiss ICCV05]

“the ground truth has substantially lower score [than MAP]”- [Szeliski et al. PAMI08]

• Implication: Models are inaccurate.

(C) Dhruv Batra 12

Ground-Truth

Page 13: The M-Best Mode  Problem

Possible Solution• Ask for more than MAP!

(C) Dhruv Batra 13

Flerova et al., 2011Rollon et al., 2011Fromer et al., 2009Yanover et al., 2003Nilsson,1998Seroussi et al., 1994Lawler, 1972

M-Best MAP ProblemBetter Problem:

M-Best Modes ✓

Page 14: The M-Best Mode  Problem

Formulation• Over-Complete Representation

(C) Dhruv Batra 14

kx1

1

0

0

0

0

1

0

0

1

1

0

0

0

0

0

0

k2x1

1000000000000000

0100000000000000

Inconsistent

Page 15: The M-Best Mode  Problem

Formulation• Score = Dot Product

(C) Dhruv Batra 15

kx1

k2x1

Page 16: The M-Best Mode  Problem

Formulation• MAP Integer Program

(C) Dhruv Batra 16

Black-Box

Page 17: The M-Best Mode  Problem

Formulation• 2nd-Best Mode

(C) Dhruv Batra 17

MAP

MAP

2nd-Mode

Page 18: The M-Best Mode  Problem

Approach• 2nd-Best Mode

• Lagrangian Relaxation– Convergence & other guarantees– Large class of Delta-functions allowed– See paper for details

(C) Dhruv Batra 18

Dualize

Diversity-Augmented Score

Primal

Dual

Primal-OPT

Convex (Non-smooth)

Upper-Bound on Primal-OPT

Binary Search in 1-DSubgradient Descent in N-D

Page 19: The M-Best Mode  Problem

Dot-Product Dissimilarity

• Diversity Augmented Inference:

(C) Dhruv Batra 19

For integral solution, equivalent to Hamming!

Simply edit node-terms. Reuse MAP machinery!

0

1

0

0

Page 20: The M-Best Mode  Problem

Theorem Statement• Theorem [Batra et al ’12]: Lagrangian Dual

corresponds to solving the Relaxed Primal:• Based on result from [Geoffrion ‘74]

(C) Dhruv Batra 20

Dual

Relaxed Primal

Page 21: The M-Best Mode  Problem

How Much Diversity?

• Empirical Solution: Cross-Val for

• More Efficient: Cross-Val for

(C) Dhruv Batra 21

Page 22: The M-Best Mode  Problem

Experiment #1• Interactive Segmentation

– Model from [Batra et al. CVPR’10]

(C) Dhruv Batra 22

Image + Scribbles 2nd Best Mode2nd Best MAPMAP

Page 23: The M-Best Mode  Problem

Experiment #1

(C) Dhruv Batra 23

MAP

Better

Page 24: The M-Best Mode  Problem

Experiment #2• Pose Estimation

(C) Dhruv Batra 24

Page 25: The M-Best Mode  Problem

Experiment #2• Mixture of Parts Model

– Model from [Yang, Ramanan, ICCV ‘11]• Tree of Parts • Histogram of Oriented Gradient (HOG) Features

(C) Dhruv Batra 25

Page 26: The M-Best Mode  Problem

Experiment #2• Pose Tracking w/ Chain CRF

(C) Dhruv Batra 26

M-Modes

Page 27: The M-Best Mode  Problem

Experiment #2

(C) Dhruv Batra 27

M-Modes + ViterbiMAP

Page 28: The M-Best Mode  Problem

Experiment #2

(C) Dhruv Batra 28

Acc

urac

y

M-Modes

Baseline #1

Baseline #2

25% Better

Better

#Modes / Frame

Page 29: The M-Best Mode  Problem

Experiment #3• Pascal Segmentation Challenge

– 20 categories + background– Competitive international challenge (2007-2012)

(C) Dhruv Batra 29

Page 30: The M-Best Mode  Problem

Experiment #3• Hierarchical CRF model

– [Ladicky et al. ECCV ‘10, BMVC ’10, ICCV ‘09]• Pixel potential: textons, color, HOG• Pairwise potentials between pixels: Potts• Segment potentials: histogram of pixel features• Pairwise potentials between segments

(C) Dhruv Batra 30

Page 31: The M-Best Mode  Problem

Examples: Test Set

(C) Dhruv Batra 31

Input MAP Best Mode

Page 32: The M-Best Mode  Problem

Experiment #3

(C) Dhruv Batra 32

Acc

urac

y

Better

State of the art

MAP

1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 3120.00%

25.00%

30.00%

35.00%

40.00%

45.00%

50.00% M-Modes

Baseline

#Modes / Image

Page 33: The M-Best Mode  Problem

Future Directions• M-Best Modes

– More applications• Object Detection, Medical Segmentation

– Cascaded Models with Modes passed on

– General Trick for Combinatorial Structures

(C) Dhruv Batra 33

Step 1 Step 2 Step 3Top M

hypotheses

Top M

hypotheses

Page 34: The M-Best Mode  Problem

Future Directions• M-Best Modes

– Improved Learning with Modes

– Posterior Summaries with Modes

(C) Dhruv Batra 34

Page 35: The M-Best Mode  Problem

Take-Away Message (Part #1)

• Think about YOUR problem.

• Are you or a loved one, tired of a single solution?

• If yes, then M-Modes might be right for you!*

* M-Modes is not suited for everyone. People with perfect models, and love of continuous variables should not use M-Modes. Consult your local optimization expert before starting M-Modes. Please do not drive or operate heavy machinery while on M-Modes.

(C) Dhruv Batra 35

Page 36: The M-Best Mode  Problem

Thank You!

Payman Yadollahpour (TTIC)

Greg Shakhnarovich (TTIC)

M-Best Modes

Abner Guzman-Rivera (UIUC)

Page 37: The M-Best Mode  Problem

(C) Dhruv Batra 37

Page 38: The M-Best Mode  Problem

Local Ambiguity

(C) Dhruv Batra 38

[Smyth et al., 1994]

slide credit: Andrew Gallagher

Page 39: The M-Best Mode  Problem

Structured Output• Super-Resolution

– [Baker, Kanade, PAMI ‘02], [Freeman et al, IJCV ‘00]

(C) Dhruv Batra 39

|Patch-Dictionary|#Patches

Page 40: The M-Best Mode  Problem

Structured Output• Protein Side-Chain Prediction

(C) Dhruv Batra 40Figure courtesy Yanover & Weiss NIPS02

(#Angles)#Sites

Page 41: The M-Best Mode  Problem

Applications• What can we do with multiple solutions?

– More choices for “human/expert in the loop”

(C) Dhruv Batra 41

Page 42: The M-Best Mode  Problem

Applications• What can we do with multiple solutions?

– More choices for “human/expert in the loop”– Input to next system in cascade

(C) Dhruv Batra 42

Step 1 Step 2 Step 3Top M

hypotheses

Top M

hypotheses

Page 43: The M-Best Mode  Problem

Applications• What can we do with multiple solutions?

– More choices for “human in the loop”– Rank solutions

(C) Dhruv Batra 43

[Carreira and Sminchisescu, CVPR10]

State-of-art segmentation on PASCAL Challenge 2011

~10,000

Page 44: The M-Best Mode  Problem

Dissimilarity• A number of special cases

– 0-1 Dissimilarity M-Best MAP

• Large class of Delta-functions allowed– Hamming distance– Higher-Order Dissimilarity

(C) Dhruv Batra 44

Page 45: The M-Best Mode  Problem

Higher-Order Dissimilarity• Cardinality Potential

• Efficient Inference– Cardinality [Tarlow ‘10]– Lower Linear envelop [Kohli ‘10]– Pattern Potentials [Rother ‘10]

(C) Dhruv Batra 45

Page 46: The M-Best Mode  Problem

Example Results

(C) Dhruv Batra 46

Page 47: The M-Best Mode  Problem

Examples: Validation Set

(C) Dhruv Batra 47

Input MAP Best ModeGround-Truth

Page 48: The M-Best Mode  Problem

Experiment #3

(C) Dhruv Batra 48

Page 49: The M-Best Mode  Problem

Experiment #3

(C) Dhruv Batra 49