arXiv:2610.26458math.NAOct 2026

Manuscript Offprint

arXiv:2610.26458

Residual-Based Adaptive Refinement in Hybrid Variational-Collocation PINNs for Singular Elliptic PDEs with Mixed Dirichlet-Neumann Boundary Conditions

Somnath Giri, Muslim Malik, Rishikesh Yadav

ABSTRACT

Solutions of second-order elliptic PDE problems on nonconvex or cracked domains with mixed Dirichlet-Neumann conditions typically lie outside H2(Ω)H^2(\Omega). Near re-entrant corners, crack tips and points where the boundary condition changes type, the gradient grows like rλ−1r^{\lambda-1} with λ<1\lambda < 1. We study residual-based adaptive refinement in hybrid variational-collocation PINNs. A multiscale Fourier-feature network is trained on a composite loss. The loss combines a variational residual tested against Legendre bubble functions, a strong-form collocation term and penalties for the Dirichlet and Neumann data. The variational term needs only first derivatives of the network, whereas the collocation term requires second derivatives and provides a residual that can be evaluated at any point. After each training stage, candidate points selected by this residual are added to the collocation set. The method is tested on five two dimensional benchmarks, namely a Mode III crack, a cross-shaped domain with four re-entrant corners with unequal amplitude, a reaction-diffusion problem with four localized peaks, a monotone semilinear problem with a boundary layer and the Motz problem. Compared with uniform point insertion under the same collocation and iteration budget, residual-based refinement reduced the relative L2L^2 error by up to a factor of 32, the relative L∞L^\infty error by up to a factor of 38 and the relative H1H^1 semi-norm error by up to a factor of 15.

1. Introduction

Many physical phenomena, including steady heat transfer, mass transport, electrostatic fields, linear elasticity and incompressible potential flows, are governed by second-order elliptic boundary value problems [1, 2]. In many applications, the primary quantities of interest are gradient, such as heat fluxes, electric fields and stress intensity factors. For such quantities, the accuracy of a numerical method in approximating ∇u\nabla u is often as important as its accuracy in approximating uu [3]. Mixed Dirichlet-Neumann boundary conditions frequently arise in elliptic problems, with the Neumann component presenting the greater difficulty. As it prescribes normal derivatives, its accurate enforcement requires resolving gradients that may be singular near crack faces and re-entrant corners. The change of boundary condition type at a Dirichlet-Neumann junction introduces a singularity even in the absence of geometric singularities [4]. The classical Motz problem illustrates this effect on a straight boundary with smooth data [5].

Near a corner of interior angle ω\omega, Kondrat'ev-Grisvard theory [4, 6] provides the decomposition u=ureg+∑jcjχ(r)rλjϕj(θ)u = u_{\text{reg}} + \sum_j c_j \chi(r) r^{\lambda_j} \phi_j(\theta), where ureg∈H2(Ω)u_{\text{reg}} \in H^2(\Omega) and the singular exponents λj\lambda_j depend on both the interior angle and the two adjacent boundary conditions and equal jπω\frac{j\pi}{\omega} when both conditions are of the same type. With λ=λ1\lambda = \lambda_1 denoting the leading singular exponent, u∈Hs(Ω)u \in H^s(\Omega) for every s<1+λs < 1 + \lambda and ∣∇u∣∼rλ−1|\nabla u| \sim r^{\lambda-1} is unbounded whenever λ<1\lambda < 1, as at re-entrant corners ( ω>π\omega > \pi) and at Dirichlet-Neumann junctions. This loss of regularity is intrinsic to the underlying problem and cannot be eliminated by the choice of approximation space. A uniform discretization fine enough to resolve the singularity over resolves the rest of the domain. Adaptive and hp-adaptive finite element methods instead use a posteriori error estimators [7] to concentrate resolution near corners and crack tips. They recover optimal [8, 9] or even exponential [10, 11] convergence rates, at the cost of mesh generation and local refinement.

PINNs enforce the governing PDE by minimizing the strong-form residual together with boundary condition penalties, with derivatives computed by automatic differentiation [12–14]. Their meshfree formulation enables the

∗^{*}Corresponding author

girisommath70@gmail.com (S. Giri); muslim@iitmandi.ac.in (M. Malik); rishikesh@iitmandi.ac.in (R. Yadav) ORCID(s): 0009-0004-9829-3805 (S. Giri); 0000-0003-0055-7581 (M. Malik); 0000-0003-3419-9356 (R. Yadav) direct treatment of complex geometries [15, 16]. However, three factors limit the accuracy of PINNs for the class of problems considered here. First, the strong formulation requires the evaluation of second-order derivatives. Second, the optimization process exhibits a bias toward smooth, low-frequency solution components, leading to poor resolution of singularities and sharp layers [17–19]. Third, Neumann boundary conditions are typically enforced either through penalty terms, whose weights must be balanced against the residual term [20] or through specially designed trial spaces [21–23]. For corner singularities and mixed boundary conditions, singularity enriched PINNs [24] add the leading singular functions, with trainable coefficients to the network.

In variational PINNs (VPINNs) [25], the strong-form residual is replaced by a variational residual of Petrov-Galerkin type, with the neural network representing the trial solution and local polynomial basis functions defining the test space [26, 27]. Integration by parts transfers derivatives to the test functions, making only first-order derivatives of the network necessary. The mathematical theory of VPINNs discretizations is now well developed. It covers a priori energy norm estimates under inf-sup stability conditions, the effects of quadrature accuracy and test-space enrichment [28] and reliable and efficient a posteriori error estimation [29]. Further advances include basis independent residual minimization through the Riesz representation of the discrete dual norm [30] and its spectral realization in the Deep Fourier Residual framework [31, 32].

Adaptive strategies for VPINNs and related weak-form neural solvers typically act on the test space or on an underlying mesh. For example, the meshfree VPINN (MF-VPINN) generates additional test functions in regions identified by a posteriori error indicators [33], the robust VPINN (RVPINN) adaptively enriches the test space using information derived from the mismatch between the discrete and exact Riesz representatives [34] and finite element-interpolated neural networks with adaptive refinement modify the underlying mesh used to represent the network approximation [35]. However, the variational residual does not provide a pointwise measure of error and therefore cannot be evaluated or ranked at arbitrary locations x∈Ω\boldsymbol{x} \in \Omega. Consequently, pure VPINNs formulations admit no point level adaptivity and the residual-based sampling strategies developed for strong-form PINNs [36–40] cannot be applied directly.

A hybrid loss restores this capability. Specifically, augmenting the variational residual with the strong-form collocation term

Lf=1Nf∑k=1Nf∣R(u^)(xk)∣2,\mathcal{L}_{f}=\frac{1}{N_{f}}\sum_{k=1}^{N_{f}}\Big|R(\hat{u})(\boldsymbol{x}_{k})\Big|^{2},

where R(u^)R(\hat{u}) is the strong-form residual (2.12) of the network approximation u^\hat{u} and x1,…,xNf\boldsymbol{x}_1, \ldots, \boldsymbol{x}_{N_f} are the collocation points, provides a pointwise residual that can be evaluated throughout Ω\Omega. This residual may then be computed on a dense candidate pool and ranked to guide residual-based adaptive refinement (RAR). In this way, adaptivity acts directly on the collocation support, whereas variational adaptivity acts through the test space, the two mechanisms are complementary and address distinct aspects of the approximation. At the same time, the variational component depends only on first-order derivatives of u^\hat{u}, thereby avoiding the H2(Ω)H^2(\Omega) regularity requirements that are violated near crack tips, re-entrant corners and other singular features. The proposed method is neither a pure weak-form method nor is it entirely free of second-order derivatives, as both the collocation term Lf\mathcal{L}_f and the RAR indicator require the evaluation of Δu^\Delta\hat{u}. Moreover, the Neumann boundary condition is not imposed naturally, the Legendre bubble functions that serve as test functions vanish on element boundaries, so the boundary functional drops out of the discrete variational residual. The prescribed flux is therefore enforced through an explicit penalty term, natural imposition would require a modified test space on elements adjacent to the Neumann boundary [41]. In addition, no adaptive hh- or pp-refinement is performed, both the mesh partition and the local polynomial degree remain fixed throughout training. The underlying static discretization is that of hphp-VPINNs [26] and we call the resulting framework a hybrid variational-collocation PINNs (VC-PINNs), or VC-PINNs-RAR when it is combined with RAR. Collocation also enters collocation-based robust VPINNs (CRVPINNs) [42], where the robust variational loss is discretized by a point collocation scheme with a sparse Gram matrix. Here, by contrast, the collocation points carry a separate strong-form term beside a quadrature-based variational residual.

The contributions of this work are as follows. First, we observe that a strong-form collocation term kept beside the variational residual is what allows point insertion to act on training, its residual can be evaluated and ranked at any candidate point, whereas each entry of the variational residual belongs to a test function, not to a point. Second, we adapt RAR [36] to this hybrid loss for elliptic problems with mixed Dirichlet-Neumann conditions. Where needed, candidates within a guard radius of a singular point are excluded, as there the pointwise residual is not a reliable refinement.

indicator. Third, we compare every RAR run with a uniform insertion run on five two dimensional benchmarks. The first is a Mode III crack on a non-Lipschitz slit domain with traction-free crack faces, whose interior angle ω=2π\omega = 2\pi gives the strongest singularity for a corner with the same type of condition on both edges. The next three are a cross-shaped domain with four re-entrant corners whose singularities differ in amplitude, an Allen-Cahn type reaction-diffusion equation with steep localized peaks and a semilinear problem on the L-shaped domain with a boundary layer along the Dirichlet edges. The fifth is the Motz problem, which is singular since the boundary condition changes type, not due to the geometry. The two runs of each comparison, the uniform arm and the RAR arm, share the architecture, quadrature rule, collocation schedule and optimizer schedule, point placement is the only difference. The relative L2L^2, L∞L^\infty and H1H^1 semi-norm errors are reported problem by problem together with the training budgets.

The paper is organized as follows. Section 2 states the model problem, its weak formulation and the regularity results used later and it separates the element indexed variational residual from the pointwise strong-form residual, a distinction on which the rest of the paper builds. Section 3 develops the hybrid discretization, the composite loss, the RAR procedure and the training algorithm, together with the budget under which the two arms are compared. Section 4 assembles these into the architecture of the framework. Five numerical examples are presented in section 5, followed by concluding remarks in section 6.

References (57)