Learning to Simulate Complex Physics with Graph Networks
Alvaro Sanchez-GonzalezJonathan GodwinTobias PfaffRex YingJure LeskovecPeter W. Battaglia
Develops a particle-based graph network simulator capable of learning complex physical dynamics across fluids, rigid solids, and deformable materials, successfully generalizing over thousands of timesteps and scaling to an order of magnitude more particles at test time.
Traditional computer simulators for complex physics—such as fluids, rigid solids, and deformable materials—are critical for engineering and scientific analysis but often require years of manual engineering, demand massive computing power, and struggle to generalize across diverse material types. Machine learning offers an alternative by learning dynamics directly from data, yet previous machine learning simulators were typically specialized for narrow tasks, relied on rigid domain-specific assumptions, and struggled to scale over long trajectories without accumulating catastrophic errors.
The article demonstrates a unified machine learning framework called Graph Network-based Simulators (GNS) that learns to simulate a wide variety of interacting physical materials. The primary objective is to evaluate whether a single, general deep learning architecture can accurately model multi-material dynamics, prevent compounding rollout errors, and generalize to significantly larger systems and longer timeframes than seen during training.
The researchers formulated physical simulation as learned message-passing on particle graphs. The architecture embeds particles as nodes and local spatial relations as edges, computes interactions across multiple message-passing steps, and predicts per-particle accelerations that update positions over time. Credibility was established by evaluating the model across more than a dozen distinct 2D and 3D simulation datasets generated by standard physics engines, spanning chaotic fluids, granular sand, viscous deformable substances, and rigid obstacles. Training relied on one-step prediction pairs perturbed with random-walk noise to expose the network to non-ideal inputs, with benchmarks measuring one-step error, long-horizon trajectory error, and distributional discrepancies.
The analysis yielded several vital findings. First, a single GNS architecture accurately simulated diverse single- and multi-material systems over thousands of steps, maintaining stability across up to 20,000 particles in training. Second, the model demonstrated substantial zero-shot generalization; when trained on small domains with approximately 2,500 particles, it successfully predicted dynamics in test domains with up to 85,000 particles (a 34-fold increase), areas 32 times larger, and trajectories up to 8 times longer. Third, systematic ablations revealed that long-horizon accuracy depends heavily on unshared graph network parameters, larger connectivity radii, relative position encodings, and noise injection during training, while other hyperparameters had minimal effect. Finally, GNS outperformed leading domain-specific machine learning baselines across all benchmarked datasets without requiring hand-crafted physical constraints.
These results demonstrate that organizations can replace specialized, bespoke simulation pipelines with a single, highly flexible machine learning architecture. Because the model operates on continuous particle dynamics and supports gradient backpropagation, it significantly reduces the engineering time required to build custom simulators while opening opportunities for solving complex inverse problems and design optimization. The approach delivers inference runtimes broadly comparable to CPU-based ground truth physics engines, while shifting the computational burden toward highly parallelizable graph operations.
Decision-makers considering learned simulation pipelines should adopt the core architectural principles identified in the article—specifically relative spatial encodings, multi-step message-passing, and random-walk training noise. Before deployment in production settings, technical teams should conduct pilot studies to optimize graph neighborhood computation, which accounted for the majority of execution runtime. Further validation is also recommended to explore incorporating generic physical constraints, such as energy and momentum conservation, directly into the network.
Readers should note specific operational boundaries and maintain appropriate caution. The article notes failure modes under extreme conditions: rigid shapes can slowly deform over very long rollouts (e.g., 1,500 steps) during violent shaking, and complex contact phenomena like static adhesion may be mispredicted if underrepresented in training data. Nevertheless, confidence remains high in the model's core capability to robustly simulate and generalize complex particle interactions across diverse physical domains.
- Paper: Relational inductive biases, deep learning, and graph networks, Peter W. Battaglia et al. (2018). This foundational paper establishes the Graph Network framework and relational inductive biases that directly form the architectural backbone of the Graph Network-based Simulators.
- Paper: Interaction Networks for Learning about Objects, Relations and Physics, Peter W. Battaglia et al. (2016). This work introduces Interaction Networks for learning object relations and physical dynamics on graphs, providing the foundational conceptual paradigm for learning particle-based physics simulations.
- Paper: The Graph Neural Network Model, Franco Scarselli et al. (2009). This seminal paper defines the original Graph Neural Network model and its information diffusion mechanisms that underpin modern message-passing architectures.
- Paper: Graph Neural Networks: A Review of Methods and Applications, Jie Zhou et al. (2018). This comprehensive review categorizes spatial and spectral graph neural network formulations and message-passing schemes utilized in learned physical models.
- Paper: How Powerful are Graph Neural Networks?, Keyulu Xu et al. (2019). This paper analyzes the expressive limits of message-passing aggregation in graph neural networks, explaining the necessity of multi-step message passing in physical simulation.
- Paper: E(n) Equivariant Graph Neural Networks, Victor Garcia Satorras et al. (2021). This paper advances learned particle simulation by formulating E(n)-equivariant graph neural networks that inherently preserve Euclidean spatial symmetries during coordinate and state updates.
- Paper: E(3)-equivariant graph neural networks for data-efficient and accurate interatomic potentials, Simon Batzner et al. (2021). This work extends message-passing physical modeling to atomistic and molecular systems by incorporating strict E(3)-equivariance for high-fidelity interatomic potential simulation.
- Paper: Scientific Machine Learning Through Physics–Informed Neural Networks: Where we are and What’s Next, Salvatore Cuomo et al. (2022). This survey provides a comprehensive look at physics-informed scientific machine learning paradigms that complement and extend data-driven particle simulators like GNS.
- Paper: Physics-informed neural networks (PINNs) for fluid mechanics: a review, Shengze Cai et al. (2021). This review analyzes physics-informed neural modeling specifically applied to fluid mechanics, offering an alternative PDE-constrained approach to simulating complex fluid dynamics.
- Paper: WorldSimBench: Towards Video Generation Models as World Simulators, Yiran Qin et al. (2025). This benchmark evaluates the broader progression of machine learning systems acting as general physical world simulators across dynamic real-world environments.
