Sampling from the Random Linear Model via Stochastic Localization Up to the AMP Threshold

Han Cui, Zhiyuan Yu, Jingbo LiuAISTATS 2025

Abstract

This paper addresses the challenge of sampling from the posterior distribution of high-dimensional linear models, a task significantly more complex than point estimation. By integrating Approximate Message Passing (AMP) with the stochastic localization framework—the theoretical foundation of diffusion models—the authors develop an algorithm capable of sampling up to the theoretical computational limit. We demonstrate that the threshold for efficient sampling coincides with the threshold for mean estimation ($\Delta_{AMP}$). Rigorous convergence guarantees are provided, and numerical experiments confirm that the proposed method outperforms existing diffusion-based baselines in both accuracy and speed.

Introduction

Linear inverse problems, defined by the relationship $y = \phi\theta + w$, are ubiquitous in signal processing and scientific imaging. While Approximate Message Passing (AMP) provides a powerful framework for estimating the posterior mean (the signal $\theta$), generating samples from the full posterior distribution remains a formidable challenge. Traditional methods like Markov Chain Monte Carlo (MCMC) often suffer from slow convergence in high dimensions, particularly when dealing with non-convex or multimodal priors. This work bridges the gap between estimation and sampling by establishing that efficient sampling is possible whenever efficient estimation is feasible.

Methodology: AMP-Driven Stochastic Localization

The proposed approach leverages stochastic localization, a process where a signal is gradually revealed through a Stochastic Differential Equation (SDE). In modern generative AI, this is analogous to the reverse-time diffusion process. The core innovation lies in using the Bayes-optimal AMP estimator as the denoiser within this SDE framework.

Because AMP is tailored for linear models with Gaussian noise, it provides a mathematically precise tracking of the posterior mean at every infinitesimal step of the localization process. The resulting algorithm discretizes the SDE, employing $K$ iterations of AMP at each time step to update the state. This ensures that the final sample accurately reflects the desired posterior distribution.

Theoretical Contributions

The research provides several key insights into the geometry of high-dimensional posterior distributions:

  1. Threshold Alignment: The authors prove that the computational threshold for successful sampling is identical to the threshold for mean estimation ($\Delta_{AMP}$). This implies that if the signal can be estimated, it can also be sampled.
  2. Stability Along the Path: The study demonstrates that as long as the noise variance $\Delta$ remains below the AMP threshold, the sampling path avoids chaotic phase transitions, ensuring reliable convergence.
  3. Convergence Guarantees: By utilizing smoothed Kullback-Leibler (KL) divergence as an error metric, the authors bypass the strict Lipschitz continuity requirements typically needed for high-dimensional convergence proofs, allowing for broader applicability than previous Wasserstein-based approaches.

Experimental Results

Numerical evaluations were conducted using random linear models with both discrete ($\pm 1$) and continuous (Standard Normal) priors. The proposed algorithm was benchmarked against Diffusion Posterior Sampling (DPS-Gaussian), a popular recent technique.

Comparison of mean squared error (MSE) over time T for the proposed algorithm versus the DPS-Gaussian baseline across different signal dimensions N.

As shown in Figure 1, the proposed algorithm's MSE (log scale) converges toward the theoretical Minimum Mean Squared Error (MMSE) as the time parameter $T$ increases. In contrast, the DPS-Gaussian method exhibits significantly higher error and fails to reach the MMSE floor. Furthermore, the AMP-based approach demonstrated superior computational efficiency; for a problem size of $N=1728$, it achieved convergence in 390 seconds, compared to 882 seconds for the DPS-Gaussian baseline.

Conclusion and Future Work

This work establishes a rigorous link between estimation and sampling in high-dimensional linear models. By replacing heuristic neural denoisers with the Bayes-optimal AMP, the authors achieve theoretically optimal sampling performance. Future research directions include extending these results to heavy-tailed prior distributions and structured design matrices (e.g., rotationally invariant matrices) commonly found in real-world applications like medical imaging.

Summary updated

BibTeX
@inproceedings{cui2025sampling,
  author = {Han Cui and Zhiyuan Yu and Jingbo Liu},
  title = {{Sampling from the Random Linear Model via Stochastic Localization Up to the AMP Threshold}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2025},
  url = {https://openreview.net/forum?id=BDUb3feGuq},
}

Loading related content...

Figure