Lably
Skip to content

Graph cut optimization

  • 14 min read
  • 6 chapters

Related on Lably

Through Function (mathematics), Graph (discrete mathematics) and Maximum and minimum

  • each cut C of the network can be mapped to an assignment of variables x to f (and vice versa), and
  • the cost of C equals f(x) (up to an additive constant)

then it is possible to find the global optimum of f in polynomial time by computing a minimum cut of the graph. The mapping between cuts and variable assignments is done by representing each variable with one node in the graph and, given a cut, each variable will have a value of 0 if the corresponding node belongs to the component connected to the source, or 1 if it belong to the component connected to the sink.

Not all pseudo-Boolean functions can be represented by a flow network, and in the general case the global optimization problem is NP-hard. There exist sufficient conditions to characterise families of functions that can be optimised through graph cuts, such as submodular quadratic functions. Graph cut optimization can be extended to functions of discrete variables with a finite number of values, that can be approached with iterative algorithms with strong optimality properties, computing one graph cut at each iteration.

Graph cut optimization is an important tool for inference over graphical models such as Markov random fields or conditional random fields, and it has applications in computer vision problems such as image segmentation, denoising, registration and stereo matching.

Representability

A pseudo-Boolean function f:{0,1}n→R is said to be representable if there exists a graph G=(V,E) with non-negative weights and with source and sink nodes s and t respectively, and there exists a set of nodes V0={v1,…,vn}⊂V−{s,t} such that, for each tuple of values (x1,…,xn)∈{0,1}n assigned to the variables, f(x1,…,xn) equals (up to a constant) the value of the flow determined by a minimum cut C=(S,T) of the graph G such that vi∈S if xi=0 and vi∈T if xi=1.

It is possible to classify pseudo-Boolean functions according to their order, determined by the maximum number of variables contributing to each single term. All first order functions, where each term depends upon at most one variable, are always representable. Quadratic functions

f(x)=w0+∑iwi(xi)+∑i<jwij(xi,xj).

are representable if and only if they are submodular, i.e. for each quadratic term wij the following condition is satisfied

wij(0,0)+wij(1,1)≤wij(0,1)+wij(1,0).

Cubic functions

f(x)=w0+∑iwi(xi)+∑i<jwij(xi,xj)+∑i<j<kwijk(xi,xj,xk)

are representable if and only if they are regular, i.e. all possible binary projections to two variables, obtained by fixing the value of the remaining variable, are submodular. For higher-order functions, regularity is a necessary condition for representability.

Sign in to keep reading

5 more chapters are free with a Lably account.

More in Computing and communication