MAP Estimation Algorithms in Computer Vision - Part II

Size: px
Start display at page:

Download "MAP Estimation Algorithms in Computer Vision - Part II"

Transcription

1 MAP Estimation Algorithms in Comuter Vision - Part II M. Pawan Kumar, University of Oford Pushmeet Kohli, Microsoft Research

2 Eamle: Image Segmentation E() = c i i + c ij i (1- j ) i i,j E: {0,1} n R 0 fg 1 bg n = number of iels Image (D)

3 Eamle: Image Segmentation E() = c i i + c ij i (1- j ) i i,j E: {0,1} n R 0 fg 1 bg n = number of iels Unary Cost (c i ) Dark (negative) Bright (ositive)

4 Eamle: Image Segmentation E() = c i i + c ij i (1- j ) i i,j E: {0,1} n R 0 fg 1 bg n = number of iels Discontinuity Cost (c ij )

5 Eamle: Image Segmentation E() = c i i + c ij i (1- j ) i i,j E: {0,1} n R 0 fg 1 bg n = number of iels * = arg min E() Global Minimum (*) How to minimize E()?

6 Outline of the Tutorial The st-mincut roblem Connection between st-mincut and energy minimization? What roblems can we solve using st-mincut? st-mincut based Move algorithms Recent Advances and Oen Problems

7 Outline of the Tutorial The st-mincut roblem Connection between st-mincut and energy minimization? What roblems can we solve using st-mincut? st-mincut based Move algorithms Recent Advances and Oen Problems

8 The st-mincut Problem Source v 1 v Grah (V, E, C) Vertices V = {v 1, v 2... v n } Edges E = {(v 1, v 2 )...} Costs C = {c (1, 2)...} Sink

9 The st-mincut Problem What is a st-cut? Source v 1 v Sink

10 The st-mincut Problem What is a st-cut? Source An st-cut (S,T) divides the nodes between source and sink v 1 v What is the cost of a st-cut? Sum of cost of all edges going from S to T Sink = 16

11 The st-mincut Problem What is a st-cut? Source v 1 v Sink = 7 An st-cut (S,T) divides the nodes between source and sink. What is the cost of a st-cut? Sum of cost of all edges going from S to T What is the st-mincut? st-cut with the minimum cost

12 How to comute the st-mincut? Source v 1 v Sink 4 Solve the dual maimum flow roblem Comute the maimum flow between Source and Sink Constraints Edges: Flow < Caacity Nodes: Flow in = Flow out Min-cut\Ma-flow Theorem In every network, the maimum flow equals the cost of the st-mincut

13 Maflow Algorithms Source v 1 v 2 5 Flow = Sink 4 Augmenting Path Based Algorithms 1. Find ath from source to sink with ositive caacity 2. Push maimum ossible flow through this ath 3. Reeat until no ath can be found Algorithms assume non-negative caacity

14 Maflow Algorithms Source v 1 v 2 5 Flow = Sink 4 Augmenting Path Based Algorithms 1. Find ath from source to sink with ositive caacity 2. Push maimum ossible flow through this ath 3. Reeat until no ath can be found Algorithms assume non-negative caacity

15 Maflow Algorithms Source v 1 v Flow = Sink 4 Augmenting Path Based Algorithms 1. Find ath from source to sink with ositive caacity 2. Push maimum ossible flow through this ath 3. Reeat until no ath can be found Algorithms assume non-negative caacity

16 Maflow Algorithms Source v 1 v 2 3 Flow = 2 2 Sink 4 Augmenting Path Based Algorithms 1. Find ath from source to sink with ositive caacity 2. Push maimum ossible flow through this ath 3. Reeat until no ath can be found Algorithms assume non-negative caacity

17 Maflow Algorithms Source v 1 v 2 3 Flow = 2 2 Sink 4 Augmenting Path Based Algorithms 1. Find ath from source to sink with ositive caacity 2. Push maimum ossible flow through this ath 3. Reeat until no ath can be found Algorithms assume non-negative caacity

18 Maflow Algorithms Source v 1 v 2 3 Flow = 2 2 Sink 4 Augmenting Path Based Algorithms 1. Find ath from source to sink with ositive caacity 2. Push maimum ossible flow through this ath 3. Reeat until no ath can be found Algorithms assume non-negative caacity

19 Maflow Algorithms Source v 1 v 2 3 Flow = Sink 0 Augmenting Path Based Algorithms 1. Find ath from source to sink with ositive caacity 2. Push maimum ossible flow through this ath 3. Reeat until no ath can be found Algorithms assume non-negative caacity

20 Maflow Algorithms Source v 1 v 2 3 Flow = 6 2 Sink 0 Augmenting Path Based Algorithms 1. Find ath from source to sink with ositive caacity 2. Push maimum ossible flow through this ath 3. Reeat until no ath can be found Algorithms assume non-negative caacity

21 Maflow Algorithms Source v 1 v 2 3 Flow = 6 2 Sink 0 Augmenting Path Based Algorithms 1. Find ath from source to sink with ositive caacity 2. Push maimum ossible flow through this ath 3. Reeat until no ath can be found Algorithms assume non-negative caacity

22 Maflow Algorithms Source v 1 v 2 2 Flow = Sink 0 Augmenting Path Based Algorithms 1. Find ath from source to sink with ositive caacity 2. Push maimum ossible flow through this ath 3. Reeat until no ath can be found Algorithms assume non-negative caacity

23 Maflow Algorithms Source v 1 v 2 2 Flow = 7 3 Sink 0 Augmenting Path Based Algorithms 1. Find ath from source to sink with ositive caacity 2. Push maimum ossible flow through this ath 3. Reeat until no ath can be found Algorithms assume non-negative caacity

24 Maflow Algorithms Source v 1 v 2 2 Flow = 7 3 Sink 0 Augmenting Path Based Algorithms 1. Find ath from source to sink with ositive caacity 2. Push maimum ossible flow through this ath 3. Reeat until no ath can be found Algorithms assume non-negative caacity

25 History of Maflow Algorithms Augmenting Path and Push-Relabel n: #nodes m: #edges U: maimum edge weight Algorithms assume nonnegative edge weights [Slide credit: Andrew Goldberg]

26 History of Maflow Algorithms Augmenting Path and Push-Relabel n: #nodes m: #edges U: maimum edge weight Algorithms assume nonnegative edge weights [Slide credit: Andrew Goldberg]

27 Augmenting Path based Algorithms Ford Fulkerson: Choose any augmenting ath Source a 1 a Sink

28 Augmenting Path based Algorithms Ford Fulkerson: Choose any augmenting ath Source a 1 a Sink Bad Augmenting Paths

29 Augmenting Path based Algorithms Ford Fulkerson: Choose any augmenting ath Source a 1 a Sink Bad Augmenting Path

30 Augmenting Path based Algorithms Ford Fulkerson: Choose any augmenting ath Source a 1 a Sink

31 Augmenting Path based Algorithms Ford Fulkerson: Choose any augmenting ath n: #nodes m: #edges Source a 1 a Sink We will have to erform 2000 augmentations! Worst case comleity: O (m Total_Flow) (Pseudo-olynomial bound: deends on flow)

32 Augmenting Path based Algorithms Dinic: Choose shortest augmenting ath n: #nodes m: #edges Source a 1 a Sink Worst case Comleity: O (m n 2 )

33 Maflow in Comuter Vision Secialized algorithms for vision roblems Grid grahs Low connectivity (m ~ O(n)) Dual search tree augmenting ath algorithm [Boykov and Kolmogorov PAMI 2004] Finds aroimate shortest augmenting aths efficiently High worst-case time comleity Emirically outerforms other algorithms on vision roblems

34 Maflow in Comuter Vision Secialized algorithms for vision roblems Grid grahs Low connectivity (m ~ O(n)) Dual search tree augmenting ath algorithm [Boykov and Kolmogorov PAMI 2004] Finds aroimate shortest augmenting aths efficiently High worst-case time comleity Emirically outerforms other algorithms on vision roblems Efficient code available on the web htt://

35 Outline of the Tutorial The st-mincut roblem Connection between st-mincut and energy minimization? What roblems can we solve using st-mincut? st-mincut based Move algorithms Recent Advances and Oen Problems

36 St-mincut and Energy Minimization S st-mincut T Minimizing a Qudratic Pseudoboolean function E() Functions of boolean variables Pseudoboolean? E: {0,1} n R E() = c i i + c ij i (1- j ) i i,j c ij 0 Polynomial time st-mincut algorithms require non-negative edge weights

37 So how does this work? Construct a grah such that: 1. Any st-cut corresonds to an assignment of 2. The cost of the cut is equal to the energy of : E() S st-mincut E() T Solution

38 Grah Construction E(a 1,a 2 ) Source (0) a 1 a 2 Sink (1)

39 Grah Construction E(a 1,a 2 ) = 2a 1 2 Source (0) a 1 a 2 Sink (1)

40 Grah Construction E(a 1,a 2 ) = 2a 1 + 5ā 1 2 Source (0) a 1 a 2 5 Sink (1)

41 Grah Construction E(a 1,a 2 ) = 2a 1 + 5ā 1 + 9a 2 + 4ā 2 Source (0) 2 9 a 1 a Sink (1)

42 Grah Construction E(a 1,a 2 ) = 2a 1 + 5ā 1 + 9a 2 + 4ā 2 + 2a 1 ā 2 Source (0) 2 9 a 1 a Sink (1)

43 Grah Construction E(a 1,a 2 ) = 2a 1 + 5ā 1 + 9a 2 + 4ā 2 + 2a 1 ā 2 + ā 1 a Source (0) a 1 a Sink (1)

44 Grah Construction E(a 1,a 2 ) = 2a 1 + 5ā 1 + 9a 2 + 4ā 2 + 2a 1 ā 2 + ā 1 a Source (0) a 1 a Sink (1)

45 Grah Construction E(a 1,a 2 ) = 2a 1 + 5ā 1 + 9a 2 + 4ā 2 + 2a 1 ā 2 + ā 1 a 2 Source (0) 2 9 Cost of cut = 11 1 a 1 a 2 a 1 = 1 a 2 = E (1,1) = 11 Sink (1)

46 Grah Construction E(a 1,a 2 ) = 2a 1 + 5ā 1 + 9a 2 + 4ā 2 + 2a 1 ā 2 + ā 1 a 2 Source (0) a 1 a 2 st-mincut cost = 8 a 1 = 1 a 2 = E (1,0) = 8 Sink (1)

47 Energy Function Rearameterization Two functions E 1 and E 2 are rearameterizations if E 1 () = E 2 () for all For instance: E 1 (a 1 ) = 1+ 2a 1 + 3ā 1 E 2 (a 1 ) = 3 + ā 1 a 1 ā a 1 + 3ā ā

48 Flow and Rearametrization E(a 1,a 2 ) = 2a 1 + 5ā 1 + 9a 2 + 4ā 2 + 2a 1 ā 2 + ā 1 a Source (0) a 1 a Sink (1)

49 Flow and Rearametrization E(a 1,a 2 ) = 2a 1 + 5ā 1 + 9a 2 + 4ā 2 + 2a 1 ā 2 + ā 1 a 2 Source (0) a 1 a a 1 + 5ā 1 = 2(a 1 +ā 1 ) + 3ā 1 = 2 + 3ā 1 Sink (1)

50 Flow and Rearametrization E(a 1,a 2 ) = 2 + 3ā 1 + 9a 2 + 4ā 2 + 2a 1 ā 2 + ā 1 a 2 Source (0) a 1 a a 1 + 5ā 1 = 2(a 1 +ā 1 ) + 3ā 1 = 2 + 3ā 1 Sink (1)

51 Flow and Rearametrization E(a 1,a 2 ) = 2 + 3ā 1 + 9a 2 + 4ā 2 + 2a 1 ā 2 + ā 1 a 2 Source (1) a 1 a a 2 + 4ā 2 = 4(a 2 +ā 2 ) + 5ā 2 = 4 + 5ā 2 Sink (0)

52 Flow and Rearametrization E(a 1,a 2 ) = 2 + 3ā 1 + 5a a 1 ā 2 + ā 1 a 2 Source (1) a 1 a a 2 + 4ā 2 = 4(a 2 +ā 2 ) + 5ā 2 = 4 + 5ā 2 Sink (0)

53 Flow and Rearametrization E(a 1,a 2 ) = 6 + 3ā 1 + 5a 2 + 2a 1 ā 2 + ā 1 a 2 Source (1) a 1 a Sink (0)

54 Flow and Rearametrization E(a 1,a 2 ) = 6 + 3ā 1 + 5a 2 + 2a 1 ā 2 + ā 1 a 2 Source (1) a 1 a Sink (0)

55 Flow and Rearametrization E(a 1,a 2 ) = 6 + 3ā 1 + 5a 2 + 2a 1 ā 2 + ā 1 a 2 3ā 1 + 5a 2 + 2a 1 ā 2 Source (1) a 1 a Sink (0) = 2(ā 1 +a 2 +a 1 ā 2 ) +ā 1 +3a 2 = 2(1+ā 1 a 2 ) +ā 1 +3a 2 F1 = ā 1 +a 2 +a 1 ā 2 F2 = 1+ā 1 a 2 a 1 a 2 F1 F

56 Flow and Rearametrization E(a 1,a 2 ) = 8 + ā 1 + 3a 2 + 3ā 1 a 2 3ā 1 + 5a 2 + 2a 1 ā 2 Source (1) a 1 a Sink (0) = 2(ā 1 +a 2 +a 1 ā 2 ) +ā 1 +3a 2 = 2(1+ā 1 a 2 ) +ā 1 +3a 2 F1 = ā 1 +a 2 +a 1 ā 2 F2 = 1+ā 1 a 2 a 1 a 2 F1 F

57 Flow and Rearametrization E(a 1,a 2 ) = 8 + ā 1 + 3a 2 + 3ā 1 a 2 Source (1) a 1 a No more augmenting aths ossible Sink (0)

58 Flow and Rearametrization E(a 1,a 2 ) = 8 + ā 1 + 3a 2 + 3ā 1 a 2 Residual Grah (ositive coefficients) Total Flow bound on the otimal solution Source (1) a 1 a Sink (0) Inference of the otimal solution becomes trivial because the bound is tight

59 Flow and Rearametrization E(a 1,a 2 ) = 8 + ā 1 + 3a 2 + 3ā 1 a 2 Residual Grah (ositive coefficients) Total Flow bound on the otimal solution Source (1) a 1 a 2 st-mincut cost = 8 a 1 = 1 a 2 = E (1,0) = 8 Sink (0) Inference of the otimal solution becomes trivial because the bound is tight

60 Eamle: Image Segmentation E() = c i i + c ij i (1- j ) i i,j E: {0,1} n R 0 fg 1 bg * = arg min E() Global Minimum (*) How to minimize E()?

61 How does the code look like? Grah *g; For all iels /* Add a node to the grah */ nodeid() = g->add_node(); Source (0) /* Set cost of terminal edges */ set_weights(nodeid(), fgcost(), bgcost()); end for all adjacent iels,q add_weights(nodeid(), nodeid(q), cost); end g->comute_maflow(); label_ = g->is_connected_to_source(nodeid()); Sink (1) // is the label of iel (0 or 1)

62 How does the code look like? Grah *g; For all iels end /* Add a node to the grah */ nodeid() = g->add_node(); /* Set cost of terminal edges */ set_weights(nodeid(), fgcost(), bgcost()); for all adjacent iels,q add_weights(nodeid(), nodeid(q), cost); end g->comute_maflow(); label_ = g->is_connected_to_source(nodeid()); Source (0) bgcost(a 1 ) bgcost(a 2 ) a 1 a 2 fgcost(a 1 ) fgcost(a 2 ) Sink (1) // is the label of iel (0 or 1)

63 How does the code look like? Grah *g; For all iels end /* Add a node to the grah */ nodeid() = g->add_node(); /* Set cost of terminal edges */ set_weights(nodeid(), fgcost(), bgcost()); for all adjacent iels,q add_weights(nodeid(), nodeid(q), cost(,q)); end g->comute_maflow(); label_ = g->is_connected_to_source(nodeid()); Source (0) bgcost(a 1 ) bgcost(a 2 ) cost(,q) a 1 a 2 fgcost(a 1 ) fgcost(a 2 ) Sink (1) // is the label of iel (0 or 1)

64 How does the code look like? Grah *g; For all iels end /* Add a node to the grah */ nodeid() = g->add_node(); /* Set cost of terminal edges */ set_weights(nodeid(), fgcost(), bgcost()); for all adjacent iels,q add_weights(nodeid(), nodeid(q), cost(,q)); end g->comute_maflow(); label_ = g->is_connected_to_source(nodeid()); // is the label of iel (0 or 1) Source (0) bgcost(a 1 ) bgcost(a 2 ) cost(,q) a 1 a 2 fgcost(a 1 ) fgcost(a 2 ) Sink (1) a 1 = bg a 2 = fg

65 Image Segmentation in Video n-links s = 0 st-cut E() * w q t = 1 Image Flow Global Otimum

66 Image Segmentation in Video Image Flow Global Otimum

67 Boykov & Jolly ICCV 01, Kohli & Torr (ICCV05, PAMI07) Dynamic Energy Minimization E A minimize S A Can we do better? Recycling Solutions E B comutationally eensive oeration S B

68 Dynamic Energy Minimization E A minimize S A Reuse flow A and B similar differences between A and B E B* Simler energy cheaer oeration E B comutationally eensive oeration S B Rearametrization time seedu! Boykov & Jolly ICCV 01, Kohli && Torr Torr (ICCV05, PAMI07)

69 Dynamic Energy Minimization Original Energy E(a 1,a 2 ) = 2a 1 + 5ā 1 + 9a 2 + 4ā 2 + 2a 1 ā 2 + ā 1 a 2 Rearametrized Energy E(a 1,a 2 ) = 8 + ā 1 + 3a 2 + 3ā 1 a 2 New Energy E(a 1,a 2 ) = 2a 1 + 5ā 1 + 9a 2 + 4ā 2 + 7a 1 ā 2 + ā 1 a 2 New Rearametrized Energy E(a 1,a 2 ) = 8 + ā 1 + 3a 2 + 3ā 1 a 2 + 5a 1 ā 2 Kohli & Torr (ICCV05, PAMI07) Boykov & Jolly ICCV 01, Kohli & Torr (ICCV05, PAMI07)

70 Outline of the Tutorial The st-mincut roblem Connection between st-mincut and energy minimization? What roblems can we solve using st-mincut? st-mincut based Move algorithms Recent Advances and Oen Problems

71 Minimizing Energy Functions General Energy Functions NP-hard to minimize Only aroimate minimization ossible Easy energy functions Solvable in olynomial time Submodular ~ O(n 6 ) MAXCUT NP-Hard Submodular Functions Functions defined on trees Sace of Function Minimization Problems

72 Submodular Set Functions Let E= {a 1,a 2,... a n } be a set 2 E = #subsets of E Set function f 2 E R

73 Submodular Set Functions Let E= {a 1,a 2,... a n } be a set 2 E = #subsets of E Set function f 2 E R is submodular if f(a) + f(b) f(ab) + f(ab) for all A,B E E A B Imortant Proerty Sum of two submodular functions is submodular

74 Minimizing Submodular Functions Minimizing general submodular functions O(n 5 Q + n 6 ) where Q is function evaluation time [Orlin, IPCO 2007] Symmetric submodular functions E () = E (1 - ) O(n 3 ) [Queyranne 1998] Quadratic seudoboolean Can be transformed to st-mincut One node er variable [ O(n 3 ) comleity] Very low emirical running time

75 Submodular Pseudoboolean Functions Function defined over boolean vectors = { 1, 2,... n } Definition: All functions for one boolean variable (f: {0,1} -> R) are submodular A function of two boolean variables (f: {0,1} 2 -> R) is submodular if f(0,1) + f(1,0) f(0,0) + f(1,1) A general seudoboolean function f 2 n R is submodular if all its rojections f are submodular i.e. f (0,1) + f (1,0) f (0,0) + f (1,1)

76 Quadratic Submodular Pseudoboolean Functions E() = θ i ( i ) + θ ij ( i, j ) i i,j For all ij θ ij (0,1) + θ ij (1,0) θ ij (0,0) + θ ij (1,1)

77 Quadratic Submodular Pseudoboolean Functions E() = θ i ( i ) + θ ij ( i, j ) i i,j For all ij θ ij (0,1) + θ ij (1,0) θ ij (0,0) + θ ij (1,1) Equivalent (transformable) E() = c i i + c ij i (1- j ) i i,j c ij 0 i.e. All submodular QPBFs are st-mincut solvable

78 How are they equivalent? A = θ ij (0,0) B = θ ij (0,1) C = θ ij (1,0) D = θ ij (1,1) i 0 1 j 0 1 A B C D = A C-A C-A D-C D-C B+C -A-D 0 0 if 1 =1 add C-A if 2 = 1 add D-C θ ij ( i, j ) = θ ij (0,0) + (θ ij (1,0)-θ ij (0,0)) i + (θ ij (1,0)-θ ij (0,0)) j + (θ ij (1,0) + θ ij (0,1) - θ ij (0,0) - θ ij (1,1)) (1- i ) j B+C-A-D 0 is true from the submodularity of θ ij

79 How are they equivalent? A = θ ij (0,0) B = θ ij (0,1) C = θ ij (1,0) D = θ ij (1,1) i 0 1 j 0 1 A B C D = A C-A C-A D-C D-C B+C -A-D 0 0 if 1 =1 add C-A if 2 = 1 add D-C θ ij ( i, j ) = θ ij (0,0) + (θ ij (1,0)-θ ij (0,0)) i + (θ ij (1,0)-θ ij (0,0)) j + (θ ij (1,0) + θ ij (0,1) - θ ij (0,0) - θ ij (1,1)) (1- i ) j B+C-A-D 0 is true from the submodularity of θ ij

80 How are they equivalent? A = θ ij (0,0) B = θ ij (0,1) C = θ ij (1,0) D = θ ij (1,1) i 0 1 j 0 1 A B C D = A C-A C-A D-C D-C B+C -A-D 0 0 if 1 =1 add C-A if 2 = 1 add D-C θ ij ( i, j ) = θ ij (0,0) + (θ ij (1,0)-θ ij (0,0)) i + (θ ij (1,0)-θ ij (0,0)) j + (θ ij (1,0) + θ ij (0,1) - θ ij (0,0) - θ ij (1,1)) (1- i ) j B+C-A-D 0 is true from the submodularity of θ ij

81 How are they equivalent? A = θ ij (0,0) B = θ ij (0,1) C = θ ij (1,0) D = θ ij (1,1) i 0 1 j 0 1 A B C D = A C-A C-A D-C D-C B+C -A-D 0 0 if 1 =1 add C-A if 2 = 1 add D-C θ ij ( i, j ) = θ ij (0,0) + (θ ij (1,0)-θ ij (0,0)) i + (θ ij (1,0)-θ ij (0,0)) j + (θ ij (1,0) + θ ij (0,1) - θ ij (0,0) - θ ij (1,1)) (1- i ) j B+C-A-D 0 is true from the submodularity of θ ij

82 How are they equivalent? A = θ ij (0,0) B = θ ij (0,1) C = θ ij (1,0) D = θ ij (1,1) i 0 1 j 0 1 A B C D = A C-A C-A D-C D-C B+C -A-D 0 0 if 1 =1 add C-A if 2 = 1 add D-C θ ij ( i, j ) = θ ij (0,0) + (θ ij (1,0)-θ ij (0,0)) i + (θ ij (1,0)-θ ij (0,0)) j + (θ ij (1,0) + θ ij (0,1) - θ ij (0,0) - θ ij (1,1)) (1- i ) j B+C-A-D 0 is true from the submodularity of θ ij

83 Quadratic Submodular Pseudoboolean Functions E() = θ i ( i ) + θ ij ( i, j ) i i,j in {0,1} n For all ij θ ij (0,1) + θ ij (1,0) θ ij (0,0) + θ ij (1,1) Equivalent (transformable) S st-mincut T

84 Minimizing Non-Submodular Functions E() = θ i ( i ) + θ ij ( i, j ) i i,j θ ij (0,1) + θ ij (1,0) θ ij (0,0) + θ ij (1,1) for some ij Minimizing general non-submodular functions is NP-hard. Commonly used method is to solve a relaation of the roblem [Slide credit: Carsten Rother]

85 Minimization using Roof-dual Relaation E({ }) ( ) unary ~ q q ( (,, q q ) ) ~ q ( 0,0) q(1,1) q(0,1) q(1,0) airwise submodular q ~ (0,0) q (1,1) ~ ~ (0,1) airwise nonsubmodular q q (1,0) [Slide credit: Carsten Rother]

86 2 ), (1 ~ ),1 ( ~ 2 ),1 (1 ), ( 2 ) (1 ) ( }) },{ '({ q q q q q q q q E Double number of variables: ), ( ~ ), ( ) ( }) ({ q q q q E, Minimization using Roof-dual Relaation ) 1 ( [Slide credit: Carsten Rother]

87 2 ), (1 ~ ),1 ( ~ 2 ),1 (1 ), ( 2 ) (1 ) ( }) },{ '({ q q q q q q q q E Double number of variables: ), ( ~ ), ( ) ( }) ({ q q q q E, Minimization using Roof-dual Relaation ),1 ( ~ ), ( q q q q f (1,0) ~ (0,1) ~ (1,1) ~ (0,0) ~ q q q q (1,1) (0,0) (1,0) 0,1) ( q q q q f f f f Non- submodular Submodular ) 1 (

88 2 ), (1 ~ ),1 ( ~ 2 ),1 (1 ), ( 2 ) (1 ) ( }) },{ '({ q q q q q q q q E Double number of variables: ), ( ~ ), ( ) ( }) ({ q q q q E, Minimization using Roof-dual Relaation ) 1 ( is submodular! Ignore (solvable using st-mincut) Proerty of the roblem: 1

89 1 is the otimal label Proerty of the solution: 2 ), (1 ~ ),1 ( ~ 2 ),1 (1 ), ( 2 ) (1 ) ( }) },{ '({ q q q q q q q q E Double number of variables: ), ( ~ ), ( ) ( }) ({ q q q q E, ) 1 ( Minimization using Roof-dual Relaation

90 Reca Eact minimization of Submodular QBFs using grah cuts. Obtaining artially otimal solutions of nonsubmodular QBFs using grah cuts.

91 But... Need higher order energy functions to model image structure Field of eerts [Roth and Black] Many roblems in comuter vision involve multile labels E() = θ i ( i ) + θ ij ( i, j ) + θ c ( c ) i i,j c ϵ Labels L = {l 1, l 2,, l k } Clique c V

92 Transforming roblems in QBFs Higher order Pseudoboolean Functions Quadratic Pseudoboolean Functions Multi-label Functions Pseudoboolean Functions

93 Transforming roblems in QBFs Higher order Pseudoboolean Functions Quadratic Pseudoboolean Functions Multi-label Functions Pseudoboolean Functions

94 Higher order to Quadratic Simle Eamle using Auiliary variables f() = { 0 if all i = 0 C 1 otherwise ϵ L = {0,1} n min f() =,a ϵ {0,1} Higher Order Submodular Function min C 1 a + C 1 ā i Quadratic Submodular Function i = 0 a=0 (ā=1) f() = 0 i 1 a=1 (ā=0) f() = C 1

95 Higher order to Quadratic min f() = Higher Order Submodular Function min C 1 a + C 1 ā i,a ϵ {0,1} Quadratic Submodular Function C 1 i C i

96 Higher order to Quadratic min f() = Higher Order Submodular Function min C 1 a + C 1 ā i,a ϵ {0,1} Quadratic Submodular Function C 1 i C 1 a=0 a=1 Lower envelo of concave functions is concave i

97 Higher order to Quadratic min f() = Higher Order Submodular Function min f 1 ()a + f 2 ()ā,a ϵ {0,1} Quadratic Submodular Function f 2 () f 1 () a=1 Lower envelo of concave functions is concave i

98 Higher order to Quadratic min f() = Higher Order Submodular Function min f 1 ()a + f 2 ()ā,a ϵ {0,1} Quadratic Submodular Function f 2 () a=0 f 1 () a=1 Lower envelo of concave functions is concave i

99 Transforming roblems in QBFs Higher order Pseudoboolean Functions Quadratic Pseudoboolean Functions Multi-label Functions Pseudoboolean Functions

100 Multi-label to Pseudo-boolean So what is the roblem? E m (y 1,y 2,..., y n ) E b ( 1, 2,..., m ) y i ϵ L = {l 1, l 2,, l k } i ϵ L = {0,1} Multi-label Problem Binary label Problem such that: Let Y and X be the set of feasible solutions, then 1. For each binary solution ϵ X with finite energy there eists eactly one multi-label solution y ϵ Y -> One-One encoding function T:X->Y 2. arg min E m (y) = T(arg min E b ())

101 Multi-label to Pseudo-boolean Poular encoding scheme [Roy and Co 98, Ishikawa 03, Schlesinger & Flach 06]

102 Multi-label to Pseudo-boolean Poular encoding scheme [Roy and Co 98, Ishikawa 03, Schlesinger & Flach 06] Ishikawa s result: E(y) = θ i (y i ) + θ ij (y i,y j ) i i,j y ϵ Labels L = {l 1, l 2,, l k } θ ij (y i,y j ) = g( y i -y j ) Conve Function g( y i -y j ) y i -y j

103 Multi-label to Pseudo-boolean Poular encoding scheme [Roy and Co 98, Ishikawa 03, Schlesinger & Flach 06] Schlesinger & Flach 06: E(y) = θ i (y i ) + θ ij (y i,y j ) i i,j y ϵ Labels L = {l 1, l 2,, l k } θ ij (l i+1,l j ) + θ ij (l i,l j+1 ) θ ij (l i,l j ) + θ ij (l i+1,l j+1 ) Covers all Submodular multi-label functions More general than Ishikawa

104 Multi-label to Pseudo-boolean Problems Alicability Only solves restricted class of energy functions Cannot handle Potts model otentials Comutational Cost Very high comutational cost Problem size = Variables Labels Gray level image denoising (1 Miel image) (~ grah nodes)

105 Outline of the Tutorial The st-mincut roblem Connection between st-mincut and energy minimization? What roblems can we solve using st-mincut? st-mincut based Move algorithms Recent Advances and Oen Problems

106 St-mincut based Move algorithms E() = θ i ( i ) + θ ij ( i, j ) i i,j ϵ Labels L = {l 1, l 2,, l k } Commonly used for solving non-submodular multi-label roblems Etremely efficient and roduce good solutions Not Eact: Produce local otima

107 Energy Move Making Algorithms Solution Sace

108 Energy Move Making Algorithms Current Solution Search Neighbourhood Otimal Move Solution Sace

109 Energy Comuting the Otimal Move Current Solution Search Neighbourhood (t) c Otimal Move Key Proerty Move Sace Solution Sace Bigger move sace Better solutions Finding the otimal move hard

110 Moves using Grah Cuts Eansion and Swa move algorithms [Boykov Veksler and Zabih, PAMI 2001] Makes a series of changes to the solution (moves) Each move results in a solution with smaller energy Current Solution Search Neighbourhood Move Sace (t) : 2 N Sace of Solutions () : L N N L Number of Variables Number of Labels

111 Moves using Grah Cuts Eansion and Swa move algorithms [Boykov Veksler and Zabih, PAMI 2001] Makes a series of changes to the solution (moves) Each move results in a solution with smaller energy Current Solution Move to new solution Construct a move function Minimize move function to get otimal move How to minimize move functions?

112 General Binary Moves = t 1 + (1- t) 2 New solution Current Solution Second solution E m (t) = E(t 1 + (1- t) 2 ) Minimize over move variables t to get the otimal move Move energy is a submodular QPBF (Eact Minimization Possible) Boykov, Veksler and Zabih, PAMI 2001

113 Swa Move Variables labeled α, β can swa their labels [Boykov, Veksler, Zabih]

114 Swa Move Variables labeled α, β can swa their labels Swa Sky, House Tree Ground House Sky [Boykov, Veksler, Zabih]

115 Swa Move Variables labeled α, β can swa their labels Move energy is submodular if: Unary Potentials: Arbitrary Pairwise otentials: Semimetric θ ij (l a,l b ) 0 θ ij (l a,l b ) = 0 a = b Eamles: Potts model, Truncated Conve [Boykov, Veksler, Zabih]

116 Eansion Move Variables take label a or retain current label [Boykov, Veksler, Zabih]

117 Eansion Move Variables take label a or retain current label Status: Initialize Eand Ground House Sky with Tree Tree Ground House Sky [Boykov, Veksler, Zabih]

118 Eansion Move Variables take label a or retain current label Move energy is submodular if: Unary Potentials: Arbitrary Pairwise otentials: Metric θ ij (l a,l b ) + θ ij (l b,l c ) θ ij (l a,l c ) Semi metric + Triangle Inequality Eamles: Potts model, Truncated linear Cannot solve truncated quadratic [Boykov, Veksler, Zabih]

119 General Binary Moves = t 1 + (1-t) 2 New solution First solution Second solution Minimize over move variables t Move Tye First Solution Second Solution Guarantee Eansion Old solution All alha Metric Fusion Any solution Any solution Move functions can be non-submodular!!

120 Solving Continuous Problems using Fusion Move = t 1 + (1-t) 2 1, 2 can be continuous Otical Flow Eamle Solution from Method 2 2 Solution from Method 1 1 F Final Solution (Lemitsky et al. CVPR08, Woodford et al. CVPR08)

121 Range Moves Move variables can be multi-label = (t ==1) 1 + (t==2) 2 + +(t==k) k Otimal move found out by using the Ishikawa Useful for minimizing energies with truncated conve airwise otentials θ ij (y i,y j ) = min( y i -y j,t) θ ij (y i,y j ) T y i -y j O. Veksler, CVPR 2007

122 Move Algorithms for Solving Higher Order Energies E() = θ i ( i ) + θ ij ( i, j ) + θ c ( c ) i i,j c ϵ Labels L = {l 1, l 2,, l k } Clique c V Higher order functions give rise to higher order move energies Move energies for certain classes of higher order energies can be transformed to QPBFs. [Kohli, Kumar and Torr, CVPR07] [Kohli, Ladicky and Torr, CVPR08]

123 Outline of the Tutorial The st-mincut roblem Connection between st-mincut and energy minimization? What roblems can we solve using st-mincut? st-mincut based Move algorithms Recent Advances and Oen Problems

124 Solving Mied Programming Problems binary image segmentation ( i {0,1}) ω non-local arameter (lives in some large set Ω) E(,ω) = C(ω) + θ i (ω, i ) + θ ij (ω, i, j ) i i,j constant unary otentials airwise otentials 0 ω Pose Stickman Model Rough Shae Prior θ i (ω, i ) Shae Prior

125 Oen Problems Characterization of Problems Solvable using st-mincut What functions can be transformed to submodular QBFs? Submodular Functions st-mincut Equivalent

126 Minimizing General Higher Order Functions We saw how simle higher order otentials can be solved How more sohisticated higher order otentials can be solved?

127 Summary Labelling Problem Eact Transformation (global otimum) Or Relaed transformation (artially otimal) Submodular Quadratic Pseudoboolean Function S st-mincut Sub-roblem T Move making algorithms

128 Thanks. Questions?

129 Stereo - Woodford et al. CVPR 2008 Use of Higher order Potentials E( 1, 2, 3 ) = θ 12 ( 1, 2 ) + θ 23 ( 2, 3 ) θ ij ( i, j ) = { 0 if i = j C otherwise Disarity Labels E(6,6,6) = = 0 P 1 P 2 P 3 Piels

130 Stereo - Woodford et al. CVPR 2008 Use of Higher order Potentials E( 1, 2, 3 ) = θ 12 ( 1, 2 ) + θ 23 ( 2, 3 ) θ ij ( i, j ) = { 0 if i = j C otherwise Disarity Labels E(6,6,6) = = 0 E(6,7,7) = = 1 P 1 P 2 P 3 Piels

131 Stereo - Woodford et al. CVPR 2008 Use of Higher order Potentials E( 1, 2, 3 ) = θ 12 ( 1, 2 ) + θ 23 ( 2, 3 ) θ ij ( i, j ) = { 0 if i = j C otherwise Disarity Labels E(6,6,6) = = 0 E(6,7,7) = = 1 E(6,7,8) = = 2 P 1 P 2 P 3 Piels Pairwise otential enalize slanted lanar surfaces

132 Comuting the Otimal Move Current Solution Search Neighbourhood E() (t) c T Otimal Move Transformation function T( c, t) = n = c + t

133 Comuting the Otimal Move Current Solution Search Neighbourhood E() (t) c T E m Otimal Move Transformation function Move Energy T( c, t) = n = c + t E m (t) = E(T( c, t))

134 Comuting the Otimal Move Current Solution Search Neighbourhood E() (t) c T E m Otimal Move Transformation function Move Energy T( c, t) = n = c + t E m (t) = E(T( c, t)) minimize t* Otimal Move

Discrete Inference and Learning Lecture 3

Discrete Inference and Learning Lecture 3 Discrete Inference and Learning Lecture 3 MVA 2017 2018 h

More information

Pushmeet Kohli. Microsoft Research Cambridge. IbPRIA 2011

Pushmeet Kohli. Microsoft Research Cambridge. IbPRIA 2011 Pushmeet Kohli Microsoft Research Cambridge IbPRIA 2011 2:30 4:30 Labelling Problems Graphical Models Message Passing 4:30 5:00 - Coffee break 5:00 7:00 - Graph Cuts Move Making Algorithms Speed and Efficiency

More information

Pushmeet Kohli Microsoft Research

Pushmeet Kohli Microsoft Research Pushmeet Kohli Microsoft Research E(x) x in {0,1} n Image (D) [Boykov and Jolly 01] [Blake et al. 04] E(x) = c i x i Pixel Colour x in {0,1} n Unary Cost (c i ) Dark (Bg) Bright (Fg) x* = arg min E(x)

More information

Discrete Optimization Lecture 5. M. Pawan Kumar

Discrete Optimization Lecture 5. M. Pawan Kumar Discrete Optimization Lecture 5 M. Pawan Kumar pawan.kumar@ecp.fr Exam Question Type 1 v 1 s v 0 4 2 1 v 4 Q. Find the distance of the shortest path from s=v 0 to all vertices in the graph using Dijkstra

More information

Part III. for energy minimization

Part III. for energy minimization ICCV 2007 tutorial Part III Message-assing algorithms for energy minimization Vladimir Kolmogorov University College London Message assing ( E ( (,, Iteratively ass messages between nodes... Message udate

More information

Part 6: Structured Prediction and Energy Minimization (1/2)

Part 6: Structured Prediction and Energy Minimization (1/2) Part 6: Structured Prediction and Energy Minimization (1/2) Providence, 21st June 2012 Prediction Problem Prediction Problem y = f (x) = argmax y Y g(x, y) g(x, y) = p(y x), factor graphs/mrf/crf, g(x,

More information

A note on the primal-dual method for the semi-metric labeling problem

A note on the primal-dual method for the semi-metric labeling problem A note on the primal-dual method for the semi-metric labeling problem Vladimir Kolmogorov vnk@adastral.ucl.ac.uk Technical report June 4, 2007 Abstract Recently, Komodakis et al. [6] developed the FastPD

More information

Energy Minimization via Graph Cuts

Energy Minimization via Graph Cuts Energy Minimization via Graph Cuts Xiaowei Zhou, June 11, 2010, Journal Club Presentation 1 outline Introduction MAP formulation for vision problems Min-cut and Max-flow Problem Energy Minimization via

More information

On Partial Optimality in Multi-label MRFs

On Partial Optimality in Multi-label MRFs Pushmeet Kohli 1 Alexander Shekhovtsov 2 Carsten Rother 1 Vladimir Kolmogorov 3 Philip Torr 4 pkohli@microsoft.com shekhovt@cmp.felk.cvut.cz carrot@microsoft.com vnk@adastral.ucl.ac.uk philiptorr@brookes.ac.uk

More information

A Graph Cut Algorithm for Higher-order Markov Random Fields

A Graph Cut Algorithm for Higher-order Markov Random Fields A Graph Cut Algorithm for Higher-order Markov Random Fields Alexander Fix Cornell University Aritanan Gruber Rutgers University Endre Boros Rutgers University Ramin Zabih Cornell University Abstract Higher-order

More information

Graph Cut based Inference with Co-occurrence Statistics. Ľubor Ladický, Chris Russell, Pushmeet Kohli, Philip Torr

Graph Cut based Inference with Co-occurrence Statistics. Ľubor Ladický, Chris Russell, Pushmeet Kohli, Philip Torr Graph Cut based Inference with Co-occurrence Statistics Ľubor Ladický, Chris Russell, Pushmeet Kohli, Philip Torr Image labelling Problems Assign a label to each image pixel Geometry Estimation Image Denoising

More information

Discrete Optimization in Machine Learning. Colorado Reed

Discrete Optimization in Machine Learning. Colorado Reed Discrete Optimization in Machine Learning Colorado Reed [ML-RCC] 31 Jan 2013 1 Acknowledgements Some slides/animations based on: Krause et al. tutorials: http://www.submodularity.org Pushmeet Kohli tutorial:

More information

On Partial Optimality in Multi-label MRFs

On Partial Optimality in Multi-label MRFs On Partial Optimality in Multi-label MRFs P. Kohli 1 A. Shekhovtsov 2 C. Rother 1 V. Kolmogorov 3 P. Torr 4 1 Microsoft Research Cambridge 2 Czech Technical University in Prague 3 University College London

More information

Markov Random Fields for Computer Vision (Part 1)

Markov Random Fields for Computer Vision (Part 1) Markov Random Fields for Computer Vision (Part 1) Machine Learning Summer School (MLSS 2011) Stephen Gould stephen.gould@anu.edu.au Australian National University 13 17 June, 2011 Stephen Gould 1/23 Pixel

More information

Energy minimization via graph-cuts

Energy minimization via graph-cuts Energy minimization via graph-cuts Nikos Komodakis Ecole des Ponts ParisTech, LIGM Traitement de l information et vision artificielle Binary energy minimization We will first consider binary MRFs: Graph

More information

Generalized Roof Duality for Pseudo-Boolean Optimization

Generalized Roof Duality for Pseudo-Boolean Optimization Generalized Roof Duality for Pseudo-Boolean Optimization Fredrik Kahl Petter Strandmark Centre for Mathematical Sciences, Lund University, Sweden {fredrik,petter}@maths.lth.se Abstract The number of applications

More information

Quadratic Programming Relaxations for Metric Labeling and Markov Random Field MAP Estimation

Quadratic Programming Relaxations for Metric Labeling and Markov Random Field MAP Estimation Quadratic Programming Relaations for Metric Labeling and Markov Random Field MAP Estimation Pradeep Ravikumar John Lafferty School of Computer Science, Carnegie Mellon University, Pittsburgh, PA 15213,

More information

Rounding-based Moves for Semi-Metric Labeling

Rounding-based Moves for Semi-Metric Labeling Rounding-based Moves for Semi-Metric Labeling M. Pawan Kumar, Puneet K. Dokania To cite this version: M. Pawan Kumar, Puneet K. Dokania. Rounding-based Moves for Semi-Metric Labeling. Journal of Machine

More information

Higher-Order Clique Reduction Without Auxiliary Variables

Higher-Order Clique Reduction Without Auxiliary Variables Higher-Order Clique Reduction Without Auxiliary Variables Hiroshi Ishikawa Department of Computer Science and Engineering Waseda University Okubo 3-4-1, Shinjuku, Tokyo, Japan hfs@waseda.jp Abstract We

More information

Approximating min-max k-clustering

Approximating min-max k-clustering Aroximating min-max k-clustering Asaf Levin July 24, 2007 Abstract We consider the roblems of set artitioning into k clusters with minimum total cost and minimum of the maximum cost of a cluster. The cost

More information

Finding Shortest Hamiltonian Path is in P. Abstract

Finding Shortest Hamiltonian Path is in P. Abstract Finding Shortest Hamiltonian Path is in P Dhananay P. Mehendale Sir Parashurambhau College, Tilak Road, Pune, India bstract The roblem of finding shortest Hamiltonian ath in a eighted comlete grah belongs

More information

Part 7: Structured Prediction and Energy Minimization (2/2)

Part 7: Structured Prediction and Energy Minimization (2/2) Part 7: Structured Prediction and Energy Minimization (2/2) Colorado Springs, 25th June 2011 G: Worst-case Complexity Hard problem Generality Optimality Worst-case complexity Integrality Determinism G:

More information

Nonlinear programming

Nonlinear programming 08-04- htt://staff.chemeng.lth.se/~berntn/courses/otimps.htm Otimization of Process Systems Nonlinear rogramming PhD course 08 Bernt Nilsson, Det of Chemical Engineering, Lund University Content Unconstraint

More information

Higher-Order Clique Reduction in Binary Graph Cut

Higher-Order Clique Reduction in Binary Graph Cut CVPR009: IEEE Computer Society Conference on Computer Vision and Pattern Recognition, Miami Beach, Florida. June 0-5, 009. Hiroshi Ishikawa Nagoya City University Department of Information and Biological

More information

Making the Right Moves: Guiding Alpha-Expansion using Local Primal-Dual Gaps

Making the Right Moves: Guiding Alpha-Expansion using Local Primal-Dual Gaps Making the Right Moves: Guiding Alpha-Expansion using Local Primal-Dual Gaps Dhruv Batra TTI Chicago dbatra@ttic.edu Pushmeet Kohli Microsoft Research Cambridge pkohli@microsoft.com Abstract 5 This paper

More information

Truncated Max-of-Convex Models Technical Report

Truncated Max-of-Convex Models Technical Report Truncated Max-of-Convex Models Technical Report Pankaj Pansari University of Oxford The Alan Turing Institute pankaj@robots.ox.ac.uk M. Pawan Kumar University of Oxford The Alan Turing Institute pawan@robots.ox.ac.uk

More information

Potts model, parametric maxflow and k-submodular functions

Potts model, parametric maxflow and k-submodular functions 2013 IEEE International Conference on Computer Vision Potts model, parametric maxflow and k-submodular functions Igor Gridchyn IST Austria igor.gridchyn@ist.ac.at Vladimir Kolmogorov IST Austria vnk@ist.ac.at

More information

Reformulations of nonlinear binary optimization problems

Reformulations of nonlinear binary optimization problems 1 / 36 Reformulations of nonlinear binary optimization problems Yves Crama HEC Management School, University of Liège, Belgium Koper, May 2018 2 / 36 Nonlinear 0-1 optimization Outline 1 Nonlinear 0-1

More information

Quadratization of symmetric pseudo-boolean functions

Quadratization of symmetric pseudo-boolean functions of symmetric pseudo-boolean functions Yves Crama with Martin Anthony, Endre Boros and Aritanan Gruber HEC Management School, University of Liège Liblice, April 2013 of symmetric pseudo-boolean functions

More information

Bayesian Model Averaging Kriging Jize Zhang and Alexandros Taflanidis

Bayesian Model Averaging Kriging Jize Zhang and Alexandros Taflanidis HIPAD LAB: HIGH PERFORMANCE SYSTEMS LABORATORY DEPARTMENT OF CIVIL AND ENVIRONMENTAL ENGINEERING AND EARTH SCIENCES Bayesian Model Averaging Kriging Jize Zhang and Alexandros Taflanidis Why use metamodeling

More information

GSOE9210 Engineering Decisions

GSOE9210 Engineering Decisions GSOE9 Engineering Decisions Problem Set 5. Consider the river roblem described in lectures: f f V B A B + (a) For =, what is the sloe of the Bayes indifference line through A? (b) Draw the Bayes indifference

More information

Higher-order Graph Cuts

Higher-order Graph Cuts ACCV2014 Area Chairs Workshop Sep. 3, 2014 Nanyang Technological University, Singapore 1 Higher-order Graph Cuts Hiroshi Ishikawa Department of Computer Science & Engineering Waseda University Labeling

More information

Magnetospheric Physics - Homework, 4/04/2014

Magnetospheric Physics - Homework, 4/04/2014 Magnetosheric hysics - Homework, // 7. Fast wave, fast shock, erendicular shock, entroy, jum relation. Consider the fast erendicular shock. a) Determine the ositive root of the solution for the comression

More information

Graphical Models (Lecture 1 - Introduction)

Graphical Models (Lecture 1 - Introduction) Grahical Models Lecture - Introduction Tibério Caetano tiberiocaetano.com Statistical Machine Learning Grou NICTA Canberra LLSS Canberra 009 Tibério Caetano: Grahical Models Lecture - Introduction / 7

More information

1 Entropy 1. 3 Extensivity 4. 5 Convexity 5

1 Entropy 1. 3 Extensivity 4. 5 Convexity 5 Contents CONEX FUNCIONS AND HERMODYNAMIC POENIALS 1 Entroy 1 2 Energy Reresentation 2 3 Etensivity 4 4 Fundamental Equations 4 5 Conveity 5 6 Legendre transforms 6 7 Reservoirs and Legendre transforms

More information

Semi-Markov/Graph Cuts

Semi-Markov/Graph Cuts Semi-Markov/Graph Cuts Alireza Shafaei University of British Columbia August, 2015 1 / 30 A Quick Review For a general chain-structured UGM we have: n n p(x 1, x 2,..., x n ) φ i (x i ) φ i,i 1 (x i, x

More information

Minimizing Count-based High Order Terms in Markov Random Fields

Minimizing Count-based High Order Terms in Markov Random Fields EMMCVPR 2011, St. Petersburg Minimizing Count-based High Order Terms in Markov Random Fields Thomas Schoenemann Center for Mathematical Sciences Lund University, Sweden Abstract. We present a technique

More information

Solved Problems. (a) (b) (c) Figure P4.1 Simple Classification Problems First we draw a line between each set of dark and light data points.

Solved Problems. (a) (b) (c) Figure P4.1 Simple Classification Problems First we draw a line between each set of dark and light data points. Solved Problems Solved Problems P Solve the three simle classification roblems shown in Figure P by drawing a decision boundary Find weight and bias values that result in single-neuron ercetrons with the

More information

MATH 2710: NOTES FOR ANALYSIS

MATH 2710: NOTES FOR ANALYSIS MATH 270: NOTES FOR ANALYSIS The main ideas we will learn from analysis center around the idea of a limit. Limits occurs in several settings. We will start with finite limits of sequences, then cover infinite

More information

Image Alignment Computer Vision (Kris Kitani) Carnegie Mellon University

Image Alignment Computer Vision (Kris Kitani) Carnegie Mellon University Lucas Kanade Image Alignment 16-385 Comuter Vision (Kris Kitani) Carnegie Mellon University htt://www.humansensing.cs.cmu.edu/intraface/ How can I find in the image? Idea #1: Temlate Matching Slow, combinatory,

More information

Online Learning for Sparse PCA in High Dimensions: Exact Dynamics and Phase Transitions

Online Learning for Sparse PCA in High Dimensions: Exact Dynamics and Phase Transitions Online Learning for Sarse PCA in High Dimensions: Eact Dynamics and Phase Transitions Chuang Wang and Yue M. Lu John A. Paulson School of Engineering and Alied Sciences Harvard University Abstract We study

More information

Lecture 21: Quantum Communication

Lecture 21: Quantum Communication CS 880: Quantum Information Processing 0/6/00 Lecture : Quantum Communication Instructor: Dieter van Melkebeek Scribe: Mark Wellons Last lecture, we introduced the EPR airs which we will use in this lecture

More information

Finite-State Verification or Model Checking. Finite State Verification (FSV) or Model Checking

Finite-State Verification or Model Checking. Finite State Verification (FSV) or Model Checking Finite-State Verification or Model Checking Finite State Verification (FSV) or Model Checking Holds the romise of roviding a cost effective way of verifying imortant roerties about a system Not all faults

More information

On the Chvatál-Complexity of Knapsack Problems

On the Chvatál-Complexity of Knapsack Problems R u t c o r Research R e o r t On the Chvatál-Comlexity of Knasack Problems Gergely Kovács a Béla Vizvári b RRR 5-08, October 008 RUTCOR Rutgers Center for Oerations Research Rutgers University 640 Bartholomew

More information

Best approximation by linear combinations of characteristic functions of half-spaces

Best approximation by linear combinations of characteristic functions of half-spaces Best aroximation by linear combinations of characteristic functions of half-saces Paul C. Kainen Deartment of Mathematics Georgetown University Washington, D.C. 20057-1233, USA Věra Kůrková Institute of

More information

An Introduction To Range Searching

An Introduction To Range Searching An Introduction To Range Searching Jan Vahrenhold eartment of Comuter Science Westfälische Wilhelms-Universität Münster, Germany. Overview 1. Introduction: Problem Statement, Lower Bounds 2. Range Searching

More information

where x i is the ith coordinate of x R N. 1. Show that the following upper bound holds for the growth function of H:

where x i is the ith coordinate of x R N. 1. Show that the following upper bound holds for the growth function of H: Mehryar Mohri Foundations of Machine Learning Courant Institute of Mathematical Sciences Homework assignment 2 October 25, 2017 Due: November 08, 2017 A. Growth function Growth function of stum functions.

More information

Maximum Flow. Jie Wang. University of Massachusetts Lowell Department of Computer Science. J. Wang (UMass Lowell) Maximum Flow 1 / 27

Maximum Flow. Jie Wang. University of Massachusetts Lowell Department of Computer Science. J. Wang (UMass Lowell) Maximum Flow 1 / 27 Maximum Flow Jie Wang University of Massachusetts Lowell Department of Computer Science J. Wang (UMass Lowell) Maximum Flow 1 / 27 Flow Networks A flow network is a weighted digraph G = (V, E), where the

More information

Optimal array pattern synthesis with desired magnitude response

Optimal array pattern synthesis with desired magnitude response Otimal array attern synthesis with desired magnitude resonse A.M. Pasqual a, J.R. Arruda a and P. erzog b a Universidade Estadual de Caminas, Rua Mendeleiev, 00, Cidade Universitária Zeferino Vaz, 13083-970

More information

AI*IA 2003 Fusion of Multiple Pattern Classifiers PART III

AI*IA 2003 Fusion of Multiple Pattern Classifiers PART III AI*IA 23 Fusion of Multile Pattern Classifiers PART III AI*IA 23 Tutorial on Fusion of Multile Pattern Classifiers by F. Roli 49 Methods for fusing multile classifiers Methods for fusing multile classifiers

More information

Model checking, verification of CTL. One must verify or expel... doubts, and convert them into the certainty of YES [Thomas Carlyle]

Model checking, verification of CTL. One must verify or expel... doubts, and convert them into the certainty of YES [Thomas Carlyle] Chater 5 Model checking, verification of CTL One must verify or exel... doubts, and convert them into the certainty of YES or NO. [Thomas Carlyle] 5. The verification setting Page 66 We introduce linear

More information

Multi-Operation Multi-Machine Scheduling

Multi-Operation Multi-Machine Scheduling Multi-Oeration Multi-Machine Scheduling Weizhen Mao he College of William and Mary, Williamsburg VA 3185, USA Abstract. In the multi-oeration scheduling that arises in industrial engineering, each job

More information

Pseudo-Bound Optimization for Binary Energies

Pseudo-Bound Optimization for Binary Energies In European Conference on Computer Vision (ECCV), Zurich, Switzerland, 2014 p. 1 Pseudo-Bound Optimization for Binary Energies Meng Tang 1 Ismail Ben Ayed 1,2 Yuri Boykov 1 1 University of Western Ontario,

More information

UPPAAL tutorial What s inside UPPAAL The UPPAAL input languages

UPPAAL tutorial What s inside UPPAAL The UPPAAL input languages UPPAAL tutorial What s inside UPPAAL The UPPAAL inut languages 1 UPPAAL tool Develoed jointly by Usala & Aalborg University >>8,000 downloads since 1999 1 UPPAAL Tool Simulation Modeling Verification 3

More information

MANY problems in computer vision, such as segmentation,

MANY problems in computer vision, such as segmentation, 134 IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, VOL. 33, NO. 6, JUNE 011 Transformation of General Binary MRF Minimization to the First-Order Case Hiroshi Ishikawa, Member, IEEE Abstract

More information

Higher-Order Energies for Image Segmentation

Higher-Order Energies for Image Segmentation IEEE TRANSACTIONS ON IMAGE PROCESSING 1 Higher-Order Energies for Image Segmentation Jianbing Shen, Senior Member, IEEE, Jianteng Peng, Xingping Dong, Ling Shao, Senior Member, IEEE, and Fatih Porikli,

More information

Algorithms and Theory of Computation. Lecture 11: Network Flow

Algorithms and Theory of Computation. Lecture 11: Network Flow Algorithms and Theory of Computation Lecture 11: Network Flow Xiaohui Bei MAS 714 September 18, 2018 Nanyang Technological University MAS 714 September 18, 2018 1 / 26 Flow Network A flow network is a

More information

What Energy Functions can be Minimized via Graph Cuts?

What Energy Functions can be Minimized via Graph Cuts? What Energy Functions can be Minimized via Graph Cuts? Vladimir Kolmogorov and Ramin Zabih Computer Science Department, Cornell University, Ithaca, NY 14853 vnk@cs.cornell.edu, rdz@cs.cornell.edu Abstract.

More information

MODELING THE RELIABILITY OF C4ISR SYSTEMS HARDWARE/SOFTWARE COMPONENTS USING AN IMPROVED MARKOV MODEL

MODELING THE RELIABILITY OF C4ISR SYSTEMS HARDWARE/SOFTWARE COMPONENTS USING AN IMPROVED MARKOV MODEL Technical Sciences and Alied Mathematics MODELING THE RELIABILITY OF CISR SYSTEMS HARDWARE/SOFTWARE COMPONENTS USING AN IMPROVED MARKOV MODEL Cezar VASILESCU Regional Deartment of Defense Resources Management

More information

Information collection on a graph

Information collection on a graph Information collection on a grah Ilya O. Ryzhov Warren Powell February 10, 2010 Abstract We derive a knowledge gradient olicy for an otimal learning roblem on a grah, in which we use sequential measurements

More information

Outline. EECS150 - Digital Design Lecture 26 Error Correction Codes, Linear Feedback Shift Registers (LFSRs) Simple Error Detection Coding

Outline. EECS150 - Digital Design Lecture 26 Error Correction Codes, Linear Feedback Shift Registers (LFSRs) Simple Error Detection Coding Outline EECS150 - Digital Design Lecture 26 Error Correction Codes, Linear Feedback Shift Registers (LFSRs) Error detection using arity Hamming code for error detection/correction Linear Feedback Shift

More information

OXFORD UNIVERSITY. MATHEMATICS, JOINT SCHOOLS AND COMPUTER SCIENCE WEDNESDAY 4 NOVEMBER 2009 Time allowed: hours

OXFORD UNIVERSITY. MATHEMATICS, JOINT SCHOOLS AND COMPUTER SCIENCE WEDNESDAY 4 NOVEMBER 2009 Time allowed: hours OXFORD UNIVERSITY MATHEMATICS, JOINT SCHOOLS AND COMPUTER SCIENCE WEDNESDAY 4 NOVEMBER 2009 Time allowed: 2 1 2 hours For candidates alying for Mathematics, Mathematics & Statistics, Comuter Science, Mathematics

More information

What Energy Functions can be Minimized via Graph Cuts?

What Energy Functions can be Minimized via Graph Cuts? What Energy Functions can be Minimized via Graph Cuts? Vladimir Kolmogorov and Ramin Zabih Computer Science Department, Cornell University, Ithaca, NY 14853 vnk@cs.cornell.edu, rdz@cs.cornell.edu Abstract.

More information

Convex Optimization methods for Computing Channel Capacity

Convex Optimization methods for Computing Channel Capacity Convex Otimization methods for Comuting Channel Caacity Abhishek Sinha Laboratory for Information and Decision Systems (LIDS), MIT sinhaa@mit.edu May 15, 2014 We consider a classical comutational roblem

More information

FUZZY CONTROL. Khurshid Ahmad, Professor of Computer Science, Department of Computer Science Trinity College, Dublin-2, IRELAND Nov 15-16th, 2011

FUZZY CONTROL. Khurshid Ahmad, Professor of Computer Science, Department of Computer Science Trinity College, Dublin-2, IRELAND Nov 15-16th, 2011 : Mamdani & akagi-sugeno Controllers Khurshid Ahmad, Professor of Comuter Science, Deartment of Comuter Science rinit College, Dublin-, IRELAND Nov 5-6th, 0 htts://www.cs.tcd.ie/khurshid.ahmad/eaching/eaching.html

More information

Lecture 7: Weak Duality

Lecture 7: Weak Duality EE 227A: Conve Optimization and Applications February 7, 2012 Lecture 7: Weak Duality Lecturer: Laurent El Ghaoui 7.1 Lagrange Dual problem 7.1.1 Primal problem In this section, we consider a possibly

More information

What Metrics Can Be Approximated by Geo-Cuts, or Global Optimization of Length/Area and Flux

What Metrics Can Be Approximated by Geo-Cuts, or Global Optimization of Length/Area and Flux Proceedings of International Conference on Computer Vision (ICCV), Beijing, China, October 2005 vol.., p.1 What Metrics Can Be Approximated by Geo-Cuts, or Global Optimization of Length/Area and Flux Vladimir

More information

Convolutional Codes. Lecture 13. Figure 93: Encoder for rate 1/2 constraint length 3 convolutional code.

Convolutional Codes. Lecture 13. Figure 93: Encoder for rate 1/2 constraint length 3 convolutional code. Convolutional Codes Goals Lecture Be able to encode using a convolutional code Be able to decode a convolutional code received over a binary symmetric channel or an additive white Gaussian channel Convolutional

More information

Submodularity in Machine Learning

Submodularity in Machine Learning Saifuddin Syed MLRG Summer 2016 1 / 39 What are submodular functions Outline 1 What are submodular functions Motivation Submodularity and Concavity Examples 2 Properties of submodular functions Submodularity

More information

GOOD MODELS FOR CUBIC SURFACES. 1. Introduction

GOOD MODELS FOR CUBIC SURFACES. 1. Introduction GOOD MODELS FOR CUBIC SURFACES ANDREAS-STEPHAN ELSENHANS Abstract. This article describes an algorithm for finding a model of a hyersurface with small coefficients. It is shown that the aroach works in

More information

MAP Examples. Sargur Srihari

MAP Examples. Sargur Srihari MAP Examples Sargur srihari@cedar.buffalo.edu 1 Potts Model CRF for OCR Topics Image segmentation based on energy minimization 2 Examples of MAP Many interesting examples of MAP inference are instances

More information

Bayesian Networks for Modeling and Managing Risks of Natural Hazards

Bayesian Networks for Modeling and Managing Risks of Natural Hazards [National Telford Institute and Scottish Informatics and Comuter Science Alliance, Glasgow University, Set 8, 200 ] Bayesian Networks for Modeling and Managing Risks of Natural Hazards Daniel Straub Engineering

More information

Uniformly best wavenumber approximations by spatial central difference operators: An initial investigation

Uniformly best wavenumber approximations by spatial central difference operators: An initial investigation Uniformly best wavenumber aroximations by satial central difference oerators: An initial investigation Vitor Linders and Jan Nordström Abstract A characterisation theorem for best uniform wavenumber aroximations

More information

Inference for Order Reduction in Markov Random Fields

Inference for Order Reduction in Markov Random Fields Inference for Order Reduction in Markov Random Fields Andre C. Gallagher Eastman Kodak Company andre.gallagher@kodak.com Dhruv Batra Toyota Technological Institute at Chicago ttic.uchicago.edu/ dbatra

More information

On the capacity of the general trapdoor channel with feedback

On the capacity of the general trapdoor channel with feedback On the caacity of the general tradoor channel with feedback Jui Wu and Achilleas Anastasooulos Electrical Engineering and Comuter Science Deartment University of Michigan Ann Arbor, MI, 48109-1 email:

More information

DUAL NUMBERS, WEIGHTED QUIVERS, AND EXTENDED SOMOS AND GALE-ROBINSON SEQUENCES. To Alexandre Alexandrovich Kirillov on his 3 4 th anniversary

DUAL NUMBERS, WEIGHTED QUIVERS, AND EXTENDED SOMOS AND GALE-ROBINSON SEQUENCES. To Alexandre Alexandrovich Kirillov on his 3 4 th anniversary DUAL NUMBERS, WEIGHTED QUIVERS, AND EXTENDED SOMOS AND GALE-ROBINSON SEQUENCES VALENTIN OVSIENKO AND SERGE TABACHNIKOV Abstract. We investigate a general method that allows one to construct new integer

More information

Micro I. Lesson 5 : Consumer Equilibrium

Micro I. Lesson 5 : Consumer Equilibrium Microecono mics I. Antonio Zabalza. Universit of Valencia 1 Micro I. Lesson 5 : Consumer Equilibrium 5.1 Otimal Choice If references are well behaved (smooth, conve, continuous and negativel sloed), then

More information

Convex Analysis and Economic Theory Winter 2018

Convex Analysis and Economic Theory Winter 2018 Division of the Humanities and Social Sciences Ec 181 KC Border Conve Analysis and Economic Theory Winter 2018 Toic 16: Fenchel conjugates 16.1 Conjugate functions Recall from Proosition 14.1.1 that is

More information

Lecture 3. 1 Polynomial-time algorithms for the maximum flow problem

Lecture 3. 1 Polynomial-time algorithms for the maximum flow problem ORIE 633 Network Flows August 30, 2007 Lecturer: David P. Williamson Lecture 3 Scribe: Gema Plaza-Martínez 1 Polynomial-time algorithms for the maximum flow problem 1.1 Introduction Let s turn now to considering

More information

3 More applications of derivatives

3 More applications of derivatives 3 More alications of derivatives 3.1 Eact & ineact differentials in thermodynamics So far we have been discussing total or eact differentials ( ( u u du = d + dy, (1 but we could imagine a more general

More information

A construction of bent functions from plateaued functions

A construction of bent functions from plateaued functions A construction of bent functions from lateaued functions Ayça Çeşmelioğlu, Wilfried Meidl Sabancı University, MDBF, Orhanlı, 34956 Tuzla, İstanbul, Turkey. Abstract In this resentation, a technique for

More information

Flows and Cuts. 1 Concepts. CS 787: Advanced Algorithms. Instructor: Dieter van Melkebeek

Flows and Cuts. 1 Concepts. CS 787: Advanced Algorithms. Instructor: Dieter van Melkebeek CS 787: Advanced Algorithms Flows and Cuts Instructor: Dieter van Melkebeek This lecture covers the construction of optimal flows and cuts in networks, their relationship, and some applications. It paves

More information

An analytical approximation method for the stabilizing solution of the Hamilton-Jacobi equation based on stable manifold theory

An analytical approximation method for the stabilizing solution of the Hamilton-Jacobi equation based on stable manifold theory Proceedings of the 27 American Control Conference Marriott Marquis Hotel at Times Square New York City, USA, July -3, 27 ThA8.4 An analytical aroimation method for the stabilizing solution of the Hamilton-Jacobi

More information

p(-,i)+p(,i)+p(-,v)+p(i,v),v)+p(i,v)

p(-,i)+p(,i)+p(-,v)+p(i,v),v)+p(i,v) Multile Sequence Alignment Given: Set of sequences Score matrix Ga enalties Find: Alignment of sequences such that otimal score is achieved. Motivation Aligning rotein families Establish evolutionary relationshis

More information

Chapter 7 Network Flow Problems, I

Chapter 7 Network Flow Problems, I Chapter 7 Network Flow Problems, I Network flow problems are the most frequently solved linear programming problems. They include as special cases, the assignment, transportation, maximum flow, and shortest

More information

E-companion to A risk- and ambiguity-averse extension of the max-min newsvendor order formula

E-companion to A risk- and ambiguity-averse extension of the max-min newsvendor order formula e-comanion to Han Du and Zuluaga: Etension of Scarf s ma-min order formula ec E-comanion to A risk- and ambiguity-averse etension of the ma-min newsvendor order formula Qiaoming Han School of Mathematics

More information

Strong Matching of Points with Geometric Shapes

Strong Matching of Points with Geometric Shapes Strong Matching of Points with Geometric Shaes Ahmad Biniaz Anil Maheshwari Michiel Smid School of Comuter Science, Carleton University, Ottawa, Canada December 9, 05 In memory of Ferran Hurtado. Abstract

More information

Lecture 13: Polynomial-Time Algorithms for Min Cost Flows. (Reading: AM&O Chapter 10)

Lecture 13: Polynomial-Time Algorithms for Min Cost Flows. (Reading: AM&O Chapter 10) Lecture 1: Polynomial-Time Algorithms for Min Cost Flows (Reading: AM&O Chapter 1) Polynomial Algorithms for Min Cost Flows Improvements on the two algorithms for min cost flow: Successive Shortest Path

More information

Information collection on a graph

Information collection on a graph Information collection on a grah Ilya O. Ryzhov Warren Powell October 25, 2009 Abstract We derive a knowledge gradient olicy for an otimal learning roblem on a grah, in which we use sequential measurements

More information

Empirical Bayesian EM-based Motion Segmentation

Empirical Bayesian EM-based Motion Segmentation Emirical Bayesian EM-based Motion Segmentation Nuno Vasconcelos Andrew Liman MIT Media Laboratory 0 Ames St, E5-0M, Cambridge, MA 09 fnuno,lig@media.mit.edu Abstract A recent trend in motion-based segmentation

More information

Convexity and SOS-Convexity

Convexity and SOS-Convexity Conveit and SOS-Conveit Amir Ali Ahmadi Pablo A. Parrilo Laborator for Information and Decision Sstems Massachusetts Institute of Technolog SIAM Conference on Alied Algebraic Geometr NCSU, October 0 Deciding

More information

A Solution for the Dark Matter Mystery based on Euclidean Relativity

A Solution for the Dark Matter Mystery based on Euclidean Relativity Long Beach 2010 PROCEEDINGS of the NPA 1 A Solution for the Dark Matter Mystery based on Euclidean Relativity Frédéric Lassiaille Arcades, Mougins 06250, FRANCE e-mail: lumimi2003@hotmail.com The study

More information

Reducing graphs for graph cut segmentation

Reducing graphs for graph cut segmentation for graph cut segmentation Nicolas Lermé 1,2, François Malgouyres 1, Lucas Létocart 2 1 LAGA, 2 LIPN Université Paris 13 CANUM 2010, Carcans-Maubuisson, France June 1, 2010 1/42 Nicolas Lermé, François

More information

Quadratization of Symmetric Pseudo-Boolean Functions

Quadratization of Symmetric Pseudo-Boolean Functions R u t c o r Research R e p o r t Quadratization of Symmetric Pseudo-Boolean Functions Martin Anthony a Endre Boros b Yves Crama c Aritanan Gruber d RRR 12-2013, December 2013 RUTCOR Rutgers Center for

More information

Research Article An iterative Algorithm for Hemicontractive Mappings in Banach Spaces

Research Article An iterative Algorithm for Hemicontractive Mappings in Banach Spaces Abstract and Alied Analysis Volume 2012, Article ID 264103, 11 ages doi:10.1155/2012/264103 Research Article An iterative Algorithm for Hemicontractive Maings in Banach Saces Youli Yu, 1 Zhitao Wu, 2 and

More information

Radial Basis Function Networks: Algorithms

Radial Basis Function Networks: Algorithms Radial Basis Function Networks: Algorithms Introduction to Neural Networks : Lecture 13 John A. Bullinaria, 2004 1. The RBF Maing 2. The RBF Network Architecture 3. Comutational Power of RBF Networks 4.

More information

Rasterization: Bresenham s Midpoint Algorithm

Rasterization: Bresenham s Midpoint Algorithm Rasterization: Bresenham s Mioint Algorithm CS4600 Comuter Grahics aate from Rich Riesenfel s slies Fall 05 Rasterization General metho: Use equation for geometr Insert equation for rimitive Derive rasterization

More information

Short course A vademecum of statistical pattern recognition techniques with applications to image and video analysis. Agenda

Short course A vademecum of statistical pattern recognition techniques with applications to image and video analysis. Agenda Short course A vademecum of statistical attern recognition techniques with alications to image and video analysis Lecture 6 The Kalman filter. Particle filters Massimo Piccardi University of Technology,

More information

EXERCISES SHORTEST PATHS: APPLICATIONS, OPTIMIZATION, VARIATIONS, AND SOLVING THE CONSTRAINED SHORTEST PATH PROBLEM. 1 Applications and Modelling

EXERCISES SHORTEST PATHS: APPLICATIONS, OPTIMIZATION, VARIATIONS, AND SOLVING THE CONSTRAINED SHORTEST PATH PROBLEM. 1 Applications and Modelling SHORTEST PATHS: APPLICATIONS, OPTIMIZATION, VARIATIONS, AND SOLVING THE CONSTRAINED SHORTEST PATH PROBLEM EXERCISES Prepared by Natashia Boland 1 and Irina Dumitrescu 2 1 Applications and Modelling 1.1

More information

Maximum Cardinality Matchings on Trees by Randomized Local Search

Maximum Cardinality Matchings on Trees by Randomized Local Search Maximum Cardinality Matchings on Trees by Randomized Local Search ABSTRACT Oliver Giel Fachbereich Informatik, Lehrstuhl 2 Universität Dortmund 44221 Dortmund, Germany oliver.giel@cs.uni-dortmund.de To

More information