Efficient Approximate Posterior Sampling with Annealed Langevin Monte Carlo

Advait Parulekar, Litu Rout, Karthikeyan Shanmugam, Sanjay Shakkottai

Sampling from the posterior distribution $p(x|y)$ in score-based generative models is a notoriously difficult theoretical problem, often considered intractable in the worst case. While popular algorithms for tasks like image super-resolution, stylization, and reconstruction enjoy empirical success, formal guarantees have lagged behind. This paper introduces Annealed Langevin Monte Carlo (ALMC), providing the first formal proof that we can tractably sample an approximation of the posterior in polynomial time by balancing global correctness and local sample quality.

The Challenge of Posterior Sampling

Score-based generative models (such as Stable Diffusion) are excellent at capturing complex data priors $p(x)$. However, many real-world inverse problems—like image inpainting or MRI reconstruction—require sampling from the posterior $p(x|y)$, where $y$ is a specific measurement.

Theoretically, this is a daunting task. Previous research suggests that exact posterior sampling is computationally hard, sometimes equivalent to breaking cryptographic functions. This difficulty arises because the prior and the measurement often conflict. A measurement might be consistent with multiple "modes" (clusters) of the prior, causing a standard sampler to get stuck in one mode while ignoring others—a phenomenon known as mode collapse. This paper seeks to bridge the gap between this theoretical impossibility and the empirical success of diffusion-based inverse problem solvers.

Annealed Langevin Monte Carlo (ALMC)

To navigate the complex landscape of the posterior, the authors propose a two-phase algorithm called Annealed Langevin Monte Carlo (ALMC):

  1. Warm Start: The algorithm begins by sampling from a distribution that prioritizes the measurement $y$ while largely ignoring the complex prior. Because this initial target is "strongly log-concave" (mathematically well-behaved), the sampler can converge quickly to a reasonable starting point.
  2. Annealing Phase: The sampler then follows a path of "noised posteriors." It starts with a very noisy version of the prior and gradually reduces the noise.
Visualization of the Annealed Langevin Monte Carlo (ALMC) trajectory, illustrating the warm start and the tracking of noised posteriors.

Unlike standard diffusion, which reverses noise at a fixed rate, ALMC uses a "slow-down" trick governed by a parameter $\kappa$. This allows the algorithm to carefully track the changing distribution more accurately without losing the modes it has discovered.

Key Insights: Tilting and Divergence

The core innovation of this work is viewing posterior sampling not as an "all-or-nothing" exact task, but as a "tilting" problem. The authors leverage two different mathematical measures of distance to ensure success:

  • KL Divergence for Global Correctness: KL divergence is too strict for matching the true posterior, but it is highly effective for a noised posterior. By staying close to a noised posterior in KL divergence, the algorithm ensures the sampler doesn't miss modes.
  • Fisher Divergence for Local Quality: Fisher Divergence (FI) is excellent for local convergence and ensuring individual samples look realistic, even though it is "blind" to the overall weight of different modes.

By satisfying both conditions—KL for a noisy version and FI for the true version—ALMC achieves the best of both worlds. The paper proves that sampling from a distribution close to a slightly noised posterior is tractable. In practical terms, a slightly noised sample is often indistinguishable from a clean one, making this a powerful and pragmatic compromise.

Datasets and Mode Discovery

As a theoretical paper, the authors focus on synthetic simulations to demonstrate "mode discovery" in scenarios where standard methods fail. These include a 5-component Mixture of Gaussians, the Moons dataset, and a custom 2D "Vertical Bars with Gaps" distribution.

Synthetic 'Vertical Bars' distribution demonstrating how varying noise levels affect the posterior landscape and mode weights.

These synthetic tests simulate pathological cases where some modes should have lower weights. In these tests, ALMC successfully discovered all modes of a bimodal posterior, whereas standard unannealed Langevin methods collapsed into a single mode.

Key Results and Limitations

Polynomial Time Guarantee: The standout result is the mathematical proof that ALMC reaches its target in $O(\kappa^{5/4})$ time. Under minimal assumptions (Lipschitz scores and convex measurements), this is the first formal result showing that approximate posterior sampling can be done in polynomial time.

Limitations: * Convexity Assumption: The current proofs require the measurement model to be smooth and convex. While this covers many linear inverse problems (like blurring or inpainting), it does not yet extend to the highly non-linear "reward models" used in some advanced generative tasks. * Conservative Bounds: As is common in theoretical computer science, the proven "polynomial time" bounds might be significantly slower than the convergence rates practitioners observe empirically.

Future work may explore applying this "annealed path" logic to other frameworks, such as Split-Gibbs sampling, or investigating different types of noise beyond Gaussian to achieve even better convergence properties.

Summary updated

BibTeX
@inproceedings{parulekar2026efficient,
  author = {Advait Parulekar and Litu Rout and Karthikeyan Shanmugam and Sanjay Shakkottai},
  title = {{Efficient Approximate Posterior Sampling with Annealed Langevin Monte Carlo}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=7GrUROKDyW},
}
Figure