Expander walk sampling

From HandWiki

In the mathematical discipline of graph theory, the expander walk sampling theorem intuitively states that sampling vertices in an expander graph by doing relatively short random walk can simulate sampling the vertices independently from a uniform distribution. The earliest version of this theorem is due to (Ajtai Komlós), and the more general version is typically attributed to (Gillman 1998).

Statement

Let G=(V,E) be an n-vertex expander graph with positively weighted edges, and let A⊂V. Let P denote the stochastic matrix of the graph, and let λ2 be the second largest eigenvalue of P. Let y0,y1,…,yk−1 denote the vertices encountered in a (k−1)-step random walk on G starting at vertex y0, and let π(A):= limk→∞1k∑i=0k−1𝟏A(yi). Where 𝟏A(y){1,if y∈A0,otherwise 

(It is well known[1] that almost all trajectories y0,y1,…,yk−1 converges to some limiting point, π(A), as k→∞.)

The theorem states that for a weighted graph G=(V,E) and a random walk y0,y1,…,yk−1 where y0 is chosen by an initial distribution 𝐪, for all γ>0, we have the following bound:

Pr⁡[|1k∑i=0k−1𝟏A(yi)−π(A)|≥γ]≤Ce−120(γ2(1−λ2)k).

Where C is dependent on 𝐪,G and A.

The theorem gives a bound for the rate of convergence to π(A) with respect to the length of the random walk, hence giving a more efficient method to estimate π(A) compared to independent sampling the vertices of G.

Proof

In order to prove the theorem, we provide a few definitions followed by three lemmas.

Let wxy be the weight of the edge xy∈E(G) and let wx=∑y:xy∈E(G)wxy. Denote by π(x):=wx/∑y∈Vwy. Let 𝐪π be the matrix with entries𝐪(x)π(x) , and let Nπ,𝐪=||𝐪π||2.

Let D=diag(1/wi) and M=(wij). Let P(r)=PEr where P is the stochastic matrix, Er=diag(er𝟏A) and r≥0. Then:

P=DSD−1andP(r)=DEr−1S(r)ErD−1

Where S:=DMD and S(r):=DErMDEr. As S and S(r) are symmetric, they have real eigenvalues. Therefore, as the eigenvalues of S(r) and P(r) are equal, the eigenvalues of P(r) are real. Let λ(r) and λ2(r) be the first and second largest eigenvalue of P(r) respectively.

For convenience of notation, let tk=1k∑i=0k−1𝟏A(yi), ϵ=λ−λ2, ϵr=λ(r)−λ2(r), and let 𝟏 be the all-1 vector.

Lemma 1

Pr⁡[tk−π(A)≥γ]≤e−rk(π(A)+γ)+klog⁡λ(r)(𝐪P(r)k𝟏)/λ(r)k

Proof:

By Markov's inequality,

Pr⁡[tk≥π(A)+γ]=Pr⁡[ertk≥erk(π(A)+γ)]≤e−rk(π(A)+γ)E𝐪ertk

Where E𝐪 is the expectation of x0 chosen according to the probability distribution 𝐪. As this can be interpreted by summing over all possible trajectories x0,x1,...,xk, hence:

E𝐪ert=∑x1,x2,...,xkert𝕢(x0)Πi=1kpxi−1xi=𝐪P(r)k𝟏

Combining the two results proves the lemma.

Lemma 2

For 0≤r≤1,

(𝐪P(r)k𝟏)/λ(r)k≤(1+r)Nπ,𝐪

Proof:

As eigenvalues of P(r) and S(r) are equal,

(𝐪P(r)k𝟏)/λ(r)k=(𝐪PDEr−1S(r)kD−1Er𝟏)/λ(r)k≤er/2||𝐪π||2||S(r)k||2||π||2/λ(r)k≤er/2Nπ,𝐪≤(1+r)Nπ,𝐪◻

Lemma 3

If r is a real number such that 0≤er−1≤ϵ/4,

log⁡λ(r)≤rπ(A)+5r2/ϵ

Proof summary:

We Taylor expand log⁡λ(y) about point r=z to get:

log⁡λ(r)=log⁡λ(z)+mz(r−z)+(r−z)2∫01(1−t)Vz+(r−z)tdt

Where mx and Vx are first and second derivatives of log⁡λ(r) at r=x. We show that m0=limk→∞tk=π(A). We then prove that (i) ϵr≥3ϵ/4 by matrix manipulation, and then prove (ii)Vr≤10/ϵ using (i) and Cauchy's estimate from complex analysis.

The results combine to show that

log⁡λ(r)=log⁡λ(0)+m0r+r2∫01(1−t)Vrtdt≤rπ(A)+5r2/ϵ
A line to line proof can be found in Gilman (1998)[1]

Proof of theorem

Combining lemma 2 and lemma 3, we get that

Pr⁡[tk−π(A)≥γ]≤(1+r)Nπ,𝐪e−k(rγ−5r2/ϵ)

Interpreting the exponent on the right hand side of the inequality as a quadratic in r and minimising the expression, we see that

Pr⁡[tk−π(A)≥γ]≤(1+γϵ/10)Nπ,𝐪e−kγ2ϵ/20

A similar bound

Pr⁡[tk−π(A)≤−γ]≤(1+γϵ/10)Nπ,𝐪e−kγ2ϵ/20

holds, hence setting C=2(1+γϵ/10)Nπ,𝐪 gives the desired result.

Uses

This theorem is useful in randomness reductions in the study of derandomization,[2] showing that expander random walks are good pseudorandom generators against various classes of test functions. Sampling from an expander walk is an example of a randomness-efficient sampler. Note that the number of bits used in sampling k independent samples from f is klog⁡n, whereas if we sample from an infinite family of constant-degree expanders this costs only log⁡n+O(k). Such families exist and are efficiently constructible, e.g. the Ramanujan graphs of Lubotzky-Phillips-Sarnak.

References

  1. ↑ Doob, J.L. (1953). Stochastic Processes. Theorem 6.1: Wiley. 
  2. ↑ Anand, Emile (2025). "Towards the Pseudorandomness of Expander Random Walks for Read-Once ACC0 circuits". arXiv:2501.07752 [cs.CC].
  • Ajtai, M.; Komlós, J.; Szemerédi, E. (1987). "Deterministic simulation in LOGSPACE". STOC '87. pp. 132–140. doi:10.1145/28395.28410. ISBN 0897912217. 
  • Gillman, D. (1998). "A Chernoff Bound for Random Walks on Expander Graphs". SIAM Journal on Computing (Society for Industrial and Applied Mathematics) 27 (4): 1203–1220. doi:10.1137/S0097539794268765. 
  • Doob, J.L. (1953), Stochastic Processes, Theorem 6.1, Wiley 
  • Anand, Emile (2025). "Towards the Pseudorandomness of Expander Random Walks for Read-Once ACC0 circuits". arXiv:2501.07752 [cs.CC].