Solving Partial Differential Equations (PDEs) on complex 3D geometries is a cornerstone of modern engineering, from heat distribution in electronics to structural stress in architecture. Traditionally, this requires a "mesh"—a discretization of space into small elements like tetrahedra. However, generating an efficient mesh is a significant computational bottleneck. This paper introduces Learned Adaptive Mesh Generation (LAMG), a framework that leverages deep learning to replace slow, iterative refinement with a high-speed "one-shot" prediction.
The Challenge of Adaptive Meshing
Standard simulation workflows often rely on Adaptive Mesh Refinement (AMR). AMR starts with a coarse mesh, solves the PDE, estimates the numerical error, and refines the mesh in areas of high error. This "solve-estimate-refine" loop is effective but expensive; the PDE must be solved multiple times just to determine where the mesh needs to be fine. This creates a "chicken-and-egg" problem: a high-quality solution is needed to guide refinement, but refinement is needed to obtain a high-quality solution.
The LAMG Pipeline
LAMG breaks this cycle by using a lightweight Graph Neural Network (GNN) to predict the optimal mesh density in a single pass. Instead of full iterative solves, the pipeline uses a "coarse solve" as a proxy for the final solution.
The process consists of four steps:
- Coarse Solve: A very low-resolution solve is performed using either a coarse Finite Element Method (FEM) or a sparse Monte Carlo approach.
- Sizing Field Prediction: The GNN takes this rough data and predicts a "sizing field"—a spatial map indicating the target size for mesh elements.
- Adaptive Meshing: An off-the-shelf mesher (like gmsh) generates a tetrahedral mesh based on this field.
- Final Solve: A single high-fidelity FEM solve is performed on the optimized mesh.
Results and Performance
The authors evaluated LAMG on the Thingi10k dataset, testing it against over 1,300 unseen 3D shapes. The results demonstrate that LAMG consistently achieves a 2x to 4x speedup over traditional iterative AMR while maintaining comparable accuracy.
The framework offers two operational modes:
- Direct LAMG: The user provides a parameter $\alpha$ that controls the total element budget.
- Relative LAMG: The parameter $\alpha$ acts as a target error tolerance, allowing for precise control over simulation fidelity.
Key Insights
A critical finding is that while learning the PDE solution itself is difficult to generalize across different shapes, learning the mapping from a rough solution to the required mesh density is highly effective. The GNN proved remarkably robust, producing accurate sizing fields even when the input coarse solve was extremely noisy. Furthermore, LAMG provides smoother sizing fields than traditional AMR, which can sometimes over-refine near sharp corners or singularities, leading to better-conditioned meshes.
Conclusion and Future Work
LAMG represents a significant step toward interactive engineering tools, where the overhead of mesh generation is minimized. While currently specific to the physics type it was trained on (e.g., heat flow vs. elasticity), future work aims to extend this to time-dependent equations and more diverse physical scenarios. By moving from iterative loops to one-shot neural predictions, LAMG paves the way for faster, more efficient large-scale simulations.
Summary updated