Deep Generative Prior for First Order Inverse Optimization

Haoyu Yang, Kamyar Azizzadenesheli, Haoxing Ren

TL;DR

Deep Generative Prior (DGP) is a novel framework that enables fast, first-order, gradient-based inverse optimization by constraining the search space within a physically plausible data manifold. By combining a differentiable forward surrogate model with a pretrained generative functional prior, DGP avoids the unphysical "adversarial examples" common in naive gradient descent while delivering up to a 20× speedup over traditional Markov Chain Monte Carlo (MCMC) methods.

What Problem Does This Paper Address?

Inverse design is the process of finding the underlying system parameters (like material properties, initial conditions, or structural shapes) that produce a specific observed response. It is a foundational challenge in fields ranging from fluid dynamics to semiconductor manufacturing.

Because running full physical simulations to solve these problems is computationally crushing, researchers often use machine learning "surrogate models" (like Fourier Neural Operators) to approximate the physics. While these surrogates are fast and differentiable, using them directly for gradient-based optimization introduces a major flaw: adversarial designs. Naive gradient descent easily finds out-of-distribution, physically impossible inputs that trick the surrogate model into thinking it achieved the target objective.

Alternative approaches like MCMC can avoid this by sampling from a prior distribution, but they are painfully slow and scale poorly to high-dimensional problems. Direct generative inverse models are fast but struggle with noisy, multimodal, or out-of-distribution (OOD) data.

Methods

The authors introduce Deep Generative Prior (DGP), a framework that bridges the gap between fast gradient-based optimization and physically rigorous constraints.

Instead of optimizing directly in the high-dimensional, unconstrained parameter space, DGP optimizes within the latent space of a pretrained generative model.

  1. The Prior ($G_\phi$): A conditional Generative Adversarial Neural Operator (GANO) is trained to learn the manifold of physically valid designs based on training data. It maps a simple Gaussian latent variable $q$ and a target observation $u^*$ to a plausible candidate design $a$.
  2. The Forward Surrogate ($F_\theta$): A Fourier Neural Operator (FNO) acts as a fast, differentiable surrogate for the forward physical system.
  3. Latent Space Optimization: At inference time, the weights of both models are frozen. The framework runs Langevin Dynamics (LD) directly on the latent variable $q$. Gradients are backpropagated from the final output error through the forward surrogate and back into the generative prior's latent space.
Figure 1: Comparison of inverse design optimization schemes. (a) Data-driven generative model mapping objectives to parameters. (b) MCMC sampling using a pretrained surrogate. (c) First-order optimization of system parameters constrained by a deep generative prior (DGP).

Datasets

The authors evaluated DGP across three distinct and challenging inverse problems:

  • 2D Darcy Flow: A standard elliptic PDE problem where the goal is to recover a continuous or clipped permeability field from observed pressure fields.
  • 2D Navier–Stokes Flow: An ill-posed fluid dynamics problem aimed at recovering the initial vorticity field of a fluid from noisy or partial observations over time.
  • Inverse Lithography: A highly non-convex, underdetermined industrial chip design problem. The model must optimize a photomask pattern to print a target layout on a silicon wafer. This used the LithoBench dataset alongside real-world layouts from the Nangate45 standard cell library to test out-of-distribution generalization.

Key Insights and Ideas

  • Latent Space as a Physical Shield: By restricting the optimizer to the latent space of a generative operator, the system physically cannot generate unrealistic or highly noisy designs. The generative prior acts as a regularizer that filters out adversarial solutions.
  • Soft Regularization for OOD Generalization: In the Langevin update equation, a soft $\ell_2$ regularization term balances faithfulness to the learned data manifold with the flexibility to satisfy the forward surrogate's physics. This allows DGP to successfully find valid solutions even when the target objective lies completely outside the training distribution.
  • Capturing Uncertainty via Posterior Sampling: Because DGP uses Langevin Dynamics (which includes a noise term), it doesn't just settle on a single deterministic point estimate. For ill-posed problems where multiple designs can yield the same observation, DGP naturally samples a diverse set of valid solutions.

Key Results

DGP consistently outperformed state-of-the-art baselines in both accuracy and computational efficiency:

  • Darcy Flow: DGP achieved the lowest relative and maximum errors across both continuous and clipped dataset variants. Crucially, it matched or exceeded the accuracy of MCMC while delivering a 20× speedup (9.16 seconds vs. 179 seconds).
  • Navier–Stokes: DGP successfully preserved coherent, small-scale vortical flow structures that direct inverse models completely failed to capture, matching MCMC accuracy in a fraction of the time (2.05s vs. 43.04s).
  • Inverse Lithography: When tested on low-fidelity and noisy data, DGP achieved an Edge Placement Error (EPE) violation of just 0.007, vastly outperforming numerical solvers (0.21) and standard GANO baselines (0.51).
Figure 2: Visualization of inverse Darcy flow with exponentiated permeability (top) and clipped permeability (bottom). Left column: ground-truth reference flow pressure and permeability. Right columns: baseline methods and our deep generative prior with LD posterior sampling.

Limitations and Future Work

The primary limitation of DGP is its dual dependency on the quality of its components: it is only as good as its forward surrogate and its generative prior. If either model is poorly trained or lacks expressiveness, the optimization quality degrades. This introduces a clear trade-off between offline training effort and online optimization performance.

For future work, the authors suggest expanding the framework to handle unstructured geometries and designs (such as graph-based representations) to broaden its applicability to more complex engineering use cases.

Summary updated

BibTeX
@misc{yang2025deep,
  author = {Haoyu Yang and Kamyar Azizzadenesheli and Haoxing Ren},
  title = {{Deep Generative Prior for First Order Inverse Optimization}},
  year = {2025},
  eprint = {2504.20278},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.20278},
}
Figure