TExcelTAD
Home › Randomized Algorithms & Probabilistic Analysis › Conductance and the Cheeger Bound

Conductance and the Cheeger Bound

The barbell graph of Stationary Distributions and Mixing Time mixed slowly because half of the probability had to squeeze through one edge. Conductance turns that picture into a number: the smallest rate at which probability can flow out of a set, relative to the set's own weight. It gives a lower bound on the mixing time for every chain and, through a Cheeger-type inequality, an upper bound for reversible ones. This lesson defines it, states both bounds (proofs are in the references), and computes everything exactly for small graphs.

Definitions

Let PP be an irreducible chain on Ω\Omega with stationary distribution π\pi. The ergodic flow from xx to yy is Q(x,y)=π(x)P(x,y)Q(x, y) = \pi(x)P(x, y), the probability that the stationary chain steps from xx to yy; for a set SS, Q(S,S‾)=∑x∈S,y∉SQ(x,y)Q(S, \overline S) = \sum_{x \in S, y \notin S} Q(x, y). The conductance (or bottleneck ratio) of SS and of the chain are

Φ(S)=Q(S,S‾)π(S),Φ∗=min⁡S: 0<π(S)≤1/2Φ(S).\Phi(S) = \frac{Q(S, \overline{S})}{\pi(S)}, \qquad \Phi_* = \min_{S:\ 0 < \pi(S) \le 1/2} \Phi(S).

Φ(S)\Phi(S) is the probability that the stationary chain, conditioned on being in SS, leaves SS in the next step. For the lazy random walk on a dd-regular graph with nn vertices, π\pi is uniform and P(x,y)=12dP(x, y) = \frac{1}{2d} for neighbours, so

Φ(S)=∣E(S,S‾)∣2d ∣S∣,\Phi(S) = \frac{\lvert E(S, \overline S) \rvert}{2d\,\lvert S \rvert},

the number of edges leaving SS per unit of "volume" inside it, up to the factor 12\frac12 from laziness. Graphs whose conductance stays bounded below by a constant as they grow are expanders.

The bounds

Lower bound (Levin, Peres and Wilmer, Theorem 7.4). For every chain,

tmix≥14Φ∗.t_{\text{mix}} \ge \frac{1}{4\Phi_*} .

Idea: start the chain from π\pi restricted to a bad set SS. Per step, at most a Φ(S)\Phi(S) fraction of that mass leaves SS, so after fewer than about 14Φ(S)\frac{1}{4\Phi(S)} steps the chain still sits in SS with probability far above π(S)≤12\pi(S) \le \frac12.

Upper bound (the Cheeger inequality for Markov chains; Jerrum and Sinclair, 1989; Lawler and Sokal, 1988). Let the chain be reversible (π(x)P(x,y)=π(y)P(y,x)\pi(x)P(x, y) = \pi(y)P(y, x)) and lazy, and let γ=1−λ2\gamma = 1 - \lambda_2 be its spectral gap, where λ2\lambda_2 is the second largest eigenvalue of PP. Then

Φ∗22≤γ≤2Φ∗,\frac{\Phi_*^2}{2} \le \gamma \le 2\Phi_* ,

and the spectral gap controls mixing (Levin, Peres and Wilmer, Theorem 12.4): tmix(ε)≤1γln⁡1ε πmin⁡t_{\text{mix}}(\varepsilon) \le \frac{1}{\gamma} \ln \frac{1}{\varepsilon\, \pi_{\min}}, with πmin⁡=min⁡xπ(x)\pi_{\min} = \min_x \pi(x). Combining,

tmix(ε)≤2Φ∗2ln⁡1ε πmin⁡.t_{\text{mix}}(\varepsilon) \le \frac{2}{\Phi_*^2} \ln \frac{1}{\varepsilon\,\pi_{\min}} .

So, up to the square and a logarithmic factor, a chain mixes fast exactly when it has no bottleneck. The square cannot be removed in general: the cycle has Φ∗=Θ(1/n)\Phi_* = \Theta(1/n) and mixing time Θ(n2)\Theta(n^2).

These statements are given here without proof. The lower bound is a short argument; the upper half of the Cheeger inequality (γ≥Φ∗2/2\gamma \ge \Phi_*^2/2, the hard direction) is proved by a clever choice of test function in the variational characterisation of λ2\lambda_2. Both are in chapters 7, 12 and 13 of Levin, Peres and Wilmer, and the graph version is a central topic of Spectral Graph Theory & Modern Graph Algorithms.

Computing everything for small graphs

The program takes the three 12-node graphs of the mixing-time lab, finds Φ∗\Phi_* by trying all 2122^{12} subsets, computes the spectral gap of the lazy walk with NumPy (the walk is reversible, so D1/2PD−1/2D^{1/2} P D^{-1/2} is symmetric and has the same eigenvalues), and compares the bounds with the exact mixing time from the worst start.

python · try it yourself
import numpy as np
from math import log

def lazy_walk(n, edges):
    P = np.zeros((n, n))
    deg = np.zeros(n)
    for a, b in edges:
        deg[a] += 1
        deg[b] += 1
    for a, b in edges:
        P[a, b] += 1 / (2 * deg[a])
        P[b, a] += 1 / (2 * deg[b])
    P += np.eye(n) / 2
    return P, deg / deg.sum()

def conductance(P, pi):
    n = len(pi)
    masks = np.arange(1, 2 ** n - 1)
    S = (masks[:, None] >> np.arange(n)) & 1             # one row per subset, as 0/1 indicators
    Q = pi[:, None] * P                                   # ergodic flow Q(x, y)
    flow = ((S @ Q) * (1 - S)).sum(axis=1)                # Q(S, complement of S)
    piS = S @ pi
    phi = np.where(piS <= 0.5 + 1e-12, flow / piS, np.inf)
    return phi.min(), list(np.flatnonzero(S[phi.argmin()]))

def tmix(P, pi):
    dist = np.eye(len(pi))                 # row x = distribution after t steps from x
    for t in range(1, 2000):
        dist = dist @ P
        if (np.abs(dist - pi).sum(axis=1) / 2).max() <= 0.25:
            return t

n = 12
graphs = {
    "cycle": [(i, (i + 1) % n) for i in range(n)],
    "barbell": [(a + s, b + s) for s in (0, 6) for a in range(6) for b in range(a + 1, 6)] + [(5, 6)],
    "circulant": [(i, (i + j) % n) for i in range(n) for j in (1, 5)],
}
print("graph      Phi_*    gap    Phi^2/2 <= gap <= 2 Phi   1/(4 Phi)   t_mix   (1/gap) ln(4/pi_min)")
for name, edges in graphs.items():
    P, pi = lazy_walk(n, edges)
    phi, S = conductance(P, pi)
    d = np.sqrt(pi)
    lam = np.sort(np.linalg.eigvalsh((d[:, None] * P) / d[None, :]))[::-1]
    gap = 1 - lam[1]
    ok = phi ** 2 / 2 <= gap <= 2 * phi
    print(f"{name:9} {phi:6.4f}  {gap:6.4f}   {str(ok):>22}   {1 / (4 * phi):9.1f}   {tmix(P, pi):5}   {log(4 / pi.min()) / gap:20.1f}")
graph      Phi_*    gap    Phi^2/2 <= gap <= 2 Phi   1/(4 Phi)   t_mix   (1/gap) ln(4/pi_min)
cycle     0.0833  0.0670                     True         3.0      14                   57.8
barbell   0.0161  0.0253                     True        15.5      29                  154.1
circulant 0.1667  0.2500                     True         1.5       4                   15.5

In every row the true mixing time lies between the two bounds. The lower bound 1/(4Φ∗)1/(4\Phi_*) is within a small factor for the barbell, whose problem is precisely its bottleneck; the upper bound is loose by the logarithmic factor and the square. For the cycle, Φ∗=1/n\Phi_* = 1/n while the gap is 12(1−cos⁡2πn)≈π2/n2\frac12(1 - \cos\frac{2\pi}{n}) \approx \pi^2/n^2. At n=12n = 12 the two are still similar (0.083 against 0.067), but as nn grows the gap shrinks quadratically, and the square in the Cheeger inequality is what reconciles Φ∗=Θ(1/n)\Phi_* = \Theta(1/n) with Θ(n2)\Theta(n^2) mixing.

Conductance as the reason MCMC works or fails

The conductance view explains when sampling by a Markov chain is hopeless: if the state space has two large regions joined by a thin set of transitions, the chain stays stuck in one of them for a time of order 1/Φ∗1/\Phi_*, even though it eventually converges. This is what happens to local Markov chains for the Ising model below its critical temperature, or for sampling independent sets in bipartite graphs at high density, where "mostly left side" and "mostly right side" configurations are separated by a bottleneck. Proving rapid mixing (polynomial in the input size, while the state space is exponential) usually means proving a conductance or spectral-gap lower bound, by canonical paths (Jerrum and Sinclair, 1989, used it for counting perfect matchings approximately), by coupling, or by more recent spectral-independence methods.

The program makes the bottleneck visible for a family of "dumbbells": two cliques of size kk joined by one edge. Conductance falls like 1/k21/k^2 and the mixing time grows like k2k^2.

python · try it yourself
def dumbbell_stats(k):
    edges = [(a + s, b + s) for s in (0, k) for a in range(k) for b in range(a + 1, k)] + [(k - 1, k)]
    m = len(edges)
    phi = (1 / (4 * m)) / 0.5            # the bridge cut: flow 1/(4m), each side has weight 1/2
    n = 2 * k
    adj = [[] for _ in range(n)]
    for a, b in edges:
        adj[a].append(b)
        adj[b].append(a)
    pi = [len(x) / (2 * m) for x in adj]
    dist, t = [1.0] + [0.0] * (n - 1), 0     # start in the first clique, away from the bridge
    while sum(abs(p - q) for p, q in zip(dist, pi)) / 2 > 0.25:
        new = [p / 2 for p in dist]
        for u in range(n):
            for v in adj[u]:
                new[v] += dist[u] / (2 * len(adj[u]))
        dist, t = new, t + 1
    return phi, t

print("  k   Phi of the bridge cut   1/(4 Phi)   mixing time from node 0")
for k in [4, 6, 8, 12, 16]:
    phi, t = dumbbell_stats(k)
    print(f"{k:3}   {phi:21.5f}   {1 / (4 * phi):9.1f}   {t:23}")
  k   Phi of the bridge cut   1/(4 Phi)   mixing time from node 0
  4                 0.03846         6.5                        14
  6                 0.01613        15.5                        29
  8                 0.00877        28.5                        50
 12                 0.00376        66.5                       108
 16                 0.00207       120.5                       189

Test yourself

What does the conductance Φ(S)\Phi(S) of a set SS measure?

  1. The number of states in SS
  2. The probability that the stationary chain, conditioned on being in SS, leaves SS in one step
  3. The spectral gap restricted to SS
  4. The diameter of SS

Which lower bound on the mixing time holds for every chain?

  1. tmix≥1/(4Φ∗)t_{\text{mix}} \ge 1/(4\Phi_*)
  2. tmix≥Φ∗2t_{\text{mix}} \ge \Phi_*^2
  3. tmix≥1/πmin⁡t_{\text{mix}} \ge 1/\pi_{\min}
  4. tmix≥ln⁡nt_{\text{mix}} \ge \ln n

The Cheeger inequality for a lazy reversible chain relates the spectral gap γ\gamma and the conductance how?

  1. γ=Φ∗\gamma = \Phi_*
  2. Φ∗2/2≤γ≤2Φ∗\Phi_*^2/2 \le \gamma \le 2\Phi_*
  3. γ≤Φ∗2\gamma \le \Phi_*^2
  4. γ≥1/Φ∗\gamma \ge 1/\Phi_*

Two cliques of size kk joined by one edge: how does the lazy walk's mixing time grow with kk?

  1. Like log⁡k\log k
  2. Like kk
  3. Like k2k^2, because the bridge's conductance is Θ(1/k2)\Theta(1/k^2)
  4. It stays constant