In which we talk about even more generalizations of Cheeger’s inequalities, and we analyze the power method to find approximate eigenvectors, thus having a complete description of a polynomial-time approximation algorithm for sparsest cut
1. Irregular Graphs
For simplicity, we proved our results on λ2 and λk for regular graphs. Those results extend, essentially with the same proofs, to the case of irregular undirected graphs. In an irregular graph G=(V,E), the notion that generalizes edge expansion is called conductance. If dv is the degree of vertex v, then the conductance of set S of vertices is
ϕ(S):=∑v∈SdvE(S,V−S)
We will call the sum of the degrees of a set of vertices the volume of the set, and denote it vol(S):=∑v∈Sdv. The conductance of the graph G is
ϕ(G):=S:vol(S)≤21vol(V)minϕ(S)
Higher-order conductance is defined as higher-order expansion, but with conductance replacing expansion in the definition.
The Cheeger inequalities
2λ2≤ϕ(G)≤2λ2
still hold, with the same proof. With some abuse of notation, we will call the following quantity the Rayleigh quotient of x
RL(x):=∑v∈Vdvxv2∑{u,v}∈E(xu−xv)2
even if, technically, it is the Rayleigh quotient of D1/2x, where D is the diagonal matrix of degrees.
We can also adapt the proof of the higher-order Cheeger inequality to show
2λk≤ϕk(G)≤O(k3.5)⋅λk
2. More Cheeger-type Bounds
We proved that if (SF,V−SF) is the cut found by Fiedler’s algorithm using the eigenvector of λ2, then
ϕ(SF,V−SF)≤2ϕ(G)
which is a good bound, although it usually underestimates the quality of the solutions found in practice. (There are graphs, however, for which the above inequality is tight within a constant factor.)
One case in which we can improve the analysis is when there are not too many eigenvalues close to λ2
Theorem 1 There is a constant c such that, if (SF,V−SF) is the cut obtained by Fiedler’s algorithm using an eigenvector for λ2, then, for every k≥2,
ϕ(SF,V−SF)≤c⋅k⋅λkλ2
So we have
ϕ(SF,V−SF)≤2c⋅ϕ(G)⋅k≥2minλkk
which is a better bound for families of graphs in which, for some k, λk>>k2λ2.
We will not have time to prove Theorem 1, but we will state the two main pieces of its proof.
Lemma 2 Let x∈R≥0V be a non-negative vector. Then, for every k, there is a non-negative vector y∈R≥0V whose entries take at most 2k distinct values and such that
∣∣x−y∣∣2≤λkRL(x)∣∣x∣∣2
That is, if RL(x)>>λk, then there are 2k values such that most entries of x are close to one of those 2k values.
Lemma 3 There is a constant c′ such that, for every non-negative vectors x∈R≥0V and y∈R≥0V, if y is such that its entris contain only k distinct values, then there is a threshold t>0 such that
ϕ({v:xv≥t})≤c′⋅k⋅(RL(x)+RL(x)⋅∣∣x∣∣∣∣x−y∣∣)
The above lemma should be compared to the fact, which was a major piece in the proof of Cheeger’s inequality, that if x∈R≥0V is an arbitrary non-negative vector, then there is a threshold t>0 such that
ϕ({v:xv≥t})≤2RL(x)
One obtains Theorem 1 in the following. Start from an eigenvector x of λ2 and, using the first step in the proof of Cheeger’s inequality, obtain a vector x′∈R≥0V with non-negative entries such that RL(x′)≤RL(x)=λ2 and such that the support of x contains at most ∣V∣/2 vertices.
Use Lemma 2 to find a vector y with non-negative entries and with at most 2k distinct values among its entries such that ∣∣x′−y∣∣2≤λkλ2∣∣x′∣∣2. Then use Lemma 3 and the fact that λk≤2 to conclude that there exists at t>0 such that
ϕ({v:xv′≥t})≤O(k)⋅λkλ2
The set {v:xv′≥t} contains at most ∣V∣/2 vertices, it is one of the cuts considered by Fiedler’s algorithm on input x.
Another property of graphs in which λk is large for small k is that they contain large expanders as induced subgraphs.
Theorem 4There is a constant c such that, for every graph G and every k, there exists a partition of the vertices into ℓ≤k sets (S1…,Sℓ) such that, if we call Gi the subgraph induced by the vertex set Si, we have
ϕGi≥ck2λk
Theorem 5If ϕk+1>(1+ϵ)ϕk, then there is a partition of the vertices into k subsets (S1,…,Sk such that
∀i∈{1,…,k}:ϕGi≥Ω(kϵ)⋅ϕk+1,ϕ(Si)≤kϕk
3. The Power Method
Earlier in this class, we showed that, if G=(V,E) is a d-regular graph, and L is its normalized Laplacian matrix with eigenvalues 0=λ1≤λ2…≤λn, given an eigenvector of λ2, Fiedler’s algorithm finds, in nearly-linear time O(∣E∣+∣V∣log∣V∣), a cut (S,V−S) such that ϕ(S)≤2ϕ(G).
More generally, if, instead of being given an eigenvector x such that Lx=λ2x, we are given a vector x⊥1 such that xTLx≤(λ2+ϵ)xTx, then the algorithm finds a cut such that ϕ(S)≤4ϕ(G)+2ϵ. We will now see how to compute such a vector using O((∣V∣+∣E∣)⋅ϵ1⋅logϵ∣V∣) arithmetic operations.
A symmetric matrix is positive semi-definite (abbreviated PSD) if all its eigenvalues are nonnegative. We begin by describing an algorithm that approximates the largest eigenvalue of a given symmetric PSD matrix. This might not seem to help very much because because we want to compute the second smallest, not the largest, eigenvalue. We will see, however, that the algorithm is easily modified to accomplish what we want.
3.1. The Power Method to Approximate the Largest Eigenvalue
The algorithm works as follows
Algorithm Power
Input: PSD matrix M, parameter k
Pick uniformly at random x0∼{−1,1}n
for i:=1 to k\mboxxi:=M⋅xi−1
return xk
That is, the algorithm simply picks uniformly at random a vector x with ±1 coordinates, and outputs Mkx.
Note that the algorithm performs O(k⋅(n+m)) arithmetic operations, where m is the number of non-zero entries of the matrix M.
Theorem 6 For every PSD matrix M, positive integer k and parameter ϵ>0, with probability ≥3/16 over the choice of x0, the algorithm Power outputs a vector xk such that
xkTxkxkTMxk≥λ1⋅(1−ϵ)⋅1+4n(1−ϵ)2k1
where λ1 is the largest eigenvalue of M.
Note that, in particular, we can have k=O(logn/ϵ) and xkTxkxkTMxk≥(1−O(ϵ))⋅λ1.
Let λ1≥⋯λn be the eigenvalues of M, with multiplicities, and v1,…,vn be a system of orthonormal eigenvectors such that Mvi=λivi. Theorem 6 is implied by the following two lemmas
Lemma 7 Let v∈Rn be a vector such that ∣∣v∣∣=1. Sample uniformly x∼{−1,1}n. Then
P[∣⟨x,v⟩∣≥21]≥163
Lemma 8 For every x∈Rn, for every positive integer k and positive ϵ>0, if we define y:=Mkx, we have
yTyyTMy≥λ1⋅(1−ϵ)⋅(1+⟨x,v1⟩2∣∣x∣∣2(1−ϵ)2k)−1
It remains to prove the two lemmas.
Proof: (Of Lemma 7) Let v=(v1,…,vn). The inner product ⟨x,v⟩ is the random variable
S:=i∑xivi
Let us compute the first, second, and fourth moment of S.
ES=0
ES2=i∑vi2=1
ES4=3(i∑vi2)−2i∑vi4≤3
Recall that the Paley-Zygmund inequality states that if Z is a non-negative random variable with finite variance, then, for every 0≤δ≤1, we have
P[Z≥δEZ]≥(1−δ)2⋅EZ2(EZ)2(1)
which follows by noting that
EZ=E[Z⋅1Z<δEZ]+E[Z⋅1Z≥δEZ],
that
E[Z⋅1Z<δEZ]≤δEZ,
and that
E[Z⋅1Z≥δEZ]≤EZ2⋅E1Z≥δEZ
=EZ2P[Z≥δEZ]
We apply the Paley-Zygmund inequality to the case Z=S2 and δ=1/4, and we derive
P[S2≥41]≥(43)2⋅31=163
□
Remark 1The proof of Lemma 7 works even if x∼{−1,1}n is selected according to a 4-wise independent distribution. This means that the algorithm can be derandomized in polynomial time.
Proof: (Of Lemma 8) Let us write x as a linear combination of the eigenvectors
x=a1v1+⋯+anvn
where the coefficients can be computed as ai=⟨x,vi⟩. We have
y=a1λ1kv1+⋯+anλnkvn
and so
yTMy=i∑ai2λi2k+1
and
yTy=i∑ai2λi2k
We need to prove a lower bound to the ratio of the above two quantities. We will compute a lower bound to the numerator and an upper bound to the denominator in terms of the same parameter.
Let ℓ be the number of eigenvalues larger than λ1⋅(1−ϵ). Then, recalling that the eigenvalues are sorted in non-increasing order, we have
yTMy≥i=1∑ℓai2λi2k+1≥λ1(1−ϵ)i=1∑ℓai2λi2k
We also see that
i=ℓ+1∑nai2λi2k
≤λ12k⋅(1−ϵ)2ki=ℓ+1∑nai2
≤λ12k⋅(1−ϵ)2k⋅∣∣x∣∣2
≤a12λ12k(1−ϵ)2t⋅a12∣∣x∣∣2
≤a12∣∣x∣∣2(1−ϵ)2ki=1∑ℓai2λi2k
So we have
yTy≤(1+a12∣∣x∣∣2(1−ϵ)2k)⋅i=1∑ℓai2
giving
yTyyTMy≥λ1⋅(1−ϵ)⋅(1+a12∣∣x∣∣2(1−ϵ)2k)−1
□
Remark 2Where did we use the assumption that M is positive semidefinite? What happens if we apply this algorithm to the adjacency matrix of a bipartite graph?
3.2. Approximating the Second Largest Eigenvalue
Suppose now that we are interested in finding the second largest eigenvalue of a given PSD matrix M. If M has eigenvalues λ1≥λ2≥⋯λn, and we know the eigenvector v1 of λ2, then M is a PSD linear map from the orthogonal space to v1 to itself, and λ2 is the largest eigenvalue of this linear map. We can then run the previous algorithm on this linear map.
Algorithm Power2
Input: PSD matrix M, vector v1 parameter k
Pick uniformly at random x∼{−1,1}n
x0:=x−v1⋅⟨x,v1⟩
for i:=1 to k\mboxxi:=M⋅xi−1
return xk
If v1,…,vn is an orthonormal basis of eigenvectors for the eigenvalues λ1≥⋯≥λn of M, then, at the beginning, we pick a random vector
x=a1v1+a2v2+⋯anvn
that, with probability at least 3/16, satisfies ∣a2∣≥1/2. (Cf. Lemma 7.) Then we compute x0, which is the projection of x on the subspace orthogonal to v1, that is
x0=a2v2+⋯anvn
Note that ∣∣x∣∣2=n and that ∣∣x0∣∣2≤n.
The output is the vector xk
xk=a2λ2kv2+⋯anλnkvn
If we apply Lemma 8 to subspace orthogonal to v1, we see that when ∣a2∣≥1/2 we have that, for every 0<ϵ<1,
xkTxkxkTMxk≥λ2⋅(1−ϵ)⋅4n(1−ϵ)2k1
We have thus established the following analysis.
Theorem 9For every PSD matrix M, positive integer k and parameter ϵ>0, if v1 is a length-1 eigenvector of the largest eigenvalue of M, then with probability ≥3/16 over the choice of x0, the algorithm Power2 outputs a vector xk⊥v1 such that
xkTxkxkTMxk≥λ2⋅(1−ϵ)⋅1+4n(1−ϵ)2k1
where λ2 is the second largest eigenvalue of M, counting multiplicities.
3.3. The Second Smallest Eigenvalue of the Laplacian
Finally, we come to the case in which we want to compute the second smallest eigenvalue of the normalized Laplacian matrix L=I−d1A of a d-regular graph G=(V,E), where A is the adjacency matrix of G.
Consider the matrix M:=2I−L=I+d1A. Then if 0=λ1≤…≤λn≤2 are the eigenvalues of L, we have that
2=2−λ1≥2−λ2≥⋯≥2−λn≥0
are the eigenvalues of M, and that M is PSD. M and L have the same eigenvectors, and so v1=n1(1,…,1) is a length-1 eigenvector of the largest eigenvalue of M.
By running algorithm Power2, we can find a vector x such that
xTMxT≥(1−ϵ)⋅(2−λ2)⋅xTx
and
xTMxT=2xTx−xTLx
so, rearranging, we have
xTxxTLx≤λ2+2ϵ
If we want to compute a vector whose Rayleigh quotient is, say, at most 2λ2, then the running time will be O~((∣V∣+∣E∣)/λ2), because we need to set ϵ=λ2/2, which is not nearly linear in the size of the graph if λ2 is, say O(1/∣V∣).
For a running time that is nearly linear in n for all values of λ2, one can, instead, apply the power method to the pseudoinverseL+ of L. (Assuming that the graph is connected, L+x is the unique vector y such that Ly=x, if x⊥(1,…,1), and L+x=0 if x is parallel to (1,…,1).) This is because L+ has eigenvalues 0,1/λ2,…,1/λn, and so L+ is PSD and 1/λ2 is its largest eigenvalue.
Although computing L+ is not known to be doable in nearly linear time, there are nearly linear time algorithms that, given x, solve in y the linear system Ly=x, and this is the same as computing the product L+x, which is enough to implement algorithm Power applied to L+.
(Such algorithms will be discussed in the third part of the course. The algorithms will find an approximate solution y to the linear system Ly=x, but this will be sufficient. In the following, we proceed as if the solution was exact.)
In time O((V+∣E∣)⋅(log∣V∣/ϵ)O(1)), we can find a vector y such that y=(L+)kx, where x is a random vector in {−1,1}n, shifted to be orthogonal to (1,…,1) and k=O(log∣V∣/ϵ). What is the Rayleigh quotient of such a vector with respect to L?
Let v1,…,vn be a basis of orthonormal eigenvectors for L and L+. If 0=λ1≤λ2≤⋯≤λn are the eigenvalues of L, then we have
Lv1=L+v1=0
and, for i=1,…,n, we have
Lvi=λiL+vi=λi1
Write x=a2v2+⋯anvn, where ∑iai2≤n, and ssume that, as happens with probability at least 3/16, we have a22≥41. Then
y=i=2∑naiλik1
and the Rayleigh quotient of y with respect to L is
yTyyTLy=∑iai2λi2k1∑iai2λi2k−11
and the analysis proceeds similarly to the analysis of the previous section. If we let ℓ be the index such that λℓ≤(1+ϵ)⋅λ2≤λℓ+1 then we can upper bound the numerator as