What the Metropolis correction buys, and what it does not
The unadjusted Langevin algorithm is SGLD without the minibatch noise. On a Gaussian target its stationary law is exact, so the bias can be measured against a formula, and a metastable target then shows that removing the bias does nothing for the harder problem.
The unadjusted Langevin algorithm is the Euler–Maruyama discretization of a diffusion that leaves the target invariant. It is ergodic, it is cheap, and it is wrong: its invariant law is not the target. Metropolizing the same proposal restores exactness at the cost of an accept/reject step.
ULA deserves naming, because it is not a niche MCMC method. Stochastic gradient Langevin dynamics is ULA with the gradient replaced by a minibatch estimate; the inner loop of annealed Langevin sampling is ULA at a fixed noise level; the corrector step of a predictor–corrector diffusion sampler is ULA against the current marginal’s score. In every one of those the Metropolis correction is dropped, usually without comment, and the discretization bias is inherited. What that costs is therefore a practical question, and it is almost never measured, because measuring it seems to require knowing the target.
The usual workaround is to run both samplers for a long time and treat the longer run as truth, which is circular. On a Gaussian target it is unnecessary, because the unadjusted chain’s stationary law is available in closed form.
The unadjusted chain on a Gaussian is an AR(1)
Take , so coordinatewise. The ULA update
is then a decoupled first-order autoregression in each coordinate,
It is geometrically ergodic exactly when , that is when ; past that the chain diverges, and the ceiling is set by the narrowest direction, . Its stationary variance solves , so
Three things fall out. The chain over-disperses at every admissible step size, since always. The leading-order variance inflation is independently of the scale , so the absolute bias is the same in every coordinate while the relative bias is worst where the target is narrowest. And since is Gaussian with known variances, the induced Wasserstein error is explicit: with , giving
first order in , as the general theory (Dalalyan; Durmus–Moulines) predicts.
The point of having is that a simulation can be required to reproduce it. A measured variance that disagrees indicts the sampler, not the theory.
Measurements
On , with conditioning and stability limit , across ten step sizes and three coordinates the measured ULA variance agrees with in all cases to within three Monte Carlo standard errors, at a Monte Carlo error of –. At , four fifths of the way to the stability limit:
| coordinate 1 | coordinate 2 | coordinate 3 | |
|---|---|---|---|
| ULA, measured | 1.2479 | 1.2488 | 4.2085 |
| ULA, exact | 1.25 | 1.25 | 4.2105 |
| MALA, measured | 0.2494 | 1.0003 | 4.0075 |
| target | 0.25 | 1 | 4 |
MALA hits the target, as it must. What it costs is visible in the acceptance rate, which falls from to across the same sweep. That is the whole trade in one line: ULA’s error is a bias you cannot average away, MALA’s is a cost you pay in rejected proposals.
Where the correction stops helping
Now replace the Gaussian with a separated two-component mixture and sweep the barrier rather than the step size. For a symmetric mixture with means and common scale , the relevant barrier in the effective potential is
and Kramers’ law predicts a crossing rate scaling like , so against should have slope . Starting every chain in the left well and fitting:
| sampler | slope | |
|---|---|---|
| ULA | 0.998 | |
| MALA | 0.999 |
Both bracket the prediction. And past both stop crossing entirely: by , where , ULA records zero crossings with all 32 chains still in the well they started in, and MALA is equally stuck.
The Metropolis correction buys nothing here, and the reason is worth stating precisely. MALA is unbiased in stationarity. A chain that has not crossed the barrier is nowhere near stationarity, so the guarantee is vacuous: it certifies a limit the run never approaches. Correcting the discretization does not make the chain mix.
What to take from it
Bias is polynomial in and fixable: halve the step, or Metropolize, or use a higher-order scheme. Mixing is exponential in the barrier, and none of those touch it. The two failure modes call for different tools, and the ones that work on mixing are preconditioning, tempering, replica exchange, or a better proposal, none of which is what the accept/reject step does.
The practical reading is that an acceptance rate is a diagnostic for the first problem and says nothing about the second. A run can report acceptance, pass every marginal check, and be reporting the well it was started in.
It is also, in miniature, the argument for noise schedules in generative modeling. A diffusion model does not sample its target with a single Langevin chain, and could not: the data distribution is exactly the metastable case, with modes separated by regions of vanishing density. What the forward process buys is a family of intermediate targets whose barriers are smoothed away at high noise and reintroduced gradually, so that mixing never has to cross a barrier of height at all. That makes the schedule the answer to a mixing time exponential in the barrier, rather than a trick for sample quality, and the effective-diffusivity note gives the exponent in the one case where it can be written down.
The measurements come from langevin-samplers, which runs the whole sweep from a seed and writes a sidecar with the parameters and the resolved commit next to every result.
References
- G. O. Roberts and R. L. Tweedie (1996). Exponential convergence of Langevin distributions and their discrete approximations. Bernoulli 2(4), 341–363.
- G. O. Roberts and J. S. Rosenthal (1998). Optimal scaling of discrete approximations to Langevin diffusions. JRSS-B 60(1), 255–268.
- A. S. Dalalyan (2017). Theoretical guarantees for approximate sampling from smooth and log-concave densities. JRSS-B 79(3), 651–676.
- A. Durmus and É. Moulines (2017). Nonasymptotic convergence analysis for the unadjusted Langevin algorithm. Annals of Applied Probability 27(3), 1551–1587.