Post · 10 min read· pp. 1299–1303

CS294 Lecture 9: The Sparsest Cut Problem

In which we introduce the sparsest cut problem and the Leighton-Rao relaxation.

1. The Uniform Sparsest Cut problem, Edge Expansion and λ2{\lambda_2}

Let G=(V,E){G=(V,E)} be an undirected graph with n:=∣V∣{n:= | V |} vertices.

We define the uniform sparsity of a cut (S,V−S){(S,V-S)} as

uscG(S):=E(S,V−S)∣S∣⋅∣V−S∣\displaystyle {\sf usc}_G(S) := \frac {E(S,V-S)}{ |S| \cdot |V-S| }

(we will omit the subscript when clear from the context) and the uniform sparsest cut of a graph is

usc(G):=min⁡SuscG(S)\displaystyle {\sf usc}(G):= \min_{S} {\sf usc}_G(S)

In d{d}-regular graphs, approximating the uniform sparsest cut is equivalent (up to a factor of 2 in the approximation) to approximating the edge expansion, because, for every cut (S,V−S){(S,V-S)}, we have

ϕ(S,V−S)=E(S,V−S)d⋅min⁡{∣S∣,∣V−S∣}\displaystyle \phi(S,V-S) = \frac {E(S,V-S)}{d \cdot \min \{ |S|, |V-S| \} }

and, noting that, for every, S{S},

1n∣S∣⋅∣V−S∣≤min⁡{∣S∣,∣V−S∣}≤2n∣S∣⋅∣V−S∣\displaystyle \frac 1n |S| \cdot |V-S| \leq \min \{ |S|, |V-S| \} \leq \frac 2n |S| \cdot |V-S|

we have, for every S{S},

ϕ(S,V−S)≤nd⋅usc(S)≤2ϕ(S,V−S)\displaystyle \phi (S,V-S) \leq \frac nd \cdot {\sf usc}(S) \leq 2 \phi(S,V-S)

and so

ϕ(G)≤nd⋅usc(G)≤2ϕ(G)\displaystyle \phi(G) \leq \frac nd \cdot {\sf usc}(G) \leq 2 \phi(G)

It will be instructive to see that, in d{d}-regular graphs, λ2{\lambda_2} is a relaxation of ndusc(G){\frac nd {\sf usc}(G)}, a fact that gives an alternative proof of the easy direction λ2≤2ϕ(G){\lambda_2 \leq 2 \phi(G)} of Cheeger’s inequalities.

If G{G} is d{d}-regular, then λ2{\lambda_2} satisfies

λ2=min⁡x∈Rn−{0},x⊥1∑{u,v}∈E(xu−xv)2∑vdxv2\displaystyle \lambda_2 = \min_{{\bf x} \in {\mathbb R}^n - \{ {\bf 0} \}, {\bf x} \perp {\bf 1} } \frac { \sum_{ \{ u,v \} \in E } (x_u - x_v)^2}{\sum_v dx_v^2 }

=min⁡x∈Rn−{0},x⊥1  nd⋅∑{u,v}∈E(xu−xv)2∑{u,v}(xu−xv)2\displaystyle = \min_{{\bf x} \in {\mathbb R}^n - \{ {\bf 0} \}, {\bf x} \perp {\bf 1} }\ \ \frac {n}{d} \cdot \frac { \sum_{ \{ u,v \} \in E } (x_u - x_v)^2}{\sum_{ \{ u,v \} } (x_u - x_v)^2 }

=min⁡x∈Rn−{0} nd⋅∑{u,v}∈E(xu−xv)2∑{u,v}(xu−xv)2\displaystyle = \min_{{\bf x} \in {\mathbb R}^n - \{ {\bf 0} \} } \ \frac {n}{d} \cdot \frac { \sum_{ \{ u,v \} \in E } (x_u - x_v)^2}{\sum_{ \{ u,v \} } (x_u - x_v)^2 }

where the first identity above comes from the fact that

∑{u,v}(xu−xv)2=12∑(u,v)∈V2(xu−xv)2=n∑vxv2−∑u,vxuxv\displaystyle \sum_{\{ u,v \}} (x_u - x_v)^2 = \frac 12 \sum_{(u,v) \in V^2 } (x_u - x_v)^2 = n \sum_v x_v^2 - \sum_{u,v} x_u x_v

=n∑vxv2−(∑vxv)2\displaystyle = n \sum_v x_v^2 - \left ( \sum_v x_v \right )^2

=n∑vxv2−⟨x,1⟩2\displaystyle = n \sum_v x_v^2 - \langle {\bf x}, {\bf 1} \rangle ^2

=n∑vxv2\displaystyle = n \sum_v x_v^2

and the second identity follows by noticing that the cost function is invariant by addition of a multiple of 1{{\bf 1}}, and so optimizing over all non-zero vectors gives the same result as optimizing over all vectors orthogonal to 1{{\bf 1}}.

On the other hand, the uniform sparsest cut problem can be formulated as

usc(G)=min⁡x∈{0,1}n−{0,1}   ∑{u,v}∈E(xu−xv)2∑{u,v}(xu−xv)2\displaystyle {\sf usc}(G) = \min_{{\bf x} \in \{ 0,1 \}^n - \{ {\bf 0}, {\bf 1} \} } \ \ \ \frac { \sum_{ \{ u,v \} \in E } (x_u - x_v)^2}{\sum_{ \{ u,v \} } (x_u - x_v)^2 }

(because the square of a number in {−1,0,1}{\{ -1,0,1\}} is the same as its absolute value) and we see that λ2{\lambda_2} can be considered a continuous relaxation of ndusc(G){\frac nd {\sf usc}(G)}.

2. The Non-Uniform Sparsest Cut Problem

In the non-uniform sparsest cut problem, we are given two graphs G=(V,EG){G=(V, E_G)} and H=(V,EH){H= (V, E_H)}, over the same set of vertices; the non-uniform sparsity of a cut (S,V−S){(S,V-S)} is defined as

scG,H(S):=EG(S,V−S)EH(S,V−S)\displaystyle {\sf sc}_{G,H}(S) := \frac { E_G(S,V-S)}{E_H(S,V-S)}

and the non-uniform sparsest cut problem is the optimization problem

sc(G,H):=min⁡S  scG,H(S)\displaystyle {\sf sc}(G,H) := \min_S \ \ {\sf sc}_{G,H} (S)

Note that the non-uniform sparsest cut problem generalizes the sparsest cut problem (consider the case in which H{H} is a clique).

If H{H} is the graph that contains the single edge {s,t}{\{ s,t \}}, then sc(G,H){{\sf sc}(G,H)} is the undirected min-st-cut problem, in which we want to find the cut that separates two vertices s{s} and t{t} and that minimizes the number of crossing edges.

3. The Leighton-Rao Relaxation

We can write the non-uniform sparsity of a set as

scG,H(S)=∑{u,v}∈EG∣1S(u)−1S(v)∣∑{u,v}∈EH∣1S(u)−1S(v)∣\displaystyle {\sf sc}_{G,H} (S) = \frac{\sum_{ \{ u,v \} \in E_G}|1_S(u) - 1_S(v)| } {\sum_{\{ u,v \} \in E_H} |1_S(u) - 1_S(v) | }

The observation that led us to see λ2{\lambda_2} as the optimum of a continuous relaxation of ndscG,Kn{\frac nd {\sf sc}_{G,K_n}} was to observe that ∣1S(u)−1S(v)∣=∣1S(u)−1S(v)∣2{|1_S(u)-1_S(v)| = |1_S(u) - 1_S(v)|^2}, and then relax the problem by allowing arbitrary functions x:V→R{x: V \rightarrow {\mathbb R}} instead of indicator functions 1S:V→{0,1}{1_S : V \rightarrow \{ 0,1 \}}.

The Leighton-Rao relaxation of sparsest cut is obtained using, instead, the following observation: if, for a set S{S}, we define dS(u,v):=∣1S(i)−1S(j)∣{d_S(u,v) := |1_S(i) - 1_S(j)|}, then dS(⋅,⋅){d_S(\cdot,\cdot)} defines a semi-metric over the set V{V}, because dS{d_S} is symmetric, dS(v,v)=0{d_S(v,v)=0}, and the triangle inequality holds. So we could think about allowing arbitrary semi-metrics in the expression for sc{{\sf sc}}, and define

LR(G,H):=min⁡d:V×V→Rd \mboxsemi−metric∑{u,v}∈EGd(u,v)∑{u,v}∈EHd(u,v)     (1)\displaystyle LR(G,H):= \min_{\begin{array}{l} d:V\times V \rightarrow {\mathbb R}\\ d \ \mbox{semi-metric} \end{array}} \frac{\sum_{\{ u,v \} \in E_G} d(u,v) }{\sum_{\{ u,v \} \in E_H} d(u,v )} \ \ \ \ \ (1)

This might seem like such a broad relaxation that there could be graphs on which LR(G,H){LR(G,H)} bears no connection to sc(G,H){{\sf sc}(G,H)}. Instead, we will prove the fairly good estimate

LR(G,H)≤sc(G,H)≤O(log⁡∣V∣)⋅LR(G,H)     (2)\displaystyle LR(G,H) \leq {\sf sc}(G,H) \leq O(\log |V|) \cdot LR(G,H) \ \ \ \ \ (2)

The value LR(G,H){LR(G,H)} and an optimal d(⋅,⋅){d(\cdot,\cdot)} can be computed in polynomial time by solving the following linear program

minimize∑{u,v}∈EGdu,vsubject to∑{u,v}∈EHdu,v=1du,v≤du,z+dz,v∀u,v,z∈Vdu,v≥0∀u,v∈V     (3)\displaystyle \begin{array}{lll} {\rm minimize} & \sum_{\{ u,v \} \in E_G} d_{u,v} \\ {\rm subject\ to} \\ & \sum_{\{ u,v \} \in E_H} d_{u,v} = 1 \\ & d_{u,v} \leq d_{u,z} + d_{z,v} & \forall u,v,z \in V\\ & d_{u,v} \geq 0 & \forall u,v \in V \end{array} \ \ \ \ \ (3)

that has a variable du,v{d_{u,v}} for every unordered pair of distinct vertices {u,v}{\{ u,v \}}. Clearly, every solution to the linear program (3) is also a solution to the right-hand side of the definition (1) of the Leighton-Rao parameter, with the same cost. Also every semi-metric can be normalized so that ∑{u,v}∈EHd(u,v)=1{\sum_{\{ u,v \} \in E_H} d(u,v) = 1} by multiplying every distance by a fixed constant, and the normalization does not change the value of the right-hand side of (1); after the normalization, the semimetric is a feasible solution to the linear program (3), with the same cost.

4. An L1 Relaxation of Sparsest Cut

In the Leighton-Rao relaxation, we relax distance functions of the form d(i,j)=∣1S(i)−1S(j)∣{d(i,j) = |1_S(i) - 1_S(j)|} to completely arbitrary distance functions. Let us consider an intermediate relaxation, in which we allow distance functions that can be realized by an embedding of the vertices in an ℓ1{\ell_1} space.

Recall that, for a vector x∈Rn{{\bf x} \in {\mathbb R}^n}, its ℓ1{\ell_1} norm is defined as ∣∣x∣∣1:=∑i∣xi∣{|| {\bf x}||_1 := \sum_i |x_i |}, and that this norm makes Rn{{\mathbb R}^n} into a metric space with the ℓ1{\ell_1} distance function

∣∣x−y∣∣1=∑i∣xi−yi∣\displaystyle || {\bf x} - {\bf y}||_1 = \sum_i |x_i - y_i |

The distance function d(u,v)=∣1S(u)−1S(v)∣{d(u,v) = |1_S(u) - 1_S(v)|} is an example of a distance function that can be realized by mapping each vertex to a real vector, and then defining the distance between two vertices as the ℓ1{\ell_1} norm of the respective vectors. Of course it is an extremely restrictive special case, in which the dimension of the vectors is one, and in which every vertex is actually mapping to either zero or one. Let us consider the relaxation of sparsest cut to arbitrary ℓ1{\ell_1} mappings, and define

L1sc(G,H):=inf⁡m,f:V→Rm∑{u,v}∈EG∣∣f(u)−f(v)∣∣1∑{u,v}∈EH∣∣f(u)−f(v)∣∣1\displaystyle {\sf L1sc} (G,H) := \inf_{m, f: V\rightarrow {\mathbb R}^m} \frac {\sum_{\{ u,v \} \in E_G} || f(u) - f(v) ||_1 } {\sum_{\{ u,v \} \in E_H} || f(u) - f(v) ||_1 }

This may seem like another very broad relaxation of sparsest cut, whose optimum might be much smaller than the sparsest cut optimum. The following theorem shows that this is not the case.

Theorem 1 For every graphs G,H{G,H}, sc(G,H)=L1sc(G,H){{\sf sc}(G,H) = {\sf L1sc}(G,H)}.

*Furthermore, there is a polynomial time algorithm that, given a mapping f:V→Rm{f: V\rightarrow {\mathbb R}^m}, finds a cut S{S} such that

∑{u,v}∈EG∣1S(u)−1S(v)∣∑{u,v}∈EH∣1S(u)−1S(v)∣≤∑{u,v}∈EG∣∣f(u)−f(v)∣∣1∑{u,v}∈EH∣∣f(u)−f(v)∣∣1     (4)\displaystyle \frac {\sum_{\{ u,v \} \in E_G} |1_S(u) - 1_S(v) |} {\sum_{\{ u,v \} \in E_H} |1_S(u) - 1_S(v)| }\leq \frac {\sum_{\{ u,v \} \in E_G} || f(u) - f(v) ||_1 } {\sum_{\{ u,v \} \in E_H} || f(u) - f(v) ||_1 } \ \ \ \ \ (4)
*

Proof: We use ideas that have already come up in the proof the difficult direction of Cheeger’s inequality. First, recall that for every nonnegative reals a1,…,am{a_1,\ldots,a_m} and positive reals b1,…,bm{b_1,\ldots,b_m} we have

a1+⋯amb1+⋯bm≥min⁡iaibi     (5)\displaystyle \frac {a_1 + \cdots a_m}{b_1 + \cdots b_m} \geq \min_i \frac{a_i}{b_i} \ \ \ \ \ (5)

as can be seen by noting that

∑jaj=∑jbj⋅ajbj≥(min⁡iaibi)⋅∑jbj\displaystyle \sum_j a_j = \sum_j b_j \cdot \frac{a_j}{b_j} \geq \left( \min_i \frac{a_i}{b_i} \right) \cdot \sum_j b_j

Let fi(v){f_i(v)} be the i{i}-th coordinate of the vector f(v){f(v)}, thus f(v)=(f1(v),…,fm(v)){f(v) = (f_1(v),\ldots,f_m(v))}. Then we can decompose the right-hand side of (4) by coordinates, and write

∑{u,v}∈EG∣∣f(u)−f(v)∣∣1∑{u,v}∈EH∣∣f(u)−f(v)∣∣1\displaystyle \frac {\sum_{\{ u,v \} \in E_G} || f(u) - f(v) ||_1 } {\sum_{\{ u,v \} \in E_H} || f(u) - f(v) ||_1 }

=∑i∑{u,v}∈EG∣fi(u)−fi(v)∣∑i∑{u,v}∈EH∣fi(u)−fi(v)∣\displaystyle = \frac {\sum_i \sum_{\{ u,v \} \in E_G} | f_i(u) - f_i(v) | } {\sum_i \sum_{\{ u,v \} \in E_H} | f_i(u) - f_i(v) | }

≥min⁡i∑{u,v}∈EG∣fi(u)−fi(v)∣∑{u,v}∈EH∣fi(u)−fi(v)∣\displaystyle \geq \min_i \frac {\sum_{\{ u,v \} \in E_G} | f_i(u) - f_i(v) | } { \sum_{\{ u,v \} \in E_H} | f_i(u) - f_i(v) | }

This already shows that, in the definition of ϕ′{\phi'}, we can map, with no loss of generality, to 1-dimensional ℓ1{\ell_1} spaces.

Let i∗{i^*} be the coordinate that achieves the minimum above. Because the cost function is invariant under the shifts and scalings (that is, the cost of a function x→f(x){x\rightarrow f(x)} is the same as the cost of x→af(x)+b{x\rightarrow af(x) + b} for every two constants a≠0{a\neq 0} and b{b}) there is a function g:V→R{g:V\rightarrow {\mathbb R}} such that g{g} has the same cost function as fi∗{f_{i*}} and it has a unit-length range max⁡vg(v)−min⁡vg(v)=1{\max_v g(v) -\min_v g(v) = 1}.

Let us now pick a threshold t{t} uniformly at random from the interval [min⁡vg(v),max⁡vg(v)]{[\min_v g(v) , \max_v g(v)]}, and define the random variables

St:={v:g(v)≤t}\displaystyle S_t:= \{ v: g(v) \leq t \}

We observe that for every pairs of vertices u,v{u,v} we have

E∣1St(u)−1St(v)∣=∣g(u)−g(v)∣\displaystyle \mathop{\mathbb E} |1_{S_t}( u) - 1_{S_t}(v) | = |g(u) - g(v)|

and so we get

∑{u,v}∈EG∣∣f(u)−f(v)∣∣1∑{u,v}∈EH∣∣f(u)−f(v)∣∣1\displaystyle \frac {\sum_{\{ u,v \} \in E_G} || f(u) - f(v) ||_1 } {\sum_{\{ u,v \} \in E_H} || f(u) - f(v) ||_1 }

≥∑{u,v}∈EG∣g(u)−g(v)∣∑{u,v}∈EH∣g(u)−g(v)∣\displaystyle \geq \frac {\sum_{\{ u,v \} \in E_G} | g(u) - g(v) | } { \sum_{\{ u,v \} \in E_H} | g(u) - g(v) | }

=E∑{u,v}∈EG∣1St(u)−1St(v)∣E∑{u,v}∈EH∣1St(u)−1St(v)∣\displaystyle = \frac {\mathop{\mathbb E} \sum_{\{ u,v \} \in E_G} |1_{S_t}(u) - 1_{S_t}(v) |} {\mathop{\mathbb E}\sum_{\{ u,v \} \in E_H} |1_{S_t} (u)- 1_{S_t}(v)| }

Finally, by an application of (5), we see that there must be a set S{S} among the possible values of St{S_t } such that (4) holds. Notice that the proof was completely constructive: we simply took the coordinate fi∗{f_{i^*}} of f{f} with the lowest cost function, and then the “threshold cut” given by fi∗{f_{i^*}} with the smallest sparsity. □\Box

5. A Theorem of Bourgain

We will derive our main result (2) from the L1 “rounding” process of the previous section, and from the following theorem of Bourgain (the efficiency considerations are due to Linial, London and Rabinovich).

Theorem 2 (Bourgain) Let d:V×V→R{d: V\times V \rightarrow {\mathbb R}} be a semimetric defined over a finite set V{V}. Then there exists a mapping f:V→Rm{f: V \rightarrow {\mathbb R}^m} such that, for every two elements u,v∈V{u,v \in V},

∣∣f(u)−f(v)∣∣1≤d(u,v)≤∣∣f(u)−f(v)∣∣1⋅c⋅log⁡∣V∣\displaystyle || f(u) - f(v)||_1 \leq d(u,v) \leq ||f(u)-f(v)||_1 \cdot c\cdot \log |V|

where c{c} is an absolute constant. Given d{d}, the mapping f{f} can be found with high probability in randomized polynomial time in ∣V∣{|V|}.

To see that the above theorem of Bourgain implies (2), consider a graph G{G}, and let d{d} be the optimal solution of the Leighton-Rao relaxation of the sparsest cut problem on G{G}, and let f:V→R{f:V\rightarrow {\mathbb R}} be a mapping as in Bourgain’s theorem applied to d{d}. Then

LR(G,H)=∑{u,v}∈EGd(u,v)∑{u,v}∈EHd(u,v)\displaystyle LR(G,H) = \frac{\sum_{\{ u,v \} \in E_G} d(u,v) }{\sum_{\{ u,v \} \in E_H} d(u,v) }

≥∑{u,v}∈EG∣∣f(u)−f(v)∣∣1c⋅log⁡∣V∣⋅∑{u,v}∈EH∣∣f(u)−f(v)∣∣1\displaystyle \geq \frac{\sum_{\{ u,v \} \in E_G} ||f(u)-f(v) ||_1 }{c\cdot \log |V| \cdot \sum_{\{ u,v \} \in E_H} ||f(u)-f(v)||_1 }

≥1c⋅log⁡∣V∣⋅sc(G,H)\displaystyle \geq \frac 1 {c\cdot \log |V|} \cdot {\sf sc} (G,H)