Solving Forward and Inverse Problems Using Autoencoders

Hwan Goh, Sheroze Sheriffdeen, Tan Bui-Thanh

Abstract

Inverse problems, which involve inferring hidden parameters from observed data, are fundamental to scientific computing but often suffer from extreme computational costs and ill-posedness. Traditional Bayesian methods like Markov Chain Monte Carlo (MCMC) provide robust uncertainty quantification but are too slow for real-time applications. This paper presents UQ-VAE, a hybrid framework that adapts Variational Autoencoders (VAEs) to solve these problems by integrating physical laws directly into the architecture. By utilizing a family of Jensen-Shannon Divergences (JSD) and treating the latent space as the physical parameter of interest, UQ-VAE achieves inference speeds over 2,750 times faster than traditional Laplace approximations while maintaining high accuracy.

Introduction

In fields ranging from geophysics to medical imaging, researchers face the challenge of "inverse problems": determining the internal properties of a system (e.g., the thermal conductivity of a material) based on external observations (e.g., temperature readings from sensors). These problems are inherently difficult because they are often ill-posed—meaning multiple configurations of parameters can produce the same observed data.

To address this, Bayesian inference is typically employed to provide a distribution of possible solutions rather than a single estimate. However, the computational burden of these methods is immense, often requiring thousands of iterations of complex Partial Differential Equation (PDE) solvers. The UQ-VAE framework addresses this bottleneck by combining the generative power of autoencoders with the rigor of physical constraints.

The UQ-VAE Framework

The core innovation of UQ-VAE lies in its re-imagining of the standard Variational Autoencoder. In a traditional VAE, the latent space is an uninterpretable vector used for data compression or generation. In UQ-VAE, the authors explicitly define the latent space as the Parameter of Interest (PoI).

Jensen-Shannon Divergence Loss

Standard VAEs rely on Kullback-Leibler (KL) divergence, which can be restrictive when trying to incorporate known "ground truth" parameter data from simulations. UQ-VAE replaces this with a generalized objective function based on Jensen-Shannon Divergence. This allows the model to learn from three distinct information sources:

  1. Physical Laws: Encoded via the forward model (the "Parameter-to-Observable" map).
  2. Prior Knowledge: Statistical assumptions about the parameters.
  3. Paired Datasets: Synthetic or experimental data where both the parameters and the observations are known.

The $\alpha$ Hyperparameter and Adaptive Optimization

The framework introduces an $\alpha$ hyperparameter that allows researchers to tune the "distance" between the model's predicted distribution and the target posterior. This acts as a control dial between "zero-forcing" (focusing on the mode) and "zero-avoiding" (capturing the full spread) behaviors. Furthermore, the model exhibits an inherent adaptive optimization property: as the model's certainty increases, the inverse of the posterior covariance acts as a penalty, preventing the variance from collapsing and ensuring stable convergence.

Experimental Evaluation: 2D Heat Conduction

The researchers benchmarked UQ-VAE using a classic elliptic PDE problem: estimating the thermal conductivity field in a 2D domain based on ten sparse temperature measurements.

Data and Benchmarking

Synthetic datasets were generated using the FEniCS library, with training sets ranging from 50 to 5,000 pairs and varying levels of noise. The performance was compared against hIPPYlib, a state-of-the-art library for high-performance Bayesian inverse problems using the Laplace approximation.

Key Results

  • Massive Speedup: The most striking result is the computational efficiency. While the traditional Laplace approximation required 110 seconds to perform inference, UQ-VAE completed the same task in just 0.04 seconds. This 2750x speedup enables real-time monitoring and rapid decision-making in engineering contexts.
  • Estimation Accuracy: UQ-VAE's posterior mean estimates were consistently more accurate than the Maximum A Posteriori (MAP) estimates produced by traditional methods.
  • Data Efficiency: The model demonstrated strong data efficiency, with uncertainty estimates becoming progressively tighter and more reliable as the size of the training dataset increased.

Discussion and Limitations

While UQ-VAE represents a significant leap forward, several areas for refinement remain. The current model assumes Gaussian distributions for noise and priors, which may not suffice for highly non-linear or multi-modal physical systems. Additionally, the authors noted that training stability can be sensitive to the $\alpha$ hyperparameter; as $\alpha$ approaches 1 (the standard VAE limit), the regularization provided by the JSD becomes less effective.

Conclusion

UQ-VAE bridges the gap between deep learning and scientific computing. By "embedding" the laws of physics into the decoder and utilizing a flexible JSD-based loss function, the framework transforms slow, simulation-heavy inverse problems into near-instantaneous neural network inferences. This paves the way for the integration of complex physical modeling into real-time industrial and scientific workflows.

Summary updated

BibTeX
@inproceedings{goh2021solving,
  author = {Hwan Goh and Sheroze Sheriffdeen and Tan Bui-Thanh},
  title = {{Solving Forward and Inverse Problems Using Autoencoders}},
  booktitle = {Msml},
  year = {2021},
}
Figure