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 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 .
The statement
Let be a weighted graph without isolated vertices, its normalized Laplacian with eigenvalues , and the conductance as defined in Edge Expansion and Conductance: .
Theorem (Cheeger's inequality for graphs).
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 -regular graph, and , so the theorem reads . For the lazy walk of Conductance and the Cheeger Bound, the spectral gap is and the chain conductance is ; the statement there, , 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:
By Courant-Fischer applied to and the substitution (The Normalized Laplacian),
Proof. Let attain and put , . Use the test vector . It satisfies the constraint, . Only cut edges contribute to the numerator, each , and the denominator is . So
The bound is attained by the hypercube : and .
The hard side:
The proof is an algorithm. Take an eigenvector of , set , sort the vertices so that , and look at the sweep sets .
Theorem. .
Proof sketch
- Centre at the volume median. Shift by a constant so that and each have volume at most . The numerator of the Rayleigh quotient does not change, and the denominator can only grow, since means minimizes it. So the shifted vector still has Rayleigh quotient at most .
- Keep one sign. Split into its positive and negative parts. Edge by edge, , so one of or has . Its support has at most half the volume.
- Random threshold. Scale so that , choose with density (so ), and let . Then , while an edge is cut with probability , so by Cauchy-Schwarz
using . Hence , and some must achieve . Every has volume at most half, so this is . Every 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, ) and a "sum" term, and Cauchy-Schwarz pays a square root. The cycle shows it cannot be avoided: while , so , the order of the upper bound.
Checking both sides
The program computes the three quantities on graphs with 12 to 16 vertices: , the exact by trying all subsets, and the best sweep set of the Fiedler vector, which must lie between and .
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 , and on these structured graphs the sweep cut is exactly optimal. The graphs were chosen with a simple (or, for the cycle, one whose eigenvectors all give the same sweep sets): when 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?
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, tends to : the hard side is tight up to that constant, and is quadratically smaller than . For hypercubes, 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 , Cheeger's inequality reads:
Which test vector proves ?
- The Fiedler vector
- for an optimal
- The degree vector
Which family shows that the square root in is necessary?
- Complete graphs
- Hypercubes
- Cycles, with and
- Stars
In the proof of the hard side, why is the threshold drawn with density ?
- To make it uniform
- So that , which makes the expected volume equal , the denominator of the Rayleigh quotient
- To minimize the cut
- It is arbitrary