Refining Amortized Posterior Approximations using Gradient-Based Summary Statistics

Rafael Orozco, Ali Siahkoohi, Mathias Louboutin, Felix J. Herrmann

TL;DR

This paper introduces an iterative framework to bridge the gap between fast, amortized Bayesian inference and high-accuracy iterative optimization. By using gradient-based summary statistics and normalizing flows, the authors refine posterior approximations over multiple steps, significantly improving image reconstruction in complex, high-dimensional inverse problems like transcranial ultrasound.

What Problem Does This Paper Address?

Solving Bayesian inverse problems—estimating hidden parameters $x$ from noisy observations $y$ (where $y = F(x) + \epsilon$)—is a cornerstone of medical imaging and geophysics. Researchers typically choose between two paths:

  1. Amortized Variational Inference (AVI): Fast at inference time because a neural network is pre-trained to map data to a posterior. However, it often suffers from an "amortization gap," where the approximation is less accurate than it could be due to limited training data or model capacity.
  2. Non-amortized Inference: Highly accurate but requires solving a fresh optimization problem for every new observation, making it computationally prohibitive for real-time applications.

The authors seek a middle ground: an iterative amortized approach that preserves fast online inference while achieving the accuracy levels of non-amortized methods.

Methods

The core of the proposed method is an iterative refinement loop inspired by loop-unrolled gradient descent. The process works as follows:

  • Summary Statistics: Instead of feeding raw, high-dimensional data into a network, the authors use the "score"—the gradient of the log-likelihood at a current estimate $x_0$. This score is theoretically proven to be a "maximally informative" summary of the data.
  • Conditional Normalizing Flows (CNF): The authors train a CNF to learn the distribution of the update ($\Delta x$) needed to move from the current estimate toward the true parameters, conditioned on the score.
  • Iterative Training: The framework alternates between updating the estimate (using the posterior mean from the CNF) and re-calculating the score at this new, more accurate point. Each iteration uses a new CNF trained on the residuals of the previous step.
  • No Extra Data: Crucially, this refinement happens using the original training set; the model simply learns to extract more information from the same data by focusing on residuals.
Figure 1: Our method iteratively improves its posterior approximation as compared to the analytical posterior.

Datasets

The authors validated their approach on two distinct problems:

  1. Gaussian Toy Problem: A linear inverse problem with a known analytical solution, used to verify that the method correctly recovers the ground truth posterior mean and covariance.
  2. Transcranial Ultrasound Computed Tomography (TUCT): A high-dimensional, non-linear problem. The goal is to map the speed of sound in the brain.
  3. Prior Data: The authors used the FASTMRI dataset (MRI volumes from 250 subjects), assigning acoustic values to the tissues to create 2,475 training slices.
  4. Forward Model: Simulations were performed using the Devito finite-differences software to solve the wave equation.
Figure 2: Medical imaging inverse problem: (a) 3D imaging hardware; (b) 2D in-silico demo used in this work; (c) Example starting fiducial x0; (d) Simulated observations y;

Key Insights and Ideas

  • The Power of the Score: The "score" summary statistic ($\nabla_{x} \log p(y|x)$) is most informative when calculated near the true value. By iteratively updating $x$, the summary statistic itself becomes "better," allowing the next normalizing flow to produce a sharper posterior approximation.
  • Bridging the Gap: The method effectively moves some of the heavy computational lifting from the "online" inference phase to the "offline" training phase. Once the sequence of flows is trained, inference remains very fast.
  • Ameliorating Small Datasets: The authors found that their iterative approach can compensate for small training sets. As shown in Figure 4, three iterations with a small dataset can achieve results comparable to a single-pass AVI trained on a much larger dataset.
Figure 4: Iterative refinement (red line) allows models trained on fewer samples to match the performance of standard amortized models (black line) trained on much larger datasets.

Key Results

In the ultrasound imaging task, the iterative method showed clear qualitative and quantitative improvements:

  • Visual Clarity: Each iteration reduced the error and uncertainty, particularly in the lower half of the brain where the limited-view receivers make the problem most difficult.
  • Quantitative Gains: After three iterations, the average Peak Signal-to-Noise Ratio (PSNR) reached 43.27 dB, a significant improvement over the non-iterative baseline of 40.45 dB.
  • Structural Accuracy: The Structural Similarity Index (SSIM) improved from 0.977 to 0.985, and the Root Mean Squared Error (RMSE) dropped by nearly 27%.

Limitations and Future Work

  • Offline Training Cost: While inference is fast, training $L$ separate normalizing flows increases the pre-computation time and memory requirements. The authors suggest that future work could explore reusing the same network weights across iterations or using implicit layers to mitigate this.
  • Point Statistics: This study focused on using the posterior mean to update the fiducial point. The authors note that exploring other statistics (like the MAP estimate) remains an open area for research.
  • Forward Model Dependence: The method relies on having a differentiable forward operator $F$ to calculate the scores. In cases where the forward model is a "black box," this specific gradient-based summary statistic would be difficult to implement.

Summary updated

BibTeX
@misc{orozco2023refining,
  author = {Rafael Orozco and Ali Siahkoohi and Mathias Louboutin and Felix J. Herrmann},
  title = {{Refining Amortized Posterior Approximations using Gradient-Based Summary Statistics}},
  year = {2023},
  eprint = {2305.08733},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.08733},
}
Figure