Post · 8 min read· pp. 1346–1349

CS294 Lecture 16: Zig-Zag Graph Product

In which we give an explicit construction of expander graphs of polylogarithmic degree, state the properties of the zig-zag product of graphs, and provide an explicit construction of a family of constant-degree expanders using the zig-zag product and the polylogarithmic-degree construction.

A family of expanders is a family of graphs Gn=(Vn,En){G_n = (V_n,E_n)}, ∣Vn∣=n{|V_n|=n}, such that each graph is dn{d_n}-regular, and the edge-expansion of each graph is at least h{h}, for an absolute constant h{h} independent of n{n}. Ideally, we would like to have such a construction for each n{n}, although it is usually enough for most applications that, for some constant c{c} and every k{k}, there is an n{n} for which the construction applies in the interval {k,k+1,…,ck}{\{ k, k+1, \ldots, ck \}}, or even the interval {k,…,ckc}{\{ k, \ldots, ck^c\}}. We would also like the degree dn{d_n} to be slowly growing in n{n} and, ideally, to be bounded above by an explicit constant. Today we will see a simple construction in which dn=O(log⁡2n){d_n = O(\log^2 n)} and a more complicated one in which dn=O(1){d_n = O(1)}.

An explicit construction of a family of expanders is a construction in which Gn{G_n} is “efficiently computable” given n{n}. The weakest sense in which a construction is said to be explicit is when, given n{n}, the (adjacency matrix of the) graph Gn{G_n} can be constructed in time polynomial in n{n}. A stronger requirement, which is necessary for several applications, is that given n{n} and i∈{1,…,n}{i\in \{ 1,\ldots,n\}}, the list of neighbors of the i{i}-th vertex of Gn{G_n} can be computed in time polynomial in log⁡n{\log n}.

In many explicit constructions of constant-degree expanders, the construction is extremely simple, and besides satisfying the stricter definition of “explicit” above, it is also such that the adjacency list of a vertex is given by a “closed-form formula.” The analysis of such constructions, however, usually requires very sophisticated mathematical tools.

Example 1 Let p{p} be a prime, and define the graph Gp=(Vp,Ep){G_p = (V_p,E_p)} in which Vp={0,…,p−1}{V_p = \{ 0,\ldots,p-1\}}, and, for a∈Vp−{0}{a\in V_p - \{ 0\}}, the vertex a{a} is connected to a+1 mod p{a+1 \bmod p}, to a−1 mod p{a-1 \bmod p} and to its multiplicative inverse a−1 mod p{a^{-1} \bmod p}. The vertex 0{0} is connected to 1{1}, to p−1{p-1}, and has a self-loop. Counting self-loops, the graph is 3-regular: it is the union of a cycle over Vp{V_p} and of a matching over the p−3{p-3} vertices Vp−{0,1,p−1}{V_p - \{ 0,1,p-1 \}}; the vertices 0{0}, 1{1}, p−1{p-1} have a self-loop each. There is a constant h>0{h>0} such that, for each p{p}, the graph Gp{G_p} has edge expansion at least h{h}. Unfortunately, no elementary proof of this fact is known. The graph G59{G_{59}} is shown in the picture below.

 (image unavailable)

Constructions based on the zig-zag graph product, which we shall see next, are more complicated to describe, but much simpler to analyze.

We begin by describing a building block in the construction, which is also an independently interesting construction: a family of expanders with polylogarithmic degree, which have both a very simple description and a very simple analysis.

1. Expanders of Logarithmic Degree

Let p{p} be a prime and t<p{t <p}. We’ll construct a p2{p^2}-regular multigraph LDp,t{LD_{p,t}} with pt+1{p^{t+1}} vertices. The vertex set of the graph will be the (t+1){(t+1)}-dimensional vector space Fpt+1{{\mathbb F}_p^{t+1}} over Fp{{\mathbb F}_p}.

For each vertex x∈Fpt+1{x\in {\mathbb F}_p^{t+1}}, and every two scalars a,b∈F{a,b\in {\mathbb F}}, we have the edges (x,x+(b,ab,a2b,…,atb){(x, x + (b,ab,a^2b,\ldots,a^tb)}.

In other words, the graph LDp,t{LD_{p,t}} is a Cayley graph of the additive group of Fpt+1{{\mathbb F}_p^{t+1}}, constructed using the generating multiset

S:={(b,ab,…,atb):a,b∈Fpt+1}\displaystyle S:= \{ (b,ab,\ldots,a^t b) : a,b \in {\mathbb F}^{t+1}_p \}

Note that the generating set is symmetric, that is, if s∈S{s\in S} then −s∈S{-s \in S} (with the same multiplicity), and so the resulting multigraph is undirected.

Let Ap,t{A_{p,t}} be the adjacency matrix of LDp,t{LD_{p,t}} and Lp,t:=I−p−2Ap,t{L_{p,t} := I - p^{-2} A_{p,t}} be the normalized Laplacian matrix. We will prove the following bound on the eigenvalues of Lp,t{L_{p,t}}.

Theorem 1 For every prime p{p} and every t<p{t<p}, if we let 0=λ1≤λ2≤⋯λn{0=\lambda_1 \leq \lambda_2 \leq \cdots \lambda_n} be the eigenvalues of M{M} with multiplicities, then, for every i∈{2,…,n}{i\in \{ 2,\ldots, n\}}

1−tp≤λi≤1\displaystyle 1- \frac tp \leq \lambda_i \leq 1

For example, setting t=⌊p/2⌋{t = \lfloor p/2 \rfloor} gives us a family of graphs such that λ2≥1/2{\lambda_2 \geq 1/2} for each graph in the family, and hence ϕ(G)≥1/4{\phi(G) \geq 1/4}, and the number of vertices is pp/2{p^{p/2}}, while the degree is p2{p^2}, meaning the degree is O((log⁡n/log⁡log⁡n)2){O((\log n / \log\log n)^2)}.

Proof: We will compute the eigenvalues of the adjacency matrix of Ap,t{A_{p,t}}, and prove that, except the largest one which is p2{p^2}, all the others are non-negative and at most pt{pt}.

Recall our characterization of the eigenvalues of the adjacency matrix of a Cayley multigraph Cay(Γ,S){Cay(\Gamma,S)} of an abelian group Γ{\Gamma} with generating multiset S{S}: we have one eigenvector for each character χ{\chi} of the group, and the corresponding eigenvalue is ∑s∈Sχ(s){\sum_{s\in S} \chi(s)}.

What are the characters of the additive group of Fpt+1{{\mathbb F}_p^{t+1}}? It is the product of t+1{t+1} copies of the additive group of Fp{{\mathbb F}_p}, or, equivalently, the product of t+1{t+1} copies of the cyclic group Z/pZ{{\mathbb Z}/p{\mathbb Z}}. Following our rules for constructing the character of the cyclic group and of products of groups, we see that the additive group of Fpt+1{{\mathbb F}_p^{t+1}} has one character for each (c0,…,ct)∈Fpt+1{(c_0,\ldots,c_t) \in {\mathbb F}_p^{t+1}}, and the corresponding character is

χc0,…,ct(x0,…,xt):=ω∑i=0tcixi\displaystyle \chi_{c_0,\ldots,c_t} (x_0,\ldots,x_t) := \omega^{\sum_{i=0}^t c_i x_i }

where

ω:=e2πip\displaystyle \omega := e^{\frac{2\pi i }{p}}

Thus, for each (c0,…,ct)∈Ftp{(c_0,\ldots,c_t) \in {\mathbb F}^p_t}, we have an eigenvalue

λc0,…,ct:=∑a,b∈Fpω∑i=0tcibai\displaystyle \lambda_{c_0,\ldots,c_t} := \sum_{a,b \in {\mathbb F}_p} \omega^{\sum_{i=0}^t c_i b a^i }

When (c0,…,ct)=(0,…,0){(c_0,\ldots,c_t) = (0,\ldots,0)} then the corresponding character is always equal to one, and the corresponding eigenvalue is p2{p^2}.

Now consider any (c0,…,ct)≠(0,…,0){(c_0,\ldots,c_t) \neq (0,\ldots,0)}, and define the polynomial q(x)=∑i=0tcixi∈Fp[x]{q(x) = \sum_{i=0}^t c_i x^i \in {\mathbb F}_p[x]}. Note that it is a non-zero polynomial of degree at most t{t}, and so it has at most t{t} roots. The eigenvalue corresponding to (c0,…,ct){(c_0,\ldots,c_t)} is

λc0,…,ct=∑a,b∈Fpω∑i=0tb⋅q(a)\displaystyle \lambda_{c_0,\ldots,c_t} = \sum_{a,b \in {\mathbb F}_p} \omega^{\sum_{i=0}^t b\cdot q(a) }

=∑a:q(a)=0∑bω0+∑a:q(a)≠0∑bωb⋅q(a)\displaystyle = \sum_{a: q(a) = 0} \sum_b \omega^0 + \sum_{a: q(a) \neq 0} \sum_b \omega^{b \cdot q(a)}

=p⋅∣{a∈Fp:q(a)=0}∣\displaystyle = p \cdot | \{ a\in {\mathbb F}_p : q(a) = 0 \} |

where we use the fact that, for every q≠0{q\neq 0}, the sum ∑bωb⋅q{\sum_b \omega^{b \cdot q}} equals zero, since it is the sum of the values of the non-trivial character x→ωx⋅q{x \rightarrow \omega^{x\cdot q}}, and we proved that, for every non-trivial character, the sum is zero.

In conclusion, we have

0≤λc0,…,ct≤pt\displaystyle 0 \leq \lambda_{c_0,\ldots,c_t} \leq p t

□\Box

2. The Zig-Zag Graph Product

Given a d{d}-regular graph G{G} with adjacency matrix A{A}, if λ1≥λ2≥…≥λn{\lambda_1 \geq \lambda_2 \geq \ldots\geq \lambda_n} are the eigenvalues of A{A} with multiplicities we define

λ(G):=max⁡i=2,…,n{∣λi∣}\displaystyle \lambda(G) := \max_{i=2,\ldots,n } \{ |\lambda_i| \}

In particular, λ(G)≥λ2{\lambda(G) \geq \lambda_2}, and if we are able to construct a family of graphs such that λ(G){\lambda(G)} is at most a fixed constant bounded away from one times d{d}, then we have a family of expanders. (Our construction will be inductive and, as often happens with inductive proofs, it will be easier to maintain this stronger property than the property that λ2{\lambda_2} is bounded away from one.)

Given graphs G{G} and H{H} of compatible sizes, with small degree and large edge expansion, the zig zag product Gz◯H{G \textcircled{\rm z} H} is a method of constructing a larger graph also with small degree and large edge expansion.

If:

  • G{G} a D{D}-regular graph on n{n} vertices, with λ(G)≤αD{\lambda(G) \le \alpha D}
  • H{H} a d{d}-regular graph on D{D} vertices, with λ(H)≤βd{\lambda(H) \le \beta d}

Then:

  • Gz◯H{G \textcircled{\rm z} H} a d2{d^2}-regular graph on nD{nD} vertices, with λ(Gz◯H)≤(α+β+β2)d2{\lambda(G\textcircled{\rm z} H) \le (\alpha +\beta + \beta^2) d^2 }.

We will see the construction and analysis of the zig zag product in the next lecture.

For the remainder of today, we’ll see how to use the zig zag product to construct arbitrarily large graphs of fixed degree with large edge expansion.

Fix a large enough constant d{d}. (1369=372{1369 = 37^2} will do.) Construct a d{d}-regular graph H{H} on d4{d^4} vertices with λ2(H)≤d/5{\lambda_2(H) \le d/5}. (For example LD37,7{LD_{37,7}} is a degree 372{37^2} graph on 37(7+1)=(372)4{37^{(7+1)} = (37^2)^4} vertices with λ2≤37×7<372/5{\lambda_2 \le 37 \times 7 < 37^2/5}.)

For any graph G{G}, let G2{G^2} represent the graph on the same vertex set whose edges are the paths of length two in G{G}. Thus G2{G^2} is the graph whose adjacency matrix is the square of the adjacency matrix of G{G}. Note that if G{G} is r{r}-regular then G2{G^2} is r2{r^2}-regular

Using the H{H} from above we’ll construct inductively, a family of progressively larger graphs, all of which are d2{d^2}-regular and have λ≤d2/2{\lambda \le d^2/2}.

Let G1=H2{G_1 = H^2}. For k≥1{k \ge 1} let Gk+1=(Gk2)z◯H{G_{k+1} = (G_k^2) \textcircled{\rm z} H}.

Theorem 2 For each k≥1{k\ge 1}, Gk{G_k} has degree d2{d^2} and λ(Gk)≤d2/2{\lambda(G_k) \le d^2/2}.

Proof: We’ll prove this by induction. Base case: G1=H2{G_1 = H^2} is d2{d^2}-regular. Also, λ(H2)=(λ(H))2≤d2/25{\lambda(H^2) = (\lambda(H))^2 \le d^2/25}.

Inductive step: Assume the statement for k{k}, that is, Gk{G_k} has degree d2{d^2} and λ(Gk)≤d2/2{\lambda(G_k) \le d^2/2}. Then Gk2{G_k^2} has degree d4=∣V(H)∣{d^4 = |V(H)|}, so that the product (Gk2)z◯H{(G_k^2) \textcircled{\rm z} H} is defined. Moreover, λ(Gk2)≤d4/4{\lambda(G_k^2) \le d^4/4}. Applying the construction, we get that Gk+1{G_{k+1}} has degree d2{d^2} and λ(Gk+1)≤(14+15+125)d2=46100d2{\lambda(G_{k+1}) \le (\frac14 + \frac15 + \frac1{25})d^2 = \frac{46}{100} d^2} This completes the proof. □\Box

Finally note that Gk{G_k} has d4k{d^{4k}} vertices.