TExcelTAD

Cheeger's Inequality

Conductance is a minimum over exponentially many sets and NP-hard to compute. The second eigenvalue of the normalized Laplacian is computable in polynomial time. Cheeger's inequality says the two are equivalent up to a square: a graph has a sparse cut if and only if ν2\nu_2 is small. One direction is a three-line test-vector argument; the other is constructive and comes with an algorithm, the sweep cut, that finds a set with conductance at most 2ν2\sqrt{2\nu_2}.

The statement

Let GG be a weighted graph without isolated vertices, N=I−D−1/2AD−1/2N = I - D^{-1/2}AD^{-1/2} its normalized Laplacian with eigenvalues 0=ν1≤ν2≤⋯0 = \nu_1 \le \nu_2 \le \cdots, and ϕ(G)\phi(G) the conductance as defined in Edge Expansion and Conductance: ϕ(S)=w(∂S)/min⁡(vol⁡S,vol⁡S‾)\phi(S) = w(\partial S)/\min(\operatorname{vol} S, \operatorname{vol} \overline S).

Theorem (Cheeger's inequality for graphs).

ν22  ≤  ϕ(G)  ≤  2ν2.\frac{\nu_2}{2} \;\le\; \phi(G) \;\le\; \sqrt{2\nu_2} .

The name comes from Cheeger's (1970) inequality for the Laplacian of a Riemannian manifold. The graph versions are due to Dodziuk (1984), Alon and Milman (1985) and Alon (1986) for regular graphs, and to Sinclair and Jerrum (1989) for reversible Markov chains; the form above, with these constants, is the one in Chung's book and in Spielman's notes.

Other normalizations. For a dd-regular graph, ν2=λ2(L)/d\nu_2 = \lambda_2(L)/d and ϕ=h/d\phi = h/d, so the theorem reads λ22≤h(G)≤2dλ2\frac{\lambda_2}{2} \le h(G) \le \sqrt{2d\lambda_2}. For the lazy walk of Conductance and the Cheeger Bound, the spectral gap is γ=ν2/2\gamma = \nu_2/2 and the chain conductance is Φ∗=ϕ/2\Phi_* = \phi/2; the statement there, Φ∗2/2≤γ≤2Φ∗\Phi_*^2/2 \le \gamma \le 2\Phi_*, is the same theorem with a weaker constant on the hard side. Always check which Laplacian and which conductance a paper uses before comparing constants.

The easy side: ν2≤2ϕ(G)\nu_2 \le 2\phi(G)

By Courant-Fischer applied to NN and the substitution y=D1/2xy = D^{1/2}x (The Normalized Laplacian),

ν2=min⁡x≠0, ∑vdvxv=0∑{u,v}∈Ewuv(xu−xv)2∑vdvxv2.\nu_2 = \min_{x \ne 0,\ \sum_v d_v x_v = 0} \frac{\sum_{\{u,v\} \in E} w_{uv}(x_u - x_v)^2}{\sum_v d_v x_v^2} .

Proof. Let SS attain ϕ(G)\phi(G) and put a=vol⁡(S)a = \operatorname{vol}(S), b=vol⁡(S‾)b = \operatorname{vol}(\overline S). Use the test vector x=1a1S−1b1S‾x = \frac{1}{a}\mathbf{1}_S - \frac{1}{b}\mathbf{1}_{\overline S}. It satisfies the constraint, ∑vdvxv=1−1=0\sum_v d_v x_v = 1 - 1 = 0. Only cut edges contribute to the numerator, each (1a+1b)2(\frac1a + \frac1b)^2, and the denominator is a⋅1a2+b⋅1b2=1a+1ba \cdot \frac{1}{a^2} + b \cdot \frac{1}{b^2} = \frac1a + \frac1b. So

ν2≤w(∂S)(1a+1b)≤2 w(∂S)min⁡(a,b)=2ϕ(G).□\nu_2 \le w(\partial S)\Big(\frac1a + \frac1b\Big) \le \frac{2\, w(\partial S)}{\min(a, b)} = 2\phi(G). \qquad \square

The bound is attained by the hypercube QdQ_d: ν2=λ2/d=2/d\nu_2 = \lambda_2/d = 2/d and ϕ=1/d\phi = 1/d.

The hard side: ϕ(G)≤2ν2\phi(G) \le \sqrt{2\nu_2}

The proof is an algorithm. Take an eigenvector yy of ν2\nu_2, set x=D−1/2yx = D^{-1/2}y, sort the vertices so that xv1≤xv2≤⋯≤xvnx_{v_1} \le x_{v_2} \le \cdots \le x_{v_n}, and look at the n−1n - 1 sweep sets Si={v1,…,vi}S_i = \{v_1, \ldots, v_i\}.

Theorem. min⁡iϕ(Si)≤2ν2\min_i \phi(S_i) \le \sqrt{2\nu_2}.

Proof sketch
  1. Centre at the volume median. Shift xx by a constant cc so that {x<0}\{x < 0\} and {x>0}\{x > 0\} each have volume at most 12vol⁡(V)\frac12\operatorname{vol}(V). The numerator of the Rayleigh quotient does not change, and the denominator ∑vdv(xv−c)2\sum_v d_v (x_v - c)^2 can only grow, since ∑vdvxv=0\sum_v d_v x_v = 0 means c=0c = 0 minimizes it. So the shifted vector still has Rayleigh quotient at most ν2\nu_2.
  2. Keep one sign. Split x=x+−x−x = x^+ - x^- into its positive and negative parts. Edge by edge, (xu−xv)2≥(xu+−xv+)2+(xu−−xv−)2(x_u - x_v)^2 \ge (x^+_u - x^+_v)^2 + (x^-_u - x^-_v)^2, so one of z=x+z = x^+ or z=x−z = x^- has R(z)=∑Ewuv(zu−zv)2∑vdvzv2≤ν2R(z) = \frac{\sum_E w_{uv}(z_u - z_v)^2}{\sum_v d_v z_v^2} \le \nu_2. Its support has at most half the volume.
  3. Random threshold. Scale zz so that max⁡z=1\max z = 1, choose t∈(0,1]t \in (0, 1] with density 2t2t (so Pr⁡[t2≤s]=s\Pr[t^2 \le s] = s), and let St={v:zv≥t}S_t = \{v : z_v \ge t\}. Then E[vol⁡(St)]=∑vdvzv2\mathbb{E}[\operatorname{vol}(S_t)] = \sum_v d_v z_v^2, while an edge is cut with probability ∣zu2−zv2∣\lvert z_u^2 - z_v^2 \rvert, so by Cauchy-Schwarz
E[w(∂St)]=∑Ewuv∣zu−zv∣ (zu+zv)≤∑Ewuv(zu−zv)2 ∑Ewuv(zu+zv)2≤R(z) 2 ∑vdvzv2,\mathbb{E}[w(\partial S_t)] = \sum_{E} w_{uv}\lvert z_u - z_v \rvert\, (z_u + z_v) \le \sqrt{\textstyle\sum_E w_{uv}(z_u - z_v)^2}\ \sqrt{\textstyle\sum_E w_{uv}(z_u + z_v)^2} \le \sqrt{R(z)}\, \sqrt{2}\, \textstyle\sum_v d_v z_v^2 ,

using (zu+zv)2≤2zu2+2zv2(z_u + z_v)^2 \le 2z_u^2 + 2z_v^2. Hence E[w(∂St)]≤2ν2 E[vol⁡(St)]\mathbb{E}[w(\partial S_t)] \le \sqrt{2\nu_2}\, \mathbb{E}[\operatorname{vol}(S_t)], and some tt must achieve w(∂St)≤2ν2vol⁡(St)w(\partial S_t) \le \sqrt{2\nu_2}\operatorname{vol}(S_t). Every StS_t has volume at most half, so this is ϕ(St)≤2ν2\phi(S_t) \le \sqrt{2\nu_2}. Every StS_t is a sweep set (or the complement of one), which proves the theorem.

Step 3 is the reason for the square root: the cut is controlled by a product of a "difference" sum (the numerator, ν2\nu_2) and a "sum" term, and Cauchy-Schwarz pays a square root. The cycle shows it cannot be avoided: ν2(Cn)=1−cos⁡2πn≈2π2n2\nu_2(C_n) = 1 - \cos\frac{2\pi}{n} \approx \frac{2\pi^2}{n^2} while ϕ(Cn)=2n\phi(C_n) = \frac{2}{n}, so ϕ≈2πν2\phi \approx \frac{\sqrt 2}{\pi}\sqrt{\nu_2}, the order of the upper bound.

Checking both sides

The program computes the three quantities on graphs with 12 to 16 vertices: ν2/2\nu_2/2, the exact ϕ(G)\phi(G) by trying all subsets, and the best sweep set of the Fiedler vector, which must lie between ϕ(G)\phi(G) and 2ν2\sqrt{2\nu_2}.

python · try it yourself
import numpy as np

def stats(n, edges):
    A = np.zeros((n, n))
    for u, v in edges:
        A[u, v] = A[v, u] = 1
    d = A.sum(axis=1)
    s = 1 / np.sqrt(d)
    vals, vecs = np.linalg.eigh(np.eye(n) - s[:, None] * A * s[None, :])
    nu2, x = float(vals[1]), vecs[:, 1] * s                 # x = D^(-1/2) y
    total = d.sum()
    def phi(mask):
        cut = sum(mask[u] != mask[v] for u, v in edges)
        vol = d[mask].sum()
        return cut / min(vol, total - vol)
    order = np.argsort(x, kind="stable")
    sweep = min(phi(np.isin(np.arange(n), order[:i])) for i in range(1, n))
    masks = np.arange(1, 2 ** (n - 1))                       # exhaustive: vertex n-1 always outside S
    S = ((masks[:, None] >> np.arange(n)) & 1).astype(bool)
    cut = np.zeros(len(masks))
    for u, v in edges:
        cut += S[:, u] != S[:, v]
    vol = S @ d
    exact = float((cut / np.minimum(vol, total - vol)).min())
    return nu2, exact, float(sweep)

graphs = {
    "path P_12": (12, [(i, i + 1) for i in range(11)]),
    "cycle C_16": (16, [(i, (i + 1) % 16) for i in range(16)]),
    "ladder 2 x 7": (14, [(i, i + 1) for i in range(6)] + [(7 + i, 8 + i) for i in range(6)] + [(i, i + 7) for i in range(7)]),
    "barbell 2 x K_6": (12, [(a + s, b + s) for s in (0, 6) for a in range(6) for b in range(a + 1, 6)] + [(5, 6)]),
    "3 x 5 grid": (15, [(5 * i + j, 5 * i + j + 1) for i in range(3) for j in range(4)] +
                      [(5 * i + j, 5 * (i + 1) + j) for i in range(2) for j in range(5)]),
}
print("graph             nu_2/2   phi(G)   best sweep   sqrt(2 nu_2)")
for name, (n, edges) in graphs.items():
    nu2, exact, sweep = stats(n, edges)
    print(f"{name:16} {nu2 / 2:7.4f}  {exact:7.4f}  {sweep:11.4f}  {np.sqrt(2 * nu2):13.4f}")
graph             nu_2/2   phi(G)   best sweep   sqrt(2 nu_2)
path P_12         0.0203   0.0909       0.0909         0.2846
cycle C_16        0.0381   0.1250       0.1250         0.3902
ladder 2 x 7      0.0401   0.1250       0.1250         0.4005
barbell 2 x K_6   0.0253   0.0323       0.0323         0.3183
3 x 5 grid        0.0725   0.1765       0.1765         0.5385

Every row satisfies ν2/2≤ϕ(G)≤sweep≤2ν2\nu_2/2 \le \phi(G) \le \text{sweep} \le \sqrt{2\nu_2}, and on these structured graphs the sweep cut is exactly optimal. The graphs were chosen with a simple ν2\nu_2 (or, for the cycle, one whose eigenvectors all give the same sweep sets): when ν2\nu_2 is repeated, as for the hypercube, the solver may return any vector of the eigenspace and the sweep cut depends on that choice. The gap between the two sides is widest for the path and the cycle, the graphs that make the square root necessary.

How tight is each side, as graphs grow?

python · try it yourself
import numpy as np

def nu2_of(n, edges):
    A = np.zeros((n, n))
    for u, v in edges:
        A[u, v] = A[v, u] = 1
    s = 1 / np.sqrt(A.sum(axis=1))
    return float(np.linalg.eigvalsh(np.eye(n) - s[:, None] * A * s[None, :])[1])

print("cycles C_n: phi = 2/n is the cut into two arcs")
for n in [16, 64, 256]:
    nu2 = nu2_of(n, [(i, (i + 1) % n) for i in range(n)])
    phi = 2 / n
    print(f"  n = {n:3}: nu_2/2 = {nu2 / 2:.5f}  phi = {phi:.5f}  sqrt(2 nu_2) = {np.sqrt(2 * nu2):.5f}"
          f"  phi / sqrt(nu_2) = {phi / np.sqrt(nu2):.4f}")
print("hypercubes Q_d: phi = 1/d is a dimension cut")
for d in [3, 5, 7]:
    n = 2 ** d
    nu2 = nu2_of(n, [(x, x ^ (1 << i)) for x in range(n) for i in range(d) if x < x ^ (1 << i)])
    print(f"  d = {d}: nu_2/2 = {nu2 / 2:.5f}  phi = {1 / d:.5f}  sqrt(2 nu_2) = {np.sqrt(2 * nu2):.5f}")
cycles C_n: phi = 2/n is the cut into two arcs
  n =  16: nu_2/2 = 0.03806  phi = 0.12500  sqrt(2 nu_2) = 0.39018  phi / sqrt(nu_2) = 0.4531
  n =  64: nu_2/2 = 0.00241  phi = 0.03125  sqrt(2 nu_2) = 0.09814  phi / sqrt(nu_2) = 0.4503
  n = 256: nu_2/2 = 0.00015  phi = 0.00781  sqrt(2 nu_2) = 0.02454  phi / sqrt(nu_2) = 0.4502
hypercubes Q_d: phi = 1/d is a dimension cut
  d = 3: nu_2/2 = 0.33333  phi = 0.33333  sqrt(2 nu_2) = 1.15470
  d = 5: nu_2/2 = 0.20000  phi = 0.20000  sqrt(2 nu_2) = 0.89443
  d = 7: nu_2/2 = 0.14286  phi = 0.14286  sqrt(2 nu_2) = 0.75593

For cycles, ϕ/ν2\phi/\sqrt{\nu_2} tends to 2/π≈0.4502\sqrt 2/\pi \approx 0.4502: the hard side is tight up to that constant, and ν2\nu_2 is quadratically smaller than ϕ\phi. For hypercubes, ν2/2=ϕ\nu_2/2 = \phi exactly: the easy side is tight. Both sides of Cheeger's inequality are therefore best possible up to constant factors.

Test yourself

With the normalized Laplacian and conductance ϕ(S)=w(∂S)/min⁡(vol⁡S,vol⁡S‾)\phi(S) = w(\partial S)/\min(\operatorname{vol} S, \operatorname{vol} \overline S), Cheeger's inequality reads:

  1. ν2≤ϕ≤2ν2\nu_2 \le \phi \le 2\nu_2
  2. ν2/2≤ϕ≤2ν2\nu_2/2 \le \phi \le \sqrt{2\nu_2}
  3. ϕ2≤ν2≤ϕ\phi^2 \le \nu_2 \le \phi
  4. ν2≤ϕ≤2ν2\sqrt{\nu_2} \le \phi \le 2\sqrt{\nu_2}

Which test vector proves ν2≤2ϕ(G)\nu_2 \le 2\phi(G)?

  1. The Fiedler vector
  2. 1vol⁡S1S−1vol⁡S‾1S‾\frac{1}{\operatorname{vol} S}\mathbf{1}_S - \frac{1}{\operatorname{vol} \overline S}\mathbf{1}_{\overline S} for an optimal SS
  3. 1S\mathbf{1}_S
  4. The degree vector

Which family shows that the square root in ϕ≤2ν2\phi \le \sqrt{2\nu_2} is necessary?

  1. Complete graphs
  2. Hypercubes
  3. Cycles, with ϕ=2/n\phi = 2/n and ν2≈2π2/n2\nu_2 \approx 2\pi^2/n^2
  4. Stars

In the proof of the hard side, why is the threshold tt drawn with density 2t2t?

  1. To make it uniform
  2. So that Pr⁡[v∈St]=zv2\Pr[v \in S_t] = z_v^2, which makes the expected volume equal ∑vdvzv2\sum_v d_v z_v^2, the denominator of the Rayleigh quotient
  3. To minimize the cut
  4. It is arbitrary