[Paper Review] Solving Differential Equation with Constrained Multilayer Feedforward Network
This paper proposes a constrained multilayer feedforward network (CMFN) method to solve ODEs and PDEs with high accuracy by embedding Dirichlet boundary conditions directly into the model structure. By separating the solution into a boundary term and a weight-modulated bulk term, the method ensures exact boundary satisfaction, enabling unconstrained optimization of the residual error, which leads to significantly improved accuracy over penalty-based neural solvers.
In this paper, we present a novel framework to solve differential equations based on multilayer feedforward network. Previous works indicate that solvers based on neural network have low accuracy due to that the boundary conditions are not satisfied accurately. The boundary condition is now inserted directly into the model as boundary term, and the model is a combination of a boundary term and a multilayer feedforward network with its weight function. As the boundary condition becomes predefined constraintion in the model itself, the neural network is trained as an unconstrained optimization problem. This leads to both ease of training and high accuracy. Due to universal convergency of multilayer feedforward networks, the new method is a general approach in solving different types of differential equations. Numerical examples solving ODEs and PDEs with Dirichlet boundary condition are presented and discussed.
Motivation & Objective
- To address the low accuracy of neural network solvers for differential equations due to poor boundary condition enforcement.
- To develop a general-purpose method that ensures exact satisfaction of Dirichlet boundary conditions in ODE/PDE solutions.
- To improve training efficiency and solution accuracy by transforming the constrained problem into an unconstrained optimization task.
- To demonstrate the method's effectiveness on both linear and nonlinear PDEs with complex boundary conditions.
- To provide a unified framework applicable across hyperbolic, parabolic, and elliptic PDEs without reconfiguration.
Proposed method
- The solution is decomposed into a pre-defined boundary term that satisfies the Dirichlet conditions and a bulk term modeled as a multilayer feedforward network (MFN).
- The bulk term is trained to minimize the residual of the differential equation on the domain, with boundary conditions already satisfied by construction.
- The boundary term is explicitly constructed to match the given Dirichlet data, ensuring intrinsic satisfaction of boundary constraints.
- The loss function depends only on the residual of the reduced problem, excluding boundary terms, enabling unconstrained optimization.
- Automatic differentiation is used to compute derivatives required in the residual evaluation, ensuring compatibility with the neural network structure.
- The method uses standard optimization techniques to train the MFN, treating the process as a learning task with the analytical solution as the target distribution.
Experimental results
Research questions
- RQ1Can a neural network framework be designed to enforce Dirichlet boundary conditions exactly, rather than approximately via penalty terms?
- RQ2How does embedding boundary conditions directly into the model structure affect training stability and solution accuracy?
- RQ3Can the proposed CMFN method achieve high accuracy with minimal network depth and small training data sets?
- RQ4Does the method generalize across different types of PDEs, including elliptic, parabolic, and hyperbolic equations?
- RQ5Can the framework be extended to handle Neumann or Robin boundary conditions with similar robustness?
Key findings
- The CMFN method achieved an average error of 2.6×10⁻⁵ when solving the Laplace equation, significantly lower than the 1.6×10⁻³ error from the PINN penalty method.
- For the convection-diffusion equation, the CMFN method achieved an average error of 8.57×10⁻⁴, demonstrating high accuracy on nonlinear problems.
- Boundary conditions were satisfied exactly in the CMFN method, whereas the PINN method showed noticeable violations, especially at corners.
- The method maintained high accuracy over large domains and long time spans without accumulating truncation errors, unlike traditional iterative methods.
- Despite random initialization and non-zero final loss, the overall solution behavior remained controllable due to the continuity of the objective function and monotonic error reduction with loss minimization.
- The framework successfully solved both linear and nonlinear PDEs, including the heat equation and convection-diffusion equation, using only a four-layer, 20-neuron network and fewer than 1000 training points.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.