CS359G Lecture 18: Properties of Expanders

In which we prove properties of expander graphs.

1. Quasirandomness of Expander Graphs

Recall that if {G} is a {d}-regular graph, {A} is its adjacency matrix, and {M= \frac 1d A} is its normalized adjacency matrix, then, if we call {\lambda_1 \geq \lambda_2 \geq \ldots \geq \lambda_n} the eigenvalues of {M} with repetitions, we call {\lambda(G) := \max_{i=2,\ldots,n} \{ |\lambda_i| \}}, and we have

\displaystyle  \lambda(G) = || M - \frac 1n J ||

where {J} is the matrix with a one in each entry, and {|| \cdot ||} is the matrix norm {|| M ||:= \max_{x, ||x||=1} ||Mx||}.

Our fist result today is to show that, when {\lambda(G)} is small, the graph {G} has the following quasirandomness property: for every two disjoint sets {S,T}, the number of edges between {S} and {T} is close to what we would expect in a random graph of average degree {d}, that is, approximately {\frac d{|V|} |S| |T|}.

Lemma 1 (Expander Mixing Lemma) Let {G=(V,E)} be a {d}-regular graph, and let {S} and {T} be two disjoint subsets of vertices. Then

\displaystyle  \left| edges_G(S,T) - \frac d {|V|} \cdot |S|\cdot |T| \right| \leq \lambda(G) \cdot d \cdot \sqrt{|S|\cdot |T|}

Proof: We have

\displaystyle  edges_G(S,T) = d {\bf 1}_S^\top M {\bf 1}_T


\displaystyle  |S| |T| = {\bf 1}_S^\top J {\bf 1}_T


\displaystyle  \left| edges_G(S,T) - \frac d {|V|} \cdot |S|\cdot |T| \right|

\displaystyle  = d \cdot \left| {\bf 1}_S^\top M {\bf 1}_T - \frac 1 {|V|} {\bf 1}_S^\top J {\bf 1}_T \right|

\displaystyle  = d \cdot \left| {\bf 1}_S^\top \left( M - \frac 1 {|V|} J \right) {\bf 1}_T \right|

\displaystyle  \leq d \cdot || {\bf 1}_S || \cdot \left\| M - \frac 1 {|V|} J \right\| \cdot \| {\bf 1}_T \|

\displaystyle  = d \cdot \sqrt{|S|} \cdot \lambda(G) \cdot \sqrt{|T|}


Note that, for every disjoint {S,T}, we have {\sqrt {|A| \cdot |B|} \leq |V|/2}, and so the right-hand side in the expander mixing lemma is at most {\lambda(G) \cdot |E|}, which is a small fraction of the total number of edges if {\lambda} is small.

2. Random Walks in Expanders

A {t}-step random walk is the probabilistic process in which we start at a vertex, then we pick uniformly at random one of the edges incident on the vertices and we move to the other endpoint of the edge, and then repeat this process {t} times.

If {M} is the normalized adjacency matrix of an undirected regular graph {G}, then {M(u,v)} is the probability that, in one step, a random walk started at {u} reaches {v}. This is why the normalized adjacency matrix of a regular graph is also called its transition matrix.

Suppose that we start a random walk at a vertex chosen according to a probability distribution {{\bf p}}, which we think of as a vector {{\bf p} \in {\mathbb R}^V} such that {{\bf p}(u) \geq 0} for every {u} and {\sum_u {\bf p}(u) = 1}. After taking one step, the probability of being at vertex {v} is {\sum_u {\bf p}(u) M(u,v)}, which means that the probability distribution after one step is described by the vector {{\bf p}^\top \cdot M}, and because of the symmetric of {M}, this is the same as {M {\bf p}}.

Iterating the above reasoning, we see that, after a {t}-step random walk whose initial vertex is chosen according to distribution {{\bf p}}, the last vertex reached by the walk is distributed according to {M^t {\bf p}}.

The parameter {\lambda} of {M^t} is equal to {(\lambda(G))^t}, and so if {G} has a parameter {\lambda} bounded away from one, and if {t} is large enough, we have that the parameter {\lambda} of {M^t} is very small, and so {M^t} is close to {\frac 1n J} in matrix norm. If {M^t} was actually equal to {\frac 1n J}, then {M^t \cdot {\bf p}} would be equal to the uniform distribution, for every distribution {{\bf p}}. We would thus expect {M^t \cdot {\bf p}} to be close to the uniform distribution for large enough {t}.

Before formalizing the above intuition, we need to fix a good measure of distance for distributions. If we think of distributions as vectors, then a possible notion of distance between two distributions is the Euclidean distance between the corresponding vectors. This definition, however, has various shortcoming and, in particular, can assign small distance to distributions that are intuitively very different. For example, suppose that {{\bf p}} and {{\bf q}} are distributions that are uniform over a set {S}, and over the complement of {S}, respectively, where {S} is a set of size {|V|/2}. Then all the entries of {{\bf p}-{\bf q}} are {\pm 2/n} and so {|| {\bf p} - {\bf q} || = 2/\sqrt n}, which is vanishingly small even though distributions over disjoint supports should be considered as maximally different distributions.

A very good measure is the total variation distance, defined as

\displaystyle  \max_{S \subseteq V} \left| \sum_{v\in S} {\bf p}(v) - \sum_{v\in S} {\bf q} (v) \right|

that is, as the maximum over all events of the difference between the probability of the event happening with respect to one distribution and the probability of it happening with respect to the other distribution. This measure is usually called statistical distance in computer science. It is easy to check that the total variation distance between {{\bf p}} and {{\bf q}} is precisely {\frac 12 \cdot || {\bf p} - {\bf q}||_1}. Distributions with disjoint support have total variation distance 1, which is largest possible.

Lemma 2 (Mixing Time of Random Walks in Expanders) Let {G} be a regular graph, and {M} be its normalized adjacency matrix. Then for every distribution {{\bf p}} over the vertices and every {t}, we have

\displaystyle  || {\bf u} - M^t {\bf p} ||_1 \leq \sqrt {|V|} \cdot (\lambda(G))^t

where {{\bf u}} is the uniform distribution.

In particular, if {t > \frac c {1-\lambda(G)} \cdot \ln \frac {|V|}{\epsilon}}, then {||{\bf u} - M^t {\bf p}||_1 \leq \epsilon}, where {c} is an absolute constant.

Proof: Let {\bar J = J/|V|} be the normalized adjacency matrix of a clique with self-loops. Then, for every distribution {{\bf p}}, we have {\bar J {\bf p} = {\bf u}}. Recall also that {\lambda(G) = || M - \bar J||}.

We have

\displaystyle  || {\bf u} - M^t {\bf p} ||_1

\displaystyle  \leq \sqrt{|V|} \cdot || {\bf u} - M^t {\bf p} ||

\displaystyle  \leq \sqrt {|V|} \cdot || \bar J {\bf p} - M^t {\bf p} ||

\displaystyle  \leq \sqrt {|V|} \cdot || \bar J - M^t || \cdot ||{\bf p} ||

\displaystyle  \leq \sqrt{|V|} \cdot (\lambda(G))^t


The last result that we discussed today is one more instantiation of the general phenomenon that “if {\lambda(G)} is small then a result that is true for the clique is true, within some approximation, for {G}.”

Suppose that we take a {(t-1)}-step random walk in a regular graph {G} starting from a uniformly distributed initial vertex. If {G} is a clique with self-loops, then the sequence of {t} vertices encountered in the random walk is a sequence of {t} independent, uniformly distributed, vertices. In particular, if {f: V \rightarrow [0.1]} is a bounded function, the Chernoff-Hoeffding bounds tell us that the empirical average of {f()} over the {t} points of the random walk is very close to the true average of {f()}, except with very small probability, that is, if we denote by {v_1,\ldots,v_t} the set of vertices encountered in the random walk, we have

\displaystyle  \mathop{\mathbb P} \left [ \frac 1 t \sum_i f(v_i) \geq \mathop{\mathbb E} f + \epsilon \right] \leq e^{-2\epsilon^2 t}

where {n:=|V|}. A corresponding Chernoff-Hoeffding bound can be proved for the case in which the random walk is taken over a regular graph such that {\lambda(G)} is small.

Lemma 3 (Chernoff-Hoeffding Bound for Random Walks in Expanders) Let {G=(V,E)} be a regular graph, and {(v_1,\ldots,v_t)} the distribution of {t}-tuples constructed by sampling {v_1} independently, and then performing a {(t-1)}-step random walk starting at {v_1}. Let {f: V \rightarrow [0,1]} be any bounded function. Then

\displaystyle  \mathop{\mathbb P} \left[ \frac 1t \sum_i f(v_i) \geq \mathop{\mathbb E} f + \epsilon+ \lambda(G) \right] \leq e^{-\Omega(\epsilon^2 t)}

We will not prove the above result, but we briefly discuss one of its many applications.

Suppose that we have a polynomial-time probabilistic algorithm {A} that, on inputs of length {n}, uses {r(n)} random bits and then outputs the correct answer with probability, say, at least {2/3}. One standard way to reduce the error probability is to run the algorithm {t} times, using independent randomness each time, and then take the answer that comes out a majority of the times. (This is for problems in which we want to compute a function exactly; in combinatorial optimization we would run the algorithm {t} times and take the best solutions, and in an application in which the algorithm performs an approximate function evaluation we would run the algorithm {t} times and take the median. The reasoning that follows for the case of exact function computation can be applied to the other settings as well.)

On average, the number of iterations of the algorithms that give a correct answer is {\geq 2t/3}, and the cases in which the majority is erroneous correspond to cases in which the number of iterations giving a correct answer is {\leq t/2}. This means that the case in which the modified algorithm makes a mistake correspond to the case in which the empirical average of {t} independent 0/1 random variables deviates from its expectation by more than {2/3 - 1/2 = 1/6}, which can happen with probability at most {e^{-t/18}}, which becomes vanishingly small for large {t}.

This approach uses {t\cdot r(n)} random bits. Suppose, instead, that we consider the following algorithm: pick {t} random strings for the algorithm by performing a {t}-step random walk in an expander graph of degree {O(1)} with {2^{r(n)}} vertices and such that {\lambda(G) \leq 1/12}, and then take the majority answer. A calculation using the Chernoff bound for expander graphs show that the error probability is {e^{-\Omega(t)}}, and it is achieved using only {r(n) + O(t)} random bits instead of {t\cdot r(n)}.

3 thoughts on “CS359G Lecture 18: Properties of Expanders

  1. Pingback: CS359G Lecture 18: Properties of Expanders | in theory | Peter's ruminations

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s