Papers › Learning to Simulate Complex Physics with Graph Networks

Learning to Simulate Complex Physics with Graph Networks

21 Feb 2020ICML 2020 1arXiv:2002.09405archive 2025-07-28

Alvaro Sanchez-Gonzalez, Jonathan Godwin, Tobias Pfaff, Rex Ying, Jure Leskovec, Peter W. Battaglia

Here we present a machine learning framework and model implementation that can learn to simulate a wide variety of challenging physical domains, involving fluids, rigid solids, and deformable materials interacting with one another. Our framework---which we term "Graph Network-based Simulators" (GNS)---represents the state of a physical system with particles, expressed as nodes in a graph, and computes dynamics via learned message-passing. Our results show that our model can generalize from single-timestep predictions with thousands of particles during training, to different initial conditions, thousands of timesteps, and at least an order of magnitude more particles at test time. Our model was robust to hyperparameter choices across various evaluation metrics: the main determinants of long-term performance were the number of message-passing steps, and mitigating the accumulation of error by corrupting the training data with noise. Our GNS framework advances the state-of-the-art in learned physical simulation, and holds promise for solving a wide range of complex forward and inverse problems.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2002.09405")

Code

Syntology Ran 9 of 24 code samples harvested from 4 repositories linked to this paper; 15 have no recorded run. Of those that ran: 1 ran · violated contract; 1 ran · fixture could not drive it; 7 ran with no contract checked.

By repository: community (archive-listed): 24 samples from 4 repositories, 9 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

13 repositories listed; official and paper-mentioned ones first.

deepmind/deepmind-research officialmentioned in papertf report
Darkneew/deeplearning-fluid mentioned on GitHubtf report
diogodcarvalho/gns-sheet-model mentioned on GitHubjaxMIT report
geoelements/gns mentioned on GitHubpytorch report
htung0101/Physion-particles mentioned on GitHubpytorch report
jlinki/ggns mentioned on GitHubpytorch report
kks32/learning_to_simulate mentioned on GitHubtf report
m-ulmestrand/gcn-collisions mentioned on GitHubpytorch report
tumaer/lagrangebench mentioned on GitHubjaxMIT report
wu375/gnn-sim-torch mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

24 samples harvested; 9 ran; 0 honoured the contract we drafted; 15 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · violated contract
1ran · fixture could not drive it
7ran
15unverified

Licence: 13 of the 24 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 4 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

Decoder geoelements/gns/gns/learned_simulator.py community (archive-listed) ran · metamorphic tier: invariant fingerprinted licence not identified · pointer only · cf515f1865cc938d · report
Encoder geoelements/gns/gns/learned_simulator.py community (archive-listed) ran · metamorphic tier: deterministic licence not identified · pointer only · 31391488600b96f6 · report
GCN m-ulmestrand/gcn-collisions/physics_gnn.py community (archive-listed) ran Apache-2.0 (permissive) · 6ddd7d872c5465bd · report
ParticleEncoder htung0101/Physion-particles/models/GNS.py community (archive-listed) ran fingerprinted no licence file found · pointer only · 455f17e20452375a · report
ParticlePredictor htung0101/Physion-particles/models/GNS.py community (archive-listed) ran fingerprinted no licence file found · pointer only · 52aa4c6dfc0568cf · report
Propagator htung0101/Physion-particles/models/GNS.py community (archive-listed) ran no licence file found · pointer only · 2ec08f9afc4481a9 · report
RelationEncoder htung0101/Physion-particles/models/GNS.py community (archive-listed) ran fingerprinted no licence file found · pointer only · 0b5db1c272bb2421 · report
build_mlp geoelements/gns/gns/learned_simulator.py community (archive-listed) ran · fixture could not drive it licence not identified · pointer only · b7cb81770ba30c93 · report
time_diff geoelements/gns/gns/learned_simulator.py community (archive-listed) ran · violated contract fingerprinted licence not identified · pointer only · b6a7b4c1838c5223 · report
EncodeProcessDecode geoelements/gns/gns/learned_simulator.py community (archive-listed) unverified licence not identified · pointer only · 70132227e453c957 · report
GNS htung0101/Physion-particles/models/GNS.py community (archive-listed) unverified no licence file found · pointer only · 7404c27d0f9f05b1 · report
InteractionNetwork geoelements/gns/gns/learned_simulator.py community (archive-listed) unverified licence not identified · pointer only · eb8cb787e8ea787c · report
LearnedSimulator geoelements/gns/gns/learned_simulator.py community (archive-listed) unverified licence not identified · pointer only · ceb019d0bc5e6951 · report
Processor geoelements/gns/gns/learned_simulator.py community (archive-listed) unverified licence not identified · pointer only · 4e185c59b88aa7c1 · report
add_guards diogodcarvalho/gns-sheet-model/gns/graph.py community (archive-listed) unverified MIT (permissive) · 1c5a15d5ff809dc8 · report
get_E diogodcarvalho/gns-sheet-model/sheet_model/utils.py community (archive-listed) unverified MIT (permissive) · 7bf66991b886466a · report
get_E diogodcarvalho/gns-sheet-model/gns/utils.py community (archive-listed) unverified MIT (permissive) · 462dc344aeb7e330 · report
get_dx_eq diogodcarvalho/gns-sheet-model/sheet_model/utils.py community (archive-listed) unverified MIT (permissive) · 4eb7506dd92f169f · report
get_dx_eq diogodcarvalho/gns-sheet-model/gns/utils.py community (archive-listed) unverified MIT (permissive) · 074d15f05b987c6d · report
get_guards diogodcarvalho/gns-sheet-model/gns/graph.py community (archive-listed) unverified MIT (permissive) · ddb2cf246db8631b · report
get_nodes diogodcarvalho/gns-sheet-model/gns/graph.py community (archive-listed) unverified MIT (permissive) · d1ea23cc7d33967b · report
get_x_eq diogodcarvalho/gns-sheet-model/sheet_model/utils.py community (archive-listed) unverified MIT (permissive) · 72df1c0ddb18d5ee · report
get_x_eq diogodcarvalho/gns-sheet-model/gns/utils.py community (archive-listed) unverified MIT (permissive) · 95d152d025eca082 · report
sliding_windows diogodcarvalho/gns-sheet-model/gns/preprocess.py community (archive-listed) unverified MIT (permissive) · 04256ab5e36f1f1b · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Introduced by this paper: GNS

GNSTest

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections