Towards Universal Mesh Movement Networks

Mingrui Zhang, Chunyang Wang, Stephan C. Kramer, Joseph Gregory Wallwork, Siyi Li, Jiancheng Liu, Xiang Chen, Matthew D Piggott

Abstract

Numerical simulations of Partial Differential Equations (PDEs) are essential for modeling complex physical phenomena, yet their accuracy is heavily dependent on the quality of the underlying mesh. While $r$-adaptation—the process of dynamically relocating mesh nodes—offers a way to optimize resolution, traditional methods are computationally expensive and prone to failure in complex geometries. We present the Universal Mesh Movement Network (UM2N), a deep learning framework that achieves zero-shot generalization for mesh movement. By decoupling mesh adaptation from specific physical equations and utilizing a volume-based loss function, UM2N provides up to a 3000x speedup over conventional solvers while maintaining robustness against mesh tangling in real-world scenarios.

1. Introduction

In scientific computing, solving PDEs requires discretizing space into a mesh. High-gradient features, such as shockwaves in fluid dynamics or irregular coastlines in tsunami modeling, require a fine mesh to ensure accuracy. Practitioners typically choose between $h$-adaptation (adding/deleting nodes) and $r$-adaptation (moving existing nodes). While $r$-adaptation preserves the mesh topology, it traditionally relies on solving auxiliary equations like the Monge-Ampère (MA) equation, which can be as computationally demanding as the primary simulation itself.

Furthermore, traditional $r$-adaptation methods often struggle with "mesh tangling"—where nodes swap positions and create inverted elements—especially near non-convex boundaries. Previous deep learning approaches to this problem were limited by their lack of generalization, requiring extensive retraining for every new PDE or boundary geometry.

2. The UM2N Framework

The Universal Mesh Movement Network (UM2N) addresses these challenges by treating mesh movement as a geometric optimization problem rather than a physics-specific one. This decoupling allows the model to learn a universal mapping from a density requirement to a node displacement field.

2.1 Architecture

UM2N employs a two-stage architecture designed for local and global awareness:

  • Graph Transformer (GT) Encoder: This component extracts features from the mesh nodes and the "monitor function" ( a map indicating where the mesh density should be increased).
  • Graph Attention Network (GAT) Decoder: The decoder predicts node displacements. The use of a GAT helps constrain movement to local neighborhoods, which naturally discourages the mesh from tangling.

2.2 PDE-Independent Training

The researchers introduced a novel training paradigm using synthetic data. Instead of training on physical simulations, the model was trained on 600 randomized Gaussian fields. These generic fields teach the network the mathematical relationship between a monitor function and the required mesh deformation, regardless of whether the underlying physics involves fluid flow, heat transfer, or wave propagation.

2.3 Element Volume Loss

To ensure physical validity, UM2N utilizes an element volume loss function. Unlike standard coordinate-based losses (like MSE), this function explicitly penalizes negative volumes. This architectural choice bakes robustness into the model, preventing the mesh from tangling even when dealing with complex, irregular boundaries.

3. Experimental Evaluation

The model's performance was evaluated in a zero-shot setting—meaning it was tested on problems entirely different from its training data—across several benchmarks:

  • Swirl Test: In this time-dependent advection problem, UM2N achieved a 35.93% error reduction, nearly matching the 37.43% reduction of the traditional (and much slower) MA solver. It significantly outperformed the previous state-of-the-art deep learning baseline, M2N, which only achieved a 14.15% reduction.
  • Flow Past Cylinder: A classic Navier-Stokes benchmark. UM2N successfully handled the complex boundary conditions where traditional solvers and previous DL models often fail due to tangling.
  • Tohoku Tsunami: A real-world simulation involving over 8,000 nodes and the highly irregular coastline of the Japan Sea. Despite being trained on small, synthetic meshes, UM2N generalized to this large-scale problem, maintaining mesh quality throughout the simulation.

4. Key Results and Efficiency

The most striking result of UM2N is its computational efficiency. On an Nvidia A100 GPU, the model achieved a 3342x speedup over traditional Monge-Ampère PDE solvers. Even on a standard CPU, the model remained approximately 100x faster than conventional methods. This speedup allows for real-time mesh adaptation in simulations that were previously bottlenecked by the cost of $r$-adaptation.

5. Limitations and Future Work

While UM2N represents a major advancement, the authors identify several areas for improvement. The GAT architecture limits the distance a node can move in a single step, which may necessitate multiple iterations for problems requiring extreme deformation. Additionally, the model still requires a pre-defined monitor function. Future research will focus on automating the selection of these functions and exploring "hr-adaptive" frameworks that combine node movement with node refinement.

6. Conclusion

UM2N demonstrates that mesh movement can be effectively decoupled from underlying physics and solved as a geometric task. By providing a fast, robust, and universal framework for $r$-adaptation, UM2N paves the way for more efficient and accurate scientific simulations across a wide range of disciplines.

Summary updated

BibTeX
@inproceedings{zhang2024towards,
  author = {Mingrui Zhang and Chunyang Wang and Stephan C. Kramer and Joseph Gregory Wallwork and Siyi Li and Jiancheng Liu and Xiang Chen and Matthew D Piggott},
  title = {{Towards Universal Mesh Movement Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=lcALCNF2qe},
}
Figure