Representation Learning for Exact Preimages

Konstantin Hess, Stefan FeuerriegelarXiv 2026

TL;DR

TRIO (Tractable Representations for Preimage learning and Inverse Optimization) is a new framework that allows neural networks to maintain high predictive accuracy while providing an exact geometric representation of their preimages as a union of ellipsoids. This breakthrough enables global, often closed-form, optimization for inverse problems—like engineering design and safety verification—that were previously computationally prohibitive.

What Problem Does This Paper Address?

In many scientific and engineering fields, we don't just want to predict an outcome ($y = f(x)$); we want to work backward. We might ask: "What are all the possible designs ($x$) that ensure a bridge won't collapse ($y \le \text{safety threshold}$)?" or "Which input parameters lead to maximum efficiency?"

This is the preimage problem. For modern, highly non-linear neural networks, the set of inputs that satisfy a certain output condition (the preimage) is usually a "black box." It can be non-convex, disconnected, and lacks an explicit mathematical form. Currently, researchers face a frustrating three-way trade-off:

  1. Expressive Forward Prediction: Using powerful models like MLPs.
  2. Accurate Preimage Approximation: Finding the exact boundaries of the "safe" or "optimal" zones.
  3. Tractable Optimization: Being able to quickly search through those zones for the best solution.

Existing methods usually sacrifice one of these. For instance, Input Convex Neural Networks (ICNNs) make optimization easy but can't model non-convex functions well. Post-hoc methods try to "recover" the preimage from a trained MLP, but this is incredibly slow and often inaccurate.

Figure 1: Filling the gap: TRIO combines for- ward expressiveness with exact preimage ap- proximation and tractable inverse optimization.

Methods

The authors introduce TRIO, which uses a clever "preimage factorization" to bypass this trade-off.

The Forward Pass

Instead of a standard dense layer, TRIO models a function as the minimum envelope of $Q$ radial components: $$F_\theta(x) = \min_{r=1,\dots,Q} [\beta_r + \phi_r(d_r(x))]$$ Here, $d_r(x)$ defines an ellipsoidal geometry (a Mahalanobis distance), and $\phi_r$ is a strictly increasing nonlinear transformation (which can be a small neural network). This structure allows the model to remain highly expressive and non-convex.

The Backward Pass (The "Aha!" Moment)

Because $\phi_r$ is monotonic, when you set a target level $g$ (e.g., $F_\theta(x) \le g$), the complex nonlinear part "factors out." For each component, the condition simplifies to a simple scalar radius: $d_r(x) \le R_r(g)$.

The result? The entire preimage is represented exactly as a finite union of ellipsoids.

Figure 3: TRIO: The forward predictor is learned from data; for a chosen target, the preimage can be obtained ex- catly, which enables downstream optimziation over inde- pendent subproblems.

Datasets

The authors evaluated TRIO on three distinct benchmarks:

  • Six-Hump Camel: A classic 2D optimization benchmark with a multimodal landscape, used to visualize how well TRIO captures disconnected, non-convex preimages.
  • Complex Powers: A synthetic "stress test" where increasing a power parameter $p$ makes the function increasingly oscillatory and the preimages more fragmented.
  • Pandapower (AC Power-Flow): A real-world engineering application using the IEEE 30-bus system. The goal is to maximize renewable energy injection while staying within grid security constraints—a problem where feasibility is governed by complex physics.

Key Insights and Ideas

  • Geometry as a First-Class Citizen: By baking ellipsoidal geometry into the architecture, TRIO makes the "inverse" of a neural network mathematically explicit rather than a hidden property to be searched for later.
  • Universal Approximation: The authors prove that even though the preimages are "just" unions of ellipsoids, TRIO can approximate any continuous function and its entire family of preimages arbitrarily well as you increase the number of components $Q$.
  • Amortized Complexity: You pay the computational cost of the neural network once during training. For any downstream query, the nonlinear complexity is gone, leaving only simple geometric operations.
  • Closed-Form Solutions: For linear objectives (common in many engineering tasks), TRIO provides a closed-form global solution. You don't need an iterative solver; you just evaluate a formula for each ellipsoid and pick the best one.

Key Results

  • Massive Speedups: TRIO recovered preimages up to $10^5$ times faster than state-of-the-art post-hoc methods like PREMAP2, while achieving higher accuracy (measured by Intersection over Union, or IoU).
  • Expressiveness: Unlike ICNNs, which fail to fit non-convex data, TRIO's accuracy quickly converges to that of an unrestricted MLP as the number of parameters increases.
As parameters increase, TRIO matches MLP accuracy, while ICNNs struggle with non-convexity.
  • Real-World Reliability: In the power-flow experiment, TRIO was the only method that consistently found solutions that were both globally optimal for the learned model and physically feasible in the real simulator, all while solving in milliseconds.
Figure 4: Preimage reconstruction. For fixed neural backbone, larger Q yields increasingly ac- curate geometric reconstruction, while the number of active experts varies across target levels.

Limitations and Future Work

While TRIO is a major step forward, the authors note some areas for growth:

  • High-Dimensional Scaling: While the universal approximation theorem holds, the number of radial components $Q$ required to represent extremely complex boundaries in very high dimensions might grow significantly.
  • Non-Linear Objectives: The closed-form solution is specific to linear objectives. While TRIO still makes general non-linear optimization easier by providing an explicit feasible set, it doesn't eliminate the need for solvers in those cases.
  • Broadening Applications: Future work could explore using TRIO for model auditing and safety-critical "what-if" analysis in fields like autonomous driving or medical diagnostics.

Summary updated

BibTeX
@misc{hess2026representation,
  author = {Konstantin Hess and Stefan Feuerriegel},
  title = {{Representation Learning for Exact Preimages}},
  year = {2026},
  eprint = {2609.32018},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.32018},
}
Figure