Dynami-CAL GraphNet: A Physics-Informed Graph Neural Network Conserving Linear and Angular Momentum for Dynamical Systems

Vinay Sharma, Olga Fink · DOI

Abstract

Accurate, interpretable, and real-time modeling of multi-body dynamical systems is essential for predicting behaviors and inferring physical properties in natural and engineered environments. Traditional physics-based models face scalability challenges and are computationally demanding, while data-driven approaches like Graph Neural Networks (GNNs) often lack physical consistency, interpretability, and generalization. In this paper, we propose Dynami-CAL GraphNet, a Physics-Informed Graph Neural Network that integrates the learning capabilities of GNNs with physics-based inductive biases to address these limitations. Dynami-CAL GraphNet enforces pairwise conservation of linear and angular momentum for interacting nodes using edge-local reference frames that are equivariant to rotational symmetries, invariant to translations, and equivariant to node permutations. This design ensures physically consistent predictions of node dynamics while offering interpretable, edge-wise linear and angular impulses resulting from pairwise interactions. Evaluated on a 3D granular system with inelastic collisions, Dynami-CAL GraphNet demonstrates stable error accumulation over extended rollouts, effective extrapolations to unseen configurations, and robust handling of heterogeneous interactions and external forces.

Introduction

Simulating multi-body dynamical systems—ranging from colliding granular particles to articulated human motion—traditionally involves a trade-off between the high accuracy of physics-based simulators and the computational efficiency of data-driven models. While Graph Neural Networks (GNNs) have emerged as powerful tools for modeling these systems, they often suffer from physical inconsistencies. Specifically, standard GNNs do not inherently respect fundamental conservation laws, such as Newton’s Third Law, leading to the accumulation of "ghost forces" that cause simulations to diverge or "explode" over long-term rollouts.

Methodology: Enforcing Conservation Laws

Dynami-CAL GraphNet addresses these shortcomings by embedding physical constraints directly into the network architecture. The model utilizes a structured "scalarization-vectorization" pipeline to ensure that every action has an equal and opposite reaction.

The Dynami-CAL GraphNet architecture pipeline, illustrating the transition from graph representation to edge encoding and the decoding of physically consistent interactions.

The core components of the methodology include:

  1. Edge-Local Reference Frames: For each pair of interacting nodes, the model constructs a local coordinate system that is equivariant to rotations and invariant to translations. This frame is inherently antisymmetric; swapping the nodes flips the coordinate system, facilitating the enforcement of Newton's Third Law.
  2. Physically Grounded Vectorization: Rather than predicting raw state changes, the model decodes edge embeddings into three specific terms: antisymmetric internal forces, pairwise angular interactions, and a specific "point of action."
  3. Momentum Conservation: By reconstructing internal forces using antisymmetric basis vectors, the force exerted by node $i$ on node $j$ is guaranteed to be equal and opposite to the force exerted by node $j$ on node $i$. Angular momentum is similarly conserved by isolating "spin torque" from orbital components.
  4. Boundary Handling via Ghost Nodes: To manage interactions with containers or walls without complex meshes, the model employs "ghost nodes"—reflections of physical particles across boundaries—allowing the network to treat wall collisions as standard particle-particle interactions.

Experimental Evaluation

The model was rigorously tested across four diverse benchmarks:

  • Granular 6-DoF Collisions: MFiX-DEM simulations of 60 spheres in a box, featuring inelastic collisions and friction.
  • Constrained N-Body Dynamics: Charged particles with holonomic constraints (rigid sticks and hinges).
  • Human Motion Prediction: 3D joint trajectories from the CMU Motion Capture database.
  • Protein Molecular Dynamics: Tracking backbone atoms of the AdK protein in a solvent.

Key Results and Discussion

Dynami-CAL GraphNet demonstrates significant improvements in stability and generalization compared to physics-agnostic baselines like the Graph Network Simulator (GNS).

Quantitative performance comparison on granular systems, showing Dynami-CAL GraphNet's superior stability in momentum and energy conservation during interpolation and extrapolation tasks.

Key findings include:

  • Long-Term Stability: In granular hopper tasks, the model maintained physically plausible trajectories over 16,000 time steps, whereas baselines diverged rapidly. As shown in the results, the proposed model tracks ground truth linear and angular momentum much more closely than the GNS baseline.
  • Zero-Shot Generalization: Due to its boundary handling and local reference frames, a model trained on a simple box could generalize to complex geometries, such as rotating cylindrical hoppers, without retraining.
  • Data Efficiency: The inclusion of physical priors acts as a strong regularizer, allowing the model to achieve high performance with as few as 500 training samples, suggesting that the built-in physics reduces the need for massive datasets.

Conclusion

Dynami-CAL GraphNet represents a significant step toward integrating deep learning with classical mechanics. By enforcing conservation laws as hard architectural constraints rather than soft loss penalties, it provides a scalable, interpretable, and physically consistent framework for modeling complex dynamical systems. Future work will explore extending these principles to continuum mechanics and handling more complex, context-dependent external fields.

Summary updated

BibTeX
@misc{sharma2025dynami,
  author = {Vinay Sharma and Olga Fink},
  title = {{Dynami-CAL GraphNet: A Physics-Informed Graph Neural Network Conserving Linear and Angular Momentum for Dynamical Systems}},
  year = {2025},
  eprint = {2501.07373},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.07373},
}
Figure