Sampling, Diffusions, and Stochastic Localization

Andrea MontanariarXiv 2023 · DOI

Abstract

Generative diffusion models have become the standard for high-fidelity data synthesis. However, their reliance on continuous Gaussian noise often creates friction when dealing with discrete data or complex global dependencies. This paper introduces a unifying framework that connects diffusion models with stochastic localization. By reinterpreting sampling as an observation process—where information about a hidden variable is revealed incrementally—we provide a principled approach to designing sampling algorithms tailored to specific data structures.

Introduction

Modern generative AI relies heavily on diffusion models, which transform data into noise and learn to reverse the process. Despite their success, these models face two primary challenges: adapting to non-Gaussian or discrete domains and capturing long-range correlations using local architectures. This work addresses these issues by framing sampling through the lens of stochastic localization, a technique from probability theory that describes how a measure concentrates as information is revealed.

The Observation Process Framework

The central contribution of this work is the formalization of the Observation Process. Rather than viewing diffusion as the addition of noise, we consider a hidden variable $x$ (the target sample) and a stochastic process $Y_t$ that provides increasingly informative measurements of $x$ over time.

Mathematical Unification

The paper demonstrates that the Stochastic Differential Equations (SDEs) governing standard diffusion models are mathematically equivalent to those derived from stochastic localization. By applying a change of variables, the "denoising" step in diffusion is revealed to be a conditional expectation—the optimal Bayesian estimate of the original data given the accumulated measurements $Y_t$.

A Taxonomy of Sampling Schemes

This framework encompasses a wide variety of existing and novel sampling methods, including:

  • Standard Diffusions: Isotropic and anisotropic Gaussian processes.
  • Discrete Processes: Erasure processes for sequential sampling, as well as binary symmetric and $q$-ary processes for categorical data.
  • Structured Observations: Linear observation processes that reveal specific projections or averages, and Poisson processes for count data.

Overcoming Architectural Bottlenecks

A significant insight of this research concerns the interaction between sampling dynamics and neural network architecture. Standard diffusion models often utilize local denoisers, such as Convolutional Neural Networks (CNNs).

The Failure of Local Architectures

The paper proves (Proposition 7.1) that local convolutional denoisers are fundamentally limited when paired with standard isotropic diffusion. In scenarios where data exhibits long-range correlations—such as an image that must be entirely one color or another—the noise masks the global signal until it is too late for a local architecture to coordinate a coherent global structure. This results in "mottled" samples that are locally consistent but globally incoherent.

Designing for Global Coherence

To solve this, the framework allows for the design of observation processes that prioritize global information. For example, a "linear observation" process can be designed to reveal the average color of an image early in the sampling process. This provides the local denoiser with the necessary global context to produce coherent samples without changing the underlying architecture.

Experimental Results

The framework was validated using synthetic datasets designed to expose the limitations of standard models:

  1. Gaussian Mixtures: Standard diffusions struggle with well-separated mixtures because the denoiser must operate in low-probability regions. A "half-space" observation process simplifies this by revealing which side of a hyperplane the sample resides on.
  2. Global Image Coherence: Using $512 \times 512$ synthetic images (either "mostly red" or "mostly blue"), the study showed that while standard diffusion produced mixed results, the linear observation process—revealing channel averages first—achieved perfect global coherence using the same CNN.

Conclusion and Future Work

This paper provides a "cookbook" for researchers, including explicit KL-divergence loss functions for twelve different sampling schemes. While the current approach often requires prior intuition about data structure (e.g., identifying important global features), it opens the door for future work in automated observation design. Scaling these latent-aware processes to massive real-world datasets remains a key objective for the field.

Summary updated

BibTeX
@misc{montanari2023sampling,
  author = {Andrea Montanari},
  title = {{Sampling, Diffusions, and Stochastic Localization}},
  year = {2023},
  eprint = {2305.10690},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.10690},
}
Figure