Suppose we want to generate a uniformly random proper q-coloring of a graph G=(V,E). In general, the set Ω of proper colorings can be exponentially large, and even determining whether Ω is nonempty is NP-complete. We cannot hope to enumerate Ω and pick an element at random. Instead, we turn to a local Markov chain: start at an arbitrary valid coloring, repeatedly pick a random vertex and recolor it according to a simple local rule, and run this process until it “forgets” its starting state.
This chapter develops two fundamental perspectives for proving that such a local chain reaches equilibrium quickly. The first is coupling, which tracks two random trajectories simultaneously and gives a concrete, intuitive proof of rapid mixing for graph colorings whenever q>2Δ. The second is spectral analysis, which studies the transition matrix as a self-adjoint operator on a weighted L2 space; for reversible chains, this yields a clean spectral proof of the fundamental convergence theorem, and connects mixing rates to Dirichlet forms, Poincaré inequalities, and the geometry of bottlenecks via Cheeger’s inequality.
Reading guide. Part I (Course Content) is designed for two 120-minute classroom meetings: the first meeting (§§1.1–1.8) develops local Markov chains, detailed balance, the Metropolis rule, and coupling, culminating in the q>2Δ rapid-mixing theorem for graph colorings; the second meeting (§§1.9–1.16) develops the spectral decomposition of reversible chains, the fundamental convergence theorem, Poincaré inequalities, conductance, and Cheeger’s inequality. Part II (Reading Contents) develops essential extensions: path coupling, the general Metropolis–Hastings algorithm, random-to-top card shuffling, coupling from the past, strong stationary times, the complete sweep proof of Cheeger’s inequality, continuous-time variance decay, counting-to-sampling reductions, and canonical paths. Part III (Further Topics) records eight research directions with their main guarantees and literature pointers.
Throughout this chapter, state spaces are finite and chains are time-homogeneous. Distributions are treated as row vectors. For a graph G=(V,E), we write n=∣V∣ and let Δ denote its maximum degree. In the spectral sections, P is an irreducible, reversible transition matrix with stationary distribution π on Ω.
I. Course Content
1.1 From local moves to a sampler
Let G=(V,E) be a finite graph with n vertices and maximum degree Δ. Let Ω be the set of proper q-colorings of G, where a coloring σ:V→[q] is proper if σ(u)=σ(v) for all {u,v}∈E.
The simplest and most direct local random walk on Ω operates by a propose-and-validate rule—a Metropolis chain:
Given the current proper coloring σ∈Ω: 1. Choose a vertex v∈V uniformly at random (with probability 1/n). 2. Choose a candidate color c∈[q] uniformly at random (with probability 1/q). 3. Acceptance check: If assigning color c to vertex v yields a valid proper coloring—that is, if c∈/{σ(u):u∈N(v)}—accept the proposal and update σ(v)←c, leaving all other vertices unchanged. Otherwise, reject the proposal and stay at σ (σ′←σ).
Notice the operational simplicity of this rule: we do not need to compute or count the set of available colors at v; we simply draw a uniform pair (v,c) from V×[q] and perform a purely local validity check against the immediate neighbors N(v).
If the chosen color c happens to match the vertex’s current color σ(v), the move is always accepted and leaves the configuration unchanged. Furthermore, whenever c conflicts with a neighbor, the proposal is rejected, which also leaves the configuration unchanged. Thus, the chain naturally possesses a positive probability of staying put (a self-loop), which immediately rules out periodicity issues.
Every step of this procedure requires only O(deg(v))=O(Δ) time to execute. But to turn it into a provably sound sampling algorithm, we must resolve two fundamental questions:
Correctness: Does this simple propose-and-validate walk converge to the uniform distribution on Ω, or does it subtly favor certain colorings over others?
Efficiency: How many steps must we run before the current state is provably close to uniform?
1.2 Discrete Markov chains and equilibrium
We consider discrete-time Markov chains on a finite state space Ω.
Definition 1 (Discrete Markov chain) A sequence of random variables (Xt)t≥0 taking values in Ω is a Markov chain if, for all t≥0 and all states x0,…,xt+1∈Ω, P(Xt+1=xt+1∣Xt=xt,…,X0=x0)=P(Xt+1=xt+1∣Xt=xt). The chain is time-homogeneous if this transition probability does not depend on t. In that case, its transitions are governed by the matrix P∈RΩ×Ω: P(x,y)=P(Xt+1=y∣Xt=x).
Every row of P is a probability distribution: P(x,y)≥0 and ∑y∈ΩP(x,y)=1. If μt denotes the distribution of Xt (represented as a row vector in RΩ), the law of total probability gives μt+1=μtP,and henceμt=μ0Pt. The transition matrix P and the initial distribution μ0 completely determine the law of the chain at any time t.
Definition 2 (Stationary distribution) A probability distribution π on Ω is stationary for P if πP=π. In other words, if X0∼π, then Xt∼π for all t≥0.
Three fundamental questions immediately arise: - Existence: Does a stationary distribution always exist? - Uniqueness: When is π unique? - Convergence: Under what conditions does μt=μ0Pt converge to π as t→∞ from any initial distribution μ0?
For finite state spaces, Perron–Frobenius ensures that a stationary distribution always exists. It is unique if the chain is irreducible (the transition graph is strongly connected, meaning every state can eventually reach every other state). Convergence from every initial state additionally requires aperiodicity (the chain does not become trapped in a deterministic cycle of length >1). In Section 1.12, we will give a complete spectral proof of this convergence for reversible chains, showing exactly how each of these conditions enters.
1.3 Time reversal and detailed balance
Suppose a chain is running at stationarity: Xt∼π for all t. The quantity π(x)P(x,y) represents the probability that the chain is at x at time t and moves to y at time t+1. We call π(x)P(x,y) the probability flow from x to y at equilibrium.
If we observe this stationary process running backwards in time, Bayes’ rule gives the transition probability of the reversed process: P(y,x)=P(Xt=x∣Xt+1=y)=P(Xt+1=y)P(Xt=x,Xt+1=y)=π(y)π(x)P(x,y).
Definition 3 (Reversibility and detailed balance) A Markov chain P is reversible with respect to a distribution π if the forward process and the time-reversed process have identical transition probabilities: P(x,y)=P(x,y). Equivalently, π(x)P(x,y)=π(y)P(y,x)for all x,y∈Ω. These equations are called the detailed balance conditions.
Detailed balance states that at equilibrium, the flow from x to y exactly balances the reverse flow from y to x along every transition. Summing over all x immediately implies that π is stationary:
Proof
For every state y∈Ω, x∈Ω∑π(x)P(x,y)=x∈Ω∑π(y)P(y,x)=π(y)x∈Ω∑P(y,x)=π(y). Hence πP=π.
Stationary ⇒ reversible. On the directed 3-cycle 1→2→3→1, the uniform law π=(1/3,1/3,1/3) is stationary (inflow equals outflow at each state), yet P(1,2)=1=0=P(2,1). Detailed balance forbids net probability circulation at equilibrium.
Stationarity only requires that the total flow into y equals the total flow out of y (∑xπ(x)P(x,y)=π(y)). Detailed balance is a much stronger condition, but it is vastly easier to verify in practice because it is purely local.
A classic example is a simple random walk on a connected undirected graph G=(V,E). If the walk chooses a neighbor of the current vertex uniformly at random, then P(u,v)=1/deg(u) for every edge {u,v}∈E. Setting π(u)∝deg(u) satisfies detailed balance: π(u)P(u,v)∝deg(u)⋅deg(u)1=1=deg(v)⋅deg(v)1∝π(v)P(v,u). On a regular graph, vertex degrees are equal, so the stationary distribution is uniform.
1.4 The Metropolis algorithm and the coloring chain
Detailed balance (π(x)P(x,y)=π(y)P(y,x)) guarantees that π is stationary. Conversely, given a target distribution π on a large state space Ω, how can we systematically design a local transition matrix P that satisfies detailed balance?
The Metropolis algorithm (Metropolis, Rosenbluth, Rosenbluth, Teller, and Teller, 1953) provides a general recipe. Suppose we start with a symmetric proposal mechanismQ on Ω: for any pair of states x,y∈Ω, Q(x,y)=Q(y,x), where Q(x,y) is the probability of proposing a move to y when currently at x. (For instance, Q might choose a uniform neighbor in an undirected regular graph on Ω, or pick a coordinate and a candidate value uniformly at random.)
From the current state x∈Ω, one step of the Metropolis algorithm proceeds as follows: 1. Proposal: Draw a candidate state y∈Ω according to Q(x,⋅). 2. Acceptance: Accept the move to y with probability α(x,y)=min{1,π(x)π(y)}. If accepted, set Xt+1=y; if rejected, remain at Xt+1=x.
For distinct states x=y, the transition probability is therefore P(x,y)=Q(x,y)α(x,y)=Q(x,y)min{1,π(x)π(y)}, and the self-loop probability is P(x,x)=1−∑y=xP(x,y).
Proposition 1 (Detailed balance of the Metropolis algorithm) Let Q be any symmetric proposal distribution on Ω, and let π be a probability distribution on Ω with π(x)>0 for all x∈Ω. Then the Metropolis chain P satisfies detailed balance with respect to π: π(x)P(x,y)=π(y)P(y,x)for all x,y∈Ω. In particular, π is stationary for P.
Proof. For x=y, the balance equation is trivial. For distinct states x=y, π(x)P(x,y)=π(x)Q(x,y)min{1,π(x)π(y)}=Q(x,y)min{π(x),π(y)}. Since Q(x,y)=Q(y,x) and min{π(x),π(y)} is symmetric in x and y, the right-hand side equals Q(y,x)min{π(y),π(x)}=π(y)P(y,x). Summing over x∈Ω gives πP=π.
Crucially, the Metropolis rule never requires the normalizing constant of π. If π(x)=w(x)/Z where Z=∑z∈Ωw(z) is an intractable partition function, the acceptance ratio depends only on the ratio of unnormalized weights: π(x)π(y)=w(x)/Zw(y)/Z=w(x)w(y).
Justifying the coloring chain as a Metropolis instance
We can now verify that the propose-and-validate coloring walk from Section 1.1 is an instance of the Metropolis algorithm for the uniform distribution π(σ)=∣Ω∣1for all σ∈Ω. Here Ω is the set of proper q-colorings of G. An improper assignment τ∈/Ω is not a state of the chain; when the algorithm proposes an invalid recoloring and rejects it, we fold that event into the self-proposal Q(σ,σ) on Ω.
At each step from σ∈Ω, picking a vertex v∈V (probability 1/n) and a color c∈[q] (probability 1/q) induces a symmetric proposal kernel Q on Ω: - Any two distinct proper colorings σ,τ∈Ω that differ at a single vertex v have proposal probability Q(σ,τ)=n1⋅q1=nq1=Q(τ,σ), corresponding to picking (v,τ(v)) from σ or (v,σ(v)) from τ. - Proper colorings differing at two or more vertices have Q(σ,τ)=Q(τ,σ)=0.
Since π is uniform on Ω, every proposed move to a valid proper coloring τ=σv→c∈Ω has acceptance probability α(σ,τ)=min{1,π(σ)π(τ)}=1, and every invalid proposal σv→c∈/Ω is rejected, leaving the chain at σ. For any two adjacent proper colorings σ=τ, we therefore have P(σ,τ)=Q(σ,τ)=nq1=P(τ,σ), so P is symmetric on Ω and reversible with respect to the uniform distribution π.
Proposition 2 (Stationary distribution of the coloring chain) The coloring Metropolis chain is reversible with respect to the uniform distribution on proper q-colorings. In particular, the uniform distribution on Ω is stationary.
Because proposing the current color c=σ(v) always keeps the chain at σ, every state has a self-loop probability of at least P(σ,σ)≥n1⋅q1⋅n=q1>0, which guarantees that the chain is aperiodic.
Origins of Metropolis and coloring thresholds. Nicholas Metropolis, Arianna Rosenbluth, Marshall Rosenbluth, Augusta Teller, and Edward Teller (Equation of State Calculations by Fast Computing Machines, J. Chem. Phys. 1953) introduced the symmetric propose-and-accept rule on the MANIAC I computer at Los Alamos to simulate hard-sphere fluids, and W. Keith Hastings (Monte Carlo Sampling Methods Using Markov Chains and Their Applications, Biometrika 1970) generalized it to asymmetric proposals (Section 2.2). For graph coloring, Mark Jerrum (A Very Simple Algorithm for Estimating the Number of k-Colorings of a Low-Degree Graph, Random Structures & Algorithms 1995) established O(nlogn) mixing of single-site Glauber dynamics for q>2Δ.
What about irreducibility when q>2Δ? Given any two proper colorings X,Y∈Ω, we can transform X into Y through at most 2n valid single-vertex recolorings in two sweeps across V={v1,…,vn}:
Sweep 1 (move to safe intermediate colors): Visit v1,…,vn in order. At vi, choose a color ci∈[q] that avoids both the current colors of its neighbors N(vi) and their target colors Y(N(vi)). Since ∣N(vi)∣≤Δ, these two constraints forbid at most 2Δ colors, so q>2Δ guarantees at least one valid choice ci. After Sweep 1, the resulting proper coloring Z satisfies Z(u)=Y(v) for every edge {u,v}∈E.
Sweep 2 (move to the target coloring Y): Visit v1,…,vn again and recolor each vi to Y(vi). When vi is updated, each neighbor u∈N(vi) carries either its safe color Z(u) from Sweep 1 (which avoids Y(vi)) or its target color Y(u) (which differs from Y(vi) because Y is proper). Thus every intermediate step remains a proper coloring.
Since every coloring Y is reachable from every coloring X, the chain is irreducible and therefore converges to the uniform distribution as t→∞. We now turn to the efficiency question: how many steps are needed until the coloring is nearly uniform?
1.5 Total variation distance and mixing time
To quantify how close the distribution μt is to stationarity π, we use total variation distance.
Definition 4 (Total variation distance) Let μ and ν be two probability distributions on a finite set Ω. Their total variation distance is dTV(μ,ν)=21x∈Ω∑∣μ(x)−ν(x)∣=B⊆Ωmax∣μ(B)−ν(B)∣.
Recall (ℓ1 norm vs. event supremum). Why does 21∑x∣μ(x)−ν(x)∣ equal maxB⊆Ω∣μ(B)−ν(B)∣? Let B+={x∈Ω:μ(x)≥ν(x)}. Because ∑x∈Ω(μ(x)−ν(x))=0, the excess mass on B+ equals the deficit on (B+)c: μ(B+)−ν(B+)=ν((B+)c)−μ((B+)c)=21x∈Ω∑∣μ(x)−ν(x)∣, and no event B can exceed B+.
Operationally, maxB∣μ(B)−ν(B)∣ is the largest difference in probability that any event B can assign under μ versus ν. If dTV(μ,ν)≤0.01, no statistical test based on a single sample can distinguish μ from ν with success probability better than 0.51.
For a Markov chain with transition matrix P and stationary distribution π, we measure convergence by the worst-case distance from stationarity over all starting states: d(t)=x∈ΩmaxdTV(Pt(x,⋅),π).
Definition 5 (Mixing time) For an error tolerance ε∈(0,1), the mixing time is τmix(ε)=min{t≥0:d(t)≤ε}.
When ε is omitted, one sets ε=1/4 by convention. The constant 1/4 is convenient because 2⋅41=21<1: as shown below using coupling, d(t) satisfies the submultiplicative bound d(s+t)≤2d(s)d(t). Consequently, every additional block of τmix(1/4) steps at least halves the distance to stationarity, and ⌈log2(1/ε)⌉⋅τmix(1/4) steps suffice to reduce the error to any ε>0.
1.6 Coupling: make two chains meet
Computing Pt(x,⋅) directly requires taking powers of an ∣Ω∣×∣Ω∣ matrix, which is intractable when ∣Ω∣ is exponential in n. Coupling bounds total variation distance probabilistically without computing matrix powers.
A coupling of two probability distributions μ and ν on Ω is a pair of random variables (X,Y) defined on a common probability space such that X∼μ and Y∼ν.
Theorem 1 (Coupling lemma) For any coupling (X,Y) of μ and ν, dTV(μ,ν)≤P(X=Y). Furthermore, there exists an optimal (maximal) coupling that achieves equality: dTV(μ,ν)=P(X=Y).
Proof. For any event B⊆Ω, μ(B)−ν(B)=P(X∈B)−P(Y∈B)≤P(X∈B,Y∈/B)≤P(X=Y). Taking the maximum over B⊆Ω yields dTV(μ,ν)≤P(X=Y).
To achieve equality, place mass min{μ(z),ν(z)} on each diagonal pair (z,z). The total diagonal mass is ∑zmin{μ(z),ν(z)}=1−dTV(μ,ν); distributing the remaining mass dTV(μ,ν) across off-diagonal pairs (x,y) with x=y matches the residual marginals and gives P(X=Y)=dTV(μ,ν).
Warm-up: Total variation distance never increases under a Markov step
Before analyzing concrete chains, let us ask a basic structural question: can a Markov step ever push two distributions further apart? Using the coupling lemma, we can see in a few lines that total variation distance is monotonically non-increasing under any Markov transition matrix P.
Proposition 3 (Contraction of total variation under Markov transitions) Let P be a Markov transition matrix on a finite state space Ω with stationary distribution π. For any probability distribution μ on Ω, dTV(μP,π)≤dTV(μ,π). More generally, for any two probability distributions μ and ν on Ω, dTV(μP,νP)≤dTV(μ,ν).
Proof. By Theorem 1, choose an optimal coupling (X0,Y0) of μ and ν so that P(X0=Y0)=dTV(μ,ν). Evolve (X0,Y0) for one step to (X1,Y1) as follows: 1. If X0=Y0=x: draw a shared next state z∼P(x,⋅) and set X1=Y1=z. 2. If X0=Y0: draw X1∼P(X0,⋅) and Y1∼P(Y0,⋅) independently.
By the law of total probability, X1 has marginal ∑xμ(x)P(x,⋅)=μP and Y1 has marginal ∑yν(y)P(y,⋅)=νP, so (X1,Y1) is a valid coupling of μP and νP. Moreover, because X0=Y0 forces X1=Y1, we have {X1=Y1}⊆{X0=Y0}. Applying Theorem 1 to (X1,Y1) gives dTV(μP,νP)≤P(X1=Y1)≤P(X0=Y0)=dTV(μ,ν). Setting ν=π and using πP=π yields dTV(μP,π)≤dTV(μ,π).
Iterating this inequality shows that the distance to stationarity never increases as time progresses: dTV(μ0Pt,π)≤dTV(μ0Pt−1,π)≤⋯≤dTV(μ0,π).
Proof of the error-amplification bound d(s+t)≤2d(s)d(t)
Define the worst-case pairwise distance dˉ(t)=maxx,y∈ΩdTV(Pt(x,⋅),Pt(y,⋅)). By the triangle inequality and convexity, d(t)≤dˉ(t)≤2d(t). Fix x,y∈Ω and let (Xs,Ys) be an optimal coupling of Ps(x,⋅) and Ps(y,⋅), so P(Xs=Ys)≤dˉ(s). Given (Xs,Ys), if Xs=Ys we run the two chains identically for the next t steps so Xs+t=Ys+t; if Xs=Ys we couple Pt(Xs,⋅) and Pt(Ys,⋅) optimally so P(Xs+t=Ys+t∣Xs,Ys)≤dˉ(t). Averaging over (Xs,Ys) gives dˉ(s+t)≤dˉ(s)dˉ(t), and averaging over Y0∼π in the first factor yields d(s+t)≤d(s)dˉ(t)≤2d(s)d(t).
Motivating Markovian coupling: from non-increasing to coalescence
The proof of Proposition 3 highlights the two ingredients needed to bound mixing times via coupling: 1. Staying together is automatic: Once two trajectories meet (Xt=Yt), feeding them identical random choices keeps them equal forever, ensuring {Xt+1=Yt+1}⊆{Xt=Yt}. 2. Mixing requires bringing distant states together: To make P(Xt=Yt) decay to zero, we must replace the independent transitions on {Xt=Yt} with a correlated rule that actively drives Xt and Yt toward coalescence.
Formally, a Markovian coupling is a joint process (Xt,Yt)t≥0 whose marginals each evolve according to P, such that once XT=YT at the coalescence timeT=inf{t≥0:Xt=Yt}, the two chains remain equal for all t≥T. Starting X0=x and Y0∼π (so Yt∼π for all t), Theorem 1 gives dTV(Pt(x,⋅),π)≤P(Xt=Yt)=P(T>t). Bounding the mixing time thus reduces to bounding the tail of the coalescence time T.
1.7 First mixing bound: the hypercube walk
Let us see how a simple coupling drives two trajectories to coalesce on the Boolean hypercube.
Example 1 (The coordinate-refresh walk on the hypercube) Let Ω={−1,+1}n be the n-dimensional hypercube. At each step: 1. Pick a coordinate It∈[n] uniformly at random. 2. Pick a fresh sign Bt∈{−1,+1} uniformly at random. 3. Set the It-th coordinate to Bt, leaving all other coordinates unchanged.
By symmetry, the uniform distribution on {−1,+1}n is stationary. To couple two trajectories (Xt) and (Yt) from arbitrary initial states X0,Y0∈Ω, use the same pair(It,Bt) in both chains at every step: - Whenever coordinate i is picked at step t, both chains set Xt(i)=Yt(i)=Bt, and coordinate i remains agreed at all later steps. - Hence Xt=Yt as soon as all n coordinates have been picked at least once.
By the coupon collector’s bound, coordinate i misses the first t draws with probability (1−1/n)t≤e−t/n. A union bound over the n coordinates yields P(Xt=Yt)≤i=1∑nP(coordinate i not picked by time t)≤n(1−n1)t≤ne−t/n. Setting ne−t/n≤ε gives τmix(ε)≤⌈nlogεn⌉.
Recall (Coupon collector & 1−x≤e−x). Drawing uniformly from n coupons, the time T=∑k=1nGk to collect all n coupons is a sum of independent geometric variables Gk∼Geom(nn−k+1), so E[T]=n∑k=1nk1=nHn=nlogn+Θ(n). Applying (1−1/n)t≤e−t/n and a union bound gives the upper tail P(T>t)≤ne−t/n.
Although ∣Ω∣=2n is exponential, the walk mixes in O(nlogn) steps because its coordinates do not interact: refreshing coordinate i eliminates any disagreement at i and never creates a disagreement elsewhere.
1.8 Rapid mixing of the coloring chain
We now return to the propose-and-validate Metropolis coloring chain from Section 1.4 and track the Hamming distance between two proper colorings X,Y∈Ω: d(X,Y)=∣{u∈V:X(u)=Y(u)}∣. Unlike the hypercube walk, adjacent vertices in a graph coloring interact. Suppose X and Y currently agree at v, and both chains select v and propose the same color c. Color c may be legal in X (accepted) but blocked in Y (rejected) because v has a neighbor w where X(w)=Y(w). Thus disagreements can propagate across edges.
To prove rapid mixing, we need a one-step coupling under which disagreement healing at disagreeing vertices strictly outpaces disagreement creation at their neighbors.
Warm-up: One disagreement and why naive coupling only reaches q>3Δ
Start with the simplest nontrivial case: X and Y differ at a single vertexw, with X(w)=a and Y(w)=b (a=b), so d(X,Y)=1.
Suppose both chains pick the same vertexv∈V (probability 1/n each) and also naively propose the same colorc∈[q]:
Healing at v=w (probability 1/n): Because X and Y agree on N(w), they share the same available color set A(w)=[q]∖X(N(w)) of size ∣A(w)∣≥q−Δ.
If c∈A(w) (probability ∣A(w)∣/q≥(q−Δ)/q), both chains accept c and coalesce (d(X1,Y1)=0).
Otherwise, both reject c and d(X1,Y1)=1.
Creation at a neighbor v∈N(w) (at most Δ vertices, probability 1/n each): Here X(v)=Y(v), and all neighbors of v other than w have identical colors in X and Y.
If c∈/{a,b}, color c has the same validity in X and Y: both chains either accept c or reject c, keeping X1(v)=Y1(v).
If c=a, color a is blocked by X(w)=a in X (rejected) but may be accepted in Y.
Symmetrically, if c=b, color b is blocked by Y(w)=b in Y (rejected) but may be accepted in X.
Obstacle (Why naive identity coupling stalls at q>3Δ). Under identical color proposals, two candidate colors (c=a and c=b) can split the chains at each neighbor v∈N(w): c=a is rejected in X while potentially accepted in Y, and c=b is rejected in Y while potentially accepted in X. Across at most Δ neighbors of w, expected disagreement creation can reach nΔ⋅q2, whereas expected healing at w is at least n1⋅qq−Δ. Net one-step contraction therefore requires nqq−Δ>nq2Δ⟺q>3Δ, wasting an entire factor of Δ because the two guaranteed rejections at v occur on separate random draws.
The key idea: Matching rejected proposals cuts creation in half
Under the transposition τ=(ab), the two guaranteed rejections at v∈N(w) happen on the same random draw c=a, halving disagreement creation from 2/q to 1/q.
Why did the naive coupling lose 2/q at each neighbor v∈N(w)? Because X rejected c=a on one draw while Y rejected c=b on a different draw, even though both rejections produce the exact same outcome—staying at the shared color X(v)=Y(v).
A valid coupling only requires each chain’s proposal to be marginally uniform on [q]. When updating v∈N(w), couple the proposals via the transpositionτ=(ab) that swaps a and b and fixes all other colors: draw c∈[q] uniformly, let X propose c, and let Y propose τ(c). On the two exceptional draws c∈{a,b}:
When c=a (so Y proposes τ(a)=b):X proposes a (blocked by X(w)=a) and Y proposes b (blocked by Y(w)=b). Both proposals are rejected, so both chains stay at X(v)=Y(v) and no disagreement is created.
When c=b (so Y proposes τ(b)=a):X proposes b while Y proposes a. This single draw—occurring with probability 1/q—is the only choice that can cause X1(v)=Y1(v).
Pairing the two guaranteed rejections cuts disagreement creation at each neighbor from 2/q to 1/q, improving the contraction threshold from q>3Δ to nqq−Δ>nqΔ⟺q>2Δ.
Coupling arbitrary colorings via updated-color distributions
How do we extend this rejection-matching idea to arbitrary proper colorings X,Y∈Ω at Hamming distance k=d(X,Y), where a vertex v may have several disagreeing neighbors at once?
Instead of designing a custom permutation of proposals at each vertex, look directly at the distribution of the color at v after one Metropolis update, where all rejected proposals have already been merged into the single outcome of keeping the current color.
Fix a vertex v∈V, and let AX(v)=[q]∖{X(u):u∈N(v)} be the set of available colors at v in X. Because X is proper, X(v)∈AX(v). Conditioned on selecting v at state X, the distribution KXv of the updated color X1(v) is:
KXv(c)=1/q for every available new color c∈AX(v)∖{X(v)};
KXv(c)=0 for every forbidden color c∈/AX(v);
KXv(X(v))=1−q∣AX(v)∣−1 at the current color X(v), pooling the proposal c=X(v) together with all q−∣AX(v)∣ rejected proposals.
In compact form, KXv(c)=⎩⎨⎧q1,1−q∣AX(v)∣−1,0,c∈AX(v)∖{X(v)},c=X(v),c∈/AX(v), and KYv is defined analogously for Y. Passing from the proposal law to the updated-color law KXv automatically generalizes the transposition trick by pooling all rejections into the self-loop mass at the current color.
Our one-step coupling for any pair of proper colorings X,Y∈Ω is now simply:
Choose the same vertexv∈V uniformly at random in both chains.
Given v, sample (X1(v),Y1(v)) from a maximal coupling (Theorem 1) of KXv and KYv, leaving all other vertices unchanged: P(X1(v)=Y1(v)∣v chosen)=c∈[q]∑min{KXv(c),KYv(c)}=1−dTV(KXv,KYv).
Let D={u∈V:X(u)=Y(u)} be the set of current disagreements, with k=∣D∣, and let rv=∣N(v)∩D∣ be the number of disagreeing neighbors of v. Counting edges between D and V from their endpoints in D gives v∈V∑rv=u∈D∑deg(u)≤Δk.
We now evaluate the common mass ∑c∈[q]min{KXv(c),KYv(c)} according to whether v∈/D or v∈D:
Case 1: v∈/D (an agreeing vertex, X(v)=Y(v)=c0). Each common available new color c∈(AX(v)∩AY(v))∖{c0} contributes 1/q, while the shared current color c0 contributes min{KXv(c0),KYv(c0)}=1−qmax{∣AX(v)∣,∣AY(v)∣}−1. Summing over c∈[q] gives c∈[q]∑min{KXv(c),KYv(c)}=q∣AX(v)∩AY(v)∣−1+1−qmax{∣AX(v)∣,∣AY(v)∣}−1=1−qmax{∣AX(v)∖AY(v)∣,∣AY(v)∖AX(v)∣}. A color can belong to AX(v)∖AY(v) only if it appears on some neighbor u∈N(v) in Y that carries a different color in X, meaning u∈N(v)∩D. Since there are rv such neighbors, ∣AX(v)∖AY(v)∣≤rv and ∣AY(v)∖AX(v)∣≤rv. Thus updating v∈/D creates a disagreement with probability P(X1(v)=Y1(v)∣v∈/D chosen)=dTV(KXv,KYv)≤qrv.
Case 2: v∈D (a disagreeing vertex, X(v)=Y(v)). Since X(v)∈AX(v) and Y(v)∈AY(v), every color c∈AX(v)∩AY(v) has probability at least 1/q under both KXv and KYv. Hence P(X1(v)=Y1(v)∣v∈D chosen)=c∈[q]∑min{KXv(c),KYv(c)}≥q∣AX(v)∩AY(v)∣. In X, the neighbors of v forbid at most Δ colors; switching from X to Y changes the color of only the rv neighbors in N(v)∩D, forbidding at most rv additional colors. Thus ∣AX(v)∩AY(v)∣≥q−Δ−rv, and the disagreement at v∈D survives the update with probability at most (Δ+rv)/q.
Expected drift and rapid mixing above 2Δ
Averaging over the uniform choice of v∈V and using ∑v∈Vrv≤Δk, we obtain E[d(X1,Y1)∣X,Y]≤v∈D∑n1(k−1+qΔ+rv)+v∈/D∑n1(k+qrv)=k−nk+nq1(kΔ+v∈V∑rv)≤k−nk+nq2Δk=k(1−nqq−2Δ). Whenever q>2Δ, Hamming distance contracts in expectation for every pair of proper colorings.
Theorem 2 (Rapid mixing of the Metropolis coloring chain above 2Δ) Let G=(V,E) have n vertices and maximum degree Δ. If q>2Δ, the propose-and-validate coloring chain satisfies τmix(ε)≤⌈q−2Δnq(logn+logε1)⌉. For q≥(2+c)Δ with fixed c>0, this is O(nlog(n/ε)).
Proof. Put α=(q−2Δ)/(nq)>0. Start one copy from an arbitrary coloring X0 and the other from stationarity, Y0∼π. Since d(X0,Y0)≤n, iterating the one-step conditional drift bound gives E[d(Xt,Yt)]≤n(1−α)t≤ne−αt. Since distinct colorings have distance at least 1, Markov’s inequality and Theorem 1 yield dTV(Pt(X0,⋅),π)≤P(Xt=Yt)≤E[d(Xt,Yt)]≤ne−αt, which is at most ε once t≥α−1(logn+log(1/ε)).
Notice the mechanism: updating a disagreeing vertex v∈D heals the disagreement with probability at least (q−Δ−rv)/q, while each disagreeing neighbor u∈N(v)∩D perturbs the updated-color law at v by at most 1/q in total variation distance. In models where coupling arbitrary configurations directly is harder, path coupling (Section 2.1) lifts contraction on adjacent pairs to the full state space.
1.9 The transition matrix as an operator
Coupling gave us a crisp O(nlogn) upper bound for graph coloring above 2Δ, yet two fundamental questions from the first half of the chapter remain open:
Why does every finite, irreducible, aperiodic Markov chain converge to its stationary distribution π? In Section 1.2 we promised a general proof (Theorem 3); inventing a bespoke coupling for every chain would not explain why convergence is a universal structural property.
How can we prove that a chain mixes slowly, or determine its exact asymptotic convergence rate? By Theorem 1, coupling is an upper-bound tool. When a particular coupling fails to contract—as our single-site coloring coupling fails for q≤2Δ—coupling alone cannot tell whether the chain genuinely mixes slowly or whether our coupling was simply too crude.
To answer both questions, we shift from probabilistic trajectories to linear algebra, studying the transition matrix P as a linear operator.
From distributions to relative densities
Recall that a probability distribution μt on Ω (viewed as a row vector) evolves by P acting from the right: μt+1=μtP,orμt+1(y)=x∈Ω∑μt(x)P(x,y). When π is stationary (π(y)>0 for all y∈Ω), convergence μt→π is equivalent to saying that the relative densityht(x)=π(x)μt(x) converges to the all-ones column vector 1(x)≡1. How does ht evolve in one step when P is reversible with respect to π? Dividing μt+1(y) by π(y) and applying detailed balance π(x)P(x,y)=π(y)P(y,x) gives ht+1(y)=π(y)1x∈Ω∑μt(x)P(x,y)=x∈Ω∑π(x)μt(x)π(y)π(x)P(x,y)=x∈Ω∑ht(x)P(y,x)=(Pht)(y). Thus, for a reversible chain, the relative density ht evolves by P acting from the left: ht+1=Pht,and henceht=Pth0. More generally, P acts on any function f:Ω→R, viewed as a column vector, by computing its one-step conditional expectation: (Pf)(x)=y∈Ω∑P(x,y)f(y)=E[f(Xt+1)∣Xt=x].
The weighted inner product space L2(π)
To analyze the powers Pth0, we want to diagonalize P in an orthonormal basis of eigenvectors. When π is non-uniform, however, a reversible matrix P need not be symmetric in the standard Euclidean inner product, since P(x,y)=π(x)π(y)P(y,x)=P(y,x).
Instead, detailed balance equates the π-weighted flows π(x)P(x,y)=π(y)P(y,x). The natural geometry on RΩ is therefore the π-weighted inner product space L2(π): for functions f,g:Ω→R, define ⟨f,g⟩π=x∈Ω∑π(x)f(x)g(x)=Eπ[f(X)g(X)],∥f∥2,π=⟨f,f⟩π=Eπ[f(X)2]. In L2(π), the inner product with the constant function 1 is the stationary mean ⟨f,1⟩π=Eπ[f], and the squared distance from f to Eπ[f]1 is the stationary variance Varπ(f)=∥f−Eπ[f]1∥2,π2.
Under detailed balance, P is symmetric with respect to ⟨⋅,⋅⟩π: ⟨f,Pg⟩π=x∈Ω∑π(x)f(x)y∈Ω∑P(x,y)g(y)=x,y∈Ω∑π(x)P(x,y)f(x)g(y)=x,y∈Ω∑π(y)P(y,x)f(x)g(y)=⟨Pf,g⟩π. In short, reversibility means that P is a self-adjoint operator on L2(π).
Detailed balance from Boltzmann to Kolmogorov. Ludwig Boltzmann (1872) introduced micro-reversible collision balance in kinetic gas theory, and Andrei Kolmogorov (Zur Theorie der Markoffschen Ketten, Mathematische Annalen 1936) proved that a Markov chain is reversible if and only if the product of transition probabilities around every directed cycle equals that of the reversed cycle. Turning detailed balance into self-adjointness on L2(π) bridges probability theory to Hilbert-space spectral theory and discrete harmonic analysis.
1.10 Symmetrizing a reversible chain
Self-adjointness on L2(π) implies that P has real eigenvalues and an L2(π)-orthonormal basis of real eigenvectors. To see this explicitly via ordinary matrix algebra, define the diagonal matrix Π=diag(π(x):x∈Ω) and the similarity transform S=Π1/2PΠ−1/2,S(x,y)=π(y)π(x)P(x,y). By detailed balance, π(x)P(x,y)=π(y)P(y,x), so S(x,y)=π(x)π(y)P(y,x)=S(y,x). Thus S is a real symmetric matrix. By the spectral theorem, S has:
Real eigenvalues λ1≥λ2≥⋯≥λN, where N=∣Ω∣;
An orthonormal basis of Euclidean eigenvectors u1,…,uN∈RΩ, with ui⊤uj=1{i=j}.
Because P=Π−1/2SΠ1/2 is similar to S, P shares the same eigenvalues λi. Setting φi=Π−1/2ui gives right eigenvectors of P, since Pφi=PΠ−1/2ui=Π−1/2Sui=λiΠ−1/2ui=λiφi, and {φ1,…,φN} is orthonormal in L2(π): ⟨φi,φj⟩π=φi⊤Πφj=ui⊤Π−1/2ΠΠ−1/2uj=ui⊤uj=1{i=j}. Every function f:Ω→R therefore admits the spectral expansion f=i=1∑N⟨f,φi⟩πφi,andPtf=i=1∑Nλit⟨f,φi⟩πφi.
Since every row of P sums to 1, we have P1=1, so the constant function 1 is a unit-norm eigenfunction with eigenvalue 1: λ1=1,φ1=1.
Row vs. column eigenvectors. Why is the top right eigenvector φ1=1, whereas the stationary distribution π is a left eigenvector πP=π? Right eigenvectors Pφi=λiφi live in the space of observables (or relative densities ht), while left eigenvectors ψi⊤P=λiψi⊤ live in the space of signed measures. For a reversible chain, multiplying by Π=diag(π) translates between the two: ψi(x)=π(x)φi(x) satisfies (ψi⊤P)(y)=∑xπ(x)φi(x)P(x,y)=∑xπ(y)P(y,x)φi(x)=λiψi(y), mapping φ1=1 directly to ψ1=π.
Moreover, every eigenvalue of a stochastic matrix satisfies ∣λi∣≤1: if Pf=λf and x∈Ω maximizes ∣f(x)∣, then ∣λ∣⋅∣f(x)∣=∣(Pf)(x)∣≤y∈Ω∑P(x,y)∣f(y)∣≤∣f(x)∣y∈Ω∑P(x,y)=∣f(x)∣. Hence all eigenvalues of a reversible chain lie in [−1,1].
1.11 What irreducibility and aperiodicity do to the spectrum
Separating the stationary mode i=1 (φ1=1) from the remaining modes gives Ptf=⟨f,1⟩π1+i=2∑Nλit⟨f,φi⟩πφi. For Ptf to converge to ⟨f,1⟩π1=Eπ[f]1 from every initial function f, every non-trivial mode i≥2 must decay to zero as t→∞, which happens if and only if ∣λi∣<1 for all i≥2. Since λi∈[−1,1], only two obstructions can occur:
λ2=1 (eigenvalue +1 has multiplicity >1): The state space splits into disconnected components, each supporting its own stationary constant function. Irreducibility rules this out.
λN=−1 (an eigenvalue at −1): The transition graph is bipartite, and a function equal to +1 on one side and −1 on the other oscillates as (−1)t. Aperiodicity rules this out.
Lemma 1 (Peripheral spectrum of an ergodic chain) Let P be a finite irreducible Markov chain.
The eigenvalue 1 has multiplicity 1, and its eigenspace consists of the constant functions.
If P is also aperiodic, then λ=1 is the only eigenvalue on the unit circle: ∣λ∣<1 for all other eigenvalues.
Proof. Let f:Ω→C satisfy Pf=λf with ∣λ∣=1. Let M=maxz∈Ω∣f(z)∣>0, and pick x∈Ω with ∣f(x)∣=M. By the triangle inequality, M=∣λf(x)∣=∣(Pf)(x)∣=y∈Ω∑P(x,y)f(y)≤y∈Ω∑P(x,y)∣f(y)∣≤M. For equality to hold throughout, every y with P(x,y)>0 must have ∣f(y)∣=M and the same complex argument as λf(x), forcing f(y)=λf(x)for all y with P(x,y)>0. By induction along any directed path x=v0,v1,…,vt=y of positive probability, f(y)=λtf(x). By irreducibility, every y∈Ω is reachable from x, so ∣f(y)∣=M>0 for all y∈Ω.
If λ=1, then f(y)=f(x) for all y∈Ω, so f is constant and the eigenspace of 1 is one-dimensional.
Along any closed walk from x to x of length t (Pt(x,x)>0), we have f(x)=λtf(x) and hence λt=1. By aperiodicity, the greatest common divisor of all such return lengths t is 1; writing 1 as an integer linear combination of return lengths (Bézout’s identity) gives λ1=1.
In algorithm design, negative eigenvalues near −1 are easily avoided by making the chain lazy: replace P by Plazy=2I+P. At each step, Plazy stays put with probability 1/2 and takes a step of P with probability 1/2. Laziness preserves the stationary distribution (πPlazy=π) and maps each eigenvalue λi∈[−1,1] to 21+λi∈[0,1], eliminating negative eigenvalues at the cost of a factor of 2 in the spectral gap.
1.12 A spectral proof of the reversible FTMC
Combining the relative-density evolution ht=Pth0 (Section 1.9) with Lemma 1 yields a short spectral proof of the Fundamental Theorem of Markov Chains for reversible chains.
Theorem 3 (Fundamental theorem for finite reversible chains) If a finite reversible Markov chain P is irreducible and aperiodic, then it has a unique stationary distribution π, and for every starting state x∈Ω, t→∞limPt(x,y)=π(y)for all y∈Ω.
Proof. For any initial distribution μ0, let ht(y)=μt(y)/π(y) be the relative density. By Section 1.9, ht=Pth0, and the projection of h0 onto φ1=1 is ⟨h0,1⟩π=y∈Ω∑π(y)π(y)μ0(y)=y∈Ω∑μ0(y)=1. Expanding h0 in the L2(π)-orthonormal eigenbasis {φi} and applying Pt gives ht=Pth0=1+i=2∑Nλit⟨h0,φi⟩πφi. By Lemma 1, ∣λi∣<1 for all i≥2, so every term in the sum vanishes as t→∞. Thus limt→∞ht(y)=1, or limt→∞μt(y)=π(y), for every y∈Ω.
The spectral expansion makes the role of each assumption transparent:
Reversibility supplies the L2(π)-orthonormal eigenbasis that diagonalizes ht=Pth0;
Irreducibility ensures that the λ=1 eigenspace is spanned by φ1=1;
Aperiodicity ensures that ∣λi∣<1 for all i≥2, so every non-stationary mode decays geometrically.
1.13 The second eigenvalue controls the rate
Beyond qualitative convergence, the expansion of ht turns the non-trivial eigenvalues of P into a quantitative bound on total variation distance.
Define the second-largest eigenvalue modulus (SLEM) β=i≥2max∣λi∣=max{λ2,∣λN∣}<1. By Parseval’s identity in L2(π), the L2(π) distance from ht to 1 contracts by at least β per step: ∥ht−1∥2,π2=i=2∑Nλi2t⟨h0,φi⟩π2≤β2ti=2∑N⟨h0,φi⟩π2=β2t∥h0−1∥2,π2. By Cauchy–Schwarz, total variation distance is bounded by half the L2(π) norm of ht−1: dTV(μt,π)=21y∈Ω∑∣μt(y)−π(y)∣=21y∈Ω∑π(y)∣ht(y)−1∣=21Eπ[∣ht−1∣]≤21Eπ[(ht−1)2]=21∥ht−1∥2,π.
Recall (χ2-divergence). The squared L2(π) norm of ht−1 is the Pearson χ2-divergence of μt from π: ∥ht−1∥2,π2=y∈Ω∑π(y)(π(y)μt(y)−1)2=y∈Ω∑π(y)(μt(y)−π(y))2=χ2(μt∥π). Cauchy–Schwarz yields the classical inequality dTV(μt,π)≤21χ2(μt∥π).
When the chain starts at a deterministic state x∈Ω, the initial density h0(y)=π(x)1{y=x} has variance ∥h0−1∥2,π2=y∈Ω∑π(y)(π(x)1{y=x}−1)2=π(x)1−1. Combining these three relations gives the spectral mixing bound: for every starting state x∈Ω, dTV(Pt(x,⋅),π)≤21π(x)1−1βt≤2π(x)βt.
We define the spectral gap and the relaxation time of P by γ=1−λ2,trel=γ1(or 1−β1 if ∣λN∣>λ2). When P has no negative eigenvalues (as for any lazy chain), β=λ2=1−γ≤e−γ, so dTV(Pt(x,⋅),π)≤2π(x)e−γtandτmix(ε)≤⌈γ1(21logπmin1+log2ε1)⌉, where πmin=minx∈Ωπ(x). Let us test this bound on the hypercube walk.
Example 2 (Spectrum of the hypercube coordinate-refresh walk) Recall the coordinate-refresh walk on Ω={−1,+1}n from Section 1.7: at each step, pick i∈[n] uniformly at random and replace x(i) with a uniform sign in {−1,+1}. Its stationary distribution is π(x)=2−n.
Because each step refreshes one coordinate independently, the Walsh–Fourier parity functionsχS(x)=j∈S∏x(j)(S⊆[n]) diagonalize P. Indeed, fix S⊆[n] and condition on the chosen coordinate i∈[n]:
If i∈/S (probability 1−∣S∣/n), no coordinate in S changes, so χS(X1)=χS(x).
If i∈S (probability ∣S∣/n), coordinate i is resampled to ±1 with probability 1/2 each, so the conditional expectation of χS(X1) is 0.
Averaging over i∈[n] shows that every χS is an eigenfunction of P: (PχS)(x)=(1−n∣S∣)χS(x). The 2n parity functions {χS}S⊆[n] form an orthonormal basis of L2(π), with eigenvalues λS=1−n∣S∣∈[0,1]of multiplicity (∣S∣n) for ∣S∣=0,1,…,n. In particular, λ1=λ∅=1, λ2=1−n1 (attained by the n coordinate projections χ{i}(x)=x(i)), and γ=1−λ2=n1,trel=γ1=n.
Comparing the spectral bound with coupling:
A matching lower bound: Take the test function f(y)=χ{1}(y)=y(1)∈{−1,+1}, which has Eπ[f]=0. Starting from x=(+1,…,+1), we have Ex[f(Xt)]=(Ptχ{1})(x)=(1−1/n)t. Since ∣f∣≤1, dTV(Pt(x,⋅),π)≥21Ex[f(Xt)]−Eπ[f]=21(1−n1)t, which proves τmix(ε)=Ω(nlog(1/ε)).
Why the generic L2 upper bound loses a factor of n: Plugging γ=1/n and π(x)=2−n into the generic bound dTV(Pt(x,⋅),π)≤2π(x)e−γt=22n−1e−t/n gives τmix(ε)≤n(2nlog2+log2ε1)=Θ(n2), whereas coupling (Section 1.7) gave O(nlogn). The extra factor of n comes from the worst-case step in Parseval’s identity: starting at x=(+1,…,+1), every Fourier coefficient is ⟨h0,χS⟩π=χS(x)=1, so the exact L2(π) norm is ∥ht−1∥2,π2=∅=S⊆[n]∑λS2t=k=1∑n(kn)(1−nk)2t. The generic bound replaces every mode λS2t=(1−k/n)2t by the slowest single-coordinate decay (1−1/n)2t and multiplies it by all 2n−1 modes. Retaining (1−k/n)2t≤e−2kt/n for each degree k=∣S∣ instead gives ∥ht−1∥2,π2≤k=1∑n(kn)e−2kt/n=(1+e−2t/n)n−1≤exp(ne−2t/n)−1, which falls below 4ε2 in t=O(nlog(n/ε)) steps, recovering the O(nlogn) scale.
Obstacle (The log(1/πmin) overhead of generic L2 spectral bounds). Comparing dTV(μt,π) to ∥ht−1∥2,π via Cauchy–Schwarz starts from ∥h0−1∥2,π≈π(x)−1/2, which equals 2n/2 on an n-variable product space. Bounding every non-stationary mode in Parseval’s identity by the single slowest eigenvalue λ2=1−γ therefore pays an extra factor of log(1/πmin)=Θ(n) in the mixing time—inflating the hypercube bound from O(nlogn) to Θ(n2). Recovering the true O(nlogn) scale in interacting spin systems where the full spectrum cannot be computed explicitly requires replacing L2(π) variance decay with entropy decay via logarithmic Sobolev inequalities (Section 3.6).
1.14 Dirichlet energy and the Poincaré inequality
On the hypercube {−1,+1}n, product structure let us write down all 2n eigenvectors explicitly. On a combinatorial state space like the proper q-colorings of a graph G, diagonalizing an ∣Ω∣×∣Ω∣ matrix is hopeless. How can we bound the spectral gap γ=1−λ2 without computing eigenvectors?
For the self-adjoint operator P on L2(π) with top eigenvector φ1=1 (λ1=1), the Courant–Fischer theorem expresses λ2 as a Rayleigh quotient over all non-zero functions orthogonal to 1: λ2=f⊥π1f=0max⟨f,f⟩π⟨f,Pf⟩π. Subtracting both sides from 1 turns this maximization for λ2 into a minimization for the spectral gap γ=1−λ2: γ=1−λ2=f⊥π1f=0min∥f∥2,π2⟨f,(I−P)f⟩π=f≡constminVarπ(f)⟨f,(I−P)f⟩π, where the second equality holds because subtracting Eπ[f]1 projects f onto 1⊥ without changing (I−P)f.
Let L=I−P be the Laplacian operator of the chain. For any function f:Ω→R, the Dirichlet form (or Dirichlet energy) is the numerator E(f,f)=⟨f,Lf⟩π=⟨f,(I−P)f⟩π. Using ∑y∈ΩP(x,y)=1 and detailed balance π(x)P(x,y)=π(y)P(y,x), we can rewrite E(f,f) as an average of squared differences across transitions: E(f,f)=x∈Ω∑π(x)f(x)f(x)−y∈Ω∑P(x,y)f(y)=x,y∈Ω∑π(x)P(x,y)f(x)(f(x)−f(y))=21x,y∈Ω∑π(x)P(x,y)(f(x)−f(y))2, where the last step averages the sum with the same sum after swapping x and y. Probabilistically, E(f,f)=21Eπ[(f(X1)−f(X0))2] measures the local roughness of f across a single step of the chain, whereas Varπ(f)=21EX,Y∼π[(f(X)−f(Y))2] measures the global variance of f across independent draws from π.
Theorem 4 (Poincaré inequality) Let P be a finite, irreducible, reversible Markov chain with spectral gap γ=1−λ2. For every function f:Ω→R, Varπ(f)≤γ1E(f,f). Furthermore, this inequality is tight: the optimal constant is 1/γ, achieved when f=φ2.
Proof. Since subtracting Eπ[f]1 leaves both Varπ(f) and E(f,f) unchanged, we may assume Eπ[f]=⟨f,1⟩π=0. Expanding f=∑i=2Naiφi with ai=⟨f,φi⟩π gives Varπ(f)=∥f∥2,π2=i=2∑Nai2andE(f,f)=⟨f,(I−P)f⟩π=i=2∑N(1−λi)ai2. Since 1−λi≥1−λ2=γ for all i≥2, we have E(f,f)≥γVarπ(f), with equality for f=φ2.
Note that Theorem 4 holds for every reversible chain without assuming laziness; laziness was only used in Section 1.13 to ensure λN≥0 so that β=maxi≥2∣λi∣ equals λ2=1−γ. Equivalently, Theorem 4 gives the variational characterization of the spectral gap: γ=f≡constminVarπ(f)E(f,f). To upper-bound γ (proving slow relaxation), it suffices to exhibit a single non-constant test function f whose local roughness E(f,f) is small relative to its variance Varπ(f).
1.15 Conductance and bottlenecks
The simplest non-constant test function to plug into the Rayleigh quotient E(f,f)/Varπ(f) is the indicator functionf=1S of a subset S⊂Ω with 0<π(S)≤1/2:
Numerator (boundary flow): The difference (1S(x)−1S(y))2 equals 1 when (x,y) crosses between S and Sc, and 0 otherwise. By detailed balance, the equilibrium flow from S to Sc equals the flow from Sc to S, so E(1S,1S)=21x,y∈Ω∑π(x)P(x,y)(1S(x)−1S(y))2=x∈S,y∈Sc∑π(x)P(x,y).
Plugging f=1S into Theorem 4 yields γ≤Varπ(1S)E(1S,1S)=π(S)(1−π(S))∑x∈S,y∈Scπ(x)P(x,y). Since 1/2≤1−π(S)<1 for 0<π(S)≤1/2, this ratio is controlled up to a factor of 2 by the equilibrium probability flow leaving S divided by π(S). To formalize this quantity, write Q(A,B)=x∈A,y∈B∑π(x)P(x,y) for the equilibrium flow from A to B.
Definition 6 (Conductance) For any subset S⊂Ω with 0<π(S)≤1/2, the conductance of S is Φ(S)=π(S)Q(S,Sc). The conductance of the Markov chain is the minimum over all such cuts: Φ=S⊂Ω0<π(S)≤1/2minΦ(S).
At stationarity (X0∼π), Q(S,Sc)=Pπ(X0∈S,X1∈Sc), so Φ(S)=Pπ(X0∈S)Pπ(X0∈S,X1∈Sc)=Pπ(X1∈Sc∣X0∈S) is the conditional probability of escaping S in one step from stationarity. A small conductance Φ certifies a bottleneck that forces slow mixing both in spectral gap (γ≤2Φ) and directly in total variation distance:
Proposition 4 (A bottleneck forces slow mixing) For any reversible chain with conductance Φ and any tolerance 0<ε<1/2, τmix(ε)≥2Φ1−2ε.
Proof
Let S⊂Ω achieve Φ(S)=Φ with 0<π(S)≤1/2, and run the stationary chain X0∼π. If X0∈S and Xt∈Sc, the trajectory must cross from S to Sc at some step i∈{0,…,t−1}. By a union bound, Pπ(Xt∈Sc∣X0∈S)≤i=0∑t−1Pπ(Xi∈S,Xi+1∈Sc∣X0∈S)≤i=0∑t−1π(S)Pπ(Xi∈S,Xi+1∈Sc)=tΦ, where the second inequality uses Pπ(A∩{X0∈S})≤Pπ(A) and the last step uses stationarity Pπ(Xi∈S,Xi+1∈Sc)=Q(S,Sc). By averaging over X0∈S, there exists at least one state x0∈S such that Pt(x0,Sc)≤tΦ,or equivalently,Pt(x0,S)≥1−tΦ. Therefore, dTV(Pt(x0,⋅),π)≥Pt(x0,S)−π(S)≥(1−tΦ)−21=21−tΦ. Setting dTV(Pt(x0,⋅),π)≤ε requires 21−tΦ≤ε, or t≥2Φ1−2ε.
Bottleneck on K1,Δ (q=3). In S={σ(v)=1}, the center v can change color only when all Δ leaves happen to be monochromatic (all 2 or all 3).
Example 3 (Three colors on a star: exponential slow mixing below 2Δ) In Section 1.8, we proved that the propose-and-validate Metropolis coloring chain mixes in O(nlogn) steps whenever q>2Δ. When q≤2Δ, however, the coloring state space Ω can develop an exponential bottleneck even on a simple tree.
Let G=K1,Δ be a star with center v and Δ≥2 leaves (n=Δ+1), and consider proper q-colorings for q=3 (or any fixed q≥3 as Δ grows). The Metropolis chain is irreducible and aperiodic on K1,Δ for every q≥3: to change the center v from color a to color b, one can recolor every leaf of color b to a third color in [q]∖{a,b} and then recolor v to b.
Now consider the cut of colorings in which the center v has color 1: S={σ∈Ω:σ(v)=1}. By color symmetry, π(S)=1/3≤1/2. Conditioned on σ∈S, the Δ leaves take colors independently and uniformly from {2,3}, so ∣S∣=2Δ.
How can the chain exit S in one step?
Updating a leaf never changes σ(v), so it cannot leave S.
Updating the center v from 1 to 2 is legal only if all Δ leaves currently have color 3; updating v to 3 is legal only if all Δ leaves currently have color 2. Whenever both 2 and 3 appear among the leaves, the center is frozen.
Thus, out of the 2Δ colorings in S, only two configurations (all leaves 2, or all leaves 3) permit a transition to Sc.
For the propose-and-validate Metropolis chain (Section 1.4): At either exit configuration in S, leaving S requires selecting the center v (probability 1/n) and proposing the unique available new color in {2,3} (probability 1/3). Hence ΦMet(S)=2Δ2⋅n1⋅31=3n2Δ2,soτmixMet(1/4)≥4ΦMet1≥83n2Δ. More generally, for any fixed q≥3, conditioned on σ(v)=1 the Δ leaves are independent and uniform on {2,…,q}. Each of the q−1 alternative colors c∈{2,…,q} is absent from all Δ leaves with probability (q−1q−2)Δ and is proposed at v with probability nq1, giving ΦMet(S)=nqq−1(q−1q−2)ΔandτmixMet(1/4)≥4(q−1)nq(q−2q−1)Δ, which grows exponentially in Δ for every fixed q≥3.
For single-site heat-bath Glauber dynamics: If we instead resample the chosen vertex v uniformly from its available palette Aσ(v), then for q=3 at either exit configuration the center has ∣Aσ(v)∣=2 available colors, so selecting v and switching its color has probability n1⋅21. Thus ΦHB(S)=2Δ2⋅n1⋅21=n2Δ1andτmixHB(1/4)≥4n2Δ.
Both single-site chains suffer the same exponential slowdown. (When q=2, the star’s two proper colorings admit no legal single-site move at all, which is a failure of irreducibility rather than slow mixing.)
Obstacle (State-space bottlenecks versus base-graph geometry). Even when the base graph G=K1,Δ is a tree with no cycles or sparse cuts, local hard constraints can pinch the configuration space Ω into exponentially narrow passages: inside the cut S={σ(v)=1} of size 2Δ, only 2 configurations allow the center v to change color, forcing conductance Φ(S)=Θ(n−12−Δ) and mixing time Ω(n2Δ). Rapid mixing of local Markov chains is governed by the expansion of the state-space transition graph on Ω, not by the geometry of G alone.
In Section 1.15, evaluating the Rayleigh quotient γ=minf≡constE(f,f)/Varπ(f) on cut indicators f=1S (0<π(S)≤1/2) gave the upper bound γ≤Varπ(1S)E(1S,1S)=π(S)(1−π(S))Q(S,Sc)=1−π(S)Φ(S)≤2Φ(S), and taking the minimum over S yields γ≤2Φ.
What about the converse? In the variational definition of γ, f ranges over all real-valued functions on Ω, whereas Φ only tests {0,1}-valued cut indicators 1S. Could a chain have no sparse cuts (Φ large) and yet have a tiny spectral gap γ hidden in a smooth, multi-valued eigenfunction φ2?
Cheeger’s inequality (Lawler and Sokal 1988; Jerrum and Sinclair 1989, discrete analogues of Cheeger’s 1970 manifold inequality) shows that this cannot happen: up to a quadratic loss, cut indicators capture the spectral gap.
From Riemannian manifolds to discrete conductance. Jeff Cheeger (A Lower Bound for the Smallest Eigenvalue of the Laplacian, 1970) proved λ1≥h2/4 for the Laplace–Beltrami operator on compact Riemannian manifolds via the coarea formula. Noga Alon and Vitali Milman (1985) and Jozef Dodziuk (1984) developed the discrete graph analogue, and Gregory Lawler and Alan Sokal (Bounds on the L2 Spectrum for Markov Chains and Markov Processes: A Generalization of Cheeger’s Inequality, TAMS 1988) together with Mark Jerrum and Alistair Sinclair (Approximating the Permanent, SICOMP 1989) formulated conductance for general reversible Markov chains.
Theorem 5 (Cheeger’s inequality) Let P be a finite, irreducible, reversible Markov chain with spectral gap γ=1−λ2 and conductance Φ. Then 2Φ2≤γ≤2Φ,or equivalently,2γ≤Φ≤2γ.
Thus γ is bounded away from zero if and only ifΦ is bounded away from zero:
Geometric upper bound (γ≤2Φ): Any bottleneck cut S forces a small spectral gap and slow relaxation.
Spectral certificate of expansion (γ≥Φ2/2, or Φ≤2γ): Conversely, if every cut has conductance at least Φ, then γ≥Φ2/2. Moreover, the proof of Φ≤2γ is algorithmic: given an eigenvector φ2 achieving γ, sorting the states by φ2(x) and sweeping across all threshold cuts {x:φ2(x)≥s} (evaluating the side of stationary measure at most 1/2) is guaranteed to find a cut of conductance at most 2γ (Section 2.6).
Both sides of Cheeger are tight. On the hypercube coordinate-refresh walk (Example 2), the half-cube cut S={x:x(1)=+1} has π(S)=1/2 and Q(S,Sc)=21⋅n1⋅21=4n1, so Φ=2n1 and γ=n1=2Φ (the upper bound is tight). Conversely, on the lazy simple random walk on the N-cycle CN (N even), any cut of size N/2 crosses at least 2 edges, giving Φ=Θ(1/N), whereas the smoothest eigenfunction φ2(x)=cos(2πx/N) has γ=21(1−cos(2π/N))=Θ(1/N2)=Θ(Φ2) (the quadratic lower bound is tight).
To summarize Part I, we have developed three complementary pillars of Markov chain analysis:
Perspective
Core object
Analytical character
Coupling
Joint trajectory (Xt,Yt) and distance d(Xt,Yt)
Probabilistic & constructive; yields sharp O(nlogn) upper bounds when local updates contract
Spectral gap / Poincaré
Second eigenvalue λ2 & Dirichlet form E(f,f)
Algebraic & variational; proves the reversible FTMC and controls L2(π) variance decay
Conductance & Cheeger
Bottleneck ratio Φ=minSπ(S)Q(S,Sc)
Geometric; turns bottleneck cuts into slow-mixing lower bounds and links cuts to γ via 2Φ2≤γ≤2Φ
II. Reading Contents
2.1 Path coupling
In Section 1.8, we coupled arbitrary pairs of proper colorings (X,Y) directly by applying maximal coupling to the one-step updated-color distributions (KXv,KYv). In many models, however, coupling two configurations at arbitrary distance directly is cumbersome, whereas coupling two configurations that differ at only a single site is easy.
Path coupling, introduced by Bubley and Dyer (1997), provides a general local-to-global principle: to prove rapid mixing on a massive state space Ω, it suffices to verify expected contraction only for pairs of states that are adjacent in a suitable metric graph.
Let Ω be the vertex set of a connected graph H=(Ω,E), and let d(x,y) be the shortest-path metric on H, where every edge e∈E has length 1 (or positive weight w(e)≥1). Write D=x,y∈Ωmaxd(x,y) for the diameter of H.
Theorem 6 (Path coupling theorem (Bubley–Dyer)) Suppose that for every adjacent pair {x,y}∈E in H, there exists a one-step coupling (X1,Y1) of the Markov chain started from (X0,Y0)=(x,y) such that E[d(X1,Y1)∣X0=x,Y0=y]≤(1−α)d(x,y) for some constant α>0. Then for all initial states x,y∈Ω, there exists a one-step coupling satisfying E[d(X1,Y1)∣X0=x,Y0=y]≤(1−α)d(x,y), and consequently τmix(ε)≤⌈αlogD+log(1/ε)⌉.
Proof. For any pair of states x,y∈Ω, choose a shortest path of k edges in H: x=z0∼z1∼⋯∼zk=y,soi=1∑kd(zi−1,zi)=d(x,y). For each edge (zi−1,zi) along the path, the hypothesis gives a one-step coupling (Zi−1′,Zi′) satisfying E[d(Zi−1′,Zi′)]≤(1−α)d(zi−1,zi).
By the gluing lemma of probability theory (sampling Z0′ from P(z0,⋅) and then sampling each Zi′ conditionally given Zi−1′), we can stitch these k edge couplings together on a single probability space into a joint tuple (Z0′,Z1′,…,Zk′). In particular, the endpoints (Z0′,Zk′) form a valid coupling of P(x,⋅) and P(y,⋅). By the triangle inequality and linearity of expectation, E[d(Z0′,Zk′)]≤i=1∑kE[d(Zi−1′,Zi′)]≤(1−α)i=1∑kd(zi−1,zi)=(1−α)d(x,y). Iterating for t steps from X0=x and Y0∼π gives E[d(Xt,Yt)]≤(1−α)tD≤De−αt. Since distinct states have distance at least 1, Markov’s inequality and Theorem 1 yield dTV(Pt(x,⋅),π)≤P(Xt=Yt)≤E[d(Xt,Yt)]≤De−αt, which is at most ε for t≥α−1(logD+log(1/ε)).
Notice why the shortest-path metric hypothesis in Theorem 6 requires care: if we restrict H to the space Ω of properq-colorings with edges between colorings that differ at a single vertex, the shortest-path distance in H need not equal Hamming distance (two proper colorings at Hamming distance 2 might have no proper intermediate coloring at Hamming distance 1 from both). To apply Theorem 6 to graph coloring, one instead works on the enlarged space [q]V of all vertex assignments—where Hamming distance is the shortest-path metric of the cube [q]V—and verifies that the single-disagreement transposition coupling from Section 1.8 contracts on every edge of [q]V.
Example 4 (Path coupling for proper q-colorings on the extended cube [q]V) The Metropolis update rule from Section 1.4 extends verbatim to the full assignment cube [q]V: from any assignment X∈[q]V (proper or improper), pick v∈V and c∈[q] uniformly at random, and set X′(v)=c if c∈/X(N(v)) and X′(v)=X(v) otherwise. If X0∈Ω is a proper coloring, then Xt∈Ω for all t≥0, so bounding the mixing time on [q]V immediately bounds the mixing time on Ω.
Let H=([q]V,E) be the adjacency graph on [q]V where {X,Y}∈E whenever X and Y differ at a single vertex w∈V; its shortest-path metric is the Hamming distance dHam(X,Y) of diameter D=n. Using the 1-disagreement transposition coupling from Section 1.8 (pick the same vertex v∈V, and set πv=id unless v∈N(w), in which case πv swaps X(w) and Y(w)), we check three cases for v:
v=w (probability n1): Since X and Y agree on N(w), they share the same available color set AX(w)=AY(w) of size at least q−Δ. Whenever c∈AX(w), both chains accept c and coalesce (dHam(X′,Y′)=0), decreasing the distance by 1 with probability nq∣AX(w)∣≥nqq−Δ.
v∈N(w) (each of deg(w)≤Δ neighbors chosen with probability n1): As verified in Section 1.8, under the transposition πv=(X(w)Y(w)), at most one proposed color c∈[q] can cause X′(v)=Y′(v). Thus a neighbor v increases the distance from 1 to 2 with probability at most nq1, contributing at most nqdeg(w)≤nqΔ in total.
v∈/{w}∪N(w): Both chains see identical neighborhoods around v and apply the same update, so dHam(X′,Y′)=1.
Summing the expected change over all choices of v∈V gives E[dHam(X′,Y′)∣X,Y]≤1−nqq−Δ+nqΔ=1−nqq−2Δ. When q>2Δ, Theorem 6 with α=nqq−2Δ and D=n immediately recovers Theorem 2 without ever analyzing configurations at Hamming distance k≥2.
2.2 The Metropolis–Hastings algorithm: asymmetric proposals and target weights
In Section 1.4, we introduced the basic Metropolis algorithm with symmetric proposals Q(x,y)=Q(y,x) to sample uniformly from proper colorings. In statistical physics, machine learning, and Bayesian inference, one frequently encounters two major extensions beyond that setting:
Target distributions with intractable normalizing constants: The target distribution is defined by unnormalized weights w(x)>0: π(x)=Zw(x),whereZ=z∈Ω∑w(z) is the partition function. In systems like the ferromagnetic Ising model (w(σ)=exp(β∑{u,v}∈Eσuσv)) or the hard-core lattice gas (w(I)=λ∣I∣ for independent sets I), computing Z is #P-hard.
Asymmetric proposals: Practical proposal mechanisms Q(x,y) are often asymmetric: Q(x,y)=Q(y,x). For example, a proposal might bias toward states with higher weights, perform non-reversible moves, or walk on an irregular directed proposal graph.
The Metropolis–Hastings algorithm (Hastings, 1970) resolves both issues in one stroke.
The algorithm and Hastings’ correction
From current state x∈Ω: 1. Propose candidate state y∼Q(x,⋅). 2. Accept the proposed transition x→y with probability α(x,y)=min{1,π(x)Q(x,y)π(y)Q(y,x)}=min{1,w(x)Q(x,y)w(y)Q(y,x)}. If accepted, set Xt+1=y; if rejected, remain at Xt+1=x.
Notice that the partition function Z cancels out completely in the ratio w(y)/w(x). Furthermore, the ratio Q(y,x)/Q(x,y)—called the Hastings correction factor—precisely compensates for any directional bias in the proposal mechanism.
Proposition 5 (Detailed balance of Metropolis–Hastings) For any proposal distribution Q and any target distribution π, the transition matrix P(x,y)=Q(x,y)α(x,y) for x=y satisfies detailed balance with respect to π: π(x)P(x,y)=π(y)P(y,x)for all x,y∈Ω.
Proof. For x=y, π(x)P(x,y)=π(x)Q(x,y)min{1,π(x)Q(x,y)π(y)Q(y,x)}=min{π(x)Q(x,y),π(y)Q(y,x)}. Since the minimum is symmetric in x and y, the right-hand side equals π(y)P(y,x).
Metropolis versus heat-bath (Gibbs sampling)
In statistical physics, a canonical alternative to propose-and-reject updates is heat-bath dynamics (also called single-site Glauber dynamics or the Gibbs sampler). Instead of proposing a random spin and accepting or rejecting, the heat-bath chain picks a site v∈V uniformly at random and resamples its spin σv directly from the exact conditional distribution π(σv=⋅∣σ−v) given the configuration σ−v on all other vertices V∖{v}.
Specifically, for any configuration σ∈Ω and any distinct spin c=σ(v) at vertex v, let σv→c denote the configuration obtained by setting the spin at v to c. The off-diagonal heat-bath transition probability is PHB(σ,σv→c)=n1π(σv=c∣σ−v)=n1∑c′∈[q]w(σv→c′)w(σv→c). Detailed balance with respect to π is immediate: for τ=σv→c=σ, we have σ−v=τ−v and hence π(σ)PHB(σ,τ)=n1∑c′∈[q]π(σv→c′)π(σ)π(τ)=π(τ)PHB(τ,σ), which is manifestly symmetric in σ and τ.
For uniform proper q-colorings, the conditional distribution π(σv=⋅∣σ−v) is simply the uniform distribution over the set of currently available colors Aσ(v)=[q]∖σ(N(v)). How does its path-coupling analysis compare with the Metropolis chain of Section 1.8? Suppose X,Y∈Ω differ at a single vertex w:
Good move (v=w, probability n1): Because X and Y agree on N(w), they share the same available palette AX(w)=AY(w). Sampling the same uniform color c∈AX(w) in both chains eliminates the disagreement at w with conditional probability 1 (as opposed to q∣AX(w)∣ in Metropolis, which wastes proposals on forbidden colors).
Bad move (v∈N(w), probability n1 each): The palettes AX(v) and AY(v) each have size at least q−Δ and differ in at most one color (X(w) vs. Y(w)). A maximal coupling of the uniform distributions on AX(v) and AY(v) fails to pick the same color with conditional probability at most min{∣AX(v)∣,∣AY(v)∣}1≤q−Δ1.
Summing over all v∈V, the expected Hamming distance after one heat-bath step satisfies E[dHam(X1,Y1)∣X0=X,Y0=Y]≤1−n1+n(q−Δ)deg(w)≤1−n(q−Δ)q−2Δ. Heat-bath thus achieves one-step contraction under the same threshold q>2Δ, with a slightly larger contraction rate αHB=n(q−Δ)q−2Δ than Metropolis’s αMet=nqq−2Δ: it never rejects at v=w, while each neighbor v∈N(w) contributes at most n(q−Δ)1 instead of nq1. This saves a factor of q−Δq in the mixing time bound, at the minor per-step cost of enumerating Aσ(v) rather than testing a single proposed color c∈[q].
2.3 Another coupling: random-to-top shuffling
Consider shuffling a deck of n distinct cards labeled 1,…,n. At each step: - Pick a card uniformly at random from the deck; - Move it to the top.
The state space Ω=Sn has size n!. Because the transition matrix is doubly stochastic (∑σ∈SnP(σ,τ)=∑i=1nn1=1, as each position i∈[n] determines a unique preimage σ that moves the top card of τ from position i), the uniform distribution π(σ)=n!1 is stationary.
How many shuffles are needed before the deck is well mixed? We couple two decks Xt and Yt started from arbitrary permutations by picking the same card labelc∈{1,…,n} in both decks at each step (rather than the same position in the deck).
Consider what happens to the chosen card c: - Both decks place card c at the very top (position 1). - As more cards are drawn in subsequent steps, previously moved cards are pushed down together by one position whenever a card below them is drawn, preserving their relative order. - By induction on t, at every step t, the subset St⊆{1,…,n} of cards that have been picked at least once occupies the top ∣St∣ positions of both decks in the same order.
Once every card in {1,…,n} has been selected at least once (St={1,…,n}), the two decks are identical.
Just as in the hypercube walk (Example 1), the coalescence time is bounded by the coupon collector’s problem: P(Xt=Yt)≤P(St={1,…,n})≤n(1−n1)t≤ne−t/n. Hence, by Theorem 1, τmix(ε)≤⌈nlogεn⌉. A state space of size n!, yet O(nlogn) steps suffice!
2.4 Coupling from the past
Standard MCMC runs a chain forward for t≥τmix(ε) steps, producing an approximate sample from π. But can we produce an exact sample from π, with zero total variation error?
A tempting, naive idea is the forward coupling fallacy: start chains from all possible states at time 0, run them forward under shared random update maps F1,F2,…, and output the common state at the first random time T+ when all trajectories coalesce. This is wrong! Because T+ is a random stopping time, the state XT+ at the moment of coalescence can be heavily biased toward states where trajectories merge most easily.
Example 5 (Why forward coupling is biased: a 2-state counterexample) Consider the two-state Markov chain on Ω={0,1} with transitions P(0,0)=0,P(0,1)=1,andP(1,0)=21,P(1,1)=21. Solving πP=π gives the unique stationary distribution π(0)=31 and π(1)=32.
To couple trajectories from states 0 and 1, each step draws an independent fair coin Ut∈{merge,swap} and applies the random mapping Ft:Ω→Ω defined by:
If Ut=merge (probability 21), set Ft(0)=1 and Ft(1)=1 (both states map to 1).
If Ut=swap (probability 21), set Ft(0)=1 and Ft(1)=0 (states 0 and 1 swap places).
Since Ft(0)=1 always and Ft(1)∈{0,1} uniformly, Ft is a valid one-step update map for P. Now compare forward and backward coupling:
Forward coupling fails: Start at time 0 with the full set {0,1}. As long as Ut=swap, the set of active states remains Ft({0,1})={0,1}. Coalescence happens at the first time T+ when UT+=merge, and at that moment FT+({0,1})={1}. Thus forward coupling outputs state 1 with probability 1=32.
Backward coupling succeeds: In Coupling From The Past, we fix the terminal time 0 and compose backward: F0∘F−1∘⋯∘F−T({0,1}). Coalescence occurs as soon as at least one map in the sequence is merge. Look at the most recent merge before time 0: if U0=merge (probability 21), then F0({0,1})={1} and the output at time 0 is 1; if U0=swap and U−1=merge (probability 41), then F−1 merges everything to 1 at time −1 and F0 swaps 1↦0 at time 0, so the output is 0. In general, if the most recent merge occurs at time −k (k≥0, with probability 2−(k+1)), the merged state 1 undergoes k swaps before reaching time 0, outputting 1 when k is even and 0 when k is odd. Therefore, P(CFTP outputs 1)=m=0∑∞22m+11=1−1/41/2=32=π(1),P(CFTP outputs 0)=31=π(0).
Obstacle (Stopping-time bias of forward coalescence). Running coupled chains forward from time 0 and halting at the random coalescence time T+=inf{t≥0:∣Ft∘⋯∘F1(Ω)∣=1} evaluates the chain at a random stopping time correlated with the trajectory: in Example 5, coalescence can only occur on a step t where Ut=merge, which deterministically forces XT+=1∼π. To eliminate stopping-time bias, we must fix the observation time at t=0 and push the starting horizon −T backward into the past.
Backward random iterations from Loynes to Propp–Wilson. Constructing stationary states by composing random maps from −∞ to 0 originated with Robert Loynes (The Stability of a Queue with Non-Independent Inter-Arrival and Service Times, Proc. Cambridge Philos. Soc. 1962) in queueing theory and was developed in random dynamical systems by Letac (1986) and Diaconis–Freedman (1999). James Propp and David Wilson (Exact Sampling with Coupled Markov Chains and Applications to Statistical Mechanics, Random Structures & Algorithms 1996) turned this backward scheme into a finite-time exact MCMC algorithm by combining it with monotone sandwiching on lattices.
In 1996, Propp and Wilson invented Coupling From The Past (CFTP), turning this backward-composition idea into a general exact sampling algorithm.
Imagine a bi-infinite sequence of independent random update maps …,F−2,F−1,F0, where each Ft:Ω→Ω satisfies P(Ft(x)=y)=P(x,y) for all x,y∈Ω. For each horizon T≥1, define the backward composite map from time −T to time 0: Φ−T0=F0∘F−1∘⋯∘F−T+1:Ω→Ω. If Φ−T0(Ω) is a singleton {Y0} (meaning all ∣Ω∣ initial states at time −T coalesce to the same state Y0 by time 0), we stop and output Y0. If not, we increase the horizon (typically doubling T←2T) while reusing the already generated maps F−T+1,…,F0 and prepending fresh independent maps F−2T+1,…,F−T.
Theorem 7 (Exact sampling via CFTP (Propp–Wilson)) Suppose the backward coalescence time T∗=inf{T≥1:∣Φ−T0(Ω)∣=1} is finite with probability 1. Then the state Y0 output by CFTP at time 0 is distributed exactly according to the stationary distribution π.
Proof. First, once Φ−T∗0(Ω)={Y0} is a singleton, prepending any further maps F−T+1,…,F−T∗ in the past cannot change the image at time 0: for every T≥T∗ and every x∈Ω, Φ−T0(x)=Φ−T∗0(F−T∗∘⋯∘F−T+1(x))=Y0. Now, for any horizon T≥1, draw a random initial state X−T∼π independently of the maps (Ft)t≤0. Because each Ft has transition law P and πP=π, applying T independent steps preserves stationarity, so the state X0(T)=Φ−T0(X−T) has exact distribution π for every T≥1. On the event {T∗≤T}, however, Φ−T0 is the constant map Y0, so X0(T)=Y0. Therefore, for every state y∈Ω and every T≥1, P(Y0=y)−π(y)=P(Y0=y)−P(X0(T)=y)≤P(Y0=X0(T))≤P(T∗>T). Since P(T∗<∞)=1, letting T→∞ sends P(T∗>T)→0, proving P(Y0=y)=π(y).
For large state spaces, tracking all ∣Ω∣ trajectories is impossible. Fortunately, if the chain is monotone with respect to a partial order ⪯ on Ω that has a unique minimum element 0^ and maximum element 1^—meaning x⪯y⟹Ft(x)⪯Ft(y) almost surely, as in the ferromagnetic Ising model—then for every x∈Ω and every T≥1, Φ−T0(0^)⪯Φ−T0(x)⪯Φ−T0(1^).
Monotone CFTP sandwiching. Every trajectory Φ−T0(x) is trapped between the top trajectory from 1^ and the bottom trajectory from 0^.
Thus one only needs to track two trajectories from time −T to 0: the bottom walk started at 0^ and the top walk started at 1^. Whenever Φ−T0(0^)=Φ−T0(1^), monotonicity sandwiches the entire state space Ω into that single value.
2.5 Strong stationary times
A coupling bound proves that μt is close to π in total variation distance. A strong stationary time (Aldous and Diaconis, 1986) provides a random stopping time T at which the chain is exactly stationary.
Definition 7 (Strong stationary time) Let (Xt)t≥0 be a Markov chain started at X0=x. A randomized stopping time T is a strong stationary time if XT has distribution π and is statistically independent of T: Px(XT=y,T=s)=π(y)Px(T=s)for all y∈Ω and s≥0.
Strong stationary times control the separation distance from stationarity, defined at time t by sx(t)=y∈Ωmax(1−π(y)Pt(x,y)),s(t)=x∈Ωmaxsx(t).
Proposition 6 (Strong stationary time bound) If T is a strong stationary time for (Xt) started at X0=x, then for every t≥0, dTV(Pt(x,⋅),π)≤sx(t)≤Px(T>t).
Proof. Because {T=s} is a stopping-time event, the strong Markov property implies that conditional on {T=s,Xs=z}, the chain Xt at time t≥s has distribution Pt−s(z,⋅). Summing over s≤t and z∈Ω and using Px(Xs=z,T=s)=π(z)Px(T=s) together with stationarity ∑zπ(z)Pt−s(z,y)=π(y), we obtain Pt(x,y)=Px(Xt=y)≥Px(Xt=y,T≤t)=s=0∑tz∈Ω∑Px(T=s,Xs=z)Pt−s(z,y)=s=0∑tPx(T=s)z∈Ω∑π(z)Pt−s(z,y)=π(y)Px(T≤t)=π(y)(1−Px(T>t)). Dividing by π(y) and rearranging gives 1−π(y)Pt(x,y)≤Px(T>t) for every y∈Ω, which proves sx(t)≤Px(T>t). Finally, from Section 1.5, dTV(Pt(x,⋅),π)=y:π(y)>Pt(x,y)∑(π(y)−Pt(x,y))=y:π(y)>Pt(x,y)∑π(y)(1−π(y)Pt(x,y))≤sx(t)y∈Ω∑π(y)=sx(t).
Example 6 (Strong stationary time for card shuffling) Return to the random-to-top shuffle on n cards from Section 2.3, where at each step t≥1 a card label Ct∈{1,…,n} is drawn independently and uniformly at random and moved to the top of the deck. At any time t, the set St={C1,…,Ct} of cards picked so far occupies the top ∣St∣ positions of the deck, ordered from top to bottom by their most recent pick time.
Let T=inf{t≥1:St={1,…,n}} be the coupon-collector stopping time at which all n cards have been picked at least once. By time T, the initial deck order at t=0 has been completely overwritten: the deck XT is determined solely by the relative order of the last appearances of 1,…,n in (C1,…,CT). Because the i.i.d. uniform sequence (C1,C2,…) is invariant under any permutation σ∈Sn of the card labels—and the stopping event {T=t} is also permutation-invariant—all n! permutations are equally likely conditional on {T=t}: P(XT=σ∣T=t)=n!1=π(σ)for all σ∈Sn and t≥n. Thus T is a strong stationary time with E[T]=nHn≈nlogn, and Proposition 6 immediately yields dTV(Pt(x,⋅),π)≤s(t)≤P(T>t)≤ne−t/n.
A dual argument due to Aldous and Diaconis (1986) analyzes the time-reversed chain, top-to-random shuffling (at each step, take the top card and insert it into one of the n positions uniformly at random). Label the card originally at the bottom of the deck as b. By induction on t, conditional on the number k of cards currently belowb, all k! relative orderings of those k cards are equally likely (each time the top card is inserted into the k+1 slots below b, it lands equally likely in any of those k+1 relative positions). Hence, once all n−1 other cards have been inserted below b—so b sits at the very top of the deck above a uniformly random permutation of the other n−1 cards—the very next step T inserts b itself into a uniformly random position, making the entire deck perfectly uniform at time T.
2.6 The sweep proof of Cheeger’s inequality
We now complete the proof of the hard direction of Cheeger’s inequality (Theorem 5): Φ≤2γ.
Let g:Ω→R be an eigenvector of P with eigenvalue λ2=1−γ, so Lg=γg and Eπ[g]=0. Let m be a median of g under π, meaning π({x:g(x)<m})≤1/2 and π({x:g(x)>m})≤1/2. Shifting g by m, we split g−m=f+−f− into its positive and negative parts: f+=max{g−m,0},f−=max{m−g,0}. By choice of the median m, both f+ and f− are non-negative and supported on sets of stationary measure at most 1/2. Because f+(x)f−(x)=0 at every state x∈Ω, we can compare both their L2(π) norms and their Dirichlet energies directly to g:
Norms increase: Pointwise (g(x)−m)2=f+(x)2+f−(x)2, and since Eπ[g]=0, ∥f+∥2,π2+∥f−∥2,π2=∥g−m∥2,π2=∥g∥2,π2+m2≥∥g∥2,π2.
Dirichlet energy decreases: For every pair of states x,y∈Ω, using f+(x)f−(x)=f+(y)f−(y)=0 and f+,f−≥0, (f+(x)−f+(y))2+(f−(x)−f−(y))2=((f+(x)−f−(x))−(f+(y)−f−(y)))2−2(f+(x)f−(y)+f−(x)f+(y))≤(g(x)−g(y))2. Multiplying by 21π(x)P(x,y) and summing over x,y∈Ω gives E(f+,f+)+E(f−,f−)≤E(g,g).
Combining the two inequalities gives E(f+,f+)+E(f−,f−)≤γ(∥f+∥2,π2+∥f−∥2,π2), so at least one of f∈{f+,f−} is non-zero and satisfies ∥f∥2,π2E(f,f)≤∥g∥2,π2E(g,g)=γ.
We now prove that for any non-negative function f≥0 with π(supp(f))≤1/2, there exists a threshold cut Ss={x:f(x)≥s} such that Φ(Ss)≤2E(f,f)/∥f∥2,π2.
For any s>0, the set Ss={x:f(x)≥s} is a subset of supp(f) and therefore has π(Ss)≤1/2. By the definition of conductance (Definition 6), every threshold cut Ss satisfies Q(Ss,Ssc)≥Φπ(Ss). We integrate both sides against 2sds from 0 to ∞. Both integrals evaluate cleanly by exchanging summation and integration:
Why integrate against 2sds? Integrating Q(Ss,Ssc)≥Φπ(Ss) against ds instead would yield 21∑x,yπ(x)P(x,y)∣f(x)−f(y)∣—an ℓ1 difference that incurs a factor of 1/πmin when Cauchy–Schwarz compares it to E(f,f). Integrating against 2sds sweeps level sets of f2, producing ∣f(x)2−f(y)2∣=∣f(x)−f(y)∣(f(x)+f(y)) so that Cauchy–Schwarz pairs E(f,f) cleanly with ∥f∥2,π2.
Right-hand side (layer-cake representation): A state x belongs to Ss if and only if 0<s≤f(x), so ∫0∞2sπ(Ss)ds=x∈Ω∑π(x)∫0f(x)2sds=x∈Ω∑π(x)f(x)2=∥f∥2,π2.
Left-hand side (discrete coarea formula): A directed transition (x,y) crosses from Ss to Ssc (meaning x∈Ss and y∈/Ss) if and only if f(y)<s≤f(x). Since ∫f(y)f(x)2sds=f(x)2−f(y)2 whenever f(x)>f(y), summing over all pairs and using detailed balance π(x)P(x,y)=π(y)P(y,x) yields ∫0∞2sQ(Ss,Ssc)ds=x,y:f(x)>f(y)∑π(x)P(x,y)∫f(y)f(x)2sds=x,y:f(x)>f(y)∑π(x)P(x,y)(f(x)2−f(y)2)=21x,y∈Ω∑π(x)P(x,y)f(x)2−f(y)2.
Combining these two identities gives Φ∥f∥2,π2≤21x,y∈Ω∑π(x)P(x,y)f(x)2−f(y)2. Now factor the difference of squares as ∣f(x)2−f(y)2∣=∣f(x)−f(y)∣⋅(f(x)+f(y)) and apply the Cauchy–Schwarz inequality: Φ∥f∥2,π2≤(21x,y∑π(x)P(x,y)(f(x)−f(y))2)1/2(21x,y∑π(x)P(x,y)(f(x)+f(y))2)1/2=E(f,f)⋅(21x,y∑π(x)P(x,y)(f(x)+f(y))2)1/2. Using the elementary inequality (a+b)2≤2(a2+b2) and ∑yP(x,y)=1, the second factor is bounded by 21x,y∑π(x)P(x,y)(f(x)+f(y))2≤x,y∑π(x)P(x,y)(f(x)2+f(y)2)=2∥f∥2,π2. Therefore, Φ∥f∥2,π2≤E(f,f)⋅2∥f∥2,π2=2E(f,f)∥f∥2,π. Dividing by ∥f∥2,π2 proves that the average of Q(Ss,Ssc) over the measure 2sds is at most 2γ times the average of π(Ss), so there must exist at least one threshold s>0 with Φ≤Φ(Ss)≤∥f∥2,π22E(f,f)≤2γ.
This proof is entirely constructive: sort the states x∈Ω by their values in the second eigenvector φ2(x) and evaluate the conductance of each prefix cut (or its complement, whichever has stationary measure at most 1/2). At least one threshold cut has conductance at most 2γ—the theoretical foundation of spectral partitioning algorithms.
2.7 Continuous time and variance decay
In theoretical analysis, it is often cleaner to remove discrete-time parity oscillations (the need for lazy chains and λmin bounds) by passing to continuous time.
Let L=P−I=−L be the infinitesimal generator of the continuous-time chain. The continuous-time Markov semigroup is defined by the matrix exponential Pt=etL=e−tk=0∑∞k!tkPk. Probabilistically, because e−tk!tk is the Poisson(t) distribution, the continuous-time chain waits at its current state for an independent Exp(1) holding time (with mean 1) before each step, and then transitions according to P. Notice that if (φi,λi) is an eigenpair of P, then Ptφi=e−t(1−λi)φi: every eigenvalue of Pt is strictly positive, so negative eigenvalues of P never obstruct continuous-time convergence.
Let ft=Ptf. Its time derivative is dtdft=Lft=−Lft. Because Eπ[ft]=Eπ[f] is constant in t, differentiating the variance Varπ(ft)=⟨ft,ft⟩π−(Eπ[f])2 yields the exact energy-dissipation identity dtdVarπ(ft)=2⟨ft,Lft⟩π=−2⟨ft,Lft⟩π=−2E(ft,ft). Applying the Poincaré inequality E(ft,ft)≥γVarπ(ft) (Theorem 4) gives the differential inequality dtdVarπ(ft)≤−2γVarπ(ft). Integrating this inequality (Grönwall’s lemma) yields clean exponential variance decay: Varπ(Ptf)≤e−2γtVarπ(f)for all t≥0. Conversely, differentiating Varπ(Ptf)≤e−2γtVarπ(f) at t=0 recovers E(f,f)≥γVarπ(f). Thus the spectral gap, the Poincaré inequality, and exponential L2(π) variance decay are three facets of the same property.
Step clock versus site clock
When reading across the Markov chain, spin-system, and Boolean-analysis literature (including Chapter 3 of these notes), it is essential to keep track of two standard time normalizations for n-coordinate systems such as Ω={−1,+1}n or [q]V:
Step clock (rate 1 overall): The generator L=P−I triggers one single-site update of the entire system at Poisson rate 1. Under this clock, one unit of continuous time t=1 corresponds to one discrete step of P, so each individual coordinate i∈[n] is refreshed at rate 1/n. For the coordinate-refresh walk on {−1,+1}n (Example 2), the spectral gap is γ=1/n (or 2/n for the non-lazy flip walk), and mixing occurs at time t=Θ(nlogn).
Site clock (rate 1 per coordinate): In continuous-time Glauber dynamics and Boolean analysis, one instead equips each of the n coordinates with its own independent Exp(1) Poisson clock. Because n clocks tick in parallel, the total jump rate of the system is n, and the generator is rescaled by a factor of n: Lsite=n(P−I). One unit of site-clock time tsite=1 corresponds to n discrete steps (tstep=n). Consequently, all eigenvalues of the generator, the Dirichlet form, the spectral gap γsite=nγ, and the log-Sobolev constant are multiplied by n, while continuous-time mixing times are divided by n (so O(nlogn) discrete steps become O(logn) units of site-clock time).
2.8 From sampling to approximate counting
Why do theoretical computer scientists care so much about sampling? A foundational answer is the Jerrum–Valiant–Vazirani equivalence (1986): for self-reducible combinatorial problems, almost-uniform sampling is polynomial-time equivalent to approximate counting (an FPRAS, or Fully Polynomial-Time Randomized Approximation Scheme, as introduced in Chapter 1).
Self-reducibility and simulated annealing schedules. Mark Jerrum, Leslie Valiant, and Vijay Vazirani (Random Generation of Combinatorial Structures from a Uniform Distribution, Theoretical Computer Science 1986) established the general equivalence between approximate counting and almost-uniform sampling for self-reducible relations. Later works by Štefankovič, Vempala, and Vigoda (Adaptive Simulated Annealing: A Near-Optimal Connection between Sampling and Counting, JACM 2009) replace the m-step edge-deletion telescope with an adaptive cooling schedule of O(nlogn) inverse temperatures, reducing the counting overhead from O(m2) to O(n) samples.
Counting proper q-colorings when q>2Δ
Let us first see how our rapid-mixing theorem for proper q-colorings (Theorem 2) immediately yields an FPRAS for counting the number ∣Ω(G)∣ of proper q-colorings of any graph G=(V,E) when q>2Δ.
Order the edges of G as e1,e2,…,em, and define the sequence of spanning subgraphs G0,G1,…,Gm by G0=(V,∅),Gi=(V,{e1,…,ei})(1≤i≤m),Gm=G. Crucially, deleting edges never increases the maximum degree: Δ(Gi)≤Δ(G)=Δ for every i. Thus the condition q>2Δ holds uniformly across the entire sequenceG0,G1,…,Gm.
For the empty graph G0, every vertex assignment is proper, so ∣Ω(G0)∣=qn is known exactly. We express ∣Ω(G)∣ as a telescoping product across the m edge additions: ∣Ω(G)∣=∣Ω(G0)∣i=1∏m∣Ω(Gi−1)∣∣Ω(Gi)∣=qni=1∏mpi,wherepi=∣Ω(Gi−1)∣∣Ω(Gi)∣. What is the ratio pi? Since Gi is obtained from Gi−1 by adding a single edge ei={ui,vi}, a proper coloring of Gi−1 is also a proper coloring of Gi if and only if it assigns different colors to ui and vi. Therefore, pi is simply the marginal probability under the uniform distribution πGi−1 on Ω(Gi−1) that ui and vi receive distinct colors: pi=Pσ∼πGi−1(σ(ui)=σ(vi)). Furthermore, conditional on the colors of all vertices other than ui, vertex ui has at least q−Δ available colors in Gi−1, of which at most one can equal σ(vi). Thus every ratio pi is bounded well away from zero: pi≥1−q−Δ1≥Δ+1Δ≥21whenever q>2Δ≥2.
Counting via vertex self-reducibility: the hard-core model
The same telescoping principle applies to weighted partition functions. In the hard-core model on G=(V,E) with activity λ>0, the partition function over the collection I(G) of independent sets is ZG(λ)=I∈I(G)∑λ∣I∣. Ordering the vertices v1,…,vn and setting G0=G and Gi=Gi−1∖{vi} (so Gn is empty and ZGn(λ)=1) gives the telescoping identity ZG(λ)=i=1∏nZGi(λ)ZGi−1(λ)=i=1∏npi1,wherepi=ZGi−1(λ)ZGi(λ)=PI∼πGi−1(vi∈/I)≥1+λ1.
Sample complexity of the product estimator
Why does bounding each factor pi≥c>0 away from zero guarantee a polynomial-time (1±ε)-approximation for the k-stage product P=∏i=1kpi (where k=m for colorings or k=n for independent sets)?
Approximate sampling at each stage: Suppose we have a rapid-mixing Markov chain on Gi−1 run for t=τmix(δ) steps with δ=6kcε (for colorings with q≥(2+Ω(1))Δ, this takes O(nlog(nk/ε)) steps per sample). The empirical probability pi=P(Xt∈Ei) of the target event Ei then satisfies ∣pi−pi∣≤δ≤6kεpi.
Monte Carlo averaging: At each stage i∈{1,…,k}, run the chain M times independently to obtain an empirical frequency pi, and form the product estimator P=∏i=1kpi. By independence across the k stages, E[P]=∏i=1kpi∈(1±3ε)P. Moreover, because each pi is a binomial average of M trials with mean pi≥c/2, its relative variance is pi2Var(pi)=Mpi1−pi≤cM2.
Variance of the product: For ε∈(0,1], choosing M=⌈cε272k⌉=Θ(k/ε2) samples per stage makes pi2Var(pi)≤36kε2, so the relative variance of the product P=∏i=1kpi satisfies (E[P])2Var(P)=i=1∏k(1+pi2Var(pi))−1≤exp(i=1∑kpi2Var(pi))−1≤eε2/36−1≤27ε2. By Chebyshev’s inequality, P(∣P−E[P]∣≥3εE[P])≤ε29⋅27ε2=31, and combining this with ∣E[P]−P∣≤3εP yields a (1±ε)-multiplicative approximation with probability at least 2/3 (boosted to 1−η by taking the median of O(log(1/η)) independent runs). The total number of Markov chain steps is O(kMτmix(δ))=O((k2/ε2)τmix(δ)), which is O(k2n/ε2) whenever τmix(δ)=O(n).
2.9 Canonical paths and congestion
Cheeger’s inequality characterizes the spectral gap through conductance: γ≥Φ2/2. But computing Φ=minSΦ(S) directly requires searching over all 2∣Ω∣ cuts, and the quadratic loss in Φ2/2 can also degrade polynomial mixing bounds.
The method of canonical paths (Jerrum and Sinclair 1989; Diaconis and Stroock 1991) provides a direct combinatorial method to lower-bound the spectral gap γ without squaring loss, by routing a multicommodity flow between all pairs of states.
For every ordered pair of states x,y∈Ω, choose a simple directed path Γxy in the transition graph of P from x to y, and view it as routing π(x)π(y) units of flow from x to y. For each directed transition edge e=(u,v) with P(u,v)>0, let Q(e)=π(u)P(u,v) be its capacity. We define the maximum edge congestion: ρ=emaxQ(e)1x,y:e∈Γxy∑π(x)π(y)∣Γxy∣.
Theorem 8 (Canonical paths bound (Diaconis–Stroock)) For any finite reversible Markov chain and any family of canonical paths {Γxy}x,y∈Ω, Varπ(f)≤ρE(f,f)for all f:Ω→R. Consequently, the spectral gap satisfies γ≥ρ1.
Proof. Express the variance as an average of squared differences over all ordered pairs: Varπ(f)=21x,y∈Ω∑π(x)π(y)(f(x)−f(y))2. Along the path Γxy=(e1,…,eℓ), telescope f(x)−f(y)=∑e∈Γxy∇ef, where ∇ef=f(u)−f(v) for e=(u,v). By the Cauchy–Schwarz inequality, (f(x)−f(y))2=e∈Γxy∑∇ef2≤∣Γxy∣e∈Γxy∑(∇ef)2. Substitute this bound into the variance formula and exchange the order of summation between pairs (x,y) and edges e: Varπ(f)≤21x,y∑π(x)π(y)∣Γxy∣e∈Γxy∑(∇ef)2=21e∑(∇ef)2x,y:e∈Γxy∑π(x)π(y)∣Γxy∣=21e∑Q(e)(∇ef)2Q(e)1x,y:e∈Γxy∑π(x)π(y)∣Γxy∣≤2ρe∑Q(e)(∇ef)2=ρE(f,f). Dividing by Varπ(f) and taking the minimum over non-constant f yields γ≥1/ρ by Theorem 4.
How does one bound the sum over all pairs (x,y) whose path Γxy traverses a given edge e=(u,v) when ∣Ω∣ is exponentially large? The key technique, due to Jerrum and Sinclair, is the injective encoding (complementary witness) trick: for a fixed transition e=(u,v), map every pair (x,y) with e∈Γxy to a “complementary configuration” ηe(x,y)∈Ω so that e and ηe(x,y) uniquely reconstruct (x,y), and π(x)π(y)≈π(u)π(ηe(x,y)).
Example 7 (Canonical paths and injective encoding on the hypercube) Consider the coordinate-refresh walk on the n-dimensional hypercube Ω={−1,+1}n from Example 1, where π(x)=2−n and each directed edge e=(u,v) flips a single coordinate k∈[n] with transition probability P(u,v)=2n1 and edge capacity Q(e)=π(u)P(u,v)=2−n⋅2n1.
For any two configurations x,y∈{−1,+1}n, define the canonical path Γxy by scanning coordinates 1,2,…,n in increasing order and flipping coordinate i whenever xi=yi. The length of Γxy is the Hamming distance ∣Γxy∣=dHam(x,y)≤n.
Now fix a directed edge e=(u,v) that flips coordinate k (so uk=vk and ui=vi for i=k). Which pairs (x,y) use e along Γxy? Because Γxy has already updated coordinates 1,…,k−1 to match y and has not yet touched coordinates k+1,…,n, any pair (x,y) with e∈Γxy must satisfy xk=uk, yk=vk, and u=(y1,…,yk−1,xk,xk+1,…,xn),v=(y1,…,yk−1,yk,xk+1,…,xn). Notice that u records the first k−1 bits of y and the last n−k+1 bits of x. To record the remaining bits without losing information, define the complementary witnessηe(x,y)∈{−1,+1}n by splicing the unused bits of x and y: ηe(x,y)=(x1,…,xk−1,xk,yk+1,…,yn). Given the fixed edge e=(u,v) and the witness z=ηe(x,y), we can immediately reconstruct both x=(z1,…,zk−1,uk,uk+1,…,un) and y=(u1,…,uk−1,vk,zk+1,…,zn). Moreover, the k-th bit of z=ηe(x,y) is fixed to uk, so ηe is an injection from {(x,y):e∈Γxy} into the half-cube {z∈Ω:zk=uk} of size 2n−1. Using ∣Γxy∣≤n and π(x)π(y)=π(u)π(ηe(x,y))=2−2n, we obtain ρ≤emaxQ(e)nx,y:e∈Γxy∑π(u)π(ηe(x,y))=π(u)⋅2n1n⋅π(u)z:zk=uk∑π(z)=2n2⋅21=n2. By Theorem 8, this immediately yields γ≥n21. (Any single fixed-order family of canonical paths incurs this Θ(n) path-length factor; recovering the exact spectral gap γ=n1 of Example 2 requires averaging over all n! coordinate orderings or using tensorization of variance.) In complex combinatorial chains where eigenfunctions cannot be written down—such as Jerrum and Sinclair’s chain for monomer-dimer coverings and the permanent—this injective witness argument is the central engine for proving γ≥1/poly(n).
III. Further Topics
The following eight topics represent major milestones and modern frontiers in Markov chain theory. They serve as entry points for further study and student exposition.
3.1 Dobrushin influence and Glauber dynamics
Background. In our analysis of graph coloring (Section 1.8 and Section 2.2), we tracked how recoloring a vertex v can alter the available colors at its neighbors. In statistical physics, Dobrushin’s uniqueness condition (1970) formalizes this local-sensitivity mechanism for any spin system μ on [q]V: one defines an n×nDobrushin influence matrixC=(Cu,v)u,v∈V with Cu,u=0 and, for u=v, Cu,v=σ,τ∈Ωσ−v=τ−vmaxdTV(μu(⋅∣σ−u),μu(⋅∣τ−u)), the maximum total variation change in the conditional marginal at site u caused by modifying the spin at site v while keeping all other spins fixed.
Main result. For a strictly positive distribution on [q]V (or a constrained model whose single-site conditional update kernels are extended to all boundary configurations σ−u∈[q]V∖{u}, as in Example 4), if the maximum total influence out of any vertex satisfies α=maxu∈V∑v∈VCv,u<1, then single-site heat-bath (Glauber) dynamics contracts the Hamming metric by a factor of 1−n1−α per step, yielding τmix(ε)≤⌈1−αn(logn+logε1)⌉. For uniform proper q-colorings, Cu,v=0 whenever {u,v}∈/E, and for {u,v}∈E changing σ(v) swaps at most one forbidden color in the palette Aσ(u) of size at least q−Δ, so Cu,v≤q−Δ1. Thus ∑v∈VCv,u≤q−Δdeg(u)≤q−ΔΔ<1 precisely when q>2Δ, recovering the heat-bath contraction bound of Section 2.2 as a special case.
Background. Standard path coupling requires the expected distance between adjacent configurations to strictly contract after one step. However, in many constrained problems, disagreements may temporarily stagnate or expand in the immediate next step, but strictly contract after a small number of random steps.
Main result. Bordewich, Dyer, and Karpinski (2005) introduced stopping-time path coupling: instead of evaluating distance at step 1, one evaluates distance at a carefully chosen stopping time T. If E[d(XT,YT)]<1, one can construct a derived metric under which standard path coupling applies. This technique unlocked rapid mixing proofs for independent sets in low-degree hypergraphs, SAT solutions, and graph colorings in regimes beyond the one-step metric.
Background. Our elementary contraction proofs for Metropolis and heat-bath dynamics work when q>2Δ. This 2Δ barrier is an artifact of one-step worst-case Hamming contraction, not a true phase transition for single-site Glauber dynamics: on general graphs of maximum degree Δ, the natural ergodicity threshold where frozen proper colorings vanish is q≥Δ+2, and Glauber dynamics is conjectured to mix in O(nlogn) steps for all q≥Δ+2.
Main result. In a breakthrough result, Eric Vigoda (FOCS 1999) broke the 2Δ barrier for general graphs, proving that an auxiliary Markov chain based on Kempe component flips (swapping the two colors on an entire maximal two-colored connected component) mixes in O(nlogn) time whenever q>611Δ, which by spectral comparison implies O(n2logn) mixing for single-site Glauber dynamics. Nearly two decades later, Chen, Delcourt, Moitra, Perarnau, and Postle (FOCS 2019) finally broke the 611Δ barrier, proving rapid mixing for q>(611−ε0)Δ where ε0≈10−5, and Chen, Liu, and Vigoda (STOC 2021) combined this with spectral independence to establish optimal O(nlogn) mixing of single-site Glauber dynamics in the same regime.
Background. Generating a uniformly random spanning tree of a graph is a fundamental problem. While Aldous and Broder showed that a simple random walk generates a uniform tree when run until it visits all vertices (cover time), the cover time can be Θ(n3) on general graphs.
Main result. David Wilson (STOC 1996) discovered an algorithm using loop-erased random walks: starting from any unvisited vertex, run a random walk until it hits the existing tree, erase cycles chronologically as they form, and add the resulting self-avoiding path to the tree. Repeat until all vertices are covered. Wilson’s algorithm outputs an exact uniform spanning tree, and its running time is proportional to the mean hitting time rather than the cover time. Correctness can be proved via the cycle-popping framework.
3.5 Expander walks and randomness-efficient amplification
Background. In randomized algorithms (such as BPP algorithms), one amplifies success probability by running k independent trials and taking the majority vote, which consumes k independent random seeds. Can we achieve the same exponential error reduction using far fewer random bits?
Main result. Walk on an expander graph! Let G be a d-regular expander on V whose second normalized eigenvalue is λ<1. Let W⊆V be a “bad” set occupying a fraction ρ=∣W∣/∣V∣ of the vertices. Start a walk at a uniformly chosen vertex X0, and take ℓ−1 steps. Gillman (1998) and Goldreich proved that the probability of staying inside W for all ℓ steps decays exponentially: P(X0,X1,…,Xℓ−1∈W)≤ρ(ρ+(1−ρ)λ)ℓ−1. This generates ℓ pseudo-independent samples using only log2∣V∣+O(ℓlogd) random bits.
Reference. Oded Goldreich, Basic Facts about Expander Graphs; David Gillman, A Chernoff Bound for Random Walks on Expander Graphs, SIAM Journal on Computing 27(4) (1998), 1203–1220.
3.6 Log-Sobolev inequalities and entropy decay
Background. The Poincaré inequality controls the decay of variance in L2(π), leading to the relaxation bound τmix(ε)≤⌈trel(21logπmin1+log2ε1)⌉ of Section 1.13. When the state space is a product space such as Ω={−1,+1}n and πmin=2−n is exponentially small, the factor log(1/πmin)=Θ(n) multiplies trel=n and produces a suboptimal O(n2) mixing bound (Example 2).
Main result. A logarithmic Sobolev inequality (LSI) replaces variance with the entropy functionalEntπ(f)=Eπ[flog(f/Eπ[f])] for non-negative functions f≥0: Entπ(f)≤2ρLS1E(f,f), or, for the relative entropy (KL divergence) DKL(μt∥π)=Entπ(μt/π) of the continuous-time density ht=Pt(μ0/π), the modified log-Sobolev inequality (MLSI)dtdDKL(μt∥π)=−E(ht,loght)≤−αMLSIDKL(μt∥π). Because initial relative entropy from a point mass x is at most log(1/πmin)=O(n) and decays exponentially as DKL(μt∥π)≤e−αMLSItlog(1/πmin), the factor log(1/πmin) moves inside another logarithm (loglog(1/πmin)=logn). For the hypercube walk, ρLS=Θ(1/n) in the discrete-time step clock (or Θ(1) in the continuous-time site clock of Section 2.7), upgrading the Poincaré bound from O(n2) to the sharp O(nlogn) discrete-time mixing bound (O(logn) in continuous site-clock time).
Background. In high-dimensional spin systems near criticality, classical path coupling fails because one-step local contractions break down in worst-case boundary configurations, while global canonical paths are notoriously difficult to construct. In a groundbreaking series of works, Anari, Liu, and Oveis Gharan (FOCS 2020) introduced spectral independence, bridging high-dimensional expanders, geometry of polynomials, and Glauber dynamics.
Main result. Rather than analyzing the 2n×2n transition matrix P directly, spectral independence associates to any distribution μ on {−1,+1}V (and any partial pinning τ on a subset S⊂V) an ∣V∖S∣×∣V∖S∣signed pairwise influence matrixΨμτ: Ψμτ(u,v)=Pσ∼μ(σv=+1∣σS=τ,σu=+1)−Pσ∼μ(σv=+1∣σS=τ,σu=−1)(u=v), with Ψμτ(u,u)=0. Because diag(Var(σu∣τ))Ψμτ agrees off the diagonal with the symmetric conditional covariance matrix, Ψμτ is diagonally similar to a real symmetric matrix and all its eigenvalues are real. The distribution μ is said to be η-spectrally independent if λmax(Ψμτ)≤η for all pinnings τ. Anari, Liu, and Oveis Gharan proved that bounded spectral independence η=O(1) (together with uniform connectivity of the base two-spin conditioned steps) implies a polynomial spectral gap γ≥n−O(1+η) for Glauber dynamics, resolving the longstanding open problem of polynomial-time sampling for the hard-core model up to the tree uniqueness threshold λ<λc(Δ). Shortly thereafter, Chen, Liu, and Vigoda (STOC 2021) proved that on bounded-degree graphs, O(1)-spectral independence combined with marginal stability implies an Ω(1/n) modified log-Sobolev constant and optimal O(nlogn) mixing time.
Background. For many natural Markov chains, convergence to stationarity does not occur as a gradual exponential decay. Instead, the total variation distance stays close to 1 for a long period and then drops precipitously to near 0 over a narrow time window. This is known as the cutoff phenomenon (first discovered by Diaconis, Shahshahani, and Aldous).
Main result. A family of Markov chains exhibits cutoff if, for all ε∈(0,1/2), n→∞limτmix(1−ε)τmix(ε)=1. For the coordinate-refresh walk on the n-dimensional hypercube, total variation distance drops from 1 to 0 sharply at time t=21nlogn, with a transition window of width O(n). Coupling with the coupon collector gave an upper bound of nlogn, which captures the right mechanism but overestimates the true cutoff location by a factor of 2.
David A. Levin and Yuval Peres (with contributions by Elizabeth L. Wilmer), Markov Chains and Mixing Times, 2nd ed., American Mathematical Society, 2017. (Chapters 4–5 for coupling and strong stationary times, Chapters 12–13 for spectral and conductance bounds, Chapter 14 for path coupling and Glauber dynamics, Chapter 18 for cutoff.)
Mark Jerrum, Counting, Sampling and Integrating: Algorithms and Complexity, Lectures in Mathematics ETH Zürich, Birkhäuser, 2003. (Classic treatment of Jerrum–Valiant–Vazirani self-reducibility, canonical paths, and rapidly mixing Markov chains.)
Persi Diaconis and Daniel Stroock, “Geometric Bounds for Eigenvalues of Markov Chains,” Annals of Applied Probability 1(1) (1991), 36–61; Mark Jerrum and Alistair Sinclair, “Approximating the Permanent,” SIAM Journal on Computing 18(6) (1989), 1149–1178. (Foundational papers on conductance, Cheeger’s inequality for reversible chains, and canonical paths.)
Russ Bubley and Martin Dyer, “Path Coupling: A Technique for Proving Rapid Mixing in Markov Chains,” Proceedings of the 38th IEEE Symposium on Foundations of Computer Science (FOCS), 1997, 223–231; James G. Propp and David B. Wilson, “Exact Sampling with Coupled Markov Chains and Applications to Statistical Mechanics,” Random Structures & Algorithms 9(1–2) (1996), 223–252.
Sources and acknowledgments. The local-sampling and coupling exposition adapts Chihao Zhang’s 2025 Topics in Advanced AlgorithmsLecture 4, originally scribed by Sihan Wang and Yuchen He. The spectral and geometric exposition also draws on Lecture 5, originally scribed by Jinxuan Zhu and Yuchen He. The time-reversal, coupling, hypercube, and reversible-chain presentations follow Zhang and He’s manuscript Stochastic Processes in Computer Science, Chapter 2.