MeshGraphNet (MGN)
Graph neural network that learns mesh-based physical simulation by passing messages on a mesh graph.
Physics and weather · 467 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Physics and weather
- Parameters
- 2.3M
- Operations
- 467
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICLR 2021
- Cited by
- 399 (as of 24 October 2026)
- Authors
- Tobias Pfaff, Meire Fortunato, Alvaro Sanchez-Gonzalez, Peter W. Battaglia
- Source
- GitHub: NVIDIA/physicsnemo
- License
- Apache-2.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m18409
- Graph hash
- 49c97c3e272c001d723ee0430ab61ca14fe287c9d1e2bcecc25a9275ff5f0093
- Skeleton hash
- ca6d40c4d2fdd3ad6cdd2ec2a831191f90ac007a9f9ee7b58a89c5861b870454
- Architecture hash
- 2c8d2695a7217fc76d5bf42e80364b5dc0c8d8ca79b30efd01150cf3d37ddde6
- Diagram SHA-256
- c9c17276a9d99c17d53dc6ff989e82c33ceddf727a73c5a604e563d6cd7ef27e
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
MeshGraphNets is a framework for learning mesh-based physical simulations with graph neural networks. The motivation the paper gives is cost: high-dimensional scientific simulations are very expensive to run, and solvers and parameters must often be tuned for each system.
The model is a graph neural network with an Encode-Process-Decode architecture, followed by an integrator. The encoder turns the mesh into a graph in which mesh nodes become graph nodes and mesh edges become bidirectional edges. Where the mesh itself moves and deforms, extra world edges connect nodes that are close in space but distant on the mesh, so the network can learn collision and contact. The processor is a stack of message passing blocks, each with its own parameters, that update node and edge embeddings in turn.
Node and edge features are encoded into latent vectors of size 128. The authors found 15 message passing steps to be a good trade-off between efficiency and accuracy. The paper reports that the method runs 1-2 orders of magnitude faster than the simulation on which it is trained. Passing messages without world edges raised rollout RMSE by 51% and 92% on two of the paper's datasets.
Key idea. MeshGraphNets learns mesh-based simulation with a graph neural network that passes messages on a mesh graph and can adapt the mesh discretization during forward simulation.
- meshgraphnet
- meshgraphnets
- mgn
- mesh graph network
- mesh-based simulation
- learned simulator
- physics simulation
- graph network simulator
- graph neural network
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{pfaff2021learningmeshbasedsimulationgraph,
title={Learning Mesh-Based Simulation with Graph Networks},
author={Tobias Pfaff and Meire Fortunato and Alvaro Sanchez-Gonzalez and Peter W. Battaglia},
year={2021},
eprint={2010.03409},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2010.03409},
}