Unravelling the Performance of Physics-informed Graph Neural Networks for Dynamical Systems

Abishek Thangamuthu, Gunjan Kumar, Suresh Bishnoi, Ravinder Bhattoo, N M Anoop Krishnan, Sayan Ranu

Simulating the dynamics of physical systems—how objects move and interact over time—is a cornerstone of science and engineering. While traditional numerical solvers are highly accurate, they require exact differential equations that may be unknown or prohibitively complex to derive in messy, real-world scenarios.

Machine learning, specifically Multi-Layer Perceptrons (MLPs), can learn these dynamics directly from data. However, standard MLPs are inherently transductive: a model trained to simulate a double pendulum cannot simulate a triple pendulum without retraining. Graph Neural Networks (GNNs) solve this limitation by treating particles as nodes and interactions as edges, allowing them to generalize across different system sizes. This has led to a recent "Cambrian explosion" of physics-informed GNN variants, including Hamiltonian GNNs, Lagrangian GNNs, and Graph ODEs. Until now, there has not been a systematic study to explain which architectural choices and inductive biases actually drive performance.

This paper provides a comprehensive benchmark of 13 different physics-informed GNNs to determine which inductive biases actually improve the simulation of dynamical systems. The researchers found that decoupling kinetic and potential energy and incorporating explicit constraints are the keys to achieving high accuracy and "zero-shot" generalization to systems ten times larger than those seen during training.

Methodology and Experimental Setup

The authors evaluate 13 GNN architectures by systematically varying three types of inductive biases:

  1. Physical Framework: They compare models based on Newtonian/ODE formulations (predicting acceleration directly), Lagrangian mechanics ($L = T - V$), and Hamiltonian mechanics ($H = T + V$).
  2. Decoupling: They test whether modeling kinetic energy ($T$) and potential energy ($V$) as separate, independent neural network components improves performance compared to modeling a single total energy function.
  3. Explicit Constraints: They evaluate models that incorporate hard mathematical constraints (e.g., the fixed length of a pendulum rod) versus those that attempt to learn these constraints purely from data.

The "base" of all these models is the Full Graph Network (FGNN), which uses message-passing to capture the topology of the system. The models were benchmarked on four distinct physical systems: $n$-link pendulums (rigid constraints), $n$-link springs (internal interactions without rigid constraints), a 4-body gravitational system (chaotic with long-range interactions), and a 3D deformable solid (elastic deformation in a non-chaotic regime).

Key Insights and Ideas

Architecture Matters More than Equivalence Mathematically, Lagrangian and Hamiltonian mechanics are equivalent. However, in a GNN context, they lead to drastically different architectures. Hamiltonian formulations result in first-order differential equations, while Lagrangian ones result in second-order equations. This fundamental difference leads to variations in training stability and inference speed.

Rollout error comparison between standard neural networks and graph neural networks across different physics-informed architectures for a 3-pendulum system.

The Power of Decoupling Models that "decouple" kinetic and potential energy (like GNODE and HGNN) consistently outperformed their "coupled" counterparts. By separating these terms, the network is prevented from learning spurious cross-terms between position and velocity, leading to better conservation of momentum and more stable long-term rollouts.

Constraints are a "Cheat Code" For systems like pendulums, providing the model with explicit mathematical constraints reduces rollout error by orders of magnitude. Learning these constraints from scratch is significantly harder for the network and often leads to unphysical trajectories over long time horizons.

Zero-Shot Scaling One of the most impressive findings is that physics-informed GNNs can generalize to systems an order of magnitude larger than the training set with almost no increase in error. For example, models trained on 5-link springs could accurately simulate 50-link springs. This suggests the GNNs are successfully learning the underlying "local" physics rather than just memorizing specific global trajectories.

Key Results

  • HGNN (Decoupled Hamiltonian GNN) emerged as a top performer for spring systems, offering the best balance of accuracy and conservation of physical quantities.
  • Momentum and Energy Conservation: LGNN and HGNN showed superior momentum conservation compared to standard Graph ODEs, largely due to the translational symmetry inherent in their graph-based energy modeling. Graph-based models also demonstrated tighter bounds on energy violations compared to their non-graph counterparts.
Energy violation over time comparing NODE and GNODE architectures.
  • Training Efficiency: The LGN (Lagrangian) family was found to be the slowest to train and infer. This is due to the "double derivative" required by the Euler-Lagrange equations, which adds significant computational overhead without a guaranteed boost in accuracy.

Limitations and Future Work

Despite the strong results, the authors note a few critical hurdles for future research. First, the best-performing models require the user to provide constraints explicitly; a major future direction is developing GNNs that can discover these constraints directly from raw trajectory data. Second, the study found a 10-fold increase in error when even a small amount of noise was added to the training data, highlighting a need for improved noise robustness for real-world sensor applications. Finally, extending these physics-informed GNNs to handle complex phenomena like contacts, friction, and fluid-structure interactions remains an open challenge.

Summary updated

BibTeX
@inproceedings{thangamuthu2022unravelling,
  author = {Abishek Thangamuthu and Gunjan Kumar and Suresh Bishnoi and Ravinder Bhattoo and N M Anoop Krishnan and Sayan Ranu},
  title = {{Unravelling the Performance of Physics-informed Graph Neural Networks for Dynamical Systems}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=tXEe-Ew_ikh},
}
Figure