An implicit GNN solver for Poisson-like problems

Matthieu Nastorg, Michele Alessandro Bucci, Thibault Faney, Jean-Marc Gratien, Guillaume Charpiat, Marc Schoenauer

TL;DR

$\Psi$-GNN is a novel physics-informed Graph Neural Network that solves Poisson equations on unstructured meshes by leveraging Implicit Layer Theory. By finding the fixed point of a learned message-passing function, the model acts as an "infinitely deep" network that generalizes to any mesh size and strictly respects complex boundary conditions.

What Problem Does This Paper Address?

The steady-state Poisson equation ($-\Delta u = f$) is a cornerstone of physics and engineering, appearing in everything from fluid dynamics to electrostatics. While traditional numerical solvers like the Finite Element Method (FEM) are accurate, they are computationally expensive for large-scale industrial simulations.

Recent deep learning approaches (like CNNs) offer speed but usually require structured, rectangular grids—making them useless for the complex, "unstructured" meshes used in real-world engineering. Existing GNN solvers often struggle with two things:

  1. Generalization: They typically use a fixed number of message-passing layers. If a mesh is larger than what the model saw during training, information can't "travel" far enough across the graph to find the global solution.
  2. Boundary Conditions (BCs): Physics requires strict adherence to Dirichlet (fixed values) and Neumann (gradient) constraints. Most ML models treat these as "suggestions" in a loss function rather than hard architectural constraints.

Methods

The authors introduce $\Psi$-GNN, which uses an Encoder-Processor-Decoder architecture. The "secret sauce" is in the Processor:

  • Implicit Layer Theory (Deep Equilibrium Models): Instead of stacking $K$ layers, $\Psi$-GNN defines a single message-passing function $h_\theta$. The solution is defined as the fixed point where $\hat{H} = h_\theta(\hat{H}, G)$. During inference, a black-box root-finding solver (like Broyden’s method) iterates until this equilibrium is reached. This allows the model to adaptively "deepen" itself for larger meshes.
  • Node-Specific Processing: The architecture treats Interior, Dirichlet, and Neumann nodes differently. Dirichlet nodes are kept constant to ensure BCs are satisfied by design, while Neumann nodes use specialized message-passing to capture the local gradient stencils.
  • Physics-Informed Loss: The model is trained primarily to minimize the residual of the discretized Poisson equation ($AU - B$), effectively learning the underlying physics rather than just mimicking a dataset.
  • Stability Guarantees: To ensure the root-finder actually converges, the authors use Jacobian regularization to force the learned function to be contractive (meaning iterations move closer to a single stable point).

Datasets

The model was evaluated on a synthetic 2D dataset:

  • Training/Test Split: 6,000 training, 2,000 validation, and 2,000 test samples.
  • Geometry: Random 2D domains generated with Bezier curves and discretized into unstructured triangular meshes (~500 nodes each) using GMSH.
  • Mixed BCs: Scenarios included both Dirichlet-only and mixed (Dirichlet + Neumann) boundary conditions.
  • Out-of-Distribution (OOD): A complex "Formula 1" car shape with 1,219 nodes and internal holes was used to test extreme generalization.

Key Insights and Ideas

  • Infinite Depth via Equilibrium: By framing the solver as a fixed-point problem, the model decouples the learning of the physics from the resolution of the mesh. It doesn't matter how big the mesh is; the root-finder will just run more iterations until the physics (the residual) is satisfied.
  • Efficiency through Sparsity: $\Psi$-GNN achieves better accuracy than state-of-the-art models (like DSS) with 25x fewer parameters (1,444 vs 36,930).
  • Initialization Independence: Because the model seeks a stable equilibrium, it is remarkably robust to the "initial guess." Whether you start with zeros or random noise, the model converges to the same physical solution.

Key Results

  • Superior Accuracy: On Dirichlet problems, $\Psi$-GNN achieved a Mean Squared Error (MSE) of $0.85 \times 10^{-2}$, significantly outperforming the Deep Statistical Solver (DSS) at $3.0 \times 10^{-2}$.
  • Zero-Shot Scaling: A model trained on meshes with 500 nodes was tested on meshes with up to 11,000 nodes. While the baseline DSS model diverged completely, $\Psi$-GNN remained consistent, simply increasing its iteration count to reach the solution.
  • F1 Shape Generalization: The model successfully solved the Poisson equation on the complex Formula 1 geometry, demonstrating that it can handle topologies (like holes and sharp wings) never seen during training.

Limitations and Future Work

  • Computational Complexity: While memory-efficient (thanks to implicit differentiation), the use of Broyden’s method for root-finding introduces $O(N^2)$ complexity due to Jacobian updates. This might become a bottleneck for extremely large graphs.
  • Scaling to Industrial Sizes: The authors acknowledge that while $\Psi$-GNN generalizes well, very large graphs might require more expressive GNN architectures or domain decomposition (breaking the graph into smaller pieces).
  • Future Directions: The team aims to extend this to 3D domains and more complex steady-state PDEs (like Navier-Stokes) and eventually integrate the solver into industrial CFD frameworks like OpenFOAM.

Summary updated

BibTeX
@article{nastorg2024implicit,
  author = {Matthieu Nastorg and Michele Alessandro Bucci and Thibault Faney and Jean-Marc Gratien and Guillaume Charpiat and Marc Schoenauer},
  title = {{An implicit GNN solver for Poisson-like problems}},
  journal = {Comput. Math. Appl.},
  year = {2024},
  doi = {10.1016/j.camwa.2024.10.036},
}
Figure