Post · 17 min read· pp. 1290–1298

CS294 Lecture 8: Spectral Algorithms Wrap-up

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{\lambda_2} and λk{\lambda_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){G=(V,E)}, the notion that generalizes edge expansion is called conductance. If dv{d_v} is the degree of vertex v{v}, then the conductance of set S{S} of vertices is

ϕ(S):=E(S,V−S)∑v∈Sdv\displaystyle \phi(S) := \frac {E(S, V-S)}{\sum_{v\in S} d_v }

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{vol(S) := \sum_{v\in S} d_v}. The conductance of the graph G{G} is

ϕ(G):=min⁡S:vol(S)≤12vol(V)  ϕ(S)\displaystyle \phi(G) := \min_{S: vol(S) \leq \frac 12 vol(V)} \ \ \phi(S)

Higher-order conductance is defined as higher-order expansion, but with conductance replacing expansion in the definition.

The Cheeger inequalities

λ22≤ϕ(G)≤2λ2\displaystyle \frac {\lambda_2}{2} \leq \phi(G) \leq \sqrt {2 \lambda_2}

still hold, with the same proof. With some abuse of notation, we will call the following quantity the Rayleigh quotient of x{{\bf x}}

RL(x):=∑{u,v}∈E(xu−xv)2∑v∈Vdvxv2\displaystyle R_L({\bf x}) := \frac { \sum_{ \{ u,v \} \in E} (x_u - x_v)^2 } { \sum_{v\in V} d_v x_v^2}

even if, technically, it is the Rayleigh quotient of D1/2x{D^{1/2} {\bf x}}, where D{D} is the diagonal matrix of degrees.

We can also adapt the proof of the higher-order Cheeger inequality to show

λk2≤ϕk(G)≤O(k3.5)⋅λk\displaystyle \frac{\lambda_k}{2} \leq \phi_k (G) \leq O(k^{3.5}) \cdot \sqrt{ \lambda_k }

2. More Cheeger-type Bounds

We proved that if (SF,V−SF){(S_F, V-S_F)} is the cut found by Fiedler’s algorithm using the eigenvector of λ2{\lambda_2}, then

ϕ(SF,V−SF)≤2ϕ(G)\displaystyle \phi(S_F, V-S_F) \leq 2 \sqrt {\phi (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{\lambda_2}

Theorem 1 There is a constant c{c} such that, if (SF,V−SF){(S_F, V-S_F)} is the cut obtained by Fiedler’s algorithm using an eigenvector for λ2{\lambda_2}, then, for every k≥2{k\geq 2},

ϕ(SF,V−SF)≤c⋅k⋅λ2λk\displaystyle \phi (S_F,V-S_F) \leq c \cdot k \cdot \frac{\lambda_2}{\sqrt {\lambda_k}}

So we have

ϕ(SF,V−SF)≤2c⋅ϕ(G)⋅min⁡k≥2kλk\displaystyle \phi (S_F,V-S_F) \leq 2 c \cdot \phi(G) \cdot \min_{k \geq 2} \frac {k}{\sqrt {\lambda_k}}

which is a better bound for families of graphs in which, for some k{k}, λk>>k2λ2{\lambda_k >> k^2 \lambda_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{{\bf x} \in {\mathbb R}^V_{\geq 0}} be a non-negative vector. Then, for every k{k}, there is a non-negative vector y∈R≥0V{{\bf y} \in {\mathbb R}^V_{\geq 0}} whose entries take at most 2k{2k} distinct values and such that

∣∣x−y∣∣2≤RL(x)λk∣∣x∣∣2\displaystyle || {\bf x} - {\bf y} ||^2 \leq \frac{R_L({\bf x})}{\lambda_k } ||{\bf x}||^2

That is, if RL(x)>>λk{R_L({\bf x}) >> \lambda_k}, then there are 2k{2k} values such that most entries of x{{\bf x}} are close to one of those 2k{2k} values.

Lemma 3 There is a constant c′{c'} such that, for every non-negative vectors x∈R≥0V{{\bf x} \in {\mathbb R}^V_{\geq 0}} and y∈R≥0V{{\bf y} \in {\mathbb R}^V_{\geq 0}}, if y{{\bf y}} is such that its entris contain only k{k} distinct values, then there is a threshold t>0{t>0} such that

ϕ({v:xv≥t})≤c′⋅k⋅(RL(x)+RL(x)⋅∣∣x−y∣∣∣∣x∣∣)\displaystyle \phi( \{ v : x_v \geq t \} ) \leq c' \cdot k \cdot \left(R_L({\bf x}) + \sqrt{R_L({\bf x})} \cdot \frac{||{\bf x} - {\bf y} ||}{||{\bf x}||} \right)

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{{\bf x} \in {\mathbb R}^V_{\geq 0}} is an arbitrary non-negative vector, then there is a threshold t>0{t>0} such that

ϕ({v:xv≥t})≤2RL(x)\displaystyle \phi( \{ v : x_v \geq t \} ) \leq \sqrt{ 2 R_L({\bf x})}

One obtains Theorem 1 in the following. Start from an eigenvector x{{\bf x}} of λ2{\lambda_2} and, using the first step in the proof of Cheeger’s inequality, obtain a vector x′∈R≥0V{{\bf x}' \in {\mathbb R}^V_{\geq 0}} with non-negative entries such that RL(x′)≤RL(x)=λ2{R_L({\bf x}' ) \leq R_L({\bf x}) = \lambda_2} and such that the support of x{{\bf x}} contains at most ∣V∣/2{|V|/2} vertices.

Use Lemma 2 to find a vector y{{\bf y}} with non-negative entries and with at most 2k{2k} distinct values among its entries such that ∣∣x′−y∣∣2≤λ2λk∣∣x′∣∣2{||{\bf x}' - {\bf y} ||^2 \leq \frac {\lambda_2}{\lambda_k} ||{\bf x}'||^2}. Then use Lemma 3 and the fact that λk≤2{\lambda_k \leq 2} to conclude that there exists at t>0{t>0} such that

ϕ({v:xv′≥t})≤O(k)⋅λ2λk\displaystyle \phi( \{ v : x'_v \geq t \} ) \leq O(k) \cdot \frac{\lambda_2}{\sqrt { \lambda_k} }

The set {v:xv′≥t}{\{ v: x'_v \geq t \}} contains at most ∣V∣/2{|V|/2} vertices, it is one of the cuts considered by Fiedler’s algorithm on input x{{\bf x}}.

Another property of graphs in which λk{\lambda_k} is large for small k{k} is that they contain large expanders as induced subgraphs.

Theorem 4 There is a constant c{c} such that, for every graph G{G} and every k{k}, there exists a partition of the vertices into ℓ≤k{\ell \leq k} sets (S1…,Sℓ){(S_1\ldots,S_\ell)} such that, if we call Gi{G_i} the subgraph induced by the vertex set Si{S_i}, we have

ϕGi≥cλkk2\displaystyle \phi_{G_i} \geq c \frac {\lambda_k }{ k^2}

Theorem 5 If ϕk+1>(1+ϵ)ϕk{\phi_{k+1} > (1+\epsilon) \phi_k}, then there is a partition of the vertices into k{k} subsets (S1,…,Sk{(S_1,\ldots,S_k} such that

∀i∈{1,…,k}:   ϕGi≥Ω(ϵk)⋅ϕk+1,   ϕ(Si)≤kϕk\displaystyle \forall i \in \{ 1,\ldots,k\} : \ \ \ \phi_{G_i} \geq \Omega\left( \frac \epsilon k \right ) \cdot \phi_{k+1} , \ \ \ \phi(S_i) \leq k \phi_k

3. The Power Method

Earlier in this class, we showed that, if G=(V,E){G=(V,E)} is a d{d}-regular graph, and L{L} is its normalized Laplacian matrix with eigenvalues 0=λ1≤λ2…≤λn{0=\lambda_1 \leq \lambda_2 \ldots \leq \lambda_n}, given an eigenvector of λ2{\lambda_2}, Fiedler’s algorithm finds, in nearly-linear time O(∣E∣+∣V∣log⁡∣V∣){O(|E| + |V|\log |V|)}, a cut (S,V−S){(S,V-S)} such that ϕ(S)≤2ϕ(G){\phi(S) \leq 2\sqrt{\phi(G)}}.

More generally, if, instead of being given an eigenvector x{{\bf x}} such that Lx=λ2x{L{\bf x} = \lambda_2 {\bf x}}, we are given a vector x⊥1{{\bf x} \perp {\bf 1}} such that xTLx≤(λ2+ϵ)xTx{{\bf x}^T L {\bf x} \leq (\lambda_2 + \epsilon) {\bf x}^T{\bf x}}, then the algorithm finds a cut such that ϕ(S)≤4ϕ(G)+2ϵ{\phi(S) \leq \sqrt{4\phi(G) + 2\epsilon}}. We will now see how to compute such a vector using O((∣V∣+∣E∣)⋅1ϵ⋅log⁡∣V∣ϵ){O((|V|+|E|)\cdot \frac 1\epsilon \cdot \log \frac {|V|}{\epsilon})} 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{M}, parameter k{k}

  • Pick uniformly at random x0∼{−1,1}n{{\bf x}_0 \sim \{-1,1\}^n}
  • for i:=1{i:=1} to k{k} \mboxxi:=M⋅xi−1{\mbox{} \hspace{30pt} {\bf x}_i := M\cdot {\bf x}_{i-1}}
  • return xk{{\bf x}_k}

That is, the algorithm simply picks uniformly at random a vector x{{\bf x}} with ±1{\pm 1} coordinates, and outputs Mkx{M^k{\bf x}}.

Note that the algorithm performs O(k⋅(n+m)){O(k\cdot (n+m))} arithmetic operations, where m{m} is the number of non-zero entries of the matrix M{M}.

Theorem 6 For every PSD matrix M{M}, positive integer k{k} and parameter ϵ>0{\epsilon>0}, with probability ≥3/16{\geq 3/16} over the choice of x0{{\bf x}_0}, the algorithm Power outputs a vector xk{{\bf x}_k} such that

xkTMxkxkTxk≥λ1⋅(1−ϵ)⋅11+4n(1−ϵ)2k\displaystyle \frac{ {\bf x}_k^T M {\bf x}_k }{ {\bf x}_k^T{\bf x}_k}\geq \lambda_1 \cdot (1-\epsilon) \cdot \frac 1 {1+4n (1-\epsilon)^{2k}}

where λ1{\lambda_1} is the largest eigenvalue of M{M}.

Note that, in particular, we can have k=O(log⁡n/ϵ){k=O(\log n/\epsilon)} and xkTMxkxkTxk≥(1−O(ϵ))⋅λ1{\frac{{\bf x}_k^TM{\bf x}_k}{{\bf x}_k^T{\bf x}_k} \geq (1-O(\epsilon)) \cdot \lambda_1}.

Let λ1≥⋯λn{\lambda_1 \geq \cdots \lambda_n} be the eigenvalues of M{M}, with multiplicities, and v1,…,vn{{\bf v}_1,\ldots,{\bf v}_n} be a system of orthonormal eigenvectors such that Mvi=λivi{M{\bf v}_i = \lambda_i {\bf v}_i}. Theorem 6 is implied by the following two lemmas

Lemma 7 Let v∈Rn{{\bf v} \in {\mathbb R}^n} be a vector such that ∣∣v∣∣=1{||{\bf v}||=1}. Sample uniformly x∼{−1,1}n{{\bf x} \sim \{-1,1\}^n}. Then

P[∣⟨x,v⟩∣≥12]≥316\displaystyle \mathop{\mathbb P} \left[ |\langle {\bf x},{\bf v}\rangle| \geq \frac 12 \right] \geq \frac 3{16}

Lemma 8 For every x∈Rn{{\bf x} \in {\mathbb R}^n}, for every positive integer k{k} and positive ϵ>0{\epsilon >0}, if we define y:=Mkx{{\bf y} := M^k {\bf x}}, we have

yTMyyTy≥λ1⋅(1−ϵ)⋅(1+∣∣x∣∣2⟨x,v1⟩2(1−ϵ)2k)−1\displaystyle \frac{{\bf y}^T M {\bf y}}{{\bf y}^T{\bf y}} \geq \lambda_1 \cdot (1-\epsilon) \cdot \left( 1 + \frac {||{\bf x}||^2}{\langle {\bf x}, {\bf v}_1\rangle^2} (1-\epsilon)^{2k}\right ) ^{-1}

It remains to prove the two lemmas.

Proof: (Of Lemma 7) Let v=(v1,…,vn){{\bf v} = (v_1,\ldots,v_n)}. The inner product ⟨x,v⟩{\langle {\bf x}, {\bf v}\rangle} is the random variable

S:=∑ixivi\displaystyle S:= \sum_i x_i v_i

Let us compute the first, second, and fourth moment of S{S}.

ES=0\displaystyle \mathop{\mathbb E} S = 0

ES2=∑ivi2=1\displaystyle \mathop{\mathbb E} S^2 = \sum_i v_i^2 = 1

ES4=3(∑ivi2)−2∑ivi4≤3\displaystyle \mathop{\mathbb E} S^4 = 3 \left(\sum_i v_i^2 \right) - 2 \sum_i v_i^4 \leq 3

Recall that the Paley-Zygmund inequality states that if Z{Z} is a non-negative random variable with finite variance, then, for every 0≤δ≤1{0\leq \delta \leq 1}, we have

P[Z≥δEZ]≥(1−δ)2⋅(EZ)2EZ2     (1)\displaystyle \mathop{\mathbb P} [ Z \geq \delta \mathop{\mathbb E} Z ] \geq (1-\delta)^2 \cdot \frac {(\mathop{\mathbb E} Z)^2}{\mathop{\mathbb E} Z^2} \ \ \ \ \ (1)

which follows by noting that

EZ=E[Z⋅1Z<δEZ]+E[Z⋅1Z≥δEZ] ,\displaystyle \mathop{\mathbb E} Z = \mathop{\mathbb E} [ Z\cdot 1_{Z < \delta \mathop{\mathbb E} Z} ] + \mathop{\mathbb E} [ Z \cdot 1_{Z \geq \delta \mathop{\mathbb E} Z}] \ ,

that

E[Z⋅1Z<δEZ]≤δEZ ,\displaystyle \mathop{\mathbb E} [ Z\cdot 1_{Z < \delta \mathop{\mathbb E} Z} ] \leq \delta \mathop{\mathbb E} Z \ ,

and that

E[Z⋅1Z≥δEZ]≤EZ2⋅E1Z≥δEZ\displaystyle \mathop{\mathbb E} [ Z \cdot 1_{Z \geq \delta \mathop{\mathbb E} Z}] \leq \sqrt {\mathop{\mathbb E} Z^2}\cdot \sqrt{\mathop{\mathbb E} 1_{Z \geq \delta \mathop{\mathbb E} Z}}

=EZ2P[Z≥δEZ]\displaystyle = \sqrt {\mathop{\mathbb E} Z^2}\sqrt{\mathop{\mathbb P} [ Z \geq \delta \mathop{\mathbb E} Z] }

We apply the Paley-Zygmund inequality to the case Z=S2{Z= S^2} and δ=1/4{\delta = 1/4}, and we derive

P[S2≥14]≥(34)2⋅13=316\displaystyle \mathop{\mathbb P} \left[ S^2 \geq \frac 14 \right] \geq \left( \frac 34 \right)^2 \cdot \frac 13 = \frac 3{16}

□\Box

Remark 1 The proof of Lemma 7 works even if x∼{−1,1}n{{\bf x} \sim \{-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{{\bf x}} as a linear combination of the eigenvectors

x=a1v1+⋯+anvn\displaystyle {\bf x} = a_1 {\bf v}_1 + \cdots + a_n {\bf v}_n

where the coefficients can be computed as ai=⟨x,vi⟩{a_i = \langle {\bf x}, {\bf v}_i\rangle}. We have

y=a1λ1kv1+⋯+anλnkvn\displaystyle {\bf y} = a_1\lambda_1^k {\bf v}_1 + \cdots + a_n \lambda_n^k{\bf v}_n

and so

yTMy=∑iai2λi2k+1\displaystyle {\bf y}^T M {\bf y} = \sum_i a_i^2 \lambda_i^{2k+1}

and

yTy=∑iai2λi2k\displaystyle {\bf y}^T{\bf y} = \sum_i a_i^2 \lambda_i^{2k}

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 ℓ{\ell} be the number of eigenvalues larger than λ1⋅(1−ϵ){\lambda_1 \cdot (1-\epsilon)}. 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\displaystyle {\bf y}^TM{\bf y} \geq \sum_{i=1}^\ell a_i^2 \lambda_i^{2k+1} \geq \lambda_1(1-\epsilon) \sum_{i=1}^\ell a_i^2 \lambda_i^{2k}

We also see that

∑i=ℓ+1nai2λi2k\displaystyle \sum_{i=\ell+1}^n a_i^2\lambda_i^{2k}

≤λ12k⋅(1−ϵ)2k∑i=ℓ+1nai2\displaystyle \leq \lambda_1^{2k} \cdot (1-\epsilon)^{2k} \sum_{i=\ell+1}^n a_i^2

≤λ12k⋅(1−ϵ)2k⋅∣∣x∣∣2\displaystyle \leq \lambda_1^{2k} \cdot (1-\epsilon)^{2k} \cdot ||{\bf x}||^2

≤a12λ12k(1−ϵ)2t⋅∣∣x∣∣2a12\displaystyle \leq a_1^2 \lambda_1^{2k} (1-\epsilon)^{2t} \cdot \frac {||{\bf x}||^2}{a_1^2}

≤∣∣x∣∣2a12(1−ϵ)2k∑i=1ℓai2λi2k\displaystyle \leq \frac { ||{\bf x}||^2}{a_1^2 } (1-\epsilon)^{2k} \sum_{i=1}^\ell a_i^2 \lambda_i^{2k}

So we have

yTy≤(1+∣∣x∣∣2a12(1−ϵ)2k)⋅∑i=1ℓai2\displaystyle {\bf y}^T{\bf y} \leq \left(1 +\frac { ||{\bf x}||^2}{a_1^2} (1-\epsilon)^{2k} \right) \cdot \sum_{i=1}^\ell a_i^2

giving

yTMyyTy≥λ1⋅(1−ϵ)⋅(1+∣∣x∣∣2a12(1−ϵ)2k)−1\displaystyle \frac{{\bf y}^T M {\bf y}}{{\bf y}^T{\bf y}} \geq \lambda_1 \cdot (1-\epsilon) \cdot \left( 1+\frac { ||{\bf x}||^2}{a_1^2} (1-\epsilon)^{2k} \right)^{-1}

□\Box

Remark 2 Where did we use the assumption that M{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{M}. If M{M} has eigenvalues λ1≥λ2≥⋯λn{\lambda_1 \geq \lambda_2 \geq \cdots \lambda_n}, and we know the eigenvector v1{{\bf v}_1} of λ2{\lambda_2}, then M{M} is a PSD linear map from the orthogonal space to v1{{\bf v}_1} to itself, and λ2{\lambda_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{M}, vector v1{{\bf v}_1} parameter k{k}

  • Pick uniformly at random x∼{−1,1}n{{\bf x} \sim \{-1,1\}^n}
  • x0:=x−v1⋅⟨x,v1⟩{{\bf x}_0:= {\bf x} - {\bf v}_1 \cdot \langle {\bf x},{\bf v}_1 \rangle}
  • for i:=1{i:=1} to k{k} \mboxxi:=M⋅xi−1{\mbox{} \hspace{30pt} {\bf x}_i := M\cdot {\bf x}_{i-1}}
  • return xk{{\bf x}_k}

If v1,…,vn{{\bf v}_1,\ldots,{\bf v}_n} is an orthonormal basis of eigenvectors for the eigenvalues λ1≥⋯≥λn{\lambda_1 \geq \cdots \geq \lambda_n} of M{M}, then, at the beginning, we pick a random vector

x=a1v1+a2v2+⋯anvn\displaystyle {\bf x} = a_1 {\bf v}_1 + a_2 {\bf v}_2 + \cdots a_n {\bf v}_n

that, with probability at least 3/16{3/16}, satisfies ∣a2∣≥1/2{|a_2| \geq 1/2}. (Cf. Lemma 7.) Then we compute x0{{\bf x}_0}, which is the projection of x{{\bf x}} on the subspace orthogonal to v1{{\bf v}_1}, that is

x0=a2v2+⋯anvn\displaystyle {\bf x}_0 = a_2 {\bf v}_2 + \cdots a_n {\bf v}_n

Note that ∣∣x∣∣2=n{||{\bf x}||^2 = n} and that ∣∣x0∣∣2≤n{||{\bf x}_0||^2 \leq n}.

The output is the vector xk{{\bf x}_k}

xk=a2λ2kv2+⋯anλnkvn\displaystyle {\bf x}_k = a_2 \lambda_2^k {\bf v}_2 + \cdots a_n \lambda_n ^k {\bf v}_n

If we apply Lemma 8 to subspace orthogonal to v1{{\bf v}_1}, we see that when ∣a2∣≥1/2{|a_2|\geq 1/2} we have that, for every 0<ϵ<1{0< \epsilon< 1},

xkTMxkxkTxk≥λ2⋅(1−ϵ)⋅14n(1−ϵ)2k\displaystyle \frac{ {\bf x}_k^T M {\bf x}_k}{{\bf x}_k^T{\bf x}_k} \geq \lambda_2 \cdot (1-\epsilon) \cdot \frac 1{4 n (1-\epsilon)^{2k}}

We have thus established the following analysis.

Theorem 9 For every PSD matrix M{M}, positive integer k{k} and parameter ϵ>0{\epsilon>0}, if v1{{\bf v}_1} is a length-1 eigenvector of the largest eigenvalue of M{M}, then with probability ≥3/16{\geq 3/16} over the choice of x0{{\bf x}_0}, the algorithm Power2 outputs a vector xk⊥v1{{\bf x}_k \perp {\bf v}_1} such that

xkTMxkxkTxk≥λ2⋅(1−ϵ)⋅11+4n(1−ϵ)2k\displaystyle \frac {{\bf x}_k^T M {\bf x}_k}{ {\bf x}_k^T{\bf x}_k} \geq \lambda_2 \cdot (1-\epsilon) \cdot \frac 1 {1+4n (1-\epsilon)^{2k}}

where λ2{\lambda_2} is the second largest eigenvalue of M{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−1dA{L= I - \frac 1d A} of a d{d}-regular graph G=(V,E){G=(V,E)}, where A{A} is the adjacency matrix of G{G}.

Consider the matrix M:=2I−L=I+1dA{M:= 2I - L = I+\frac 1{d} A}. Then if 0=λ1≤…≤λn≤2{0 = \lambda_1 \leq \ldots \leq \lambda_n \leq 2} are the eigenvalues of L{L}, we have that

2=2−λ1≥2−λ2≥⋯≥2−λn≥0\displaystyle 2 = 2-\lambda_1 \geq 2-\lambda_2 \geq \cdots \geq 2-\lambda_n \geq 0

are the eigenvalues of M{M}, and that M{M} is PSD. M{M} and L{L} have the same eigenvectors, and so v1=1n(1,…,1){{\bf v}_1 = \frac 1 {\sqrt n} (1,\ldots,1)} is a length-1 eigenvector of the largest eigenvalue of M{M}.

By running algorithm Power2, we can find a vector x{{\bf x}} such that

xTMxT≥(1−ϵ)⋅(2−λ2)⋅xTx\displaystyle {\bf x}^T M {\bf x}^T \geq (1-\epsilon) \cdot (2-\lambda_2) \cdot {\bf x}^T {\bf x}

and

xTMxT=2xTx−xTLx\displaystyle {\bf x}^T M {\bf x}^T = 2 {\bf x}^T{\bf x} - {\bf x}^T L {\bf x}

so, rearranging, we have

xTLxxTx≤λ2+2ϵ\displaystyle \frac{{\bf x}^T L {\bf x}}{{\bf x}^T {\bf x}} \leq \lambda_2 + 2\epsilon

If we want to compute a vector whose Rayleigh quotient is, say, at most 2λ2{2\lambda_2}, then the running time will be O~((∣V∣+∣E∣)/λ2){\tilde O( (|V| + |E|) / \lambda_2)}, because we need to set ϵ=λ2/2{\epsilon = \lambda_2/2}, which is not nearly linear in the size of the graph if λ2{\lambda_2} is, say O(1/∣V∣){O(1/|V|)}.

For a running time that is nearly linear in n{n} for all values of λ2{\lambda_2}, one can, instead, apply the power method to the pseudoinverse L+{L^+} of L{L}. (Assuming that the graph is connected, L+x{L^+ {\bf x}} is the unique vector y{{\bf y}} such that Ly=x{L {\bf y} = {\bf x}}, if x⊥(1,…,1){{\bf x} \perp (1,\ldots,1)}, and L+x=0{L^+ {\bf x} = 0} if x{{\bf x}} is parallel to (1,…,1){(1,\ldots,1)}.) This is because L+{L^+} has eigenvalues 0,1/λ2,…,1/λn{0,1/\lambda_2,\ldots, 1/\lambda_n}, and so L+{L^+} is PSD and 1/λ2{1/\lambda_2} is its largest eigenvalue.

Although computing L+{L^+} is not known to be doable in nearly linear time, there are nearly linear time algorithms that, given x{{\bf x}}, solve in y{{\bf y}} the linear system Ly=x{L {\bf y} = {\bf x}}, and this is the same as computing the product L+x{L^+ {\bf x}}, which is enough to implement algorithm Power applied to L+{L^+}.

(Such algorithms will be discussed in the third part of the course. The algorithms will find an approximate solution y{{\bf y}} to the linear system Ly=x{L {\bf y} = {\bf 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)){O((V+|E|) \cdot (\log |V|/\epsilon)^{O(1)})}, we can find a vector y{{\bf y}} such that y=(L+)kx{{\bf y} = (L^+)^k {\bf x}}, where x{{\bf x}} is a random vector in {−1,1}n{\{ -1,1 \}^n}, shifted to be orthogonal to (1,…,1){(1,\ldots,1)} and k=O(log⁡∣V∣/ϵ){k=O(\log |V|/\epsilon)}. What is the Rayleigh quotient of such a vector with respect to L{L}?

Let v1,…,vn{{\bf v}_1,\ldots,{\bf v}_n} be a basis of orthonormal eigenvectors for L{L} and L+{L^+}. If 0=λ1≤λ2≤⋯≤λn{0 = \lambda_1 \leq \lambda_2 \leq \cdots \leq \lambda_n} are the eigenvalues of L{L}, then we have

Lv1=L+v1=0\displaystyle L {\bf v}_1 = L^+ {\bf v}_1 = {\bf 0}

and, for i=1,…,n{i=1,\ldots,n}, we have

Lvi=λi   L+vi=1λi\displaystyle L{\bf v}_ i = \lambda_i \ \ \ L^+ {\bf v}_i = \frac 1 {\lambda_i}

Write x=a2v2+⋯anvn{{\bf x} = a_2 {\bf v}_2 + \cdots a_n {\bf v}_n}, where ∑iai2≤n{\sum_i a_i^2 \leq n}, and ssume that, as happens with probability at least 3/16{3/16}, we have a22≥14{a_2^2 \geq \frac 14}. Then

y=∑i=2nai1λik\displaystyle {\bf y} = \sum_{i=2}^n a_i \frac 1 {\lambda_i^k}

and the Rayleigh quotient of y{{\bf y} } with respect to L{L} is

yTLyyTy=∑iai21λi2k−1∑iai21λi2k\displaystyle \frac {{\bf y} ^T L {\bf y} }{{\bf y}^T {\bf y}} = \frac { \sum_i a_i^2 \frac 1 {\lambda_i^{2k-1}}}{\sum_i a_i^2 \frac 1 {\lambda_i^{2k}}}

and the analysis proceeds similarly to the analysis of the previous section. If we let ℓ{\ell} be the index such that λℓ≤(1+ϵ)⋅λ2≤λℓ+1{\lambda_\ell \leq (1+\epsilon) \cdot \lambda_2 \leq \lambda_{\ell+1}} then we can upper bound the numerator as

∑iai21λi2k−1≤∑i≤ℓai21λi2k−1+1(1+ϵ)2k−1λ22k−1∑i>ℓai2\displaystyle \sum_i a_i^2 \frac 1 {\lambda_i^{2k-1}} \leq \sum_{i\leq \ell} a_i^2 \frac 1 {\lambda_i^{2k-1}} + \frac 1 {(1+\epsilon)^{2k-1} \lambda_2 ^{2k-1} } \sum_{i>\ell} a_i^2

≤∑i≤ℓai21λi2k−1+1(1+ϵ)2k−1λ22k−1⋅n\displaystyle \leq \sum_{i\leq \ell} a_i^2 \frac 1 {\lambda_i^{2k-1}} + \frac 1 {(1+\epsilon)^{2k-1} \lambda_2 ^{2k-1} } \cdot n

≤∑i≤ℓai21λi2k−1+1(1+ϵ)2k−1λ22k−1⋅4na22\displaystyle \leq \sum_{i\leq \ell} a_i^2 \frac 1 {\lambda_i^{2k-1}} + \frac 1 {(1+\epsilon)^{2k-1} \lambda_2 ^{2k-1} } \cdot 4n a_2^2

≤(1+4n(1+ϵ)2k−1)⋅∑i≤ℓai21λi2k−1\displaystyle \leq \left( 1 + \frac {4n} {(1+\epsilon)^{2k-1} } \right) \cdot \sum_{i\leq \ell} a_i^2 \frac 1 {\lambda_i^{2k-1}}

and we can lower bound the denominator as

∑iai21λi2k≥∑i≤ℓai21λi2k\displaystyle \sum_i a_i^2 \frac 1 {\lambda_i^{2k}} \geq \sum_{i \leq \ell} a_i^2 \frac 1 {\lambda_i^{2k}}

≥1(1+ϵ)λ2⋅∑i≤ℓai21λi2k−1\displaystyle \geq \frac 1 {(1+\epsilon) \lambda_2} \cdot \sum_{i \leq \ell} a_i^2 \frac 1 {\lambda_i^{2k-1}}

and the Rayleigh quotient is

yTLyyTy≤λ2⋅(1+ϵ)⋅(1+4n(1+ϵ)2k−1)≤(1+2ϵ)⋅λ2\displaystyle \frac {{\bf y} ^T L {\bf y} }{{\bf y}^T {\bf y}} \leq \lambda_2 \cdot (1+\epsilon) \cdot \left( 1 + \frac {4n} {(1+\epsilon)^{2k-1} } \right) \leq (1+2\epsilon) \cdot \lambda_2

when k=O(1ϵlog⁡nϵ){k=O\left(\frac 1 \epsilon \log \frac n \epsilon \right)}.