Learning to Solve PDE-constrained Inverse Problems with Graph Networks

Qingqing Zhao, David B. Lindell, Gordon Wetzstein

Abstract: Learned graph neural networks (GNNs) have recently been established as fast and accurate alternatives for principled solvers in simulating the dynamics of physical systems. In many application domains, researchers face inverse problems where the goal is to recover hidden parameters from sparse observations, constrained by Partial Differential Equations (PDEs). This paper introduces a novel framework combining GNNs and coordinate-based generative priors to solve these complex problems on irregular meshes, achieving significant speedups and higher accuracy than traditional methods.

The Challenge of PDE-Constrained Inverse Problems

In scientific and engineering fields, we frequently encounter inverse problems: given a set of sparse observations of a system (such as sensor readings of fluid flow or wave propagation), the objective is to deduce the "hidden" parameters that caused them. These parameters might be the initial state of the system or the physical properties of the medium. These problems are "PDE-constrained" because the system's evolution must adhere to specific physical laws, like the wave equation or Navier-Stokes equations.

Sparse observations on an irregular mesh for the Wave Equation

Traditional numerical methods, such as the Finite Element Method (FEM), are highly accurate but computationally expensive and slow. Recent deep learning approaches have attempted to use Convolutional Neural Networks (CNNs) to speed up this process. However, CNNs suffer from a major limitation: they require regular, rectangular grids. Real-world engineering problems—like air flowing around a vehicle or waves hitting an irregular coastline—involve complex geometries that are best represented by irregular meshes.

A Mesh-Agnostic Framework

To bridge this gap, the authors propose a fast, differentiable solver that operates directly on irregular graphs, utilizing a two-part pipeline:

  1. The Forward Model (GNN): The framework employs an Encoder-Processor-Decoder GNN architecture as a differentiable surrogate for a traditional PDE solver. Because it is a neural network, it predicts the next state of a system much faster than an iterative numerical solver. Crucially, by operating on graph nodes and edges, it seamlessly handles arbitrary mesh topologies.
  2. The Prior (Coordinate Network): Inverse problems are notoriously "ill-posed," meaning multiple different initial states could theoretically produce the same sparse observations. To regularize the solution, the authors learn a "prior"—a generative model that understands what plausible initial conditions look like. They utilize a coordinate network (a Multi-Layer Perceptron mapping spatial coordinates to physical values) conditioned on a latent code. This allows the prior to be evaluated at the exact, continuous locations of the irregular graph nodes, decoupling the prior from any specific grid resolution.

The Optimization Loop: During inference, the GNN and the Prior are frozen. The system takes the sparse sensor observations and uses backpropagation to optimize the latent code. It iteratively determines which latent code, when passed through the prior and evolved through the GNN solver, best matches the observed sensor data.

Experimental Validation

The models were evaluated on two classic physical systems, with ground truth training data generated using FEniCS, a high-fidelity classical FEM solver:

  • 2D Scalar Wave Equation: Simulating acoustic or electromagnetic waves. The dataset included 1,100 trajectories over 37 different meshes, featuring a fish-shaped obstacle to test the handling of irregular boundaries.
  • 2D Incompressible Navier-Stokes: Simulating fluid dynamics. This dataset comprised 850 trajectories over 55 meshes, featuring a cylinder obstacle.
Navier-Stokes fluid dynamics represented on an irregular mesh

Key Results and Insights

  • Massive Speedups: The GNN approach achieved a 90x speedup for the Navier-Stokes simulations and an 8x speedup for the wave equation compared to the classical FEM solver.
  • Superior Accuracy: The GNN-based solver significantly outperformed U-Net (CNN) baselines. Even when the U-Net was provided with a much finer grid (7x more nodes), the GNN remained more accurate because it could natively represent the physics near irregular boundaries without grid-based approximation errors.
  • Robust Sparse Recovery: The system successfully reconstructed complex fluid flows and wave patterns from as few as 20–50 randomly placed sensors.
  • Differentiability as a Superpower: Because the entire GNN simulation is differentiable, standard gradient-based optimization (like Adam) can be used to "solve" the physics, eliminating the need to manually derive complex adjoint equations.

Limitations and Future Directions

While highly effective, the approach has limitations. Optimizing the latent code requires the solver to be "unrolled" over time, which consumes significant GPU memory. The authors suggest gradient checkpointing as a potential solution for longer simulations. Additionally, the forward GNN model is trained for a specific class of PDEs; significant changes in underlying physics (e.g., drastically different viscosity) would require retraining. Finally, scaling these graph-based approaches from 2D to massive 3D engineering simulations remains an exciting frontier for future research.

Summary updated

BibTeX
@inproceedings{zhao2022learning,
  author = {Qingqing Zhao and David B. Lindell and Gordon Wetzstein},
  title = {{Learning to Solve PDE-constrained Inverse Problems with Graph Networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=QRuovfQK2Z9},
}
Figure