Conditional score-based diffusion models for Bayesian inference in infinite dimensions

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

Introduction

In many scientific disciplines, researchers are confronted with inverse problems: the challenge of estimating an unknown "cause" (such as the subterranean structure of the Earth) from noisy, observable "effects" (like surface-level seismic sensor readings). Mathematically, these underlying unknowns are often continuous functions, meaning they exist in infinite-dimensional spaces.

While score-based diffusion models (SDMs) have emerged as the gold standard for generative modeling and solving inverse problems in finite-dimensional vector spaces (like standard image generation), applying them to infinite-dimensional function spaces presents significant hurdles. This paper introduces a theoretically grounded framework that extends SDMs to infinite dimensions, enabling fast, discretization-invariant Bayesian inference for complex scientific tasks.

The Challenge: Why Infinite Dimensions Matter

Historically, applying diffusion models to function spaces has relied on two suboptimal workarounds:

  1. Discretize First: The continuous function is converted into a fixed-size vector before modeling. Unfortunately, models trained this way often fail to generalize when evaluated at higher or different grid resolutions.
  2. Unconditional Scores with Heuristics: The model learns the general, unconditional distribution of the functions. During inference, heuristic projections are used to force the generated samples to match the specific observations. This approach is computationally prohibitive because it requires evaluating the physics simulator (the forward operator) thousands of times during the sampling phase.

To overcome these limitations, the authors propose an amortized, conditional diffusion model. By learning to incorporate observations directly during training, the model bypasses the need for costly forward operator evaluations during inference, while remaining mathematically rigorous in infinite dimensions.

Methodology: Conditional Scores in Hilbert Spaces

The core contribution of this work is the rigorous mathematical definition and analysis of the conditional score function within a separable Hilbert space.

The Conditional Score and SDEs

The authors define the conditional score, $S(t, x, y)$, as the reverse drift of a stochastic differential equation (SDE) conditioned on an observation $y$. They mathematically prove that utilizing this score within a reverse-time SDE accurately samples from the target posterior distribution.

The Singularity Insight

A critical discovery in their theoretical analysis is that extending SDMs to conditional settings is highly non-trivial. Unlike unconditional scores, conditional scores tend to "blow up" (approach infinity) as time $t$ approaches zero, particularly when observations are noise-free. The authors establish the precise mathematical conditions required to keep the reverse SDE well-posed despite this singularity.

Conditional Denoising Estimator & FNOs

The paper proves that the standard "denoising score matching" objective—widely used in finite dimensions—remains a consistent estimator in infinite dimensions. To implement this practically, the authors parameterize the score function using Fourier Neural Operators (FNOs). Unlike standard convolutional architectures (e.g., U-Nets), FNOs are inherently discretization-invariant. A model trained on a coarse grid can seamlessly evaluate data on a fine grid without any retraining.

Experimental Validation

The researchers validated their framework across two distinct setups:

  1. Stylized Synthetic Example: A non-Gaussian, multi-modal distribution defined by $x_0 = ay^2 + \epsilon$. This tested the model's capacity to capture complex posterior geometries and verified its grid invariance across varying resolutions (e.g., 20 to 40 points).
  2. Large-Scale Seismic Imaging: A high-dimensional geophysics problem utilizing 4,750 2D seismic images ($256 \times 256$ pixels) derived from the real-world Parihaka-3D dataset in New Zealand. The objective was to estimate earth density ("squared-slowness") from simulated surface measurements.

Key Results and Insights

  • True Discretization Invariance: Following the principle of "avoiding discretization until the last possible moment," the model demonstrated perfect grid invariance. In the stylized example, predicted densities for 25-point and 35-point grids were virtually identical and perfectly matched the ground truth.
  • Amortization Equals Speed: By conditioning the network on the observation $y$ during training, the model completely skips costly physics simulations during sampling. Training is also highly efficient, taking only ~7 minutes on a single V100 GPU for the stylized example.
  • Reliable Uncertainty Quantification (UQ): Because the method is fundamentally Bayesian, it outputs a full distribution rather than a single point estimate. In the seismic imaging task, the ground truth almost universally fell within the model's 99% confidence interval. Furthermore, the model's pointwise standard deviation strongly correlated with actual reconstruction errors, providing vital reliability metrics for high-stakes engineering decisions.
  • Large-Scale Efficacy: The model successfully reconstructed complex geological structures, including reflectors and faults, from noisy seismic data.

Limitations and Future Directions

While a significant leap forward, the current framework has a few notable boundaries:

  • Linearity: The theoretical guarantees provided in the paper focus strictly on linear inverse problems. While deep learning methods often empirically succeed on non-linear tasks, formal mathematical proofs for non-linear infinite-dimensional SDMs remain an open research area.
  • Data Dependency: As an amortized approach, the model requires a substantial dataset of $(x, y)$ pairs for training. In many scientific domains, generating high-quality synthetic training data can be nearly as challenging as solving the inverse problem itself.
  • Gaussian Priors: Much of the framework's analytical tractability relies on a Gaussian reference measure. Future work will need to explore more complex, non-Gaussian reference measures in infinite dimensions.

Summary updated

BibTeX
@inproceedings{baldassari2023conditional,
  author = {Lorenzo Baldassari and Ali Siahkoohi and Josselin Garnier and Knut Solna and Maarten V. de Hoop},
  title = {{Conditional score-based diffusion models for Bayesian inference in infinite dimensions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=voG6nEW9BV},
}
Figure