Beyond PINNs: Boundary-Enriched Holomorphic Networks for Laplace Problems
Abstract
Physics-informed neural networks (PINNs) solve partial differential equations by penalizing their residual, but this formulation can be difficult to optimize for solutions with singular behaviour. We focus specifically on the two-dimensional Laplace equation, whose strong analytical structure allows the governing equation to be enforced directly in the neural representation. We compare a hybrid harmonic-neural model with a holomorphic neural network whose output is harmonic by construction and therefore requires only boundary training. We further enrich the holomorphic model with singular functions chosen according to the interior angle and boundary conditions at each junction of boundary segments. On six singular benchmarks, the enriched model is the most accurate of the neural models we compare. On the four with a closed-form solution, however, that solution lies in the span of the enrichment terms, and a least-squares fit of these terms alone is exact to rounding error. On Motz's problem and the cracked beam, the neural core reduces the relative error of the recovered leading singular coefficient from about $10^{-2}$, for a least-squares fit with the same four terms, to about $10^{-6}$, and on four variants whose solution has a smooth part outside the span, the network is $4\times10^{4}$ to $2\times10^{7}$ times more accurate than a fit of its singular terms alone; classical least-squares fits with more singular terms, or with harmonic polynomials and rational poles, are more accurate still. Our results demonstrate how exploiting problem-specific analytical structure can provide an alternative to base and residual PINNs for challenging scientific computing problems.
- Comment
- Accepted at the AI for Science Workshop, NeurIPS 2026. 24 pages, 9 figures