Analyzing Inverse Problems with Invertible Neural Networks

Lynton Ardizzone, Jakob Kruse, Sebastian J. Wirkert, Daniel Rahner, Eric W. Pellegrini, Ralf S. Klessen, Lena Maier-Hein, Carsten Rother, Ullrich Köthe

Introduction

In many scientific disciplines, researchers face inverse problems: the challenge of inferring a cause ($x$) from an observed effect ($y$). While the "forward process" ($x \to y$) is often well-defined by physical laws or simulations, the inverse is frequently "ill-posed." This means multiple distinct sets of parameters $x$ can produce the exact same observation $y$.

Standard neural networks struggle with these ambiguities because they are typically designed to output a single "best guess." When forced to choose between multiple valid solutions, they often average them, resulting in a prediction that is physically impossible. To truly understand such systems, scientists require the full posterior distribution—a map of all possible causes and their relative likelihoods.

Methods: The Invertible Framework

To address these challenges, this paper proposes a framework based on Invertible Neural Networks (INNs). Unlike standard architectures, INNs utilize bijective (one-to-one) mappings, ensuring that no information is lost during the transformation between parameter space and observation space.

The INN architecture maps parameters $x$ to a combined space of observations $y$ and latent variables $z$.

The core innovation lies in the introduction of latent variables $z$. While the observation $y$ captures the measurable effects, $z$ is designed to capture all the "hidden" information about $x$ that is lost in the forward process. By mapping $x \leftrightarrow [y, z]$, the network can be run backward: by taking a fixed observation $y^*$ and sampling $z$ from a simple Gaussian distribution, the model generates a variety of possible $x$ values, effectively sampling the posterior $p(x|y^*)$.

Bi-directional Training

The network is trained simultaneously in both directions using a combination of supervised and unsupervised losses:

  • Supervised Loss ($L_y$): Ensures the forward mapping accurately predicts observations.
  • Unsupervised Losses ($L_z$ and $L_x$): Uses Maximum Mean Discrepancy (MMD) to ensure the latent space follows a Gaussian distribution and that reconstructed parameters match the prior distribution.

Key Insights and Distribution Capture

A critical advantage of the INN is its mathematical requirement to represent the entire distribution. Unlike Conditional GANs, which often suffer from "mode collapse" (only showing one of many possible solutions), the bijective nature of INNs forces them to account for all valid parameters.

Comparison of ground truth distributions against INN results with different loss configurations, demonstrating the necessity of the full loss suite to capture multi-modal solutions.

As shown in the figure above, the inclusion of all loss components is vital. Without the full suite of $L_x, L_y,$ and $L_z$, the model fails to accurately reconstruct the complex, multi-modal clusters of the ground truth. This capability allows researchers to identify "unrecoverable" parameters; if the predicted posterior for a variable matches its prior, the model is signaling that the observation $y$ provides no information about that specific parameter.

Evaluation and Results

The authors evaluated the INN framework across four diverse domains:

  1. Gaussian Mixture Model: A synthetic 2D toy problem testing multi-modal cluster recovery.
  2. Inverse Kinematics: Finding joint angles for a simulated articulated arm to reach a specific coordinate.
  3. Medical Imaging: Estimating physiological properties like oxygen saturation from multispectral tissue images.
  4. Astrophysics: Inferring star cluster properties (mass, age) from interstellar gas cloud measurements.

Performance Highlights

  • Superior Calibration: In medical tasks, INNs achieved a calibration error of just 0.34%, significantly outperforming Conditional VAEs (2.19%). This indicates that the uncertainty reported by the INN is statistically reliable.
  • Efficiency: Compared to Approximate Bayesian Computation (ABC)—the traditional "gold standard" for these problems—INNs are orders of magnitude faster at inference time, reducing weeks of simulation to minutes of sampling.
  • Parameter Correlation: The model successfully uncovers how parameters are linked, showing how one variable must change in response to another to maintain the same observation.

Limitations and Future Work

While powerful, the framework faces challenges in scaling. The MMD loss used to compare distributions becomes less effective as dimensionality increases. Additionally, the requirement for invertibility limits the architectural design space to specific types of layers (e.g., coupling layers). Future research will focus on more flexible invertible architectures and scaling the method to high-dimensional image-to-image translation tasks.

Summary updated

Abstract

In many tasks, in particular in natural science, the goal is to determine hidden system parameters from a set of measurements. Often, the forward process from parameter- to measurement-space is a well-defined function, whereas the inverse problem is ambiguous: one measurement may map to multiple different sets of parameters. In this setting, the posterior parameter distribution, conditioned on an input measurement, has to be determined. We argue that a particular class of neural networks is well suited for this task -- so-called Invertible Neural Networks (INNs). Although INNs are not new, they have, so far, received little attention in literature. While classical neural networks attempt to solve the ambiguous inverse problem directly, INNs are able to learn it jointly with the well-defined forward process, using additional latent output variables to capture the information otherwise lost. Given a specific measurement and sampled latent variables, the inverse pass of the INN provides a full distribution over parameter space. We verify experimentally, on artificial data and real-world problems from astrophysics and medicine, that INNs are a powerful analysis tool to find multi-modalities in parameter space, to uncover parameter correlations, and to identify unrecoverable parameters.
BibTeX
@inproceedings{ardizzone2019analyzing,
  author = {Lynton Ardizzone and Jakob Kruse and Sebastian J. Wirkert and Daniel Rahner and Eric W. Pellegrini and Ralf S. Klessen and Lena Maier-Hein and Carsten Rother and Ullrich Köthe},
  title = {{Analyzing Inverse Problems with Invertible Neural Networks}},
  booktitle = {International Conference on Learning Representations},
  year = {2019},
  url = {https://openreview.net/forum?id=OaiuX3lErH},
}
Figure