Score-Based Diffusion Models as Principled Priors for Inverse Imaging

Berthy T. Feng, Jamie Smith, Michael Rubinstein, Huiwen Chang, Katherine L. Bouman, William T. Freeman

Inverse imaging—the task of recovering an underlying signal from noisy, blurry, or incomplete measurements—is a fundamental challenge in fields ranging from medical diagnostics to radio astronomy. Because these problems are inherently "ill-posed," multiple candidate images can often explain the same set of data. To resolve this ambiguity, researchers rely on a prior: a mathematical model that defines what a "natural" or "valid" image should look like.

Historically, researchers have faced a difficult tradeoff. Simple priors (like Gaussian or Total Variation models) are mathematically principled and allow for rigorous Bayesian analysis, but they often produce overly smooth or "plastic" results. Conversely, modern deep learning models (like CNNs) are highly expressive and produce visually stunning results, but they typically function as "black boxes." These implicit models make it difficult to calculate exact probabilities, perform uncertainty quantification, or avoid "hallucinations" without significant manual tuning of hyperparameters.

In a collaboration between Caltech and Google Research, this paper introduces a framework that bridges this gap. By treating score-based diffusion models as explicit density functions, the authors enable principled, hyperparameter-free Bayesian inference for complex imaging tasks.

Methodology: Diffusion Models as Densities

The core innovation of this work lies in the realization that score-based diffusion models are not merely samplers; they are theoretically linked to an Ordinary Differential Equation (ODE) known as the "probability flow ODE." This link allows a pre-trained diffusion model to be treated as a continuous-time normalizing flow.

Log-Probability and the ODE

By leveraging the probability flow ODE, the authors can calculate the exact log-probability $\log p(x)$ of any image. This transforms the diffusion model from an implicit generative tool into an explicit prior. To handle the high-dimensional nature of image data, the implementation utilizes JAX and the Diffrax library for efficient ODE solving, alongside Hutchinson-Skilling trace estimation for divergence calculations.

Deep Probabilistic Imaging (DPI)

Rather than using standard diffusion sampling—which often requires hand-tuned weights to balance the prior against the measurements—the authors employ Deep Probabilistic Imaging (DPI). They train a secondary model, a RealNVP normalizing flow, to approximate the posterior distribution $p(x|y)$. Because the framework can calculate the actual prior probability, the Bayesian balance between the data and the prior is handled automatically, removing the need for heuristic hyperparameter tuning.

Experimental Validation

The authors evaluated their framework across several benchmarks, including CelebA (faces), CIFAR-10 (general objects), and a synthetic black hole dataset modeled after the Event Horizon Telescope (EHT) array.

Quantitative Performance

In deblurring experiments on the CelebA dataset, the proposed method achieved a PSNR of 24.75, significantly outperforming the popular Diffusion Posterior Sampling (DPS) baseline, which reached a PSNR of 20.37.

Uncertainty Quantification

Beyond simple reconstruction, the method provides rigorous uncertainty quantification. The resulting standard deviation maps correlate with actual image features—showing higher uncertainty around complex areas like the eyes or hair—whereas simpler priors often produce uncertainty maps that are structurally "unaware."

Scientific Robustness

A critical finding for scientific applications is the model's robustness to "mismatched" priors. In a test case where a "face" prior was used to reconstruct a black hole from simulated interferometric data, the model correctly identified the underlying ring structure as more telescopes were added to the array. Unlike baseline methods (such as DPS or Score-ALD), which tend to hallucinate facial features into the scientific data, this principled Bayesian approach stably moved away from the prior as the strength of the measurements increased.

Limitations and Future Directions

While the method represents a significant theoretical and practical advance, it faces two primary hurdles:

  1. Computational Cost: Calculating log-probabilities requires solving an ODE repeatedly during the optimization of the normalizing flow, making it slower than "plug-and-play" denoisers.
  2. Scaling: Current experiments were conducted on low-resolution images ($32 \times 32$ or $64 \times 64$). Scaling this principled approach to megapixel-scale scientific imagery remains an active area for future research.

By turning "black box" generative models into rigorous tools for inference, this work provides a path toward using AI as a reliable instrument for scientific discovery.

Summary updated

BibTeX
@inproceedings{feng2023score,
  author = {Berthy T. Feng and Jamie Smith and Michael Rubinstein and Huiwen Chang and Katherine L. Bouman and William T. Freeman},
  title = {{Score-Based Diffusion Models as Principled Priors for Inverse Imaging}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
  url = {https://openreview.net/forum?id=7Mcg8cUwne},
}
Figure