Abstract
Deep learning, particularly Graph Network-based Simulators (GNS), has emerged as a promising, high-speed alternative to traditional numerical fluid simulations. However, these models often struggle with long-term stability and generalization to novel environments. This paper investigates whether Graph Neural Networks (GNNs) truly learn physical laws or merely memorize training distributions. We propose two key improvements: multi-step "unrolling" during training to replace heuristic noise and representing boundaries as particles to prevent "shortcut learning." Our results demonstrate that these modifications lead to more stable simulations and significantly better generalization to larger domains.
Introduction
Simulating complex fluid behaviors, such as splashing or turbulent flow, is a cornerstone of computer graphics and engineering. While traditional methods are accurate, they are computationally prohibitive for real-time applications. GNS models treat fluid particles as nodes in a graph, using message-passing to predict dynamics. Despite their speed, GNS models face two primary challenges: error accumulation over time (instability) and a tendency to learn spatial correlations (e.g., "always splash at height Y") rather than universal physics, leading to failure in new environments.
Methodology
The core of our approach is the Graph Network-based Simulator (GNS) architecture. The system encodes the input state into a graph representation, processes it through multiple interaction network blocks, and decodes the result into particle accelerations.
To address the identified hurdles, we introduced two primary variations:
- Multi-step Unrolling: Instead of training on single-step transitions with added noise, we utilized a differentiable FLIP (Fluid-Implicit-Particle) simulator. This allows the model to be trained on sequences of its own predictions, forcing it to learn error-correction mechanisms.
- Boundary Particle Representation: To prevent the model from learning "shortcuts" based on global coordinates (like distance to boundaries), we represented domain walls as static obstacle particles. This forces the network to learn collision physics through local particle-to-particle interactions rather than spatial features.
Datasets and Evaluation
We evaluated our models on a custom-generated FLIP dataset containing 2,000 simulations and the MPM WaterRamps dataset. Generalization was tested using a set of challenging scenarios and larger domains (32x64) to see if the models could handle environments different from the training set.
Beyond standard Mean Squared Error (MSE), we utilized Earth Mover’s Distance (EMD) via optimal transport. This provides a better measure of how well the distribution of particles matches the ground truth, which is more relevant for visual fidelity in fluids than exact point-to-point matching.
Results and Discussion
Our findings reveal that standard GNNs are "lazy" learners. When provided with boundary distance features, they fail to generalize to taller domains, often "splashing" in mid-air at the height of the original training floor. By contrast, the boundary particle representation (1snb model) successfully ignored these height limits, though it still showed some deformation.
Furthermore, multi-step unrolling (2si model) proved superior for long-term stability, achieving an MSE of 2.430 at 400 frames compared to 2.853 for the baseline. The 1snb model achieved the best EMD score (1.336), indicating higher visual fidelity. Despite these gains, models still struggle with fluid compression, suggesting that incompressibility constraints are not yet fully captured by the GNN architecture.
Conclusion
While multi-step training and particle-based boundaries improve GNS robustness, these models still do not learn "true" underlying physics in a symbolic sense. Future research should focus on incorporating hard physical constraints (e.g., mass conservation) directly into the architecture and exploring symbolic regression to extract interpretable physical laws from learned weights.
Summary updated