Reliable amortized variational inference with physics-based latent distribution correction

Ali Siahkoohi, Gabrio Rizzuti, Rafael Orozco, Felix J. Herrmann

This paper, recently published by researchers at Georgia Institute of Technology and Utrecht University, tackles a major hurdle in applying deep learning to complex physical systems: the "brittleness" of neural networks when they encounter data that looks different from their training set.

TL;DR

The authors propose a method to make "amortized" Bayesian inference—which uses neural networks for near-instant predictions—robust to real-world data shifts. By performing a computationally cheap, physics-informed "correction" in the latent space of a normalizing flow, they achieve high-quality seismic images and uncertainty estimates at a fraction of the cost of traditional methods.

What Problem Does This Paper Address?

In geophysics, we often face "inverse problems": trying to map observed data (like seismic vibrations) back to the physical properties of the Earth's subsurface. Bayesian inference is the gold standard here because it doesn't just give one answer; it provides a probability distribution (the posterior) that quantifies our uncertainty.

However, traditional Bayesian methods like Markov chain Monte Carlo (MCMC) are painfully slow for high-dimensional problems. Amortized Variational Inference (AVI) solves this by pre-training a neural network to approximate the posterior. Once trained, the network can produce results almost instantly.

The "Aha!" moment of failure occurs when the test data differs from the training data—a "distribution shift." In geophysics, this is inevitable because we lack high-fidelity training data for every unique geological structure on Earth. If the network sees a new type of rock formation or a different noise level, its predictions become unreliable.

Methods

The authors use Conditional Normalizing Flows (CNFs)—a class of invertible neural networks that learn to map complex data distributions to a simple "latent" space (usually a standard Gaussian).

Their core innovation is Physics-based Latent Distribution Correction:

  1. Amortization: They first train a CNF on a large synthetic dataset to learn a general mapping from seismic data to subsurface images.
  2. The Shift: When faced with new, "out-of-distribution" data, the standard Gaussian assumption in the latent space no longer holds.
  3. The Correction: Instead of re-training the whole network (which is expensive), they relax the latent distribution assumption. They parameterize the latent space as a Gaussian with an unknown mean ($\mu$) and diagonal covariance ($s$).
  4. Physics-Informed Optimization: They solve a small optimization problem for $\mu$ and $s$ by minimizing the Kullback-Leibler (KL) divergence between the network's output and the true, physics-based posterior. This step uses the actual physical forward operator (the "physics-based" part) to ensure the correction stays grounded in reality.

Datasets

The study utilizes the Parihaka-3D field dataset, a well-known seismic imaging benchmark.

  • Training: 4,750 2D sections extracted from shallow sections of the dataset.
  • Testing: The authors intentionally induced distribution shifts by:
  • Reducing the number of seismic sources (from 102 to 25).
  • Increasing noise levels (up to 3x the training standard deviation).
  • Testing on deeper, geologically distinct sections not seen during training.

Key Insights and Ideas

  • Dimensionality Matters: Optimizing the latent distribution parameters ($\mu$ and $s$) is roughly 90 times lower-dimensional than trying to fine-tune the weights of the neural network itself. This makes the correction step incredibly fast.
  • Invertibility as a Guarantee: Because normalizing flows are bijective (invertible), the authors argue that there must exist a point in the latent space that corresponds to the true physical solution. The correction step is simply a way to find that neighborhood.
  • Hybrid Intelligence: The method combines the "intuition" of a pre-trained model (learned priors) with the "rigor" of a physical forward model. It uses the neural net to get close to the answer and the physics to cross the finish line.

Key Results

  • Robustness: The corrected AVI successfully mitigated artifacts caused by coarse source sampling and high noise that caused the uncorrected "amortized" model to fail.
  • Accuracy: In shifted scenarios, the correction improved the Signal-to-Noise Ratio (SNR) of the recovered images by 3 to 4 dB.
  • Efficiency: The entire correction process costs approximately the same as five reverse-time migrations (RTMs). For context, non-amortized variational methods often require tens of thousands of forward model evaluations.
  • Uncertainty Quantification: The model produced reliable "pointwise standard deviation" maps, correctly identifying higher uncertainty in complex geological areas (like deep channels) and poorly illuminated boundaries.

Limitations and Future Work

  • Linearity: The current examples focus on linearized seismic imaging (Born modeling). While the theory holds for non-linear problems, the computational cost of the forward operator would increase.
  • Diagonal Covariance: The authors used a diagonal covariance for the latent correction for speed. For extreme distribution shifts, a more complex (non-diagonal) covariance or a small secondary normalizing flow might be necessary.
  • Summary Functions: To handle even higher-dimensional data, the authors suggest investigating better "summary statistics" to prevent the network from being overwhelmed by raw data dimensions.

Summary updated

BibTeX
@inproceedings{siahkoohi2023reliable,
  author = {Ali Siahkoohi and Gabrio Rizzuti and Rafael Orozco and Felix J. Herrmann},
  title = {{Reliable amortized variational inference with physics-based latent distribution correction}},
  booktitle = {Geophysics},
  year = {2023},
  doi = {10.1190/geo2022-0472.1},
}
Figure