Title: An Analysis of Convex Relaxations
1An Analysis of Convex Relaxations
for MAP Estimation
- M. Pawan Kumar
- Vladimir Kolmogorov
- Philip Torr
2Aim
- To analyze convex relaxations for MAP estimation
6
3
0
1
2
4
0
Label 1
1
2
4
1
1
3
Label 0
1
0
5
3
7
0
2
V2
V3
V4
V1
Random Variables V V1, ... ,V4
Label Set L 0, 1
Labelling m 1, 0, 0, 1
3Aim
- To analyze convex relaxations for MAP estimation
6
3
0
1
2
4
0
Label 1
1
2
4
1
1
3
Label 0
1
0
5
3
7
0
2
V2
V3
V4
V1
Cost(m) 2
4Aim
- To analyze convex relaxations for MAP estimation
6
3
0
1
2
4
0
Label 1
1
2
4
1
1
3
Label 0
1
0
5
3
7
0
2
V2
V3
V4
V1
Cost(m) 2 1
5Aim
- To analyze convex relaxations for MAP estimation
6
3
0
1
2
4
0
Label 1
1
2
4
1
1
3
Label 0
1
0
5
3
7
0
2
V2
V3
V4
V1
Cost(m) 2 1 2
6Aim
- To analyze convex relaxations for MAP estimation
6
3
0
1
2
4
0
Label 1
1
2
4
1
1
3
Label 0
1
0
5
3
7
0
2
V2
V3
V4
V1
Cost(m) 2 1 2 1
7Aim
- To analyze convex relaxations for MAP estimation
6
3
0
1
2
4
0
Label 1
1
2
4
1
1
3
Label 0
1
0
5
3
7
0
2
V2
V3
V4
V1
Cost(m) 2 1 2 1 3
8Aim
- To analyze convex relaxations for MAP estimation
6
3
0
1
2
4
0
Label 1
1
2
4
1
1
3
Label 0
1
0
5
3
7
0
2
V2
V3
V4
V1
Cost(m) 2 1 2 1 3 1
9Aim
- To analyze convex relaxations for MAP estimation
6
3
0
1
2
4
0
Label 1
1
2
4
1
1
3
Label 0
1
0
5
3
7
0
2
V2
V3
V4
V1
Cost(m) 2 1 2 1 3 1 3
10Aim
- To analyze convex relaxations for MAP estimation
6
3
0
1
2
4
0
Label 1
1
2
4
1
1
3
Label 0
1
0
5
3
7
0
2
V2
V3
V4
V1
Cost(m) 2 1 2 1 3 1 3 13
Pr(m) ? exp(-Cost(m))
Minimum Cost Labelling MAP estimate
11Aim
- To analyze convex relaxations for MAP estimation
6
3
0
1
2
4
0
Label 1
1
2
4
1
1
3
Label 0
1
0
5
3
7
0
2
V2
V3
V4
V1
Cost(m) 2 1 2 1 3 1 3 13
NP-hard problem
Which approximate algorithm is the best?
12Aim
- To analyze convex relaxations for MAP estimation
6
3
0
1
2
4
0
Label 1
1
2
4
1
1
3
Label 0
1
0
5
3
7
0
2
V2
V3
V4
V1
Objectives
- Compare existing convex relaxations LP, QP and
SOCP - Develop new relaxations based on the comparison
13Outline
- Integer Programming Formulation
- Existing Relaxations
- Comparison
- Generalization of Results
- Two New SOCP Relaxations
14Integer Programming Formulation
2
4
0
Unary Cost
Label 1
1
3
Label 0
5
0
2
V2
V1
Labelling m 1 , 0
2 4
2
Unary Cost Vector u 5
15Integer Programming Formulation
2
4
0
Unary Cost
Label 1
1
3
Label 0
5
0
2
V2
V1
Labelling m 1 , 0
2 4 T
2
Unary Cost Vector u 5
Label vector x -1
1
1 -1 T
Recall that the aim is to find the optimal x
16Integer Programming Formulation
2
4
0
Unary Cost
Label 1
1
3
Label 0
5
0
2
V2
V1
Labelling m 1 , 0
2 4 T
2
Unary Cost Vector u 5
Label vector x -1
1
1 -1 T
1
Sum of Unary Costs
?i ui (1 xi)
2
17Integer Programming Formulation
2
4
0
Pairwise Cost
Label 1
1
3
Label 0
5
0
2
V2
V1
Labelling m 1 , 0
0
3
0
18Integer Programming Formulation
2
4
0
Pairwise Cost
Label 1
1
3
Label 0
5
0
2
V2
V1
Labelling m 1 , 0
Sum of Pairwise Costs
1
?ij Pij (1 xi)(1xj)
0
3
0
4
19Integer Programming Formulation
2
4
0
Pairwise Cost
Label 1
1
3
Label 0
5
0
2
V2
V1
Labelling m 1 , 0
Sum of Pairwise Costs
1
?ij Pij (1 xi xj xixj)
0
3
0
4
X x xT
Xij xi xj
20Integer Programming Formulation
Constraints
xi ?-1,1
X x xT
21Integer Programming Formulation
1
1
? Pij (1 xi xj Xij)
x argmin
? ui (1 xi)
4
2
Convex
xi ?-1,1
X x xT
22Outline
- Integer Programming Formulation
- Existing Relaxations
- Linear Programming (LP-S)
- Semidefinite Programming (SDP-L)
- Second Order Cone Programming (SOCP-MS)
- Comparison
- Generalization of Results
- Two New SOCP Relaxations
23LP-S
Schlesinger, 1976
Retain Convex Part
1
1
? Pij (1 xi xj Xij)
x argmin
? ui (1 xi)
4
2
Relax Non-Convex Constraint
xi ?-1,1
X x xT
24LP-S
Schlesinger, 1976
Retain Convex Part
1
1
? Pij (1 xi xj Xij)
x argmin
? ui (1 xi)
4
2
xi ?-1,1
Relax Non-Convex Constraint
X x xT
25LP-S
Schlesinger, 1976
X x xT
Xij ?-1,1
1 xi xj Xij 0
26LP-S
Schlesinger, 1976
Retain Convex Part
1
1
? Pij (1 xi xj Xij)
x argmin
? ui (1 xi)
4
2
xi ?-1,1
Relax Non-Convex Constraint
X x xT
27LP-S
Schlesinger, 1976
Retain Convex Part
1
1
? Pij (1 xi xj Xij)
x argmin
? ui (1 xi)
4
2
xi ?-1,1,
Xij ?-1,1
LP-S
1 xi xj Xij 0
28Outline
- Integer Programming Formulation
- Existing Relaxations
- Linear Programming (LP-S)
- Semidefinite Programming (SDP-L)
- Second Order Cone Programming (SOCP-MS)
- Comparison
- Generalization of Results
- Two New SOCP Relaxations
- Experiments
29SDP-L
Lasserre, 2000
Retain Convex Part
1
1
? Pij (1 xi xj Xij)
x argmin
? ui (1 xi)
4
2
Relax Non-Convex Constraint
xi ?-1,1
X x xT
30SDP-L
Lasserre, 2000
Retain Convex Part
1
1
? Pij (1 xi xj Xij)
x argmin
? ui (1 xi)
4
2
xi ?-1,1
Relax Non-Convex Constraint
X x xT
31SDP-L
.
.
.
1
1
x1
x2
xn
x1
x2
.
.
.
xn
Xii 1
Positive Semidefinite
Rank 1
32SDP-L
.
.
.
1
1
x1
x2
xn
x1
x2
.
.
.
xn
Xii 1
Positive Semidefinite
33Schurs Complement
A
B
BT
C
34SDP-L
1
xT
x
X
35SDP-L
Lasserre, 2000
Retain Convex Part
1
1
? Pij (1 xi xj Xij)
x argmin
? ui (1 xi)
4
2
xi ?-1,1
Relax Non-Convex Constraint
X x xT
36SDP-L
Lasserre, 2000
Retain Convex Part
1
1
? Pij (1 xi xj Xij)
x argmin
? ui (1 xi)
4
2
xi ?-1,1
SDP-L
Xii 1
Inefficient
Accurate
37Outline
- Integer Programming Formulation
- Existing Relaxations
- Linear Programming (LP-S)
- Semidefinite Programming (SDP-L)
- Second Order Cone Programming (SOCP-MS)
- Comparison
- Generalization of Results
- Two New SOCP Relaxations
38SOCP Relaxation
Derive SOCP relaxation from the SDP relaxation
1
1
? Pij (1 xi xj Xij)
x argmin
? ui (1 xi)
4
2
xi ?-1,1
Xii 1
Further Relaxation
391-D Example
For two semidefinite matrices, Frobenius inner
product is non-negative
X - x2 0
x2 ? X
1
SOC of the form v 2 ? st
402-D Example
X11
X12
X
X21
X22
412-D Example
(X - xxT)
1 - x12
X12-x1x2
X12-x1x2
1 - x22
x12 ? 1
-1 ? x1 ? 1
422-D Example
C2. ? 0
C2 0
(X - xxT)
1 - x12
X12-x1x2
X12-x1x2
1 - x22
x22 ? 1
-1 ? x2 ? 1
432-D Example
C3. ? 0
C3 0
(X - xxT)
1 - x12
X12-x1x2
X12-x1x2
1 - x22
(x1 x2)2 ? 2 2X12
SOC of the form v 2 ? st
442-D Example
C4. ? 0
C4 0
(X - xxT)
1 - x12
X12-x1x2
X12-x1x2
1 - x22
(x1 - x2)2 ? 2 - 2X12
SOC of the form v 2 ? st
45SOCP Relaxation
C1 . ? 0
Kim and Kojima, 2000
UTx 2 ? X . C1
(X - xxT)
SOC of the form v 2 ? st
Continue for C2, C3, , Cn
46SOCP Relaxation
How many constraints for SOCP SDP ?
Infinite. For all C 0
Specify constraints similar to the 2-D example
Xij
xi
xj
(xi xj)2 ? 2 2Xij
(xi xj)2 ? 2 - 2Xij
47SOCP-MS
Muramatsu and Suzuki, 2003
1
1
? Pij (1 xi xj Xij)
x argmin
? ui (1 xi)
4
2
xi ?-1,1
Xii 1
48SOCP-MS
Muramatsu and Suzuki, 2003
1
1
? Pij (1 xi xj Xij)
x argmin
? ui (1 xi)
4
2
xi ?-1,1
(xi xj)2 ? 2 2Xij
(xi - xj)2 ? 2 - 2Xij
49Outline
- Integer Programming Formulation
- Existing Relaxations
- Comparison
- Generalization of Results
- Two New SOCP Relaxations
50Dominating Relaxation
A
B
For all MAP Estimation problem (u, P)
A dominates B
Dominating relaxations are better
51Equivalent Relaxations
A
B
For all MAP Estimation problem (u, P)
A dominates B
B dominates A
52Strictly Dominating Relaxation
gt
A
B
For at least one MAP Estimation problem (u, P)
A dominates B
B does not dominate A
53SOCP-MS
Muramatsu and Suzuki, 2003
(xi xj)2 ? 2 2Xij
(xi - xj)2 ? 2 - 2Xij
SOCP-MS is a QP
Same as QP by Ravikumar and Lafferty, 2005
SOCP-MS QP-RL
54LP-S vs. SOCP-MS
Differ in the way they relax X xxT
55LP-S vs. SOCP-MS
- LP-S strictly dominates SOCP-MS
- LP-S strictly dominates QP-RL
- Where have we gone wrong?
56Recap of SOCP-MS
Xij
xi
xj
(xi xj)2 ? 2 2Xij
57Recap of SOCP-MS
Xij
xi
xj
(xi - xj)2 ? 2 - 2Xij
Can we use different C matrices ??
Can we use a different subgraph ??
58Outline
- Integer Programming Formulation
- Existing Relaxations
- Comparison
- Generalization of Results
- SOCP Relaxations on Trees
- SOCP Relaxations on Cycles
- Two New SOCP Relaxations
59SOCP Relaxations on Trees
Choose any arbitrary tree
60SOCP Relaxations on Trees
Choose any arbitrary C 0
Repeat over trees to get relaxation SOCP-T
LP-S strictly dominates SOCP-T
LP-S strictly dominates QP-T
61Outline
- Integer Programming Formulation
- Existing Relaxations
- Comparison
- Generalization of Results
- SOCP Relaxations on Trees
- SOCP Relaxations on Cycles
- Two New SOCP Relaxations
62SOCP Relaxations on Cycles
Choose an arbitrary even cycle
Pij 0
OR
Pij 0
63SOCP Relaxations on Cycles
Choose any arbitrary C 0
Repeat over even cycles to get relaxation SOCP-E
LP-S strictly dominates SOCP-E
LP-S strictly dominates QP-E
64SOCP Relaxations on Cycles
- True for odd cycles with Pij 0
- True for odd cycles with Pij 0 for only one
edge
- True for odd cycles with Pij 0 for only one
edge
- True for all combinations of above cases
65Outline
- Integer Programming Formulation
- Existing Relaxations
- Comparison
- Generalization of Results
- Two New SOCP Relaxations
- The SOCP-C Relaxation
- The SOCP-Q Relaxation
66The SOCP-C Relaxation
Include all LP-S constraints
True SOCP
Non-submodular
Submodular
Submodular
67The SOCP-C Relaxation
Include all LP-S constraints
True SOCP
0
0
1
0
0
0
0
0
0
1
1
1
1
0
0
0
0
0
0
0
0
0
1
0
c
a
a
b
b
c
Frustrated Cycle
68The SOCP-C Relaxation
Include all LP-S constraints
True SOCP
0
0
1
0
0
0
0
0
0
1
1
1
1
0
0
0
0
0
0
0
0
0
1
0
c
a
a
b
b
c
LP-S Solution
Objective Function 0
69The SOCP-C Relaxation
Include all LP-S constraints
True SOCP
0
0
1
0
0
0
0
0
0
1
1
1
1
0
0
0
0
0
0
0
0
0
1
0
c
a
a
b
b
c
LP-S Solution
1
1
-1
0
0
0
0
0
0
-1
-1
-1
-1
1
1
0
0
0
0
0
0
1
-1
1
c
a
a
b
b
c
Define an SOC Constraint using C 1
70The SOCP-C Relaxation
Include all LP-S constraints
True SOCP
0
0
1
0
0
0
0
0
0
1
1
1
1
0
0
0
0
0
0
0
0
0
1
0
c
a
a
b
b
c
LP-S Solution
1
1
-1
0
0
0
0
0
0
-1
-1
-1
-1
1
1
0
0
0
0
0
0
1
-1
1
c
a
a
b
b
c
(xi xj xk)2 ? 3 2 (Xij Xjk Xki)
71The SOCP-C Relaxation
Include all LP-S constraints
True SOCP
0
0
1
0
0
0
0
0
0
1
1
1
1
0
0
0
0
0
0
0
0
0
1
0
c
a
a
b
b
c
SOCP-C Solution
Objective Function 0.75
SOCP-C strictly dominates LP-S
72Outline
- Integer Programming Formulation
- Existing Relaxations
- Comparison
- Generalization of Results
- Two New SOCP Relaxations
- The SOCP-C Relaxation
- The SOCP-Q Relaxation
73The SOCP-Q Relaxation
Include all cycle inequalities
True SOCP
a
b
Clique of size n
c
d
Define an SOCP Constraint using C 1
(S xi)2 n (S Xij)
SOCP-Q strictly dominates LP-S
SOCP-Q strictly dominates SOCP-C
744-Neighbourhood MRF
Test SOCP-C
50 binary MRFs of size 30x30
u N (0,1)
P N (0,s2)
754-Neighbourhood MRF
s 2.5
768-Neighbourhood MRF
Test SOCP-Q
50 binary MRFs of size 30x30
u N (0,1)
P N (0,s2)
778-Neighbourhood MRF
s 1.125
78Conclusions
- Large class of SOCP/QP dominated by LP-S
- New SOCP relaxations dominate LP-S
- More experimental results in poster
79Future Work
- Comparison with cycle inequalities
- Determine best SOC constraints
- Develop efficient algorithms for new relaxations
80Questions ??