NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

PhyMPGN: Physics-encoded Message Passing Graph Network for spatiotemporal PDE systems

Bocheng Zeng, Qi Wang, Mengtao Yan, Yang Liu, Ruizhi Chengze, Yi Zhang, Hongsheng Liu, Zidong Wang, Hao Sun

TL;DR

PhyMPGN is a novel graph learning framework designed to solve complex partial differential equations (PDEs) on irregular, coarse meshes using minimal training data. By embedding a learnable Laplace block and a sophisticated boundary-padding strategy into a Graph Neural Network (GNN)-based numerical integrator, it achieves state-of-the-art accuracy while strictly adhering to physical constraints.

The Challenge of Spatiotemporal PDEs

Partial Differential Equations (PDEs) are the mathematical backbone of modeling complex dynamical systems, from weather forecasting to fluid dynamics. While traditional numerical solvers (like Finite Element Methods) are highly accurate, they are computationally expensive, requiring extremely fine meshes and long runtimes.

Recent deep learning models offer a faster alternative, but they suffer from three major flaws:

  1. Data Hunger: They typically require massive amounts of high-resolution training data.
  2. Geometric Rigidity: Many models (like Fourier Neural Operators) struggle with irregular geometries or unstructured meshes.
  3. Physical Inconsistency: "Black-box" models often ignore boundary conditions or fundamental physical laws (like diffusion), leading to unphysical predictions during long-term simulations.

PhyMPGN aims to bridge this gap by creating a model that is fast, operates effectively on unstructured grids, and respects underlying physics even when data is scarce.

Methods: Architecture and Physics Encoding

PhyMPGN combines classical numerical analysis with modern graph representation learning through three key components.

Overview of the PhyMPGN architecture, detailing the numerical integrator, Laplace Block, and GNN Block.
  • GNN-based Numerical Integrator: Instead of predicting a future state in one massive jump, the model uses a second-order Runge-Kutta (RK2) scheme. A Message Passing Graph Network (MPGN) is trained to approximate the derivative (the "right-hand side" of the PDE), allowing the model to march through time step-by-step.
  • The Learnable Laplace Block: Because many physical systems are governed by diffusion, the authors explicitly encode the discrete Laplace-Beltrami operator into the network architecture. Since coarse meshes introduce errors in these calculations, a lightweight neural network is added to rectify the Laplacian estimation, ensuring the model stays within a physically feasible solution space.
  • Boundary Condition (BC) Padding: Enforcing BCs on irregular graphs is notoriously difficult. The authors developed a novel padding strategy that creates "ghost nodes" around the boundary. This allows the model to explicitly handle Dirichlet, Neumann, Robin, and Periodic boundary conditions by mimicking how classical solvers treat edges.
Illustration of the boundary condition padding strategy using ghost nodes to enforce physical constraints at the edges.

Datasets and Evaluation

The model was evaluated on several classic and complex PDE systems:

  • Burgers’ Equation: Tested across four scenarios, including complex geometries like a dolphin-shaped cutout and circular holes.
  • FitzHugh-Nagumo (FN) & Gray-Scott (GS): Standard reaction-diffusion systems used to model biological and chemical patterns.
  • Cylinder Flow (Navier-Stokes): A benchmark for fluid dynamics where the model must predict flow patterns around an obstacle.
  • Synthetic Laplacian Dataset: 10,000 samples of random continuous functions used specifically to validate the Laplace block's accuracy.

Key Insights

  • Physics as an Architectural Prior: Rather than just using physics as a "soft" penalty in the loss function (like Physics-Informed Neural Networks, or PINNs), PhyMPGN bakes the Laplace operator directly into the neural architecture. This makes the model much more robust when training data is limited.
  • Hybrid Learning: The "Mesh Laplace" module handles the known physics, while the "GNN Block" learns the remaining unknown or complex dynamics. This division of labor allows for high accuracy on very coarse, low-resolution meshes.
  • Explicit Boundary Awareness: By using a padding strategy with ghost nodes, the model doesn't have to guess what happens at the edges; it is structurally informed by the boundary conditions.

Results

  • Superior Accuracy: PhyMPGN consistently outperformed baselines like DeepONet, MGN, and MP-PDE. In many cases, it reduced error by over 50% compared to the next-best model.
  • Generalization: The model showed an impressive ability to generalize to unseen Reynolds numbers in fluid dynamics simulations and maintained high correlation ($>0.85$) even when extrapolated far beyond its training time window.
  • Efficiency: Despite the added complexity of the Laplace block, it only accounts for about 1% of the total trainable parameters. The model remains highly efficient, with inference times under one minute for complex trajectories on a single GPU.

Limitations and Future Work

While powerful, the authors acknowledge several areas for improvement:

  • Higher-Order Terms: The current Laplace block is optimized for second-order diffusion. It cannot yet handle higher-order terms (like $\nabla^4$) or other non-linear diffusion types.
  • 3D Scaling: The experiments were conducted in 2D. Extending the graph structures and padding strategies to 3D environments remains a future challenge.
  • Latent Space BCs: While physical space padding works well, effectively encoding complex Neumann or Robin boundary conditions within the "latent" (hidden) layers of the GNN is still an open research question.

Summary updated

BibTeX
@inproceedings{zeng2025phympgn,
  author = {Bocheng Zeng and Qi Wang and Mengtao Yan and Yang Liu and Ruizhi Chengze and Yi Zhang and Hongsheng Liu and Zidong Wang and Hao Sun},
  title = {{PhyMPGN: Physics-encoded Message Passing Graph Network for spatiotemporal PDE systems}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=fU8H4lzkIm},
}
Figure