Abstract
We consider a mesh-based approach for training a neural network to produce field predictions of solutions to parametric partial differential equations (PDEs). This approach contrasts current approaches for "neural PDE solvers" that employ collocation-based methods to make point-wise predictions of solutions to PDEs. This approach has the advantage of naturally enforcing different boundary conditions as well as ease of invoking well-developed PDE theory -- including analysis of numerical stability and convergence -- to obtain capacity bounds for our proposed neural networks in discretized domains. We explore our mesh-based strategy, called NeuFENet, using a weighted Galerkin loss function based on the Finite Element Method (FEM) on a parametric elliptic PDE. The weighted Galerkin loss (FEM loss) is similar to an energy functional that produces improved solutions, satisfies a priori mesh convergence, and can model Dirichlet and Neumann boundary conditions. We prove theoretically, and illustrate with experiments, convergence results analogous to mesh convergence analysis deployed in finite element solutions to PDEs. These results suggest that a mesh-based neural network approach serves as a promising approach for solving parametric PDEs with theoretical bounds.
Introduction
Solving partial differential equations (PDEs) is a cornerstone of modern science and engineering. While traditional numerical methods like the Finite Element Method (FEM) are robust, they can be computationally expensive for parametric studies where solutions are needed for many variations of material properties or boundary conditions. Recently, Physics-Informed Neural Networks (PINNs) have emerged as a popular alternative. However, PINNs typically rely on point-wise collocation, which often lacks the theoretical rigor, stability, and convergence guarantees required for high-stakes engineering applications.
NeuFENet addresses these gaps by bridging the gap between classical FEM and deep learning. Instead of predicting values at individual coordinates, NeuFENet adopts a field-to-field mapping approach, utilizing the structured topology of discretized domains to provide mathematical guarantees and predictable convergence behavior.
Methodology
The core of NeuFENet is the transition from point-wise coordinate mapping to a holistic field-to-field transformation.
Architecture: The U-Net Framework
NeuFENet utilizes a U-Net architecture, a type of convolutional neural network (CNN) designed for image-to-image tasks. In this context, the "images" are discretized fields representing physical properties (e.g., diffusivity) and the resulting solution fields. The multi-scale nature of the U-Net allows the model to capture both local interactions and global trends within the physical domain.
FEM-Inspired Loss Function
Unlike standard neural solvers that minimize the PDE residual at random collocation points, NeuFENet minimizes a weighted Galerkin loss, effectively an energy functional derived from the Rayleigh-Ritz method. For self-adjoint elliptic problems like the Poisson equation, this variational approach is more stable and theoretically sound.
The spatial derivatives and integrals required for this loss are computed using FEM basis functions and Gaussian quadrature, implemented as efficient convolutional operations. This ensures that the network's optimization is directly tied to the underlying physics and discretization.
Exact Boundary Conditions
One significant advantage of the mesh-based approach is the ease of enforcing boundary conditions. Dirichlet boundary conditions are applied via a post-processing step that fixes the values at the boundary nodes, ensuring they are satisfied exactly without the need for penalty terms or complex hyperparameter tuning.
Theoretical Foundations and Mesh Convergence
A key contribution of NeuFENet is the restoration of "mesh convergence" to neural PDE solvers. In classical FEM, as the mesh size $h$ decreases, the error typically decreases at a rate of $O(h^2)$ for linear elements. NeuFENet theoretically and experimentally demonstrates this same behavior.
Furthermore, the authors establish capacity bounds, showing that the neural network's depth and width must scale with the mesh resolution. If the network capacity is insufficient, it acts as a bottleneck, preventing the model from achieving the theoretical accuracy limits of the underlying mesh.
Experimental Results
The framework was rigorously tested on 2D and 3D Poisson equations with parametric and stochastic diffusivity fields.
- Mesh Convergence: Experimental results confirmed a consistent slope of 2 in log-log error plots, perfectly aligning with FEM theory.
- Parametric Accuracy: On complex tasks involving Karhunen-Loeve expansions for stochastic diffusivity, NeuFENet achieved relative errors between 0.4% and 0.6%.
- Scalability: The model successfully handled 3D problems on $64^3$ grids, demonstrating its potential for large-scale engineering simulations.
Conclusion
NeuFENet represents a significant step toward integrating the rigor of scientific computing with the flexibility of deep learning. By adopting a mesh-based, field-to-field approach and an energy-minimizing loss function, it provides the theoretical bounds and predictable performance necessary for reliable neural PDE inference. Future work will focus on extending this framework to unstructured meshes and time-dependent problems.
Summary updated