Skip to main content
QUICK REVIEW

[Paper Review] Learning to Simulate Unseen Physical Systems with Graph Neural Networks

Ce Yang, Weihao Gao|arXiv (Cornell University)|Jan 28, 2022
Machine Learning in Materials ScienceMaterials Science6 citations
TL;DR

This paper proposes Graph-based Physics Engine (GPE), a graph neural network (GNN)-based simulator that generalizes to unseen physical systems by incorporating material parameters and momentum conservation. By modeling physical dynamics through message passing on dynamic graphs and enforcing physical laws, GPE achieves zero-shot generalization to new viscosities, elasticities, and complex geometries, with improved training stability and efficiency.

ABSTRACT

Simulation of the dynamics of physical systems is essential to the development of both science and engineering. Recently there is an increasing interest in learning to simulate the dynamics of physical systems using neural networks. However, existing approaches fail to generalize to physical substances not in the training set, such as liquids with different viscosities or elastomers with different elasticities. Here we present a machine learning method embedded with physical priors and material parameters, which we term as "Graph-based Physics Engine" (GPE), to efficiently model the physical dynamics of different substances in a wide variety of scenarios. We demonstrate that GPE can generalize to materials with different properties not seen in the training set and perform well from single-step predictions to multi-step roll-out simulations. In addition, introducing the law of momentum conservation in the model significantly improves the efficiency and stability of learning, allowing convergence to better models with fewer training steps.

Motivation & Objective

  • Address the lack of generalization in machine learning-based physics simulators to unseen physical substances like liquids with new viscosities or elastomers with new elasticities.
  • Improve training efficiency and long-term simulation stability in differentiable physics engines.
  • Enable zero-shot generalization to larger-scale and more complex physical scenarios beyond training data.
  • Integrate fundamental physical laws—particularly momentum conservation—into the GNN architecture to enhance model fidelity and learning efficiency.

Proposed method

  • Represent physical systems as dynamic directed graphs where nodes are discrete material points and edges encode interaction forces.
  • Use a message passing neural network (MPNN) to compute forces between nodes based on relative positions and velocities.
  • Incorporate material parameters (e.g., viscosity, elasticity) as learnable or input features to enable generalization across physical properties.
  • Enforce momentum conservation by modifying message passing to ensure net force on the system sums to zero, improving stability and reducing computational cost.
  • Train the model using single-step prediction loss, enabling end-to-end learning without requiring full trajectory supervision.
  • Use different graph construction strategies (e.g., nearest neighbor, multi-scale grids) to adapt to diverse physical domains such as fluids, elastomers, and finite element models.

Experimental results

Research questions

  • RQ1Can a learned physics simulator generalize to physical systems with material parameters not seen during training?
  • RQ2How does enforcing momentum conservation affect training stability and computational efficiency in GNN-based simulators?
  • RQ3To what extent can a GNN-based simulator generalize to larger-scale and more complex physical scenarios than those in the training data?
  • RQ4Does incorporating physical priors like momentum conservation improve the generalization and long-term roll-out performance of GNN-based simulators?
  • RQ5Can a unified GNN architecture simulate diverse physical dynamics—including fluid flow, elastic deformation, and FEM—without architectural re-design?

Key findings

  • GPE achieves state-of-the-art generalization to unseen physical parameters, with average MSE of 1.35 on elastomers and 1.27 on FEM domains, outperforming baselines like GNS, DPI-Net, and ConvNet.
  • The introduction of momentum conservation reduces forward computation time by 37% and enables faster convergence with lower validation loss.
  • GPE generalizes to 3D complex canyon flows with 150,000 liquid nodes and 50,000 boundary nodes—far exceeding the 4,000 liquid and 3,000 boundary nodes in training—demonstrating robust zero-shot transfer.
  • Even when trained on 2D spherical boundaries, GPE accurately simulates 3D liquid flows and waterfalls, indicating it learns underlying physical laws rather than memorizing training data.
  • GPE maintains stable long-term roll-out performance despite being trained only on single-step prediction loss, indicating strong inductive bias from physical constraints.
  • The model shows consistent performance across diverse domains, including sand, snow, fluid, elastomer, and FEM, with minimal architectural changes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.