Abstract: Graph neural networks have emerged as a powerful tool for large-scale mesh-based physics simulation. Existing approaches primarily employ hierarchical, multi-scale message passing to capture long-range dependencies within the graph. However, these graph hierarchies are typically fixed and manually designed, which do not adapt to the evolving dynamics present in complex physical systems. In this paper, we introduce a novel neural network named DHMP (referred to as EvoMesh), which learns Dynamic Hierarchies for Message Passing networks through a differentiable node selection method. The key component is the anisotropic message passing mechanism, which operates at both intra-level and inter-level interactions. Unlike existing methods, it first supports directionally non-uniform aggregation of dynamic features between adjacent nodes within each graph hierarchy. Second, it determines node selection probabilities for the next hierarchy according to different physical contexts, thereby creating more flexible message shortcuts for learning remote node relations. Our experiments demonstrate the effectiveness of DHMP, achieving 22.7% improvement on average compared to recent fixed-hierarchy message passing networks across five classic physics simulation datasets.
Introduction
Simulating complex physics—like the turbulent wake behind an airplane wing or the chaotic folding of a piece of paper—is a cornerstone of modern engineering. While Graph Neural Networks (GNNs) have emerged as a fast alternative to traditional numerical solvers, they often struggle with a fundamental trade-off: how to capture fine-grained local details without losing sight of long-range global interactions.
Researchers from Shanghai Jiao Tong University have introduced EvoMesh (technically named DHMP), a framework that allows simulations to "evolve" their own internal structure. Instead of relying on a fixed, human-designed hierarchy, EvoMesh learns to dynamically coarsen and refine its representation of the world based on the physics unfolding in real-time.
The Challenge of Static Hierarchies
To simulate large-scale systems efficiently, researchers use hierarchical GNNs. These models create "shortcuts" by pooling nodes into coarser graphs, allowing information to travel across the mesh quickly. However, most existing methods use static hierarchies: the way the graph is simplified is decided before the simulation starts and never changes.
This is a problem because physics is rarely static. In a fluid simulation, the "action" (like a vortex) moves. A fixed hierarchy might be perfectly optimized for the initial state but become highly inefficient as the dynamics evolve. Furthermore, most GNNs use "isotropic" message passing, treating all neighbors equally, which fails to capture the directional nature of physical forces like wind or pressure gradients.
The EvoMesh Framework
EvoMesh introduces two primary innovations to make simulations more "aware" of their context: Anisotropic Message Passing and Differentiable Node Selection.
Anisotropic Message Passing (AMP)
Unlike standard GNNs that sum up neighbor features uniformly, AMP learns direction-specific weights. It uses the physical state (velocity, pressure, etc.) to decide which neighbors are most important for a specific node's update. This allows the model to capture phenomena like shockwaves or thin boundary layers where the direction of the force is as critical as its magnitude.
DiffSELECT (Differentiable Node Selection)
This is the core of the "evolution." Using a Gumbel-Softmax estimator, the model makes a differentiable "choice" about which nodes to keep when moving to a coarser level. This allows the entire hierarchy-building process to be trained end-to-end. If the model realizes it needs more detail in a specific area to reduce its prediction error, it learns to retain more nodes there. The importance weights learned in the AMP layers are reused during downsampling (REDUCE) and upsampling (EXPAND), ensuring that information flow between scales is physically grounded.
Experimental Results
The authors evaluated EvoMesh on five diverse mesh-based benchmarks, including CylinderFlow, Airfoil, Flag, DeformingPlate, and FoldingPaper. The results demonstrate significant improvements over state-of-the-art fixed-hierarchy models:
- Accuracy: On average, EvoMesh reduced one-step prediction error (RMSE) by approximately 20%.
- Long-term Stability: In long-term rollouts (up to 600 steps), EvoMesh showed significantly lower error accumulation. For the CylinderFlow task, it improved long-term RMSE by 61.3% over the next-best model.
- Dynamic Meshes: On the "FoldingPaper" task—where many previous hierarchical methods fail due to changing topology—EvoMesh achieved a 69.2% improvement in long-term accuracy compared to standard MeshGraphNet (MGN).
Conclusion
EvoMesh demonstrates that the graph hierarchy itself can be a learned feature of the simulation. By allowing the model to "zoom in" on regions of high physical activity and use directed information flow, it achieves superior accuracy and stability. While future work could incorporate hard physical priors or improve interpretability, EvoMesh represents a significant step toward more adaptive and efficient physical simulations.
Summary updated