Post · 9 min read· pp. 1350–1353

CS294 Lecture 17: Zig-zag Product, continued

In which we analyze the zig-zag graph product.

In the previous lecture, we claimed it is possible to “combine” a d{d}-regular graph on D{D} vertices and a D{D}-regular graph on N{N} vertices to obtain a d2{d^2}-regular graph on ND{ND} vertices which is a good expander if the two starting graphs are. Let the two starting graphs be denoted by H{H} and G{G} respectively. Then, the resulting graph, called the zig-zag product of the two graphs is denoted by Gz◯H{G \textcircled{\rm z} H}.

We will use λ(G){\lambda(G)} to denote the eigenvalue with the second-largest absolute value of the normalized adjacency matrix 1dAG{\frac 1d A_G} of a d{d}-regular graph G{G}. If 0=λ1≤λ2≤⋯≤λn≤2{0 = \lambda_1 \leq \lambda_2 \leq \cdots \leq \lambda_n \leq 2} are the eigenvalues of the normalized Laplacian of G{G}, then λ(G)=max⁡{1−λ2,λn−1}{\lambda(G) = \max \{ 1 - \lambda_2 , \lambda_n -1 \}}.

We claimed that if λ(H)≤b{\lambda(H) \leq b} and λ(G)≤a{\lambda(G) \leq a}, then λ(Gz◯H)≤a+2b+b2{\lambda(G \textcircled{\rm z} H) \leq a+ 2b + b^2}. In this lecture we shall recall the construction for the zig-zag product and prove this claim.

1. Replacement Product and Zig-Zag Product

We first describe a simpler product for a “small” d{d}-regular graph on D{D} vertices (denoted by H{H}) and a “large” D{D}-regular graph on N{N} vertices (denoted by G{G}). Assume that for each vertex of G{G}, there is some ordering on its D{D} neighbors. Then we construct the replacement product (see figure) Gr◯H{G \textcircled{\rm r} H} as follows:

  • Replace each vertex of G{G} with a copy of H{H} (henceforth called a cloud). For v∈V(G),i∈V(H){v \in V(G), i \in V(H)}, let (v,i){(v,i)} denote the ith{i^{th}} vertex in the vth{v^{th}} cloud.
  • Let (u,v)∈E(G){(u, v) \in E(G)} be such that v{v} is the i{i}-th neighbor of u{u} and u{u} is the j{j}-th neighbor of v{v}. Then ((u,i),(v,j))∈E(Gr◯H){((u,i),(v,j)) \in E(G \textcircled{\rm r} H)}. Also, if (i,j)∈E(H){(i,j) \in E(H)}, then ∀u∈V(G) ((u,i),(u,j))∈E(Gr◯H){\forall u \in V(G)~ ((u,i),(u,j)) \in E(G \textcircled{\rm r} H)}.

Note that the replacement product constructed as above has ND{ND} vertices and is (d+1){(d+1)}-regular.

 (image unavailable)

2. Zig-zag product of two graphs

Given two graphs G{G} and H{H} as above, the zig-zag product Gz◯H{G\textcircled{\rm z} H} is constructed as follows (see figure):

  • The vertex set V(Gz◯H){V(G \textcircled{\rm z} H)} is the same as in the case of the replacement product.
  • ((u,i),(v,j))∈E(Gz◯H){((u,i),(v,j)) \in E(G \textcircled{\rm z} H)} if there exist ℓ{\ell} and k{k} such that ((u,i)(u,ℓ){((u,i)(u,\ell)}, ((u,ℓ),(v,k)){((u,\ell),(v,k))} and ((v,k),(v,j)){((v,k),(v,j))} are in E(Gr◯H){E(G \textcircled{\rm r} H)} i.e. (v,j){(v,j)} can be reached from (u,i){(u,i)} by taking a step in the first cloud, then a step between the clouds and then a step in the second cloud (hence the name!).

 (image unavailable)

It is easy to see that the zig-zag product is a d2{d^2}-regular graph on ND{ND} vertices.

Let M∈R([N]×[D])×([N]×[D]){M \in {\mathbb R}^{([N] \times [D]) \times ([N] \times [D])}} be the normalized adjacency matrix of Gz◯H{G \textcircled{\rm z} H}. Using the fact that each edge in Gr◯H{G \textcircled{\rm r} H} is made up of three steps in Gr◯H{G \textcircled{\rm r} H}, we can write M{M} as BAB{BAB}, where

B[(u,i),(v,j)]={0 u≠v1d u=v and {i,j}∈H\displaystyle \begin{array}{rcl} B[(u,i),(v,j)] = \left\{ \begin{array}{ll} 0 \ u\neq v \\ \frac 1d \ u=v \ {\rm and} \ \{ i,j \} \in H \\ \end{array} \right. \end{array}

And A[(u,i),(v,j)]=1{A[(u,i),(v,j)]=1} if u{u} is the j{j}-th neighbor of v{v} and v{v} is the i{i}-th neighbor of u{u}, and A[(u,i),(v,j)]=0{A[(u,i),(v,j)]=0} otherwise.

Note that A{A} is the adjacency matrix for a matching and is hence a permutation matrix.

3. A Technical Preliminary

We will use the following fact. Suppose that M=1dAG{M = \frac 1d A_G} is the normalized adjacency matrix of a graph G{G}. Thus the largest eigenvalue of M{M} is 1, with eigenvector 1{{\bf 1}}; we have

λ(G)=max⁡x⊥1∣xTMx∣∣∣x∣∣2=max⁡x⊥1∣∣Mx∣∣∣∣x∣∣     (1)\displaystyle \lambda(G) = \max_{{\bf x} \perp {\bf 1}} \frac {| {\bf x}^T M {\bf x} |}{ ||{\bf x}||^2 } = \max_{{\bf x} \perp {\bf 1}} \frac {|| M {\bf x} ||}{ || {\bf x}||} \ \ \ \ \ (1)

which is a corollary of the following more general result. Recall that a vector space S⊆Rn{S\subseteq {\mathbb R}^n} is an invariant subspace for a matrix M∈Rn×n{M \in {\mathbb R}^{n\times n}} if Mx∈S{M {\bf x} \in S} for every x∈S{{\bf x} \in S}.

Lemma 1 Let M{M} be a symmetric matrix, and S{S} be a k{k}-dimensional invariant subspace for M{M}. Thus, (from the proof of the spectral theorem) we have that S{S} has an orthonormal basis of eigenvectors; let λ1≤⋯≤λk{\lambda_1\leq \cdots \leq \lambda_k} be the corresponding eigenvalues with multiplicities; we have

max⁡i=1,…k∣λi∣=max⁡x∈S∣xTMx∣∣∣x∣∣2=max⁡x∈S∣∣Mx∣∣∣∣x∣∣\displaystyle \max_{i=1,\ldots k} | \lambda_i | = \max_{{\bf x} \in S} \frac {| {\bf x}^T M {\bf x} |}{ ||{\bf x}||^2 } = \max_{{\bf x} \in S} \frac {|| M {\bf x} ||}{ || {\bf x}||}

Proof: If the largest eigenvalue in absolute value is λk{\lambda_k}, then

max⁡i=1,…k∣λi∣=λk=max⁡x∈SxTMx∣∣x∣∣2\displaystyle \max_{i=1,\ldots k} | \lambda_i | = \lambda_k = \max_{{\bf x} \in S} \frac { {\bf x}^T M {\bf x} }{ ||{\bf x}||^2 }

and if it is −λ1{- \lambda_1} (because λ1{\lambda_1} is negative, and −λ1>λn{-\lambda_1 > \lambda_n})

max⁡i=1,…k∣λi∣=−λ1=−min⁡x∈SxTMx∣∣x∣∣2=max⁡x∈S−xTMx∣∣x∣∣2\displaystyle \max_{i=1,\ldots k} | \lambda_i | = - \lambda_1 = - \min_{{\bf x} \in S} \frac { {\bf x}^T M {\bf x} }{ ||{\bf x}||^2 } = \max_{{\bf x} \in S} - \frac { {\bf x}^T M {\bf x} }{ ||{\bf x}||^2 }

so we have

max⁡i=1,…k∣λi∣≤max⁡x∈S∣xTMx∣∣∣x∣∣2     (2)\displaystyle \max_{i=1,\ldots k} | \lambda_i | \leq \max_{{\bf x} \in S} \frac {| {\bf x}^T M {\bf x} |}{ ||{\bf x}||^2 } \ \ \ \ \ (2)

From Cauchy-Schwarz, we have

∣xTMx∣≤∣∣x∣∣⋅∣∣Mx∣∣\displaystyle | {\bf x}^T M {\bf x} | \leq || {\bf x}|| \cdot ||M {\bf x}||

and so

max⁡x∈S∣xTMx∣∣∣x∣∣2≤max⁡x∈S∣∣Mx∣∣∣∣x∣∣     (3)\displaystyle \max_{{\bf x} \in S} \frac {| {\bf x}^T M {\bf x} |}{ ||{\bf x}||^2 } \leq \max_{{\bf x} \in S} \frac {||M {\bf x} ||}{ ||{\bf x}|| } \ \ \ \ \ (3)

Finally, if x1,…,xk{{\bf x}_1,\ldots,{\bf x}_k} is the basis of orthonormal eigenvectors in S{S} such that Mxi=λi{M {\bf x}_i = \lambda_i}, then, for every x∈S{{\bf x} \in S}, we can write x=∑iaixi{{\bf x} = \sum_i a_i {\bf x}_i} and

∣∣Mx∣∣=∣∣∑iλiaixi∣∣=∑iλi2ai2≤max⁡i=1,…,k∣λi∣⋅∑iai2=max⁡i=1,…,k∣λi∣⋅∣∣x∣∣\displaystyle || M {\bf x} || = || \sum_i \lambda_i a_i {\bf x}_i || = \sqrt{ \sum_i \lambda_i^2 a_i^2} \leq \max_{i=1,\ldots, k} |\lambda_i| \cdot \sqrt{\sum_i a_i^2} = \max_{i=1,\ldots, k} |\lambda_i| \cdot ||{\bf x}||

so

max⁡x∈S∣∣Mx∣∣∣x∣∣≤max⁡i=1,…,k∣λi∣     (4)\displaystyle \max_{{\bf x} \in S} \frac {||M {\bf x} |}{ ||{\bf x}|| } \leq \max_{i=1,\ldots, k} |\lambda_i| \ \ \ \ \ (4)

and the Lemma follows by combining (2), (3) and (4). □\Box

4. Analysis of the zig-zag Product

Theorem 2 Let G{G} be a D{D}-regular graph with n{n} nodes, H{H} be a d{d}-regular graph with D{D} nodes, and let a:=λ(G){a:= \lambda(G)}, b:=λ(H){b:= \lambda(H)}, and let the normalized adjacency matrix of Gz◯H{G \textcircled{\rm z} H} be M=BAB{M = BAB} where A{A} and B{B} are as defined in Section 1.

Then λ(Gz◯H)≤a+b+b2{\lambda(G\textcircled{\rm z} H) \leq a + b + b^2}

Proof: Let xRn×D{{\bf x} {\mathbb R}^{n \times D}} be such that x⊥1{{\bf x} \perp {\bf 1}}. We refer to a set of coordinates of x{{\bf x}} corresponding to a copy of H{H} as a “block” of coordinate.

We write x=x∣∣+x⊥{{\bf x} = {\bf x}_{||} + {\bf x}_{\perp}}, where x∣∣{{\bf x}_{||}} is constant within each block, and x⊥{{\bf x}_{\perp}} sums to zero within each block. Note both x∣∣{{\bf x}_{||}} and x⊥{{\bf x}_{\perp}} are orthogonal to 1{{\bf 1}}, and that they are orthogonal to each other.

We want to prove

∣xTMx∣∣∣x∣∣2≤a+b+b2     (5)\displaystyle \frac{|{\bf x}^T M {\bf x}|}{||{\bf x}||^2} \leq a + b + b^2 \ \ \ \ \ (5)

We have (using the fact that M{M} is symmetric)

∣xTMx∣=≤∣x∣∣TMx∣∣∣+2∣x∣∣TMx⊥∣+∣x⊥TMx⊥∣\displaystyle | {\bf x}^T M {\bf x}| = \leq | {\bf x}_{||}^T M {\bf x}_{||} | + 2 | {\bf x}_{||} ^T M {\bf x}_{\perp} | + | {\bf x}_{\perp} ^T M {\bf x}_{\perp} |

And it remains to bound the three terms.

  1. ∣x∣∣TMx∣∣∣≤a∣∣x∣∣∣∣2{ | {\bf x}_{||}^T M {\bf x}_{||} | \leq a || {\bf x}_{||}||^2}

    Because, after writing M=BAB{M = BAB}, we see that Bx∣∣=x∣∣{B {\bf x}_{||} = {\bf x}_{||}}, because B{B} is the same as In⊗(1dAH){I_n \otimes \left( \frac 1d A_H\right)}, the tensor product of the identity and of the normalized adjacency matrix of H{H}. The normalized adjacency matrix of H{H} leaves a vector parallel to all-ones unchanged, and so B{B} leaves every vector that is constant in each block unchanged.

    Thus

    ∣x∣∣TMx∣∣∣=∣x∣∣TAx∣∣\displaystyle | {\bf x}_{||}^T M {\bf x}_{||} | = | {\bf x}_{||}^T A {\bf x}_{||}

    Let y{{\bf y}} be the vector such that yv{y_v} is equal to the value that x∣∣{{\bf x}_{||}} has in the block of v{v}. Then

    ∣x∣∣TAx∣∣∣=2∑{(v,i),(w,j)}∈EGz◯Hyvyw=yTAGy=aD∣∣y∣∣2≤a∣∣x∣∣∣∣2\displaystyle | {\bf x}_{||}^T A {\bf x}_{||} | = 2 \sum_{ \{ (v,i), (w,j) \} \in E_{G\textcircled{\rm z} H} } y_v y_w = {\bf y}^T A_G {\bf y} = a D || {\bf y} ||^2 \leq a ||{\bf x}_{||}||^2

    because y⊥1{{\bf y} \perp {\bf 1}} and ∣∣y∣∣2=1D∣∣x∣∣∣∣2{||{\bf y}||^2 = \frac 1 D || {\bf x}_{||}||^2}

  2. ∣x⊥TMx⊥∣≤b2∣∣x⊥∣∣2{|{\bf x}_{\perp}^T M {\bf x}_{\perp}| \leq b^2 || {\bf x}_{\perp} ||^2} Because, from Cauchy-Schwarz and the fact that permutation matrices preserve length, we have

    ∣x⊥TBABx⊥∣≤∣∣Bx⊥∣∣⋅∣∣ABx⊥∣∣=∣∣Bx⊥∣∣2\displaystyle | {\bf x}_{\perp} ^T BAB {\bf x}_{\perp} | \leq || B {\bf x}_{\perp} || \cdot || A B {\bf x}_{\perp} || =|| B {\bf x}_{\perp} ||^2

    Now let us call x⊥v{{\bf x}^v_{\perp}} the restriction of x⊥{{\bf x}_\perp} to coordinates of the form (v,i){(v,i)} for i=1,…,D{i=1,\ldots, D}. Then each x⊥v{{\bf x}^v _ {\perp}} is orthogonal to the all-one vector and AHx⊥v≤db∣∣x⊥v∣∣{A_H {\bf x}^v_{\perp} \leq db || {\bf x}^v_{\perp} ||}, so

    ∣∣Bx⊥∣∣2=∑v∣∣d−1AHx⊥v∣∣2≤∑vb2∣∣x⊥v∣∣2=b2∣∣x⊥∣∣2\displaystyle || B {\bf x}_{\perp} ||^2 = \sum_v || d^{-1} A_H {\bf x}^v _{\perp} ||^2 \leq \sum_v b^2 || {\bf x}^v_{\perp} ||^2 = b^2 || {\bf x}_{\perp} ||^2

  3. 2∣x∣∣TMx⊥∣≤b∣∣x∣∣2{2|{\bf x}_{||} ^T M {\bf x}_{\perp} | \leq b || {\bf x}||^2}

    Because, from Cauchy-Schwarz, the fact that Bx∣∣=x∣∣{B {\bf x}_{||} = {\bf x}_{||}} and the fact that permutation matrices preserve length, we have

    ∣x∣∣TBABx⊥∣≤∣∣Bx∣∣∣∣⋅∣∣ABx⊥∣∣=∣∣x∣∣∣∣⋅∣∣Bx⊥∣∣\displaystyle | {\bf x}_{||} ^T BAB {\bf x}_{\perp} | \leq || B {\bf x}_{||} || \cdot || A B {\bf x}_{\perp} || = || {\bf x}_{||} || \cdot || B {\bf x}_{\perp} ||

    and we proved above that

    ∣∣Bx⊥∣∣≤b∣∣x⊥∣∣\displaystyle || B {\bf x}_{\perp} || \leq b || {\bf x}_{\perp} ||

    so

    ∣x∣∣TBABx⊥∣≤b⋅∣∣x∣∣∣∣⋅∣∣x⊥∣∣≤b2(∣∣x∣∣∣∣2+∣∣x⊥∣∣2)=b2∣∣x∣∣2\displaystyle | {\bf x}_{||} ^T BAB {\bf x}_{\perp} | \leq b \cdot || {\bf x}_{||} || \cdot ||{\bf x}_{\perp} || \leq \frac b2 (|| {\bf x}_{||} ||^2 + ||{\bf x}_{\perp} ||^2 ) = \frac b2 ||{\bf x}||^2

□\Box