Preconditioned Langevin Dynamics with Score-based Generative Models for Infinite-Dimensional Linear Bayesian Inverse Problems

Lorenzo Baldassari, Josselin Garnier, Knut Solna, Maarten V. de Hoop

Abstract

Solving Bayesian inverse problems in infinite-dimensional function spaces is a cornerstone of modern scientific computing, yet standard score-based generative models (SGMs) often suffer from numerical instability when applied to high-resolution discretizations. This paper establishes a rigorous theoretical framework for Preconditioned Langevin Dynamics (PLD) driven by SGM priors. By deriving an optimal preconditioning operator, the authors ensure that sampling remains discretization-invariant and stable across all scales. The work provides the first error estimates for such samplers that explicitly account for neural network score approximation errors, demonstrating that proper preconditioning can mitigate the biases inherent in learned priors.

Introduction

Many critical inverse problems—ranging from medical imaging (CT and MRI) to seismic tomography and weather forecasting—involve estimating an unknown function, such as a 3D density map or a velocity field, rather than a finite vector of parameters. Mathematically, these functions reside in infinite-dimensional Hilbert spaces.

While traditional approaches discretize these problems into finite vectors to make them computationally tractable, this often leads to a "discretization trap." An algorithm optimized for a coarse grid may become unstable or produce physically inconsistent results (such as functions with infinite energy) as the grid resolution increases. Score-Based Generative Models (SGMs) have emerged as a powerful tool for learning complex priors in these settings, but their theoretical foundations are largely rooted in finite-dimensional Euclidean space. When applied to functions, the "drift" term in standard sampling algorithms can explode at fine scales, leading to numerical collapse. This research addresses this gap by designing algorithms that are inherently discretization-invariant.

Methodology: The Bayesianize-then-Discretize Approach

The authors advocate for a "Bayesianize-then-discretize" philosophy: designing the inference method in the continuous function space first to ensure stability regardless of the final grid resolution (e.g., $64 \times 64$ vs. $1024 \times 1024$).

Infinite-Dimensional SDEs

Instead of sampling a discrete vector, the authors define a Stochastic Differential Equation (SDE) directly within a Hilbert space. This formulation ensures that the mathematical properties of the posterior distribution are preserved across different levels of discretization.

The Role of the Preconditioner ($C$)

The core innovation is the introduction of a preconditioning operator, $C$. In finite-dimensional machine learning, preconditioning is often viewed as an optional acceleration technique. In infinite dimensions, however, it is a mathematical necessity. The authors prove that for the samples to represent valid functions with finite energy, the operator $C$ must be "trace-class," meaning its eigenvalues must decay at a specific rate. Using the identity matrix as a preconditioner—the default in standard Langevin dynamics—fails in this setting because it fails to suppress high-frequency noise, leading to divergent energy levels.

Optimal Preconditioning Strategy

The paper derives an explicit form for an "optimal" preconditioner that balances three critical factors:

  1. The Forward Operator: The underlying physics of the inverse problem.
  2. Noise Levels: The uncertainty in the observed data.
  3. Score Error: The approximation error of the neural network's learned score function.

Theoretical Contributions and Error Analysis

A significant contribution of this work is the first formal error analysis for SGM-driven samplers in Hilbert spaces. The authors provide estimates showing how inaccuracies in the neural network's score translate into bias in the final posterior distribution. They demonstrate that the optimal preconditioner achieves a "uniform convergence rate," meaning that both low-frequency global structures and high-frequency fine details of the function are sampled at a consistent speed. This prevents the sampler from becoming "stuck" on fine-scale details, a common failure mode in high-dimensional sampling.

Numerical Validation

The theoretical framework was validated through controlled mathematical experiments designed to test discretization invariance:

  • Brownian Sheet: A 2D Gaussian process was used to evaluate the algorithm's ability to reconstruct a random field from noisy data. The results confirmed that the preconditioned sampler maintained stability as the resolution increased.
  • Inverse Heat Source Problem: This classic ill-posed problem requires recovering the initial temperature distribution of an object from its later, cooled state. In this experiment, "vanilla" Langevin samplers saw their error explode as the grid was refined or as score error increased. In contrast, the preconditioned version remained stable and produced high-quality reconstructions even when using imperfect, neural-network-approximated scores.

Key Results and Insights

  • Stability and Convergence: The authors provide proofs that the preconditioned sampler is globally bounded and converges in Kullback–Leibler (KL) divergence to the true posterior.
  • Efficiency: Autocorrelation analysis indicates that the preconditioned sampler reaches the target distribution significantly faster than standard methods, with all modes of the function converging predictably.
  • Mitigating Score Bias: While a preconditioner cannot entirely eliminate the errors of a poorly trained neural network, it can significantly mitigate the resulting biases in the posterior distribution.

Limitations and Future Directions

The current derivation for the optimal preconditioner assumes a linear inverse problem (e.g., $y = Ax + n$). While the broader framework is applicable to non-linear settings, finding the "perfect" preconditioner for non-linear problems like fluid dynamics or optical flow remains an open challenge. Additionally, some error expansions assume that the prior and the physics operator share a common basis (eigenfunctions), which is common but not universal in physics. Future work will explore extending these infinite-dimensional insights to non-linear problems and investigating how these principles can improve the initial training of SGMs themselves.

Summary updated

BibTeX
@inproceedings{baldassari2025preconditioned,
  author = {Lorenzo Baldassari and Josselin Garnier and Knut Solna and Maarten V. de Hoop},
  title = {{Preconditioned Langevin Dynamics with Score-based Generative Models for Infinite-Dimensional Linear Bayesian Inverse Problems}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=rVyBrD8h2b},
}
Figure