- Home
- Library
- Lattice and Hamiltonian Field Theory
- Generating and Testing Lattice Ensembles
- Variance Reduction for Lattice Observables
Variance Reduction for Lattice Observables
A long-distance correlator can fluctuate mainly because of a mode whose average is already known. Subtracting that fluctuation and restoring its exact mean gives a new estimator of the same observable. The useful question is whether the new estimator gives a smaller uncertainty for the same work, including the cost of computing it.
Here we integrate two Gaussian modes analytically while retaining the rest of an actual scalar Markov history. We prove unbiasedness, check the autocorrelation contribution of the removed modes, and compare measured errors and complete update-plus-measurement costs. The same conditional-expectation principle explains pure-gauge multilevel methods, with an important limitation once a fermion determinant is present.
Preparation: Gaussian Fourier modes, local lattice updates, and correlated statistical errors.
Replace a known fluctuation by its expectation
For an observable and retained variables , define . The tower property and total-variance identity give
Exact conditional integration cannot increase the variance of a single equilibrium measurement. It does not by itself control Markov autocorrelation or computation time. An expensive conditional average can be unhelpful, and a different observable can overlap differently with the same chain's slow modes.
A related control variate is with a known expectation and fixed coefficient . Its mean is unchanged. Learning from the very measurements used in the final mean can introduce bias; an independent training sample or a justified joint analysis is needed. The estimator below uses an analytic coefficient, with no training or seed selection.
Two modes of the periodic scalar
Consider the dimensionless Euclidean Gaussian action
Set , , and use a unitary discrete Fourier transform. The precision eigenvalue is
For a real field, complex modes satisfy ; do not count those as independent complex variables. The constant and checkerboard modes are real and independent of all the remaining Gaussian modes. Write
The translationally and axis-averaged correlator at separation four is
Each selected real mode has coefficient in the final expression when expressed as or . Holding every other Fourier mode fixed and integrating these two gives
Thus exactly. The two-mode constants are equilibrium Gaussian expectations. Reusing them for an interacting target would generally bias the result because the modes are then coupled. Field control variates develop exact integration-by-parts controls for that situation.
All free-mode averages could be computed analytically in this particular model. Integrating only two deliberately isolates the estimator idea: practical low-mode methods typically know only part of a covariance or inverse, while the rest still requires sampling.
Why this pair also removes a slow correlation
The histories use the even-then-odd exact conditional heat bath. A parity mask contains Fourier momenta and , so one complete sweep couples only to . The constant and checkerboard modes form a closed pair under the mean evolution. Gaussian update noise projected onto this pair is independent of noise projected onto the complementary pairs.
Starting in equilibrium, the removed pair and the remaining process are therefore independent at every pair of Monte Carlo times. If , then and
The companion checks this dynamical decomposition directly in position space. If is the mean sweep matrix, , and projects onto the two selected modes, then . This is a property of this Gaussian update, not a general consequence of lower single-configuration variance.
There is also an exact check of the entire correlation sum. For with real symmetric and stationary Gaussian dynamics,
With spectral radius , solve the discrete Lyapunov equation
It sums the geometric matrix series, and the asymptotic variance per retained measurement is
For the improved observable replace by , where , ; its added constant contributes no covariance. The companion checks the Lyapunov residual and the vanishing cross-correlations between the removed and retained pieces. This analytic result supplies a benchmark independent of a chosen noisy lag window.
Compare estimators on the same configurations
The input is exactly the free heat-bath histories used in the slow-mode experiment: 16 independent stationary replicas, 16,384 sweeps each, and . There is no second production ensemble and no rejection removal. Both estimates therefore use the same number of local site updates. The stored and make their additional difference a few arithmetic operations per record.
The stated errors below are standard errors from the scatter of sixteen replica means. Block sizes and fixed covariance-sum windows 64, 256 and 1024 are also retained in variance-results.json. The variance ratio estimated from sixteen means is noisy; its digits are not a calibrated speedup.
| Raw | Two-mode | Replica variance ratio | Exact asymptotic ratio | |
|---|---|---|---|---|
| 0.004150 ± 0.000068 | 0.004182 ± 0.000049 | 1.9 | 2.1 | |
| 0.042355 ± 0.000520 | 0.041897 ± 0.000097 | 29 | 26 | |
| 0.215673 ± 0.005858 | 0.224953 ± 0.000118 | |||
| 0.937094 ± 0.032662 | 0.973788 ± 0.000125 |
At , the exact mean is . Both results are compatible with it at their stated precision. At , the empirical variance ratio is about twice the exact asymptotic ratio; sixteen replicas do not determine a variance ratio precisely. The known dynamical block and Lyapunov calculation supply the separate analytic comparison.
Both estimators use the same stationary heat-bath histories. Bars are standard errors from sixteen independent replica means. The exact target is the finite-lattice correlator; the exact asymptotic ratios come from the position-space Gaussian transition and Lyapunov equation. A ratio from only sixteen means has substantial sampling uncertainty.
Count the measurement cost too
An estimator can win on saved configurations yet lose when it is the sole measurement. We therefore also time a standalone task at . Five interleaved pairs of runs each contain 16 replicas and 2,048 sweeps. A pair uses identical stationary initial fields and identical random streams, so its final fields agree exactly; only the recorded observable differs. The seed is SeedSequence([761025,300+trial,replica]), fixed in advance. Timings include every local update and its measurement, including the sums for and in the improved case. They exclude the common initialization and are a long-run, amortized comparison.
If is seconds per retained configuration including measurement, a run of duration has asymptotic variance . Consequently the relevant efficiency ratio is
not the variance ratio alone. This expression compares the estimators at matched total work in the stated long-run regime. Hardware, implementation, shared machine load and the number of measurements can change .
On the measured machine, raw costs range from 13.0 to 13.2 microseconds per configuration and improved costs from 13.7 to 14.0 microseconds. The median cost ratio is 1.050. Combining these costs with the exact asymptotic variances gives an efficiency ratio of about 24.7 at , compared with a variance-only ratio of 26.0. These timings characterize this implementation and machine load, not a portable performance guarantee; the fixed-work comparison on shared configurations does not depend on them.
No conclusion about an interacting ensemble follows from this free-field gain. The improvement is especially large when a known low mode dominates the original error; a practical calculation must establish its own exact control means and costs.
Conditional products and pure-gauge multilevel sampling
The same idea applies when the conditional average is estimated numerically. Suppose fixing boundary links partitions a local pure-gauge action into independent interiors :
Then . Independently sampled, unbiased inner estimates for the factors give an unbiased product at fixed ; the outer boundary configurations must themselves have the correct marginal distribution. Reusing correlated inner noise between factors can invalidate the product argument. Inner chains also need their own equilibration and correlation control.
For a Wilson-loop or Polyakov-line construction, the factors may be matrices or tensors whose boundary color indices are contracted only after the conditional averages. Lüscher and Weisz derive such normalized time-slab averages in pure lattice gauge theory [1, §§3.2–3.3, equations (3.6)–(3.7)]. They preserve the observable while reducing fluctuations through nested averages; replacing a matrix product by a product of traces would instead change the observable. The multilevel-estimation article derives a finite Gaussian boundary example and the inner-sampling cost balance.
After integrating out dynamical fermions, the gauge weight contains or . The Dirac operator may be local, but its determinant couples links across the whole domain: . Fixing a layer of gauge links therefore does not generally factor the full conditional measure into independent slab interiors. Specialized domain decompositions, auxiliary fields or correction factors are required. Neither the pure-gauge proof nor the free-scalar two-mode example solves that fermionic factorization problem.
Summary
The exact two-mode replacement estimates the original without changing its ensemble. Its gain is checked both by actual shared histories and by a Gaussian transition calculation, with measurement cost included separately. Conditional unbiasedness, temporal correlation and computation cost are three distinct requirements of a useful variance-reduction method.
Exercises
1. Use an odd separation
For the same axis-averaged , find the two-mode estimator at odd integer . Why would subtracting be wrong there?
Solution
The constant mode has translation phase one. The checkerboard mode has phase under either coordinate translation. Its contribution to is therefore , giving
At odd the fluctuating checkerboard term is negative, so conditional integration adds and subtracts its known mean. Using the even-separation formula would still be an unbiased control if both subtracted terms were restored with their matching exact means, but it would not be this conditional expectation: it would double the remaining checkerboard fluctuation instead of removing it. The proof of variance reduction would then fail.
2. An unbiased product needs independent noise
At a fixed boundary let two equal factors have conditional mean . If is unbiased with variance , compare using one estimate squared with multiplying two independent estimates. Then explain what happens if a fermion determinant couples the two interiors.
Solution
One estimate squared has expectation , so it is biased for . Two independent estimates obey . More generally a shared noise source adds their conditional covariance to the product mean.
If the physical conditional measure itself does not factor, even perfectly independent simulations of the two marginal interiors calculate the wrong quantity: includes a physical conditional covariance. A nonlocal determinant generally generates that coupling. Removing sampling-noise covariance does not remove the physical covariance or justify omitting it.
References
- M. Lüscher and P. Weisz, “Locality and exponential error reduction in numerical lattice gauge theory,” JHEP 09 (2001) 010, arXiv:hep-lat/0108014. §§3.2–3.3 define the pure-gauge time-slab expectation and factorization. The scalar example here applies the factorization to two Gaussian modes.
Scrollable formula. Use Left and Right arrow keys to reveal hidden content.
Scrollable table. Use Left and Right arrow keys to reveal hidden columns.
Scrollable figure. Use Left and Right arrow keys to reveal hidden content.