A local update can be valid and still be a poor way to explore equilibrium. In a ferromagnet, neighbouring spins cooperate over increasingly large distances near a continuous phase transition. Changing one spin is then a small perturbation of the object we need to rearrange: an extended correlated domain.
The uncertainty chapter gave this problem a measurable consequence: a long autocorrelation time for the observable of interest. We now change the geometry of an update while preserving the same equilibrium distribution.
6.1 Local correctness does not resolve large scales
Consider the zero-field nearest-neighbour ferromagnetic Ising model on a square lattice,
Each bond appears once. The magnetisation per spin is . A local flip has , giving the Metropolis rule already derived in Chapter 4.
For the infinite square lattice, the exact Ising solution gives the critical temperature . In a finite zero-field box, spin-inversion symmetry gives the exact equilibrium mean at every temperature. Low-temperature order is instead visible through , the two peaks of the magnetisation distribution, or a thermodynamic limit with symmetry breaking specified. A short run trapped in one sign is not evidence that finite-volume equilibrium has lost its symmetry.
Near criticality, the correlation length becomes large. Local-update relaxation often scales as , saturating at a system-size-dependent value in a finite box. Units matter: a sweep is attempted local flips. Comparing a single local attempt with a whole cluster construction is not a fair cost comparison.
Low acceptance can contribute to slow motion, especially for a spin deep inside an ordered region. But critical slowing is not simply “most moves are rejected”. Even accepted local moves communicate change slowly across a large correlated domain. A rejection-free local algorithm can therefore retain critical slowing.
Starting from the same spin arrangement, what kinds of changes can a local update and a Wolff update make?
ΔH = 2sᵢΣⱼsⱼ; pᵦ = 1 − exp(−2β)
Local m = -0.10, 252 attempts; Wolff m = 0.78, 1950 flipped sites.
Paused. Play the sequence, step through it, or drag the position slider.
12×12 periodic ferromagnetic Ising lattice, J = 1, zero field, fixed seed and prepared initial state. A display frame is 12 local attempts on the left and one cluster update on the right. These are not equal-cost frames or a critical-scaling benchmark.
6.2 Make clusters part of an exact joint distribution
A cluster must not simply be chosen by visual resemblance and flipped with probability one. Its construction must encode the Boltzmann weights. For one ferromagnetic bond,
Check both cases. Aligned spins give ; opposite spins give . Introduce a bond variable and the joint weight
Summing over bonds recovers the Ising distribution up to the constant per edge. Given spins, compatible aligned edges are independently occupied with probability , while opposite-spin edges cannot be occupied. Given bonds, all spins in each connected cluster must agree, but different clusters have independent, equally likely signs at zero field.
The following fixed example distinguishes aligned neighbours from occupied bonds. A cluster is a connected component of the randomly occupied edges, not necessarily a whole visible same-sign domain. The highlighted cluster can change sign without changing the occupied-bond constraints.
Aligned does not mean bonded
Three occupied edges connect four sites. Other equal-spin edges were not occupied in this illustrative realisation.
Change a whole component
The occupied-bond compatibility condition survives the flip; boundary energy is handled by construction probabilities.
6.3 Two ways to use the same bond representation
The Swendsen–Wang algorithm alternates the two exact conditional draws. Starting from spins, populate the compatible bonds. Find their connected components. Assign each component a sign independently with probability . This is Gibbs sampling of the joint spin–bond measure, so its spin marginal is the desired Boltzmann measure. Conditional resampling explains why no additional Metropolis acceptance is needed.
The Wolff algorithm constructs only one component. Pick a seed site uniformly. For each eligible edge from a cluster site to an as-yet-unassigned aligned neighbour, test occupation with probability ; continue through newly added sites, then flip the completed cluster. Each eligible edge is treated according to the bond construction, rather than repeatedly tested until it succeeds.
Why does the single-cluster flip preserve equilibrium? Suppose a cluster of sign is flipped. Let count boundary edges to outside spins initially equal to , and count those initially opposite. Its energy change is
Every same-sign boundary edge must have failed to join the cluster, contributing . In the reverse construction, the corresponding failures occur at the previously opposite edges. Internal construction factors and seed choices match, so
Consequently even though the completed cluster is always flipped. The probability of constructing the cluster already accounts for its energetic cost. This is the key difference from an arbitrary multi-spin flip.
Which aligned neighbours actually join the cluster? Follow the occupied edges outwards from a single seed.
pᵦ = 1 − e⁻²ᵝ; boundary failures encode ΔH
15 discovered sites; bond probability 0.593; growth in progress.
Paused. Play the sequence, step through it, or drag the position slider.
One illustrative 12×12 periodic configuration. Only accepted growth edges are drawn; periodic wrap edges are indicated by edge markers rather than long chords. A realised cluster size is not its expectation.
6.4 Collective updates improve a particular obstruction
Near the unfrustrated zero-field critical point, these algorithms substantially reduce the cost of rearranging long-wavelength fluctuations. They do not guarantee independent samples or eliminate all critical scaling. Estimate autocorrelation for the actual energy, magnetisation or structural observable being measured, and include cluster-building cost.
The elementary construction assumes ferromagnetic bonds and zero field. A nonzero field changes cluster sign probabilities; frustrated or antiferromagnetic systems require different constructions or transformations where available. At the infinite-temperature endpoint, deterministic flipping rules may also require aperiodicity care. An algorithm's impressive performance in one model is not a theorem about all interaction graphs.
We have changed which coordinates move together. Event-chain methods will make a different change: preserve a direction of motion and redirect it at events, rather than repeatedly proposing a fresh local random walk.
Exercises
- Verify the one-bond identity in both spin cases and derive from it.
- For a proposed cluster, count its boundary edges and verify the Wolff probability ratio above.
- Explain why a finite-box mean magnetisation can be zero while its typical magnitude is large.