Beyond PINNs: Boundary-Enriched Holomorphic Networks for Laplace Problems

Andrei Vlad Nicula, Kalp Shah, Robert-Stefan Sofroni, Mihnea Andrei Bârsan, Agneya Bhardwaj, Jan Jelínek, Chris Hoes, Remco Hogerwerf, Finn Govers, Storm Koper, Gerrit Janssen, Stef de Wildt, Alejandro Valverde MahouarXiv 2026

Imagine you’re trying to model the heat distribution in a metal plate with a sharp notch or a sudden change in insulation. If you use a standard Physics-Informed Neural Network (PINN), you’re likely in for a rough night. PINNs are great, but they have a "spectral bias"—they love smooth, wavy functions and absolutely loathe sharp corners and singularities.

This paper, "Beyond PINNs," suggests that instead of forcing a general-purpose network to learn the laws of physics through a penalty box (the loss function), we should build the laws of physics directly into the "DNA" of the network itself.

TL;DR

By using complex analysis to build "holomorphic" neural networks, the authors created a model that satisfies Laplace’s equation by its very architecture, requiring zero training points inside the domain. When "enriched" with specific mathematical terms to handle sharp corners, these networks outperform standard PINNs by up to 15 orders of magnitude.

What Problem Does This Paper Address?

The authors focus on the 2D Laplace equation ($\Delta u = 0$), a fundamental equation describing everything from steady-state heat flow to electrostatics.

Standard PINNs solve this by minimizing a "residual" loss: they pick points inside a shape and punish the network if the Laplacian isn't zero. However, near "singularities"—like the tip of a crack or a sharp L-shaped corner—the solution changes violently. PINNs struggle to optimize these regions, often resulting in "gradient pathologies" where the network ignores the boundary conditions to satisfy the interior physics, or vice versa.

Methods

The researchers took a "physics-by-construction" approach using two main tricks:

  1. Holomorphic Neural Networks: In 2D, there is a beautiful link between complex numbers and physics. The real part of any holomorphic function (a complex function that is differentiable everywhere) is automatically harmonic (it satisfies Laplace's equation). By building a network using complex-valued weights and specific activations (like the exponential function), the output is guaranteed to satisfy the PDE. You don't even need to check the interior; you only need to train the network to match the boundary conditions.
  2. Singularity Enrichment: Even a holomorphic network struggles with the "infinite" gradients at a sharp corner. The authors "enriched" the model by adding specific mathematical terms (derived from the geometry of the corners) directly to the network's output. These terms handle the "sharp" parts of the solution, leaving the neural network "core" to handle the smooth, leftover parts.

Datasets

The authors didn't just use toy problems; they hit the classic "boss levels" of computational physics:

  • Six Singular Benchmarks: Including the Slit Disk (a circle with a crack to the center), the L-shaped domain, and Motz’s problem (a classic rectangular benchmark with a sudden change in boundary conditions).
  • Out-of-Span Variants: They created harder versions of these problems where the solution isn't just a simple mathematical term, forcing the neural network to actually "work" to find the answer.
  • Randomized Suite: 24 randomly generated problems on squares and disks to test the robustness of the "compiler" that automatically picks the enrichment terms.

Key Insights and Ideas

  • Architecture as Law: If the network cannot physically represent a non-harmonic function, you eliminate the need for interior collocation points. This makes training much simpler and more robust.
  • The Maximum Principle Advantage: Because the network is exactly harmonic, the authors could use the "Maximum Principle"—a math rule stating that the biggest error must occur on the boundary. This allows them to estimate how accurate the model is in the interior just by looking at the boundary misfit.
  • Neural Core vs. Math Terms: For simple problems, the enrichment terms do 99.9% of the work. But on complex problems (the "out-of-span" ones), the neural core reduces error by a factor of $10^4$ to $10^7$ compared to using the math terms alone.

Key Results

The results are, frankly, staggering. Look at the visual difference in error between a standard PINN and the Enriched Holomorphic model in Figure 1:

Figure 1: Error |u−u⋆| of the MLP PINN, the harmonic least-squares fit, the hybrid harmonic–neural model and the enriched holomorphic network on the Slit disk (top) and the Cracked beam (bottom, against the series reference), on one logarithmic scale per problem.
  • Accuracy: On the Slit Disk, the relative $L^2$ error dropped from $1.6 \times 10^{-1}$ for a standard PINN to $2.8 \times 10^{-12}$ for the enriched model.
  • Precision: On Motz’s problem, the model recovered the "leading singular coefficient" (a key physical value) with an error of $10^{-7}$, whereas standard PINNs were stuck at $10^{-1}$.
  • Consistency: As shown in the table below, the enriched model (bolded) consistently hits "rounding level" accuracy (around $10^{-16}$) on closed-form solutions.
Table 2: Quantitative error results across various benchmarks.

Limitations and Future Work

While impressive, the authors are honest about the hurdles:

  • The 2D Constraint: This specific holomorphic trick relies on complex analysis, which is a uniquely powerful tool in 2D. Extending this to 3D isn't straightforward.
  • Laplace Only: This approach is tailor-made for Laplace and related elliptic problems. It doesn't immediately solve non-linear or time-dependent PDEs (like turbulence).
  • Classical Competition: For these specific problems, classical "non-neural" solvers (like the Trefftz method) are still faster and sometimes more accurate. The value here is showing how to integrate these classical strengths into the flexible world of deep learning.

In short: if you're working in 2D and your problem has sharp corners, stop fighting the physics and start baking it into your layers.

Summary updated

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.
BibTeX
@misc{nicula2026beyond,
  author = {Andrei Vlad Nicula and Kalp Shah and Robert-Stefan Sofroni and Mihnea Andrei Bârsan and Agneya Bhardwaj and Jan Jelínek and Chris Hoes and Remco Hogerwerf and Finn Govers and Storm Koper and Gerrit Janssen and Stef de Wildt and Alejandro Valverde Mahou},
  title = {{Beyond PINNs: Boundary-Enriched Holomorphic Networks for Laplace Problems}},
  year = {2026},
  eprint = {2611.29922},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.29922},
}
Figure