Autoinverse: Uncertainty Aware Inversion of Neural Networks

Navid Ansari, Hans-Peter Seidel, Nima Vahidi Ferdowsi, Vahid Babaei · DOI

Abstract

Neural network surrogates are increasingly used to invert complex physical processes, yet they often suffer from the "surrogate gap"—a phenomenon where optimizers find designs that appear optimal to the model but are physically unfeasible. This paper introduces Autoinverse, a framework that incorporates uncertainty quantification into the inversion process. By utilizing Deep Ensembles to penalize solutions in regions of high aleatoric and epistemic uncertainty, Autoinverse ensures that inverted designs remain grounded in the underlying physics of the Native Forward Process (NFP). Our results across robotic and spectral printing benchmarks demonstrate that prioritizing model confidence over raw surrogate performance leads to significantly higher real-world accuracy.

Introduction

In scientific and engineering disciplines, neural networks frequently serve as forward surrogates, mapping design parameters to performance metrics. However, the ultimate goal is often the inverse: determining the specific design parameters required to achieve a target performance. Standard inversion techniques, such as Neural Adjoint (NA) or Tandem networks, are prone to "hallucinations." These occur when the inversion process exploits the surrogate's inaccuracies, finding "adversarial" designs that reside in data-sparse regions where the model's predictions are unreliable.

This discrepancy between the surrogate's prediction and the Native Forward Process (NFP) is known as the Surrogate Gap. Autoinverse addresses this by making the inversion process "uncertainty-aware," guiding the optimizer toward regions of the design space where the model is both accurate and confident.

Methodology

Autoinverse is designed as a modular strategy that can be integrated into existing optimization-based or architecture-based inversion methods. The framework replaces the standard single forward network with a Deep Ensemble—a collection of $M$ networks trained on the same dataset.

Uncertainty Quantification

The ensemble approach allows for the decomposition of predictive uncertainty into two critical components:

  1. Aleatoric Uncertainty: Represents the inherent noise in the data, such as measurement or sensor errors.
  2. Epistemic Uncertainty: Represents the model's lack of knowledge due to insufficient training data in specific regions of the input space.

The Uncertainty-Aware Cost Function

During the inversion process, Autoinverse modifies the standard loss function. Instead of merely minimizing the error between the predicted performance and the target, it introduces penalty terms for both types of uncertainty:

$$Loss = \text{Performance Error} + \alpha(\text{Aleatoric Uncertainty}) + \beta(\text{Epistemic Uncertainty})$$

By minimizing this augmented loss, the system is incentivized to find solutions that are not only mathematically optimal according to the surrogate but are also located in "reliable" regions of the design space well-supported by the training data.

Experimental Evaluation

The authors evaluated Autoinverse across three distinct high-dimensional benchmarks:

  • Multi-joint Robot: A 2D robotic arm inverse kinematics problem.
  • Spectral Printer: A complex mapping of 8-channel ink densities to a 31-dimensional color spectrum. The authors have released this NFP as a public benchmark for the research community.
  • Soft Robot: A high-dimensional FEM-based simulation involving a flexible robot with 40 controllable segments and 206 vertices.

Key Insights

The Accuracy-Reliability Trade-off

A core finding of the research is that Autoinverse often results in higher surrogate error but significantly lower NFP error. By sacrificing "perfect" scores on the proxy model to stay within the bounds of physical reality, the framework bridges the surrogate gap more effectively than standard methods.

Automated Regularization

Autoinverse provides a form of built-in regularization. In traditional engineering, experts must manually define boundary constraints to keep designs feasible (e.g., ensuring physical dimensions remain positive). Autoinverse handles this automatically; because the model lacks training data outside physical bounds, epistemic uncertainty spikes in those regions, naturally repelling the optimizer.

Robustness to Noise and Initialization

Standard inversion is often sensitive to the initial starting point. Autoinverse proves more robust because the uncertainty landscape acts as a "safety rail," guiding the optimizer toward data-rich regions. Furthermore, in experiments with 10% injected noise, Autoinverse maintained stable performance by detecting and avoiding unreliable input channels.

Results

  • Inverse Kinematics: On the multi-joint robot task, the Uncertainty Aware Neural Adjoint (UANA) achieved an NFP error of $3.21 \times 10^{-6}$, outperforming the standard Neural Adjoint ($3.24 \times 10^{-4}$) by two orders of magnitude.
  • Spectral Printing: Autoinverse achieved a Mean Squared Error (MSE) of 0.0087, compared to 0.1400 for standard methods. Standard models frequently produced unprintable, hallucinated ink densities, while Autoinverse maintained physical feasibility.
  • Noise Resilience: While standard methods failed to produce physically meaningful designs under noisy conditions, Autoinverse remained stable, demonstrating its utility for real-world datasets where sensor noise is inevitable.

Limitations and Future Work

The primary limitation of Autoinverse is the computational overhead associated with Deep Ensembles. Training and executing $M$ networks (typically 10 in this study) is more resource-intensive than using a single model. Future research may explore more efficient uncertainty estimation techniques, such as Monte Carlo Dropout or Laplace approximations, to reduce this cost. Additionally, extending the uncertainty-aware philosophy to generative architectures like Invertible Neural Networks (INNs) or Variational Autoencoders (VAEs) represents a promising avenue for future exploration.

Summary updated

BibTeX
@inproceedings{ansari2022autoinverse,
  author = {Navid Ansari and Hans-Peter Seidel and Nima Vahidi Ferdowsi and Vahid Babaei},
  title = {{Autoinverse: Uncertainty Aware Inversion of Neural Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=dNyCj1AbOb},
}
Figure