Abstract
Graph neural networks (GNNs) have emerged as powerful surrogates for mesh-based computational fluid dynamics (CFD), but training them on high-resolution unstructured meshes with hundreds of thousands of nodes remains prohibitively expensive. We study a coarse-to-fine curriculum that accelerates convergence by first training on very coarse meshes and then progressively introducing medium and high resolutions (up to $3\times10^5$ nodes). Unlike multiscale GNN architectures, the model itself is unchanged; only the fidelity of the training data varies over time. We achieve comparable generalization accuracy while reducing total wall-clock time by up to 50%. Furthermore, on datasets where our model lacks the capacity to learn the underlying physics, using curriculum learning enables it to break through plateaus.
Introduction
Computational Fluid Dynamics (CFD) is essential for engineering and medical research, yet high-fidelity simulations are computationally intensive. Surrogate models based on Graph Neural Networks (GNNs) offer a promising alternative, providing rapid predictions once trained. However, the training phase itself faces significant hurdles: production-grade meshes often contain hundreds of thousands of nodes, leading to high memory requirements and long training times. Moreover, optimizing GNNs on these complex meshes can be difficult, often resulting in performance plateaus where the model fails to capture intricate physical phenomena like boundary layers or small vortices.
Methods
We propose a data-centric curriculum learning strategy to address these challenges. Instead of modifying the GNN architecture, we vary the fidelity of the training data over time.
Model Architecture
We utilize a transformer-based GNN with approximately 500,000 parameters, following an Encode-Process-Decode architecture. Spatial relationships are processed using Multi-Head Attention, masked by the mesh's adjacency matrix to respect the underlying topology.
Coarse-to-Fine Curriculum
The training process is divided into phases. Initially, the model is trained on very coarse meshes where the "broad strokes" of the fluid flow are easier to learn. As training progresses, the resolution is increased. This approach allows the model to learn fundamental physical patterns efficiently before refining its predictions on high-resolution data. A key component of this strategy is "resetting" the learning rate schedule—triggering a new warmup and decay—whenever the mesh resolution increases, facilitating adaptation to finer details.
Datasets
The curriculum is evaluated on two distinct benchmarks, utilizing automated re-meshing to create a hierarchy of resolutions.
Aneurysm Dataset (3D)
This dataset consists of 101 trajectories of blood flow through semi-idealized intracranial aneurysms. High-resolution production meshes contain approximately 300,000 nodes and 3–4 million edges.
Cylinder Benchmark (2D)
A standard CFD test case involving flow around a cylinder, with the default mesh containing approximately 2,000 nodes.
Results and Discussion
Our results demonstrate that the coarse-to-fine curriculum significantly enhances training efficiency and model performance.
Efficiency and Speedup
By spending approximately 50% of the total optimization steps on coarser datasets, we achieved a wall-clock training time reduction of up to 50% without sacrificing generalization accuracy. Coarser meshes, while noisier representations of the physics, allow for faster computation and more frequent weight updates per unit of GPU time. For instance, memory requirements for the Aneurysm dataset drop from nearly 100 MB for the default mesh to approximately 1 MB for the coarsest version.
Breaking Performance Plateaus
On the complex Aneurysm dataset, standard training on fine meshes often failed to capture the physics accurately, hitting a performance ceiling. The curriculum served as a pre-conditioning step, initializing model weights in a favorable region of the parameter space. This enabled the model to achieve a significantly lower All-Rollout RMSE (root mean square error) compared to baseline models trained exclusively on high-resolution data.
Conclusion
Curriculum learning provides a robust framework for training GNN surrogates on high-resolution CFD data. By starting with simpler, low-resolution representations, models can learn complex physics more effectively and much faster. This approach is scalable to meshes exceeding one million nodes and requires no changes to existing GNN architectures, making it a practical and powerful tool for large-scale mesh-based simulations.
Summary updated