Post · 12 min read· pp. 1271–1276

CS294 Lecture 5: Cheeger-type Inequalities for λn

In which we prove an analog of Cheeger’s inequalities for the largest Laplacian eigenvalue and we show how to use it to develop a spectral approximation algorithm for Max Cut.

1. Cheeger-type Inequalities for λn{\lambda_n}

Let G=(V,E){G=(V,E)} be an undirected graph (not necessarily regular), D{D} its diagonal matrix of degrees, A{A} its adjacency matrix, L=I−D−1/2AD−1/2{L = I - D^{-1/2} A D^{-1/2}} its normalized Laplacian matrix, and 0=λ1≤⋯≤λn≤2{0 = \lambda_1 \leq \cdots \leq \lambda_n \leq 2} be the eigenvalues of L{L}, counted with multiplicities and listed in non-decreasing order.

In Handout 2, we proved that λk=0{\lambda_k = 0} if and only if G{G} has at least k{k} connected component and λn=2{\lambda_n = 2} if and only if there is a connected component of G{G} (possibly, all of G{G}) that is bipartite.

A special case of the former fact is that λ2=0{\lambda_2 = 0} if and only if the graph is disconnected, and the Cheeger inequalities give a “robust” version of this fact, showing that λ2{\lambda_2} can be small if and only if the expansion of the graph is small. In these notes we will see a robust version of the latter fact; we will identify a combinatorial parameter that is zero if and only if the graph has a bipartite connected component, and it is small if and only if the graph is “close” (in an appropriate sense) to having a bipartite connected components, and we will show that this parameter is small if and only if 2−λn{2-\lambda_n} is small.

Recall that

2−λn=min⁡x∈Rn−{0}  ∑{u,v}∈E(xu+xv)2∑v∈Vdvxv2\displaystyle 2- \lambda_n = \min_{{\bf x} \in {\mathbb R}^n - \{ {\bf 0} \}} \ \ \frac { \sum_{\{ u,v \} \in E} (x_u + x_v)^2 } {\sum_{v\in V} d_v x_v^2 }

We will study the following combinatorial problem, which formalizes the task of finding an “almost bipartite connected component:” we are looking for a non-empty subset of vertices S⊆V{S\subseteq V} (we allow S=V{S=V}) and a bipartition (A,B){(A,B)} of S{S} such that there is a small number of “violating edges” compared to the number of edges incident on S{S}, where an edge {u,v}{\{ u,v\}} is violating if it is in the cut (S,V−S){(S,V-S)}, if it has both endpoints in A{A}, or if it has both endpoints in B{B}. (Note that if there are no violating edges, then S{S} is a bipartite connected component of G{G}.)

It will be convenient to package the information about A,B,S{A,B,S} as a vector y∈{−1,0,1}n{{\bf y} \in \{ -1,0,1 \}^n}, where the non-zero coordinates correspond to S{S}, and the partition of S{S} is given by the positive versus negative coordinates. We define the “bipartiteness ratio” of y{{\bf y}} as

β(y):=∑{u,v}∈E∣yu+yv∣∑v∈Vdv∣yv∣\displaystyle \beta( {\bf y} ) := \frac { \sum_{\{ u,v \} \in E} |y_u + y_v| } {\sum_{v\in V} d_v| y_v| }

Note that in the numerator we have the number of violating edges, with edges contained in A{A} or in B{B} counted with a weight of 2, and edges from S{S} to V−S{V-S} counted with a weight of 1. In the denominator we have the sum of the degrees of the vertices of S{S} (also called the volume of S{S}, and written vol(S){vol(S)}) which is, up to a factor of 2, the number of edges incident on S{S}.

(Other definitions would have been reasonable, for example in the numerator we could just count the number of violating edges without weights, or we could have the expression ∑{u,v}∈E(yu+yv)2{\sum_{\{ u,v \} \in E} (y_u + y_v)^2 }. Those choices would give similar bounds to the ones we will prove, with different multiplicative constants.)

We define the bipartiteness ratio of G{G} as

β(G)=min⁡y∈{−1,0,1}n−{0}  β(y)\displaystyle \beta(G) = \min_{{\bf y} \in \{-1,0,1\}^n - \{ {\bf 0} \} } \ \ \beta({\bf y} )

We will prove the following analog of Cheeger’s inequalities:

2−λn2≤β(G)≤2⋅(2−λn)\displaystyle \frac {2-\lambda_n}{2} \leq \beta(G) \leq \sqrt { 2 \cdot (2 - \lambda_n) }

The first inequality is the easy direction

2−λn=min⁡x∈Rn−{0}  ∑{u,v}∈E(xu+xv)2∑v∈Vdvxv2\displaystyle 2 - \lambda_n = \min_{{\bf x} \in {\mathbb R}^n - \{ {\bf 0} \}} \ \ \frac { \sum_{\{ u,v \} \in E} (x_u + x_v)^2 } {\sum_{v\in V} d_v x_v^2}

≤min⁡y∈{−1,0,1}n−{0}  ∑{u,v}∈E∣yu+yv∣2∑v∈Vdv∣yv∣2\displaystyle \leq \min_{{\bf y} \in \{-1,0,1\}^n - \{ {\bf 0} \} } \ \ \frac { \sum_{\{ u,v \} \in E} |y_u + y_v| ^2} {\sum_{v\in V} d_v| y_v| ^2}

≤min⁡y∈{−1,0,1}n−{0}  ∑{u,v}∈E2⋅∣yu+yv∣∑v∈Vdv∣yv∣\displaystyle \leq \min_{{\bf y} \in \{-1,0,1\}^n - \{ {\bf 0} \} } \ \ \frac { \sum_{\{ u,v \} \in E} 2 \cdot |y_u + y_v| } {\sum_{v\in V} d_v| y_v| }

The other direction follows by applying the following lemma to the case in which x{{\bf x}} is the eigenvector of λn{\lambda_n}.

Lemma 1 (Main) For every x∈Rn−{0}{{\bf x} \in {\mathbb R}^n - \{ {\bf 0} \}} there is a threshold t{t}, 0<t≤max⁡v∣xv∣{0< t \leq \max_v |x_v|}, such that, if we define y(t)∈{−1,0,1}n{{\bf y}^{(t)} \in \{-1,0,1\}^n} as

*

yv(t)={−1\mboxifxv≤−t0\mboxif−t<xv<t1\mboxifxv≥t\displaystyle y^{(t)}_v = \left \{ \begin{array}{ll} -1 & \mbox{if } x_v \leq -t\\ 0 & \mbox{if } -t < x_v < t\\ 1 & \mbox{if } x_v \geq t \end{array} \right.

we have

β(y(t))≤2⋅∑{u,v}∈E(xu+xv)2∑v∈Vdvxv2\displaystyle \beta( {\bf y}^{ (t) } ) \leq \sqrt { 2 \cdot \frac { \sum_{\{ u,v \} \in E} (x_u + x_v)^2 } {\sum_{v\in V} d_v x_v^2} }
*

Note that the Lemma is giving the analysis of an algorithm that is the “bipartite analog” of Fiedler’s algorithm. We sort vertices according to ∣xv∣{|x_v|}, and then we consider all sets S{S} which are suffixes of the sorted order and cut S{S} into (A,B){(A,B)} according to sign. We pick the solution, among those, with smallest bipartiteness ratio. Given x{{\bf x}}, such a solution can be found in time O(∣E∣+∣V∣log⁡∣V∣){O(|E| + |V| \log |V|)} as in the case of Fiedler’s algorithm.

1.1. Proof of Main Lemma

We will assume without loss of generality that max⁡v∣xv∣=1{\max_v |x_v| = 1}. (Scaling x{{\bf x}} by a multiplicative constant does not change the Rayleigh quotient and does not change the set of y{{\bf y}} that can be obtained from x{{\bf x}} over the possible choices of thresholds.)

Consider the following probabilistic experiment: we pick t{t} at random in [0,1]{[0,1]} such that t2{t^2} is uniformly distributed in [0,1]{[0,1]}, and we define the vector y(t){{\bf y}^{(t)}} as in the statement of the lemma. We claim that

E∑{u,v}∈E∣yu(t)+yv(t)∣E∑v∈Vdv∣yv(t)∣≤2⋅∑{u,v}∈E(xu+xv)2∑v∈Vdvxv2     (1)\displaystyle \frac {\mathop{\mathbb E} \sum_{\{ u,v \} \in E} |y^{(t)}_u + y^{(t)}_v| } {\mathop{\mathbb E} \sum_{v\in V} d_v| y^{(t)}_v| } \leq \sqrt { 2 \cdot \frac { \sum_{\{ u,v \} \in E} (x_u + x_v)^2 } {\sum_{v\in V} d_v x_v^2} } \ \ \ \ \ (1)

and we note that the Main Lemma follows from the above claim and from the fact, which we have used before, that if X{X} and Y{Y} are random variables such that P[Y>0]=1{\mathop{\mathbb P} [ Y>0 ] = 1}, then there is a positive probability that XY≤EXEY{ \frac{X}{Y} \leq \frac{ \mathop{\mathbb E} X}{\mathop{\mathbb E} Y} }.

We immediately see that

E∑v∈Vdv∣yv(t)∣=∑vdvP[ ∣xv∣≥t ]=∑vdvxv2\displaystyle \mathop{\mathbb E} \sum_{v\in V} d_v| y^{(t)}_v| = \sum_v d_v \mathop{\mathbb P} [ \ |x_v| \geq t \ ] = \sum_v d_v x_v^2

To analyze the numerator, we distinguish two cases

  1. If xu{x_u} and xv{x_v} have the same sign, and, let’s say, xu2≤xv2{x_u^2 \leq x_v^2} then there is a probability xu2{x_u^2} that both yu(t){y^{(t)}_u} and yv(t){ y^{(t)}_v} are non-zero (and have the same sign), meaning that ∣yu(t)+yv(t)∣=2{ |y^{(t)}_u + y^{(t)}_v| = 2}; and there is an additional probability xv2−xu2{x_v^2 - x_u^2} that yu(t)=0{y^{(t)}_u=0} and yv(t)=±1{y^{(t)}_v = \pm 1}, so that ∣yu(t)+yv(t)∣=1{ |y^{(t)}_u + y^{(t)}_v| = 1}. Overall we have

    E∣yu(t)+yv(t)∣=2xu2+xv2−xu2=xu2+xv2\displaystyle \mathop{\mathbb E} |y^{(t)}_u + y^{(t)}_v| = 2 x_u^2 + x_v^2 - x_u^2 = x_u^2 + x_v^2

    since the last expression is symmetric with respect to u{u} and v{v}, the equation

    E∣yu(t)+yv(t)∣=xu2+xv2\displaystyle \mathop{\mathbb E} |y^{(t)}_u + y^{(t)}_v| = x_u^2 + x_v^2

    holds also if xu2≥xv2{x_u^2 \geq x_v^2};

  2. If xu{x_u} and xv{x_v} have opposite signs, and, let’s say, xu2≤xv2{x_u^2 \leq x_v^2}, there is probability xv2−xu2{x_v^2 - x_u^2} that yu(t)=0{y^{(t)}_u=0} and yv(t)=±1{y^{(t)}_v = \pm 1}, in which case ∣yu(t)+yv(t)∣=1{ |y^{(t)}_u + y^{(t)}_v| = 1}, and otherwise we have ∣yu(t)+yv(t)∣=0{ |y^{(t)}_u + y^{(t)}_v| = 0}. If xu2≥xv2{x_u^2 \geq x_v^2}, then ∣yu(t)+yv(t)∣{ |y^{(t)}_u + y^{(t)}_v|} equals 1 with probability xu2−xv2{x_u^2 - x_v^2} and it equals zero otherwise. In either case, we have

    E∣yu(t)+yv(t)∣=∣xu2−xv2∣\displaystyle \mathop{\mathbb E} |y^{(t)}_u + y^{(t)}_v| = | x_u^2 - x_v^2 |

In both cases, the inequality

E∣yu(t)+yv(t)∣≤∣xu+xv∣⋅(∣xu∣+∣xv∣)\displaystyle \mathop{\mathbb E} |y^{(t)}_u + y^{(t)}_v| \leq | x_u + x_v| \cdot ( |x_u| + |x_v|)

is satisfied.

Applying Cauchy-Schwarz as in the proof of Cheeger’s inequalities we have

E∑{u,v}∈E∣yu(t)+yv(t)∣≤∑{u,v}∈E∣xu+xv∣⋅(∣xu∣+∣xv∣)\displaystyle \mathop{\mathbb E} \sum_{ \{ u,v \} \in E} |y^{(t)}_u + y^{(t)}_v| \leq \sum_{ \{ u,v \} \in E} | x_u + x_v| \cdot ( |x_u| + |x_v|)

≤∑{u,v}∈E(xu+xv)2⋅∑{u,v}∈E(∣xu∣+∣xv∣)2\displaystyle \leq \sqrt{ \sum_{ \{ u,v \} \in E} (x_u + x_v)^2 } \cdot \sqrt { \sum_{ \{ u,v \} \in E} ( |x_u| + |x_v|)^2 }

and

∑{u,v}∈E(∣xu∣+∣xv∣)2≤∑{u,v}∈E2xu2+xv2=2∑vdvxv2\displaystyle \sum_{ \{ u,v \} \in E} ( |x_u| + |x_v|)^2 \leq \sum_{ \{ u,v \} \in E} 2 x_u^2 + x_v^2 = 2 \sum_v d_v x_v^2

and, combining all the bounds, we get (1).

2. Application to Max Cut

In the Max Cut problem, given an undirected graph G=(V,E){G=(V,E)} we want to find a cut (C,V−C){(C,V-C)} maximizing the number of cut edges E(C,V−C){E(C,V-C)}. We call maxcut(G){maxcut(G)} the fraction of edges of G{G} cut by the optimal solution. We see that if maxcut(G)=1−ϵ{maxcut(G) = 1-\epsilon}, then 2−λn≤2ϵ{2-\lambda_n \leq 2\epsilon}, as seen by taking the boolean vector x∈{−1,1}n{{\bf x} \in \{ -1,1\}^n} such that xv=1{x_v =1} iff v∈C{v\in C}.

This means that, in polynomial time, we can find a y∈{−1,0,1}{{\bf y} \in \{ -1,0,1\}} such that β(y)≤2ϵ{\beta({\bf y}) \leq 2 \sqrt \epsilon}. Unfortunately, the number of non-zero vertices in y{{\bf y}} could be very small, and so y{{\bf y}} would not help find a way to partition all vertices.

We can, however, apply the algorithm of the previous section recursively: after we find y{{\bf y}}, we remove the non-zero vertices from G{G} (because y{{\bf y}} gives us a way to partition them with few violating edges) and then we can recurse on the residual graph. If the (volume of) the residual graph is very small, then we already almost have a global cut, and if the volume of the residual graph is large, then the optimal cut of G{G} is still a good cut in the residual graph, and it implies that λn{\lambda_n} is close to 2 and that we can find a y{{\bf y}} of small bipartiteness ratio, and so on.

The overall algorithm is as follows:

RecursiveSpectralCut (G=(V,E)){(G=(V,E))}

  • Use algorithm of previous section to find disjoint sets of vertices A,B{A,B} such that

    2E(A)+2E(B)+E(A∪B,V−A∪B)≤2−2λn⋅vol(A∪B)\displaystyle 2E(A) + 2E(B) + E(A\cup B, V- A\cup B) \leq \sqrt { 2- 2\lambda_n } \cdot vol(A \cup B)

  • If V=A∪B{V=A\cup B}, then return (A,B){(A,B)}

  • Else

    • Let V′:=V−(A∪B){V':= V - (A\cup B)}, and let G′=(V′,E′){G' = (V',E')} be the subgraph of G{G} induced by V′{V'}
    • (C,V′−C):={(C,V'-C):= } RecursiveSpectralCut (G′=(V′,E′)){(G'=(V',E'))}
    • Return best cut between (C∪A,(V′−C)∪B){(C \cup A, (V'-C) \cup B)} and (C∪B,(V′−C)∪A){(C\cup B, (V'-C ) \cup A)}

We prove the following bound.

Lemma 2 If maxcut(G)=1−ϵ{maxcut (G) = 1-\epsilon}, then RecursiveSpectralCut G{G} finds a cut crossed by at least (1−4ϵ)∣E∣{(1-4\sqrt \epsilon) |E|} edges.

Proof: We proceed by induction on the number of recursive steps.

If there is no recursive call, then A∪B=V{A\cup B = V}, and so (A,B){(A,B)} is already a cut. The number of edges of G{G} that do not cross the cut is

E(A)+E(B)≤122⋅(2−λn)⋅vol(V)≤2ϵ⋅∣E∣≤4ϵ∣E∣\displaystyle E(A) + E(B) \leq \frac 12 \sqrt{ 2 \cdot (2- \lambda_n)} \cdot vol(V) \leq 2 \sqrt \epsilon \cdot |E| \leq 4 \sqrt{\epsilon } |E|

because 2−λn≤2ϵ{2-\lambda_n \leq 2\epsilon} and vol(V)=2∣E∣{vol(V) = 2|E|}. This settles the base case.

For the inductive step, the number of edges not cut by the algorithm is at most

E(A)+E(B)+12E(A∪B,V′)+(∣E′∣−E′(C,V′−C))\displaystyle E(A) + E(B) + \frac 12 E(A\cup B, V') + (|E'| - E'(C, V'-C))

because we should count all the edges with both endpoints in A{A} and both endpoints in B{B}, all the edges of G′{G'} not cut in the recursive step, and half of the edges from A∪B{A\cup B} to V′{V'}, because the best way of combining the cuts loses at most half of those edges.

By using the fact that 2−λn≤2ϵ{2-\lambda_n \leq 2\epsilon} and the inductive hypothesis we have

E(A)+E(B)+12E(A∪B,V′)≤ϵ⋅vol(A∪B)\displaystyle E(A) + E(B) + \frac 12 E(A \cup B , V') \leq \sqrt{ \epsilon } \cdot vol(A\cup B)

∣E′∣−E′(C,V′−C)≤4ϵ′⋅∣E′∣\displaystyle |E'| - E'(C, V'-C) \leq 4 \sqrt { \epsilon '} \cdot |E'|

where ϵ′{\epsilon'} is defined so that 1−ϵ′=maxcut(G′){1-\epsilon' = maxcut (G')}.

Let us call ρ:=∣E∣−∣E′∣∣E∣{\rho := \frac { |E| - |E'|}{|E|}} the fraction of edges of G{G} that is not in G′{G'}. Then we have

vol(A∪B)≤2∣E−E′∣=2ρ∣E∣\displaystyle vol (A\cup B) \leq 2 |E- E'| = 2\rho |E|

and

∣E′∣=∣E∣⋅(1−ρ)\displaystyle |E'| = |E| \cdot (1-\rho)

We also have

ϵ′∣E′∣≤ϵ∣E∣\displaystyle \epsilon' |E'| \leq \epsilon |E|

because the number of edges not cut by the optimal cut of G′{G'} is at most the number of edges not cut by the optimal cut of G{G}, given that G′{G'} is a subgraph of G{G}. So we have

ϵ′≤ϵ⋅∣E∣∣E′∣=ϵ⋅11−ρ\displaystyle \epsilon' \leq \epsilon \cdot \frac {|E|}{|E'|} = \epsilon \cdot \frac 1 {1-\rho}

Putting everything together, the number of uncut edges is at most

ϵ⋅vol(A∪B)+4ϵ′⋅∣E′∣\displaystyle \sqrt{ \epsilon } \cdot vol(A\cup B) + 4 \sqrt { \epsilon '} \cdot |E'|

≤ϵ⋅2ρ∣E∣+4ϵ⋅(1−ρ)∣E∣\displaystyle \leq \sqrt{\epsilon} \cdot 2 \rho |E| + 4 \sqrt{\epsilon \cdot (1-\rho)} |E|

≤4ϵ∣E∣\displaystyle \leq 4 \sqrt { \epsilon } |E|

where the last line is equivalent to

2ρ+41−ρ≤4\displaystyle 2 \rho + 4 \sqrt { 1- \rho } \leq 4

which follows from the fact that

1−ρ≤(1−ρ2)2=1−ρ2\displaystyle \sqrt{ 1 - \rho} \leq \sqrt { \left( 1 - \frac \rho 2 \right)^2 } = 1 - \frac \rho 2

□\Box

For small ϵ{\epsilon}, the bound of the previous lemma is close to the bound achieved by the Goemans-Williamson semidefinite programming-based algorithm, that, under the assumption that maxcut(G)=1−ϵ{maxcut(G) = 1-\epsilon}, finds a cut crossed by about a 1−2π⋅ϵ{1 - \frac 2 {\pi}\sqrt \cdot \epsilon} fraction of edges, which is best possible for polynomial time algorithms assuming the unique games conjecture.

The bound of the lemma is not very good for large ϵ{\epsilon}, however: if ϵ>164{\epsilon > \frac 1 {64}}, the lemma guarantees a number of cut edges that is less than half the number of edges, which is worse than the performance of a simple greedy algorithm, and if ϵ>116{\epsilon > \frac 1 {16}} the lemma does not guarantee than any edge at all is cut.

If one always chooses the best between the cut returned by the recursion and a greedy cut, it is possible to derive an analysis that works well even in graphs in which the value of maxcut(G){maxcut(G)} is small, and show that the algorithm finds a cut crossed by at least a .531⋅maxcut(G){.531 \cdot maxcut(G)} fraction of edges.