Amortized Posterior Sampling with Diffusion Prior Distillation

Abbas Mammadov, Hyungjin Chung, Jong Chul Ye · DOI

Abstract

Inverse problems in signal processing often rely on diffusion models as powerful priors, yet their iterative sampling process is computationally intensive. We introduce Amortized Posterior Sampling (APS), a method that distills diffusion priors into a single-step conditional normalizing flow. APS enables high-quality, diverse posterior sampling across various manifolds—including Euclidean images, 3D meshes, and spherical data—in a single neural function evaluation (NFE). Our results demonstrate a 1000x speedup over traditional iterative solvers while maintaining competitive reconstruction quality and robust generalization.

Introduction

Solving inverse problems involves recovering an original signal $x$ from a degraded measurement $y$. While modern Diffusion Models (DMs) serve as excellent priors for these tasks, standard Diffusion-based Inverse Solvers (DIS) require dozens or hundreds of iterations to produce a single sample. This computational burden limits their use in real-time applications. Existing amortization techniques using Variational Inference (VI) often require training a new model for every specific measurement, which is impractical. APS addresses this gap by training a global conditional model that can solve inverse problems for any measurement in a single step.

Methodology

APS utilizes a Conditional Normalizing Flow (CNF), denoted as $G_\phi(z, y)$, to map a latent noise vector $z$ and a measurement $y$ to a posterior sample. The model is trained to distill a pre-trained diffusion prior by minimizing the KL divergence between the CNF's distribution and the posterior distribution defined by the prior.

Key technical innovations include:

  • Amortization: The model generalizes across all possible measurements $y$ within a domain, enabling one-step inference at test time.
  • Efficient Training via ELBO: To avoid the high cost of solving Probability Flow ODEs during training, the authors employ an Evidence Lower Bound (ELBO) based on Denoising Score Matching (DSM).
  • Manifold Awareness: The architecture uses a vectorized input format, allowing it to naturally extend to non-Euclidean geometries, such as signals on 3D meshes (Bunny-MNIST) or spherical climate data (ERA5), without specialized rendering steps.

Experimental Results

The authors evaluated APS across three distinct domains: facial image denoising (CelebA), 3D manifold inpainting (Bunny-MNIST), and spherical data imputation (ERA5).

Speed and Quality

APS achieves a dramatic 1000x speedup over iterative solvers. While methods like Diffusion Posterior Sampling (DPS) require ~16-19 seconds per sample (50+ NFEs), APS generates samples in approximately 0.002 seconds (1 NFE). Despite this speed, APS maintains high fidelity; for instance, on CelebA denoising, it achieved a PSNR of 25.82 dB, closely trailing the 27.93 dB of the much slower DPS.

Generalization and Diversity

APS demonstrates strong generalization capabilities. A model trained on CelebA successfully denoised images from the out-of-distribution FFHQ dataset. Furthermore, as a generative flow model, APS can produce multiple valid solutions for a single measurement by varying the input noise vector $z$, providing a measure of uncertainty in the reconstruction.

Discussion and Limitations

While APS offers unprecedented speed and versatility, its current vectorized architecture lacks the spatial inductive biases (e.g., convolutions) found in standard image models. This can result in minor artifacts or graininess in high-resolution reconstructions. Future research will focus on integrating more sophisticated network architectures that preserve spatial structure while maintaining the efficiency of the amortized approach.

Summary updated

BibTeX
@misc{mammadov2024amortized,
  author = {Abbas Mammadov and Hyungjin Chung and Jong Chul Ye},
  title = {{Amortized Posterior Sampling with Diffusion Prior Distillation}},
  year = {2024},
  eprint = {2407.17907},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.17907},
}
Figure