# GNS: A generalizable Graph Neural Network-based simulator for particulate and fluid modeling

arXiv: https://arxiv.org/abs/2211.10228 · HTML: https://mlsanity.com/paper/2211.10228/

## Key facts

- Cited by 12 papers in the map (data through 14 Oct 2026).
- Builds on 6 of its 13 references that are in the map.
- First posted on arXiv 18 Nov 2022.

## Builds on (most cited first, 6 of 6)

- [Graph Attention Networks](https://mlsanity.com/paper/1710.10903/) (2017)
- [Neural Message Passing for Quantum Chemistry](https://mlsanity.com/paper/1704.01212/) (2017)
- [A Comprehensive Survey on Graph Neural Networks](https://mlsanity.com/paper/1901.00596/) (2019)
- [Relational inductive biases, deep learning, and graph networks](https://mlsanity.com/paper/1806.01261/) (2018)
- [Learning to Simulate Complex Physics with Graph Networks](https://mlsanity.com/paper/2002.09405/) (2020)
- [Model-Free Data-Driven Inference in Computational Mechanics](https://mlsanity.com/paper/2207.06419/) (2022)

## Built on by (most cited first, 12 of 12)

- [Neural Material Adaptor for Visual Grounding of Intrinsic Dynamics](https://mlsanity.com/paper/2410.08257/) (2024)
- [Graph Neural Network-based surrogate model for granular flows](https://mlsanity.com/paper/2305.05218/) (2023)
- [Triplet Interaction Improves Graph Transformers: Accurate Molecular Graph Learning with Triplet Graph Transformers](https://mlsanity.com/paper/2402.04538/) (2024)
- [Accelerating Particle and Fluid Simulations with Differentiable Graph Networks for Solving Forward and Inverse Problems](https://mlsanity.com/paper/2309.13348/) (2023)
- [Inverse analysis of granular flows using differentiable graph neural network simulator](https://mlsanity.com/paper/2401.13695/) (2024)
- [Hybrid Neural-MPM for Interactive Fluid Simulations in Real-Time](https://mlsanity.com/paper/2505.18926/) (2025)
- [Towards scientific machine learning for granular material simulations -- challenges and opportunities](https://mlsanity.com/paper/2504.08766/) (2025)
- [Pretraining Strategy for Neural Potentials](https://mlsanity.com/paper/2402.15921/) (2024)
- [Enabling Structure-Only Initialization and Out-of-Distribution Generalization in GNN-based Molecular Dynamics Simulators](https://mlsanity.com/paper/2605.09495/) (2026)
- [OnlyDense: Reduced-Order Modeling for Lagrangian simulation](https://mlsanity.com/paper/2606.09065/) (2026)
- [TRACE: A spatiotemporal contact memory graph network simulator for granular dynamics](https://mlsanity.com/paper/2609.02991/) (2026)
- [Adaptive Interaction Graphs for Particle Simulation](https://mlsanity.com/paper/2609.30822/) (2026)

## Abstract (arXiv)

We develop a PyTorch-based Graph Network Simulator (GNS) that learns physics and predicts the flow behavior of particulate and fluid systems. GNS discretizes the domain with nodes representing a collection of material points and the links connecting the nodes representing the local interaction between particles or clusters of particles. The GNS learns the interaction laws through message passing on the graph. GNS has three components: (a) Encoder, which embeds particle information to a latent graph, the edges are learned functions; (b) Processor, which allows data propagation and computes the nodal interactions across steps; and (c) Decoder, which extracts the relevant dynamics (e.g., particle acceleration) from the graph. We introduce physics-inspired simple inductive biases, such as an inertial frame that allows learning algorithms to prioritize one solution (constant gravitational acceleration) over another, reducing learning time. The GNS implementation uses semi-implicit Euler integration to update the next state based on the predicted accelerations. GNS trained on trajectory data is generalizable to predict particle kinematics in complex boundary conditions not seen during training. The trained model accurately predicts within a 5% error of its associated material point method (MPM) simulation. The predictions are 5,000x faster than traditional MPM simulations (2.5 hours for MPM simulations versus 20 s for GNS simulation of granular flow). GNS surrogates are popular for solving optimization, control, critical-region prediction for in situ viz, and inverse-type problems. The GNS code is available under the open-source MIT license at https://github.com/geoelements/gns.
