Solutions of second-order elliptic PDE problems on nonconvex or cracked domains with mixed Dirichlet-Neumann conditions typically lie outside H2(Ω). Near re-entrant corners, crack tips and points where the boundary condition changes type, the gradient grows like rλ−1 with λ<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 L2 error by up to a factor of 32, the relative L∞ error by up to a factor of 38 and the relative H1 semi-norm error by up to a factor of 15.
Figures & tables
Problem
Points of S that govern λ
Rays
ω
λ1
Crack (§ 5.1 )
crack tip
(N,N)
2π
1/2
Cross (§ 5.2 )
four re-entrant corners
(N,N)
3π/2
2/3
Reaction-diffusion (§ 5.3 )
vertices
(N,N)
π/2
2
Semilinear (§ 5.4 )
re-entrant corner
(D,D)
3π/2
2/3
Motz (§ 5.5 )
junction at (0,0)
(N,D)
π
1/2
Table 1: Leading singular exponents from ( 2.9 ). In the cross problem the corner singularity enters through the flux data h , the exponent is the same for (D,D) and (N,N).
Problem
Ψ(x)
nin
Crack (§ 5.1 )
(x,y,r1/2cos2θ,r1/2sin2θ)
4
Cross (§ 5.2 )
(x,y,r12/3,r22/3,r32/3,r42/3)
6
Reaction-diffusion (§ 5.3 )
(x,y)
2
Semilinear (§ 5.4 )
(x,y,r2/3)
3
Motz (§ 5.5 )
(x,y,r1/2cos2θ)
3
Table 2: The enrichment map Ψ of ( 3.1 ). Here ri is the distance to the i -th re-entrant corner. For the crack, (r,θ) are polar coordinates centered at the tip, with θ∈(0,2π) and the branch cut on the slit. For the Motz problem, (r,θ) are centered at the Dirichlet-Neumann junction, with θ∈[0,π] . In the semilinear row, r is the distance to the re-entrant corner at the origin. Every radius is evaluated through ( 3.2 ).
Figure 1: Architecture of the proposed framework. A multiscale Fourier-feature embedding γ , whose frequency matrices are drawn once and held fixed, acts on the enriched coordinate z=Ψ(x) and feeds a residual tanh network whose output, scaled by cu , is the trial function u^(x;θ) , Ψ appends the leading singular mode where the corner behavior is known and is the identity otherwise. One application of automatic differentiation supplies ∇u^ for the variational residual Rije , assembled on the fixed quadrature set TQ against the Legendre bubble test functions vije , a second, nested application supplies Δu^ for the strong-form residual R(u^) on the collocation set Tf . As every vije vanishes on ∂Ωe , the natural boundary functional Bije vanishes identically and the Neumann data reach the loss only through the penalty LN . The composite loss is the weighted sum of the variational residual, the collocation term and the two boundary penalties. The RAR loop branches from the strong-form residual, the only loss component that can be evaluated at an arbitrary interior point. It scores a candidate pool C , discards candidates inside the guard radius rg , inserts the m highest ranked points into Tf and continues training from the current parameters. The element partition, the number K of test functions per direction and the quadrature set TQ are fixed throughout, so the scheme performs neither h - nor p -refinement, adaptivity acts on Tf alone.
Metric
VC-PINNs (uniform)
VC-PINNs-RAR
Relative L2 error
0.4138
0.3545
Relative L∞ error
2.462
1.889
Relative H1 semi-norm error
2.374
1.442
Table 3: Crack problem on the slit square (Mode III). All errors are reported in percent (%) and bold marks the more accurate arm in each row. Both arms use the same collocation schedule ( ∣Tf∣=1500→3900 ), 150,000 Adam iterations and thirteen L-BFGS stages, one training run per arm. Errors are evaluated on a uniform 301×301 grid on [−1,1]2 . The relative L∞ error is max∣u−u^∣/max∣u∣ over the grid, where max∣u∣=21/4cos(π/8)≈1.099 is attained at the corners (1,±1) , the H1 semi-norm excludes grid points with r≤10−3 .
Figure 2: Crack problem on the slit square (Mode III). (A-C) Exact solution, VC-PINNs (uniform) prediction and pointwise absolute error. (D-F) Domain with boundary conditions and element partition, uniform collocation set and adaptive collocation set after twelve rounds, ∣Tf∣=1500→3900 . (G-I) Exact solution, VC-PINNs-RAR prediction and pointwise absolute error; panels C and I have separate color scales. (J-K) Adam loss components for the uniform and the RAR arm.
Metric
VC-PINNs (uniform)
VC-PINNs-RAR
Relative L2 error
5.078
0.1601
Relative L∞ error
13.85
1.283
Relative H1 semi-norm error
32.36
2.248
Table 4: Cross problem. All errors are reported in percent (%) and bold marks the more accurate arm in each row. Both arms use the same collocation schedule ( ∣Tf∣=8000→10,400 ), 150,000 Adam iterations and thirteen L-BFGS stages; one training run per arm. Errors are evaluated at the points of a uniform 301×301 grid on [−1,1]2 that lie in Ω . The relative L∞ error is max∣u−u^∣/max∣u∣ over these points, where max∣u∣≈3.577 ; the H1 semi-norm uses the network gradient from automatic differentiation and excludes points within 10−3 of a corner.
Figure 3: Cross problem: Laplace equation on the cross-shaped domain. (A–C) Exact solution, VC-PINNs (uniform) prediction and pointwise absolute error. (D-F) Domain with boundary conditions and element partition, uniform collocation set and adaptive collocation set after twelve rounds, ∣Tf∣=8000→10,400 . (G-I) Exact solution, VC-PINNs-RAR prediction and pointwise absolute error; panels C and I have separate color scales. (J-K) Adam loss components for the uniform and the RAR arm.
Metric
VC-PINNs (uniform)
VC-PINNs-RAR
Relative L2 error
16.00
1.015
Relative L∞ error
26.50
0.6986
Relative H1 semi-norm error
64.46
4.738
Table 5: Reaction-diffusion problem. All errors are reported in percent (%) and bold marks the more accurate arm in each row. The RAR arm grows its collocation set from 10,000 to 13,000 points over ten rounds of 300 insertions, with 140,000 Adam iterations and eleven L-BFGS stages. The uniform arm is trained on a fixed set of uniformly drawn collocation points without insertion rounds. One training run per arm. Errors are evaluated on a uniform 401×401 grid on [−1,1]2 and the H1 semi-norm is computed with central differences on the same grid. As max∣u∣=1 , the relative L∞ error equals the absolute one.
Figure 4: Reaction-diffusion problem with four localized peaks. (A-C) Exact solution, VC-PINNs (uniform) prediction and pointwise absolute error. (D-F) Domain with the four peak centers and element partition, uniform collocation set and adaptive collocation set after ten rounds, ∣Tf∣=10,000→13,000 . (G-I) Exact solution, VC-PINNs-RAR prediction and pointwise absolute error. (J-K) Adam loss components for the uniform and the RAR arm.
Metric
VC-PINNs (uniform)
VC-PINNs-RAR
Relative L2 error
2.403
0.1904
Relative L∞ error
55.85
3.546
Relative H1 semi-norm error
39.00
3.366
Table 6: Semilinear problem. All errors are reported in percent (%) and bold marks the more accurate arm in each row. Both arms use the same collocation schedule ( ∣Tf∣=4000→7600 ), 150,000 Adam iterations and thirteen L-BFGS stages, with no interior anchors; one training run per arm. Errors are measured against the finite element reference on its 601×601 grid and the H1 semi-norm excludes grid points within 10−3 of the corner. As 0≤u≤1 with maxu=1 , the relative L∞ error equals the absolute one.
Figure 5: Semilinear problem on the L-shaped domain. (A-C) Finite element reference, VC-PINNs (uniform) prediction and pointwise absolute error against the reference. (D-F) Domain with boundary conditions and element partition, uniform collocation set and adaptive collocation set after twelve rounds, ∣Tf∣=4000→7600 . (G-I) Finite element reference, VC-PINNs-RAR prediction and pointwise absolute error. (J-K) Adam loss components for the uniform and the RAR arm.
Metric
VC-PINNs (uniform)
VC-PINNs-RAR
Relative L2 error
0.2407
0.2096
Relative L∞ error
0.7872
0.4458
Relative H1 semi-norm error
1.666
0.9920
Leading coefficient a0
399.92050
400.15007
Table 7: Motz problem. The first three rows are relative errors in percent (%), the last row is the leading coefficient a0 . Bold marks the more accurate arm in each row. Both arms use the same collocation schedule ( ∣Tf∣=1500→3900 ), 150,000 Adam iterations and thirteen L-BFGS stages, one training run per arm. Errors are measured against the quadratic ( P2 ) finite element reference, whose own error floor is 0.000079% . As 0≤u≤500 with maxu=500 , the relative L∞ error is the absolute error divided by 500 . The leading coefficient is extracted by ( 5.12 ) at r0=0.5 , its reference value is a0=401.16191 .
Figure 6: The Motz problem. (A-C) Finite element reference solution, VC-PINNs (uniform) prediction and pointwise absolute error against the reference. (D-F) Domain with the mixed boundary conditions and element partition, uniform collocation set and adaptive collocation set after twelve rounds, ∣Tf∣=1500→3900 . (G-I) Finite element reference solution, VC-PINNs-RAR prediction and pointwise absolute error. (J-K) Adam loss components for the uniform and the RAR arm.