MeshMask: Physics-Based Simulations with Masked Graph Neural Networks

Paul Garnier, Vincent Lannelongue, Jonathan Viquerat, Elie Hachem
1/15/2025
cs.LGphysics.flu-dyn

No official code found. Best implementation: DonsetPG/graph-physics (52 stars, last commit 2026-04-23).

Abstract

We introduce a novel masked pre-training technique for graph neural networks (GNNs) applied to computational fluid dynamics (CFD) problems. By randomly masking up to 40\% of input mesh nodes during pre-training, we force the model to learn robust representations of complex fluid dynamics. We pair this masking strategy with an asymmetric encoder-decoder architecture and gated multi-layer perceptrons to further enhance performance. The proposed method achieves state-of-the-art results on seven CFD datasets, including a new challenging dataset of 3D intracranial aneurysm simulations with over 250,000 nodes per mesh. Moreover, it significantly improves model performance and training efficiency across such diverse range of fluid simulation tasks. We demonstrate improvements of up to 60\% in long-term prediction accuracy compared to previous best models, while maintaining similar computational costs. Notably, our approach enables effective pre-training on multiple datasets simultaneously, significantly reducing the time and data required to achieve high performance on new tasks. Through extensive ablation studies, we provide insights into the optimal masking ratio, architectural choices, and training strategies.

View on arXivView PDF

Code Implementations(1)

This repo lets you train GNN (MeshGraphNet, transformers, etc) to simulate physics on unstructured grids like meshes.

5217Shell, PythonOct 10, 20246 months ago
gnnmlphysics-simulation

Similar Papers

Cite this paper

@article{garnier2025meshmask,
  title  = {MeshMask: Physics-Based Simulations with Masked Graph Neural Networks},
  author = {Paul Garnier and Vincent Lannelongue and Jonathan Viquerat and Elie Hachem},
  year   = {2025},
  eprint = {2501.08738},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.08738v3},
  journal = {ICLR 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.08738.svg)](https://codeofpaper.com/paper/2501.08738)

Discussion