Learning to Simulate Complex Physics with Graph Networks
Learning to Simulate Complex Physics with Graph Networks
2026 Summer GNN Study Group
\[F_i = \sum_{j \in \mathcal{N}(i)} F_{ij}\]
Particle-based simulation can be understood as a process where each individual particle interacts with surrounding particles and updates its own state. This structure corresponds naturally to the message passing of GNNs. Representing particles as nodes and interactions between particles as edges makes it possible to describe the temporal evolution of a physical system as repeated computations on a graph.
However, this correspondence alone does not complete a good simulator. Will the learned interactions remain valid in new scenes? Can interactions between different materials be handled with a single graph relation? Furthermore, are physical properties that must be preserved, such as the shape of a rigid body, sufficiently captured by learning from data alone?
In this post, I will examine these questions centered on Learning to Simulate Complex Physics with Graph Networks (hereafter GNS).
Motivation
To handle different materials and scales, must the simulator’s architecture be redesigned every time?
GNS starts from this problem. The goal is to build an architecture that can be reused across multiple physical systems, and to apply the dynamics experienced during training to new initial conditions, shapes, particle counts, and spatial scales.
What must be distinguished here is reuse of the same architecture versus reuse of the same learned weights. The common structure is trained separately for each domain, and MultiMaterial is a separate experiment where a single model jointly learns the interactions of multiple materials. Therefore, generality should not immediately be taken to mean that ‘a model trained once handles arbitrary material properties’. Paper §5.1–5.2
Method
Realizing generality first requires deciding what to input, which relations to compute, and what to predict. The design of GNS is examined below in the order of state representation, message passing, and the connection between training and rollout.
Problem Formulation
Instead of generating an entire trajectory at once, can a rule that moves from the current state to the next state be learned? For this, the dynamics function to be learned is first distinguished from the simulator that actually updates the state.
-
Training. X is the system state and Y is the output of the dynamics model. The \(d_\theta\) below is the learned GN-based dynamics function, and the simulator, which includes the integration process that computes the next state from the output, is distinguished as \(s_\theta\).
\[\begin{aligned} X^{t_{0:K}} &= (X^{t_0}, \ldots, X^{t_K}) \\ Y &= d_\theta(X) \end{aligned}\] -
Inference. The predicted state is denoted as \(\tilde{X}\). The rollout is generated in an autoregressive manner that feeds the previous prediction back as the next input.
\[\begin{aligned} \tilde{X}^{t_{0:K}} &= (X^{t_0}, \tilde{X}^{t_1}, \ldots, \tilde{X}^{t_K}) \\ \tilde{X}^{t_{k+1}} &= \mathrm{Update}\left(\tilde{X}^{t_k}, d_\theta\right) \end{aligned}\] -
Writing out the state of the entire system per particle gives the following.
\[\begin{aligned} X &= (x_0, \ldots, x_N) \\ x_i^{t_k} &= [p_i^{t_k}, \dot{p}_i^{t_{k-C+1}}, \ldots, \dot{p}_i^{t_k}, f_i] \end{aligned}\]\(x_i\) is the state of the i-th particle. The basic inputs are the position, the previous velocity history, and the material properties, and when needed, global features are also provided. Acceleration is not a basic particle input but a prediction target.
Velocity and acceleration are computed by finite differences of position. The \(\Delta t=1\) below is a notation that absorbs the time interval into the equation, and it does not mean that the actual data is at 1-second intervals.
\[\begin{aligned} \dot{\mathbf{p}}^{t_{k+1}} &= \dot{\mathbf{p}}^{t_k} + \Delta t \cdot \ddot{\mathbf{p}}^{t_k} \\ \mathbf{p}^{t_{k+1}} &= \mathbf{p}^{t_k} + \Delta t \cdot \dot{\mathbf{p}}^{t_{k+1}} \\ (\Delta t &= 1) \end{aligned}\]
Encode - Process - Decode
Rather than mapping the particle state directly to the next position, GNS first moves it to a latent representation, computes the interactions, and then restores the physical quantities. This division of roles is the Encode–Process–Decode structure.

In training, one physical timestep is predicted. In inference, the same simulator is repeatedly applied along the time axis. Here, the repetition along the time axis and the repetition of message passing that takes place within a single timestep must be distinguished.
Message - Aggregate - Update
In what order is the influence of surrounding particles reflected into one’s own state? Below, the message computation on edges, the aggregation of neighbor messages, and the node update are examined separately.

-
Encoder
\[\begin{aligned} e_{i,j}^0 &= \varepsilon^e(r_{i,j})\\ v_i^0 &= \varepsilon^v(x_i) \end{aligned}\]First connectivity is constructed from the current positions, and the particle states and relative geometric information are encoded into latent vectors for nodes and edges respectively. Using relative position steers interactions between particles away from unnecessary dependence on absolute coordinates.
-
Processor
\[\begin{aligned} G^0 &= (\{v_i^0\}, \{e_{i,j}^0\}) \\ G^{m+1} &= GN^{m+1}(G^m) \\ (v_i^m, v_j^m, e_{i,j}^m) &\xrightarrow{\text{edge update MLP}} e_{i,j}^{m+1} \\ \bar{e}_i^{m+1} &= \mathrm{AGGREGATE}\left(\{e_{i,j}^{m+1} : j \in N(i)\}\right) \\ (v_i^m, \bar{e}_i^{m+1}) &\xrightarrow{\text{Node MLP}} v_i^{m+1} \end{aligned}\]Message passing is repeated on the graph constructed in the Encoder. Each GN block performs the following operations.
- Update the edge using the previous edge representation and the representations of its two endpoint nodes.
- Sum the updated edge messages incoming to each node.
- Update the node using the aggregated messages and the previous node representation.
The default setting is M=10, and this is a computation performed within a single physical timestep. The graph connectivity is recomputed with respect to the positions of the next physical timestep.
The default Processor uses different parameters at each message passing step. On the other hand, the parameters of the completed simulator are shared across the time steps of the rollout. This can be understood as analogous to the deep layers of a CNN, but interpreting each layer as handling a specific physical phenomenon requires separate verification.
-
Decoder
\[y_i = \delta^v(v_i^M) = \ddot{p}_i\]The Decoder predicts per-particle acceleration from the final node representation. Afterwards, semi-implicit Euler integration updates velocity and position in turn. The advance of physical time is \(t_k\rightarrow t_{k+1}\), which differs from the message passing index m of the Processor.
Objective and Optimization
On what grounds can a model trained only on single-timestep prediction be applied to a long trajectory? The key point is that it learns a state transition rule that is reused over time.
\[\begin{gathered} \theta^*_{\text{1-step}} \leftarrow \arg_\theta \min \mathbb{E}_{\mathbb{P}(\mathbf{X}^{t_{k:k+1}})} L_{\text{1-step}}\left(X^{t_{k+1}}, s_\theta(X^{t_k})\right). \\ L(\mathbf{x}_i^{t_k}, \mathbf{x}_i^{t_{k+1}}; \theta) = \Vert d_\theta(\mathbf{x}_i^{t_k}) - \ddot{\mathbf{p}}_i^{t_k} \Vert^2. \end{gathered}\]In training, input–target pairs are extracted from a trajectory to minimize the one-step loss. Multiple training pairs can be obtained from a single trajectory, but this cannot be regarded as equivalent to additionally securing independent trajectories.
This design reflects the inductive bias that, given an appropriate state representation, the same transition rule applies at any point in the trajectory. The authors also discuss the possibility that directly optimizing the error of the entire trajectory could learn a correction rule favorable to specific initial conditions. However, this is not a proof that trajectory-level training is generally inappropriate; it is better read as a design problem between generalization and long-term accuracy.
Random-walk training noise
But there is a difference in input distribution between one-step training and autoregressive rollout. During training, the ground-truth state is provided as input, but during inference, a state that contains the error of the previous prediction is provided as input. This is why small errors affect the next prediction and accumulate.
GNS adds random-walk noise to the training input to mitigate this difference. It is a way to train the model to predict the next motion even from a slightly perturbed state.
Gaussian noise is accumulated along the time direction in the velocity history, and the input position is also adjusted so that the position–velocity relation stays consistent. In the target acceleration, the noise added to the last input velocity is subtracted so that the error of the next velocity is corrected.
Checking the meaning of this correction in the velocity update equation of semi-implicit Euler,
\[\ddot{p}^{t_k} = \dot{p}^{t_{k+1}} - \dot{p}^{t_k}\]Rearranging this for the velocity of the next timestep gives the following.
\[\dot{p}^{t_{k+1}} = \dot{p}^{t_k} + \ddot{p}^{t_k}\]Adding the accumulated noise \(\epsilon\) to the input velocity, it can be written as follows.
\[\tilde{\dot{p}}^{t_k} = \dot{p}^{t_k} + \epsilon^{t_k}\]The position update uses the velocity of the next step: \(\hat{p}^{t_{k+1}}=\tilde{p}^{t_k}+\hat{\dot{p}}^{t_{k+1}}\). Correcting the target acceleration as below means that, even starting from the corrupted input velocity, learning targets the next ground-truth velocity.
\[\ddot{\tilde{p}}^{t_k} = \ddot{p}^{t_k} - \epsilon^{t_k}\]
Acceleration loss = next-step velocity loss
Substituting the correction of the acceleration target, this loss is connected to the velocity error of the next timestep. The proof below is based on unnormalized physical quantities in \(\Delta t=1\). The normalized loss of actual training reflects per-axis scale, but the target that the correction aims at is the same.
Proof
Let the predicted acceleration of the dynamics model \(d_\theta\) be \(\hat{\ddot{p}}^{t_k}\). The corrected target acceleration is as follows.
\[\ddot{p}_{\text{target}}^{t_k} = \dot{p}_{\text{GT}}^{t_{k+1}} - \dot{\tilde{p}}^{t_k}\]Therefore the acceleration loss is organized as follows.
\[L_a = \left\Vert \hat{\tilde{p}}^{t_k} - \left( p_{\mathrm{GT}}^{t_{k+1}} - \tilde{p}^{t_k} \right) \right\Vert ^2\]Meanwhile, the next velocity computed with the predicted acceleration is as follows.
\[\hat{p}^{t_{k+1}} = \tilde{p}^{t_k} + \ddot{\hat{p}}^{t_k}\]Substituting this, the loss of the next velocity is as below.
\[\begin{aligned} L_v &= \left\Vert \hat{\dot{p}}^{t_{k+1}} - \dot{p}_{\mathrm{GT}}^{t_{k+1}} \right\Vert ^2 = \left\Vert \tilde{\dot{p}}^{t_k} + \hat{\dot{p}}^{t_k} - \dot{p}_{\mathrm{GT}}^{t_{k+1}} \right\Vert ^2 \\ &= \left\Vert \hat{\dot{p}}^{t_k} - \left( \dot{p}_{\mathrm{GT}}^{t_{k+1}} - \tilde{\dot{p}}^{t_k} \right) \right\Vert ^2 \end{aligned}\]Therefore, under the above conditions, \(L_v=L_a\). However, this does not mean that it simultaneously removes the noise added to the input position as well.
Experiment
Will the learned local interactions work in larger scenes as well? And to what extent is generating plausible motion the same problem as preserving physical properties? The experiments can be read in the order of generalization, 3D application, design choices, and failure cases.
Generalization

According to the experiment shown in Fig 3., Ramps-Large uses about 34 times more particles and about 8.3 times longer rollout than during training. What stands out in this comparison is that the same local update can be applied repeatedly even when the overall scene size changes. Put simply, even if training uses a scene with 2.5K particles, this is nothing more than inputs equal to the number of particles going into a single encoder architecture, so expanding the domain or increasing the particle count is relatively unconstrained. Also, the fact that the simulation converges for unseen objects means that, beyond simply learning positional relations, the model is indeed learning the physical behavior to some degree.
3D simulation



The experimental setup and quantitative results for the 3D scenes are as follows. Taking only a brief look at two somewhat unfamiliar evaluation metrics:
- Optimal Transport: Measures how similar the distribution of the entire particle set is. Even if the order among particles changes, it gets a good score if the overall shape is similar.
- Maximum Mean Discrepancy: Measures the statistical distance between two particle distributions to evaluate how statistically valid the physical phenomenon generated by the model is.
A reason these two metrics are helpful can be seen in scenes that include fluids. As the authors mention in the paper, since fluids are inherently chaotic, MSE is not sufficient as an evaluation metric. Since MSE compares the position of each particle, the analysis is that even if the overall distribution is similar, MSE can spike greatly in fluids with heavy motion. However, there is also the reason that energy does not dissipate easily, so error accumulation is relatively large, and this leaves room for follow-up research.
Ablation

Next, the ablation conducted on the Goop scene (Fig.4-a). It compares the number of message passing steps, whether parameters are shared, connection radius, training noise, and relative position representation. In particular, (g,h) show that when noise increases, one-step accuracy and rollout accuracy do not move in the same direction. Rollout was best at a medium level of noise.
This can be viewed from the perspective that the noise injection introduced earlier is not simple data augmentation but a training design for coping with input error during inference. It also means that selecting a simulator by one-step metrics alone may miss a setting favorable for long-term prediction.
Also, (a–d) confirm the benefit of increasing message passing and of unshared parameters. However, it does not support the conclusion that increasing the number of layers is always beneficial or that there is no over-smoothing. This question is revisited in the Discussion below.
Baseline comparison

The comparison experiments present a qualitative comparison on BOXBATH and a CConv comparison across six domains. GNS generally shows an advantage over CConv in rollout MSE. In the multi-material situation, not only the appearance of the fluid but also the shape preservation of the box is relatively well maintained. This can be seen as directly connected to the Motivation question of ‘whether multiple materials can be handled with the same update structure’.
Failure cases and cost


The paper also discloses failure cases. It introduces deformation of the rigid body shape in long-horizon rollout, and a case where goop material shows non-physical behavior and sticks to the wall. The former problem leads to a discussion about methodologies that use a fully learned simulator approach without enforcing or conditioning on physical laws. For the latter problem, the authors’ analysis mentions two causes: first, due to data scarcity, the model likely did not learn enough data to clearly distinguish between a situation of falling off and a situation of being stuck; and second, that subtle physical interactions such as static friction or adhesion are complex. Whether these cases are problems that would be solved given enough data, or problems that are solved only by injecting physical constraints into the model, likewise remains as discussion.
Contribution
Taking the experiments together, it is worth noting that the individual components were combined and verified as a general-purpose particle simulator.
- Reusable simulator architecture. It trains multiple physical systems with a common GN structure and presents the possibility of extending the learned material to new initial conditions, shapes, particle counts, and spatial scales.
- Integrated verification across various materials and interactions. It shows the scope of applying fluids, deformable materials, and rigid bodies with particles and message passing.
- Dynamic radius graph. Since it reflects the current spatial proximity of particles into the interaction relations, the connectivity can also change when the material flows or scatters.
- Relative geometric encoding. By focusing on relations between particles rather than absolute position, it steers learning toward rules reusable even in new spatial arrangements.
- Connection between one-step supervision and stable rollout. It combines random-walk noise with the way of learning local transition rules to handle input error arising in repeated inference.
In that much of this content was inherited by subsequent GNN-based physics simulation research, GNS can be seen as a seminal work in this field. For example, one-step supervision + autoregressive rollout, relative geometric encoding, dynamic graph, and the use of unshared parameters during message passing were inherited explicitly or implicitly in follow-up research.
Discussion
Possibilities for follow-up research or limitations to consider while reading the paper are also examined below.

Proximity and the structural connectivity of an object
When do spatially nearby particles and structurally connected particles differ? GNS’s proximity graph is not given the object’s rest connectivity separately. For example, when cloth folds, vertices that were originally far apart can become spatially close. Whether it is sufficient to handle structural connections that transmit deformation and newly occurring contacts as the same relation is a separate issue. This becomes a starting point for reading follow-up research that distinguishes mesh-space and world-space relations.
Boundary representation and complex contacts
In GNS’s experiments, the shapes of boundary objects are still rather simple. The relative proximity to the current particle positions may fail to prevent the phenomenon of penetrating through the surface when colliding with more complex-shaped boundaries.

Learned behavior and physical constraints
Can rigidity be guaranteed merely by learning to move like a rigid body? The cases of rigid body deformation in long-horizon rollout examined in the Experiment raise this question. For example, what about conditioning on the material property? Or what if there were a way to inject physical constraints into the current architecture?
Message-passing depth and over-smoothing
Increasing message passing widens the interaction range, but how far is that benefit maintained? In the study group, based on the results of Fig. 4, we discussed the possibility of over-smoothing and the role of unshared parameters. It is hard to conclude from the observed performance improvement alone that the distinction of node representations is maintained. Measuring representation similarity and rollout error together in a deeper model, and comparing shared/unshared settings with matched parameter counts, could verify this question more directly.