- Home
- Library
- Computational Quantum Field Theory
- Sampling Measures and Estimating Free Energies
- Multilevel and Multigrid Estimation
Multilevel and Multigrid Estimation
A distant-field correlation can be noisy because each configuration contains local fluctuations that average to zero. If the field in one region becomes independent of the field in another after their common boundary is fixed, we can average those local fluctuations first. The remaining estimate fluctuates only with the boundary.
This article performs that calculation on a periodic Gaussian chain, compares the estimators at equal sampling cost, and then derives the allocation rule for coupled coarse and fine estimates. These are two ways to exploit a hierarchy. A multigrid solver addresses a different question: how to solve a linear system efficiently.
Preparation: Gaussian covariance and Schur complements, or the conditional Gaussian formula derived below. We work with a finite, dimensionless Euclidean probability density.
Average over the interior first
For an observable and boundary variables , conditional expectation gives
The law of total variance states
Thus replacing by its exact conditional average cannot increase its single-sample variance. This is often called Rao–Blackwellization. It does not by itself establish a reduction in computational work: evaluating that average might be expensive.
For a Gaussian action partitioned into interior and boundary coordinates,
complete the square. At fixed , the interior mean and covariance are
The boundary precision after integrating out the interior is the Schur complement
Its inverse is the marginal boundary covariance. Sampling using instead would generally change the target.
Cut a Gaussian ring into two regions
Take 12 real fields with and
The positive matrix has diagonal , neighbor entries , and covariance . We want
Fix . Removing sites 3 and 9 cuts the nearest-neighbor graph into two components, with site 0 in one and site 6 in the other. Consequently : the two interior variables are conditionally independent. Their conditional means are
The equality follows from the ring's reflection and half-period symmetries. The coefficient follows by solving the two discrete Dirichlet problems, equivalently the matrix equation .
The improved observable is therefore
For a different boundary partition with , this expression would require the additional term . Conditional factorization must be checked from the action, not assumed from a drawing of disjoint regions.
Inverting the specified finite matrix gives
The boundary covariance has diagonal and off-diagonal . Let restricted to sites 0 and 6. Then on those sites, and here every entry of is .
Compare the exact variances and the work
For centered jointly Gaussian variables, Wick contraction gives
Their values are 3.353243563 and 0.636590480, a factor of 5.2675. Both estimate the same correlation. For independent outer draws, divide these variances by .
To make the cost comparison fair, the direct estimator draws only the two-dimensional marginal ; it does not unnecessarily generate all 12 fields. The conditional estimator draws the two boundary variables and forms their two means. After precomputing the combined linear map, both require two independent standard normals and one matrix-vector transform per sample. Setup matrix factorizations are excluded and amortized over all draws. Under this specified sampling-cost model, the conditional estimator reduces variance at equal cost by the same factor 5.2675.
The implementation performs 512 repetitions of 4,096 draws each:
| Estimate | Mean over runs | Standard deviation across runs |
|---|---|---|
| Direct | 0.5655930 | 0.028194 |
| Conditional | 0.5635217 | 0.012940 |
Measured estimator variances are 0.971 and 1.077 times their analytic predictions, within the fluctuations expected from 512 repetitions. There is no Markov-chain error in this experiment. The benefit for an interacting theory depends on the cost and correlation of its outer and inner samplers.
When the inner average must be sampled
Suppose that, for each , we estimate and from independent draws in each conditional region. Use independent inner streams in the two regions. Their sample means have conditional variances and . The product of these means remains conditionally unbiased, and its total variance is
The last term comes from multiplying two independent inner errors. Correlating those errors can introduce an extra conditional covariance and bias the product unless corrected.
Count two normal draws for the boundary plus for these interior averages. Then is a simple work–variance coefficient. For it is respectively 13.41, 9.89, 10.56 and 14.84. More inner work eventually wastes effort because the boundary fluctuation remains. Exact conditional averaging costs two normal draws here and gives coefficient ; it is especially effective because the Gaussian integral is available analytically.
An outer Markov chain would require its own autocorrelation analysis. Reusing one boundary for many inner updates does not create that many independent boundary samples.
Couple coarse and fine estimates
A second multilevel construction begins with approximations to an observable. The exact telescoping identity is
At level , draw a coupled pair with the correct marginal distributions at both levels. A good coupling makes the difference small. Correct marginals preserve the expectation; independence of the pair would also preserve it but can give a much larger variance.
Let , , and let be the cost per sample. With independent samples and streams between levels, the estimator variance and work are
Minimize subject to using a multiplier. Differentiating with respect to gives , hence
Round sample counts upward in an implementation. This is the allocation principle in Giles, §2. The computational gain depends on the decay of the difference variances relative to their costs.
The estimator targets . If the desired answer is a continuum limit, its discretization bias remains separate from this sampling variance. Likewise, coarse-graining a field requires the appropriate coarse marginal or a justified correction; substituting a convenient coarse action does not preserve the fine theory automatically.
What a multigrid solver does
A multigrid solver accelerates equations such as by treating smooth error on a coarser grid. In this example it could help compute a conditional mean. It is not by itself a prescription for drawing a random field with covariance . An approximate inverse in a sampler can alter covariance unless its error is controlled or an exact correction restores the target.
The useful connection is therefore concrete: a solver may reduce the cost of a conditional or coupled estimator, while the probability argument still determines which measure that estimator computes.
Summary
Conditional averaging removes interior noise while retaining the correct boundary distribution. Coupled-level differences move most work to inexpensive levels when their variances permit it. In either case, compare total work at fixed observable error, and keep regulator bias separate from sampling error.
Exercises
Allocate three levels
Take , , and sampling-variance target . Find the continuous optimum and compare it with using the same integer sample count on every level.
Solution
Here . The optimum is , already integral. Its variance is , and its cost is .
Equal counts require , so choose 105. Their cost is . These figures compare the stated level variances and costs only; they contain no estimate of a continuum bias.
Why the mass cannot simply be set to zero
What fails if in the periodic Gaussian ring above?
Solution
A constant field has zero action, so has a zero eigenvalue and the integral over that mode diverges. There is no normalized Gaussian target on all of , and does not exist. One could explicitly remove the zero mode or impose a different constraint, but that defines a different probability space whose conditional distributions must be derived again. Inverting a numerically regularized matrix without declaring this change would hide a change of target.
References
- M. B. Giles, “Multilevel Monte Carlo Path Simulation,” Operations Research 56, 607–617 (2008), author's paper, §2, pp.608–609.
Reproducible calculations: examples/computational-qft/monte-carlo-methods/README.md.
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.