TL;DR
Standard graph neural networks for mesh-based physics simulation rely on fixed, hand-crafted multi-scale hierarchies to capture long-range interactions, failing to adapt as physical dynamics evolve over time. This paper introduces DHMP (Dynamic Hierarchical Message Passing), a framework that dynamically learns context-aware graph hierarchies using differentiable node selection and anisotropic message passing. By adapting mesh resolution and directional information flow to the evolving physical state, DHMP achieves an average 22.7% error reduction over fixed-hierarchy baselines across diverse benchmarks.
What Problem Does This Paper Address?
Graph Neural Networks (GNNs) have shown great promise in accelerating mesh-based physics simulations (such as computational fluid dynamics and structural mechanics). To capture long-range physical interactions without incurring prohibitive computational costs, state-of-the-art models typically build multi-scale graph hierarchies.
However, existing hierarchical approaches suffer from two fundamental bottlenecks:
- Static, heuristic hierarchies: Coarser graph levels are typically pre-computed via geometric clustering or spatial pooling once before training. These fixed structures cannot adapt to evolving physical phenomena (like localized turbulence or shockwaves), where regions requiring high resolution shift dynamically.
- Isotropic and unlearnable information flow: Most methods aggregate neighborhood features uniformly (treating all neighbors equally) and rely on non-parametric degree-based weights to transfer representations between coarse and fine levels, failing to capture the inherently directional nature of physical processes (e.g., fluid flow).
Methods
DHMP addresses these challenges within an encode-process-decode architecture utilizing two core components:
- Anisotropic Message Passing (AMP): Instead of standard summation or symmetric averaging, AMP uses a lightweight MLP ($\phi^w$) on edge and node features to learn direction-specific scalar importance weights ($\alpha_{ij}$). Crucially, this captures spatial offsets and directional influence while remaining significantly more computationally efficient than standard multi-head attention.
- Differentiable Hierarchy Construction (DiffSELECT): The node-update module predicts downsampling retention probabilities ($p_i^l$) for each node at level $l$. Nodes are selected for the coarser graph $l+1$ using the Gumbel-Softmax trick with temperature annealing (decayed from $5.0$ to $0.1$), making discrete sub-sampling differentiable and trainable end-to-end.
- $K$-Hop Edge Enhancement: Sub-sampling nodes can disconnect graphs into isolated components. To preserve topology, the authors add $K$-hop edges among selected nodes (setting $K=2$ empirically yielded optimal connectivity and expressiveness).
- Weight Reuse Across Hierarchies: Rather than using unlearnable projection matrices, DHMP directly reuses the learned intra-level edge weights ($\alpha_{ij}^l$) to govern both the downsampling (
REDUCE) and upsampling (EXPAND) steps across hierarchical levels.
Datasets
The authors evaluated DHMP across five standard and challenging benchmarks:
- CylinderFlow: 2D Eulerian simulation of incompressible flow past an obstacle (600 time steps).
- Airfoil: 2D Eulerian compressible transonic aerodynamics at varied Mach numbers and attack angles (100 time steps).
- Flag: 3D/2D Lagrangian dynamics of cloth flapping in the wind (400 time steps).
- DeformingPlate: 3D Lagrangian tetrahedral mesh simulating hyperelastic material compression (400 time steps).
- FoldingPaper: A challenging setup using the ARCSim solver featuring dynamically remeshed, time-varying mesh topologies (325 time steps).
Key Insights and Ideas
- Coarsening follows physical gradients, not just geometry: Visualizations reveal that DiffSELECT automatically retains nodes where temporal variations in physical fields (like velocity differences) are highest. Coarser levels focus computation directly on the most dynamic, "challenging" regions rather than uniformly thinning out space.
- Reusing intra-level attention for inter-level pooling: Reusing the anisotropic weights computed during local message passing for hierarchical inter-level transitions (
REDUCEandEXPAND) couples intra-scale and inter-scale reasoning with almost zero extra parameter overhead. - Handling time-varying meshes seamlessly: Because hierarchies are learned dynamically on-the-fly as a function of current states, DHMP naturally handles simulations with dynamic topological remeshing (e.g., FoldingPaper), where static multi-scale baselines fail without costly pre-computation.
Key Results
- Standard Rollout Accuracy: DHMP outperformed competitive baselines (MGN, BSMS-GNN, HCMT, and Lino et al.) across all datasets, cutting long-term rollout error (RMSE-all) by 61.3% on CylinderFlow, 28.5% on DeformingPlate, and 15.7% on Flag over the second-best model. Overall, it achieves a 22.7% average improvement.
- Time-Varying Meshes: On the FoldingPaper benchmark with adaptive remeshing, DHMP reduced long-term rollout RMSE from $24.08 \times 10^{-2}$ (MGN) to $7.41 \times 10^{-2}$ (a ~69% reduction).
- Out-of-Distribution Generalization: When trained on low-resolution meshes and evaluated zero-shot on high-resolution meshes (2× nodes, 3× edges), DHMP maintained lower error than fixed-hierarchy baselines. It similarly excelled under out-of-distribution input velocities.
- Efficiency: Compared to attention-based mesh transformers (HCMT), DHMP reduced per-step inference latency by roughly 2× to 4× and took less than half the training time to converge.
Limitations and Future Work
- Interpretability: The exact decision boundary for node retention in DiffSELECT remains largely a black box, needing deeper mechanistic interpretability.
- True Resolution-Free Modeling: While the model exhibits zero-shot generalization to finer resolutions, it does not guarantee continuous operator learning across arbitrary, continuous domain discretizations.
- Physical Inductive Biases: The authors suggest integrating explicit physical conservation priors (e.g., mass or momentum preservation constraints) into the message passing mechanisms to further improve stability over thousands of unrolled steps.
Summary updated