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

On the Relationships between Graph Neural Networks for the Simulation of Physical Systems and Classical Numerical Methods

Artur P. Toshev, Ludger Paehler, Andrea Panizza, Nikolaus A. Adams · DOI

Abstract

Graph Neural Networks (GNNs) have emerged as powerful tools for simulating complex physical systems, yet they are often developed in isolation from classical numerical methods. This paper explores the deep algorithmic parallels between modern GNN architectures, such as Graph Network-based Simulators (GNS) and MeshGraphNets, and established methods like Smoothed Particle Hydrodynamics (SPH) and Molecular Dynamics (MD). By identifying these connections, we argue that classical physics can provide a roadmap for improving the stability, efficiency, and physical grounding of machine learning models.

1. Introduction

The recent success of GNNs in modeling fluid dynamics and solid mechanics has raised a fundamental question: are we reinventing the wheel? While GNNs excel at learning from data, decades of research in computational physics have already produced robust solvers with well-understood stability properties. This paper provides a conceptual survey mapping the "algorithmic alignment" between these two worlds, identifying how classical "tricks"—such as specific noise scales, higher-order integrators, and shock-capturing features—can solve common ML hurdles like error accumulation during long-term rollouts.

Mapping of classical numerical methods (SPH, FPM, MD) to modern graph-based machine learning simulators across macroscopic, mesoscopic, and microscopic scales.

2. Methods: GNS and MeshGraphNets

The paper analyzes two state-of-the-art learned solvers that follow an encoder-processor-decoder approach:

  • Graph Network-based Simulators (GNS): These models predict particle accelerations by performing message passing over a graph where nodes represent particles and edges represent local interactions. They are primarily used for particle-based fluid simulations.
  • MeshGraphNets: An extension of GNS designed for meshes, utilizing two distinct edge types: mesh-space edges for internal dynamics and world-space edges for collisions and external interactions. This allows the model to handle complex deformations like cloth or aerodynamic flows.
The architecture of MeshGraphNets, illustrating the encoder-processor-decoder pipeline and the iterative rollout process for temporal simulation.

3. Key Physical Insights

The mapping between ML and physics reveals several critical insights that move beyond simple data fitting:

  • GNNs as Learned SPH: The authors demonstrate that GNS is essentially a learned version of Smoothed Particle Hydrodynamics. Both rely on local interaction radii and the "continuum assumption" to predict system evolution.
  • Noise as Brownian Motion: A common ML trick is adding Gaussian noise to training data to improve stability. Physically, this is equivalent to emulating Brownian motion in mesoscopic methods like Dissipative Particle Dynamics (DPD). The authors suggest the scale of this noise should follow the Fluctuation-Dissipation theorem ($1/\sqrt{m}$) to be physically grounded.
  • Memory Effects and Coarse-Graining: Most GNN solvers take multiple past states as input. While classical physics is often Markovian, this "memory" is physically justified if the model is performing coarse-graining, where memory effects (Mori-Zwanzig formalism) compensate for lost microscopic details.
  • MeshGraphNets as Voronoi Cells: The way MeshGraphNets handle mesh nodes is algorithmically similar to the Fluid Particle Model (FPM), where each node represents a Voronoi cell of a coarse-grained fluid.

4. Future Directions: Mining Classical Physics

The paper provides a qualitative roadmap for the future of AI for Science by suggesting that ML models adopt classical stability and efficiency criteria:

  • Stability via CFL Conditions: Classical solvers use the Courant-Friedrichs-Lewy (CFL) condition to determine stable time steps. ML models could adopt similar criteria to bound error growth.
  • Hybrid "Particle-Grid" Models: Methods like Particle-in-Cell (PIC) could inspire GNNs that switch between particle-based and grid-based representations to optimize calculation speed.
  • Higher-Order Integrators: While ML often uses simple Euler integration, higher-order (e.g., Runge-Kutta) or symplectic integrators could significantly improve the robustness of learned Hamiltonian systems.

5. Conclusion

By recognizing GNNs as a continuation of the development trajectory of computational physics, researchers can "mine" classical methods for untapped features. Integrating hand-tuned node features like shock indicators or rotational degrees of freedom may help GNNs handle non-linear dynamics more effectively, leading to simulations that are both more efficient and physically consistent.

Summary updated

BibTeX
@inproceedings{toshev2022relationships,
  author = {Artur P. Toshev and Ludger Paehler and Andrea Panizza and Nikolaus A. Adams},
  title = {{On the Relationships between Graph Neural Networks for the Simulation of Physical Systems and Classical Numerical Methods}},
  booktitle = {AI4Science @ ICML},
  year = {2022},
  url = {https://openreview.net/forum?id=I9Wjg82SWx},
}
Figure