Exact Integration of ReLU-type Neural Networks for Solving PDEs
Shima Baharlouei, Ignacio Brevis, Reuben Menezes, David Pardo, Kristoffer G. van der Zee
Abstract
Developing robust training methodologies for solving partial differential equations (PDEs) with neural networks is crucial for reliable scientific computing. Piecewise-linear activations such as the Rectified Linear Unit (ReLU) are a convenient choice in this setting as their structure resembles classical piecewise-linear approximations. However, when the loss functional incorporates the spatial gradient of the network, as in the Deep Ritz method, numerical integration becomes problematic. Specifically, relying on standard integration techniques (e.g., Monte Carlo sampling) during training yields incorrect gradients, even as the number of integration points approaches infinity, leading to optimization failure. To overcome this limitation, we present an integration framework for single-hidden-layer ReLU networks that computes correct gradients when using Deep Ritz for PDEs or PINNs for first-order problems. Our approach employs the Sutherland-Hodgman algorithm to partition the physical domain into subdomains according to breaking hyperplanes underlying the ReLU network. By finding these hyperplanes exactly, our method can correctly integrate the gradients, ensuring the optimizer receives correct information. In this work, we further assemble the energy in matrix--vector form that allows all neuron interactions to be computed efficiently with vectorized operations, introduce an alternative approach termed Conforming Monte Carlo that is a stochastic version of the proposed method, and propose two stochastic training strategies to reduce complexity. Numerical results on two-dimensional domains demonstrate that our framework recovers optimal PDE solutions that standard stochastic sampling and other existing quadrature methods fail to capture.
Create a lesson
Metadata
- Categories
- math.NA, cs.NA
- Comments
- 23 pages, 9 figures
Related papers
A decoupled BDF2-type integrator for the spin-diffusion Landau--Lifshitz--Gilbert system in ferromagnetic multilayers
Shared title terminologymath.NAMichele Aldé, Dirk Praetorius, Agus L. Soenjaya
When and why can integral constraints improve the accuracy of physics-informed neural networks?
Shared title terminologymath.NAMyeong-Su Lee
FokasNets: Completing missing boundary data in Physics-Informed Neural Networks and Operators via the Global Relation
Shared title terminologymath.NAKyriakos C. Georgiou, Khemraj Shukla, Athanassios S. Fokas et al.
Quantum-Inspired Tensor Train Spectral Solver for High-Resolution PDEs with Non-Periodic Boundary Conditions
Shared title terminologymath.NASascha H. Hauck, Nis-Luca van Hülst, Matthias Kabel et al.
From Horner's rule to neural networks
Shared title terminologymath.NALorenzo Pareschi
A Unit-Gradient Neural Variational Method for Anisotropic Eikonal Equations
Shared title terminologymath.NAYesom Park, Jooyoung Hahn