An $r$-adaptive finite element method using neural networks for parametric self-adjoint elliptic problem
Danilo Aballay, Federico Fuentes, Vicente Iligaray, Ángel J. Omella, David Pardo, Manuel A. Sánchez, Ignacio Tapia, Carlos Uriarte
TL;DR
The paper presents an $r$-adaptive finite element framework that uses a neural network to optimize mesh node locations for parametric self-adjoint elliptic PDEs, solving each parametric instance with a standard FEM. By formulating the mesh adaptation as Ritz energy minimization, the approach preserves FEM robustness while allowing the NN to tailor the mesh density to solution features such as sharp gradients or singularities. The method extends to parametric PDEs by learning a parameter-dependent mesh through a neural network, with the objective averaged over parameter samples to achieve good generalization. Numerical experiments in 1D and 2D Poisson problems demonstrate significant accuracy gains over uniform meshes, especially in challenging regimes, while highlighting the need for exact or highly accurate integration to avoid spurious local minima and ensuring reliable convergence. The work is implemented in JAX, enabling automatic differentiation for mesh optimization while permitting the use of non-differentiable high-performance FE solvers, and points to future extensions to non-symmetric problems, higher-order elements, irregular geometries, and goal-oriented adaptivity.
Abstract
This work proposes an $r$-adaptive finite element method (FEM) using neural networks (NNs). The method employs the Ritz energy functional as the loss function, currently limiting its applicability to symmetric and coercive problems, such as those arising from self-adjoint elliptic problems. The objective of the NN optimization is to determine the mesh node locations. For simplicity in two-dimensional problems, these locations are assumed to form a tensor product structure. The method is designed to solve parametric partial differential equations (PDEs). For each PDE parameter instance, the optimal $r$-adapted mesh generated by the NN is then solved with a standard FEM. The construction of FEM matrices and load vectors is implemented such that their derivatives with respect to mesh node locations, required for NN training, can be efficiently computed using automatic differentiation. However, the linear equation solver does not need to be differentiable, enabling the use of efficient, readily available `out-of-the-box' solvers. Consequently, the proposed approach retains the robustness and reliability guarantees of the FEM for each parameter instance, while the NN optimization adaptively adjusts the mesh node locations. The method's performance is demonstrated on parametric Poisson problems using one- and two-dimensional tensor product meshes.
