Context. Diffusion samplers were derived by time reversal, by noising the data with an SDE, reversing it and learning the score. Stochastic localization came from elsewhere. Eldan used it as a proof device in high-dimensional probability, a measure-valued martingale that starts at and ends at a point mass, and El Alaoui, Montanari and Sellke turned it into a sampling algorithm for spin glasses. This expository paper shows that the two constructions coincide for the Gaussian channel, that localization is much more general, and that the extra freedom helps when the denoiser is hard to learn. To sample , reveal information about gradually through any observation process that becomes more informative over time and eventually determines , and simulate that process forward with its own transition law, which needs only posterior quantities given what has been revealed (for a Gaussian channel, the posterior mean). A diffusion model observes in Brownian noise at growing signal-to-noise ratio; changing what is observed changes which conditional expectations must be learned.
Setting and main results. The basic example is the Gaussian channel , with a standard Brownian motion independent of . By Bayes the posterior is a random exponential tilt, with and . Proposition 1.1 (Liptser and Shiryaev): if has a finite second moment, is the unique solution of , , for a standard Brownian motion . Discretizing up to a large and outputting samples approximately. Definition 3.1 generalizes the channel: is an observation process if for all the sequence is a Markov chain (later observations are Blackwell-more informative) and it is complete, . The stochastic localization is , and these are exactly the measure-valued martingales that converge to . Proposition 7.1: for and the isotropic diffusion with an MSE-optimal convolutional denoiser of window , and , the generated law satisfies and . Proposition 7.2: a linear observation process that also reveals , with simple estimators that are local in the remaining coordinates, has and TV error tending to 0 as .
For the Gaussian channel the observation is a Markov diffusion whose drift is the denoiser. Two facts make the tilt usable. By Girsanov the likelihood of the whole path given is , which sees the path only through its endpoint, so is sufficient and is a function of alone. And by the innovation theorem of filtering, is a Brownian motion in the observation filtration, since its increments are the observation increments minus their conditional mean. Together they give , which removes both obstacles to sampling this way: the process can be generated without first drawing , and the infinite-dimensional never has to be represented, only its mean. Uniqueness needs only the finite second moment.
The reversed OU sampler is this SDE in another clock, and every reverse diffusion is a localization. For OU, , and Tweedie gives the reverse drift through . Take , the signal-to-noise ratio at OU time , which runs from to 0 as runs from 0 to . Then and so the reversed OU process, rescaled by , is the localization SDE. The general statement needs no computation. Given any forward diffusion and a decreasing clock , let be the forward path from the current noise level to the end. Each earlier is a later one with a piece deleted, so the reversed sequence is Markov, and contains , so the process is complete; extending the observed segment by an infinitesimal piece is one step of the reverse SDE.
In general the posteriors form a martingale, and sampling means running the reversed chain of observations. is a Doob martingale, and completeness with LΓ©vy's upward theorem gives ; conversely, a measure-valued martingale converging to is for its own filtration, which some observation process generates. Because is Markov, so is , with kernels , and the algorithm is to discretize , approximate each , and sample forward. In the Gaussian case ItΓ΄'s formula shows the martingale directly. With , and , every drift term cancels and so the posterior mean moves only along directions where the posterior is still uncertain. ( is the identity Kadkhodaie et al. use to read a denoiser's Jacobian.)
The known samplers are different observation channels, all trained by the same path-space KL. What changes from channel to channel is the conditional expectation the network must learn. Revealing coordinate at an independent uniform time (the erasure process) needs next-coordinate conditionals and is autoregressive sampling in a random order. Resampling coordinates at Poisson times (the symmetric processes) gives the discrete diffusions, whose flip rates are explicit in the posterior marginals . The linear channel samples and decodes it, and Poisson counts, half-space indicators and combinations of channels (whose likelihoods multiply) fit the same frame. Training is the same for all: minimize the KL between the true and the model path laws. For the Gaussian channel Girsanov gives , and the Pythagorean identity turns this into the denoising regression up to a constant, which is score matching. For erasure the KL is the next-coordinate cross-entropy of an autoregressive model.
The isotropic channel can get a mixture's weights wrong, because which cluster a trajectory joins is decided in a window of width . Take with . The denoiser is for an explicit scalar , and for large it agrees with the denoiser of one of the two clusters up to , except in a window of width around , the midpoint between the scaled centers, where is of order . A trajectory's cluster is decided by how it crosses that window, so the mixture weight rests on a steep feature of the denoiser in a region of low probability, where training data are scarce. With , and two-layer ReLU denoisers, the histogram of is visibly off target. The remedy reveals the cluster label first: split the samples by the sign of their top principal component, train a denoiser on each half, draw the sign with its empirical frequency, then run the isotropic diffusion with that half's denoiser. This combines the half-space and Gaussian channels, and with the same architecture the projection matches much better. The evidence is empirical, and the paper grants that a larger network might also have succeeded.
A local denoiser cannot create long-range correlations, and revealing one global coordinate fixes it. For the exact denoiser is linear; restrict it to symmetric circulant convolutions of window , fitted by least squares at each . The generated law is then a centered circulant Gaussian whose spectrum at frequency zero is , since its correlations reach only to range of order . So against , and projecting any coupling onto with the triangle inequality gives TV tends to 1 because the coordinate mean has variance under but under the generated law. Proposition 7.2 adds the channel , which reveals the mean times faster than the rest, and uses hand-built local estimators: , Bayes-optimal for the mean given alone up to , and the known-mean denoiser with that estimate plugged in. Then and TV tend to 0. Images that are mostly red or mostly blue behave the same way.
Choosing the channel is a design problem. Localization reduces sampling to approximating posterior means or marginals given , and the paper gives rules for choosing what to observe. The channel should preserve the symmetries of , so that stays invariant. It should avoid times where has an information-computation gap, since no polynomial-time denoiser then exists and sampling fails (shown in a simple case by Montanari and Vu), and more generally sharp drops in the MMSE curve, which co-occur with hardness. And it should reveal latent variables early when is multimodal, as in Step 5. These are heuristics, and the paper's own evidence for them is the two toy examples.
Consequences and limits. Autoregressive models, masked and discrete diffusions, and continuous diffusions are one algorithm with different observation channels, and the channel is a free design parameter: it decides which conditional expectations the network must learn and in what order information about is fixed. Later analyses of diffusion samplers used localization identities such as to sharpen the dimension dependence. The limits are that the paper is expository and proves no general bound on sampling error for a learned drift; that its two demonstrations have known structure, which the fixes use; that Proposition 7.2 analyzes hand-built estimators rather than trained ones; and that the image experiments are qualitative. Whether a learned channel, or a general method for choosing one, helps on real data is left open.
Terms
- Gaussian channel with signal-to-noise ratio ; is sufficient for the whole path
- posterior mean , the denoiser that drives the sampler
- innovation form of the channel (Liptser-Shiryaev); simulate it from
- clock change from OU time to SNR; with scaling it gives the reversed OU sampler
- Observation process
- later observations Blackwell-more informative (reverse Markov) and complete
- Stochastic localization
- : a measure-valued martingale converging to
- posterior mean is a martingale that moves only where the posterior is uncertain
- Erasure process
- reveal coordinates at random times: autoregressive sampling, cross-entropy loss
- Path-space KL
- : the denoising loss up to a constant
- Window of width
- mixture denoiser switches clusters steeply in a low-probability region
- Prop. 7.1
- window- convolutional denoiser on : , TV
Quiz
- Proposition 1.1 lets one generate without drawing . What makes this possible?Conditioning on the observations replaces the drift by its conditional mean, and what remains is a martingale with quadratic variation , hence Brownian by LΓ©vy. The resulting SDE has a unique solution under a finite second moment, so its law is the law of .
- Why does the posterior mean evolve as with no drift?The conditional mean of a fixed random variable along a growing filtration is a martingale, so its drift must vanish. ItΓ΄'s formula with , the third central moment and confirms the cancellation and leaves the diffusion coefficient .
- Which property of an observation process guarantees that ends at a point mass ?By LΓ©vy's upward theorem , and completeness makes this . The Markov condition alone allows a channel that stops revealing information, and discrete channels such as erasure also localize.
- For the Gaussian channel, why is minimizing the path-space KL the same as denoising regression?Girsanov writes the path KL as a time integral of the squared gap between the true denoiser and the model , and the Pythagorean identity for conditional expectations turns that into minus a term free of , a regression that needs only samples of .
Sources
- Andrea Montanari. Sampling, Diffusions, and Stochastic Localization. arXiv preprint, 2023.