betaFeedback

WorksMathematics

Hierarchical randomized neural networks for efficiently and accurately finding multiple solutions of semilinear elliptic equations

Abstract

Being able to find multiple solutions of a semilinear elliptic equation is a fundamental problem in scientific computing. In this paper, fully taking the advantages of randomized neural networks, we propose a new efficient and accurate method for identifying potentially as many solutions as possible. The new method is constructed from three aspects–initialization, optimization, a technique for acceleration and improving accuracy, two of which are innovative developments. Firstly, based on the basis functions of a randomized network and the sampling points, a characteristic matrix is introduced so that its singular value decomposition can be used to determine weakly variant search directions, followed by a newly developed algorithm to generate effective initial candidates. Then the good deflated Gauss-Newton method [see A. Riley, et al., SIAM Journal on Scientific Computing 47~(5) (2025) A2963-A2987] using an exponential deflation operator is adapted as the optimization to search for all multiple solutions. Local error estimate of a particular solution under some proper condition is given in terms of the neurons in the hidden layer and the sampling points for this newly designed method. Furthermore, to accelerate the computation and improve the solution accuracy, a new multilevel method based on hierarchical networks is designed. Without using any a priori information, several numerical tests show together with the multilevel method, the new method can not only accurately find multiple solutions with relative errors reaching 10−1610^{-16} only in less than one-tenth computational cost for the best case, but also preserve the inherent symmetries of multiple solutions.

Introduction

Nonlinear elliptic equations arise in a wide range of scientific and engineering disciplines, including quantum physics, solid mechanics, and fluid dynamics, where they model steady-state or equilibrium phenomena. The properties of their solutions are closely tied to the physical behavior of the underlying systems. Although one-dimensional problems have been thoroughly studied using analytical tools such as Galerkin projections and energy estimates, the analysis of multidimensional or highly nonlinear cases remains challenging. Consequently, developing efficient and reliable numerical methods for approximating solutions to nonlinear elliptic problems is not only of theoretical interest but also a critical demand in scientific computing and practical engineering applications.

This is the first attempt of our serial work on finding multiple solutions of nonlinear elliptic equation. Let us begin with the nonlinear elliptic equation with polynomial nonlinearity. In this paper, we are concerned with the following nonlinear elliptic equation

{−Δu(x)=λf(x,u),x∈Ω⊂Rn,u(x)=0,x∈∂Ω,(1)\begin{cases} -\Delta u(x)=\lambda f(x,u), & x \in\Omega\subset\mathbb{R}^{n},\\ u(x)=0, & x \in\partial\Omega, \tag*{(1)} \end{cases}

where Ω∈Rn\Omega\in\mathbb{R}^{n} is some bounded domain, f(x,u)f(x,u) is a polynomial nonlinearity with constant or variable coefficients, λ>0\lambda> 0 is a real positive constant. This is a typical mathematical model contains the Lane-Emden equation, Allen-Cahn equation, nonlinear eigenvalue problem and elliptic Lotka-Volterra system as special cases. The study of existence and multiplicity of solutions of model (1) by using variational method and other nonlinear analysis techniques has received considerable attention, given that ff satisfies some necessary increasement restrictions. For a comprehensive review, we refer the readers to an interesting small monograph by David Costa [1]. It illustrates many examples with multiple solutions, which also inspire us to further ask: How many classical solutions model (1) will have exactly? If the number is finite but not unique, or infinite, can we find all of these classical solution numerically? While theoretical results are usually discussed in a functional space with general dimensionality nn, for the convenience of simulations, we shall focus on 1≤n≤31 \le n \le3.

For the model problem, comparing to the associate linear problem −Δu(x)=λu(x)-\Delta u(x) = \lambda u(x), x∈Ω⊂Rnx \in\Omega\subset\mathbb{R}^{n} with u(x)=0u(x) = 0, x∈∂Ωx \in\partial\Omega, whose distribution of eigenvalues and behavior of eigenfunction for regular domain are clear, the semilinear elliptic equation with general polynomial nonlinearity is not well-studied yet as it involves more complicated dynamics, especially when f(x,u)f(x,u) is some particular cubic polynomial of uu. For example, in [2], the bounded solutions of semilinear elliptic equations Δu−F′(u)=0\Delta u - F'(u) = 0 in the whole space Rn\mathbb{R}^{n} is studied. The investigation of existence of solutions to this problem with n≤8n \le8 drives a famous conjecture by De Giorgi. About ten year later, Pino, Kowalczyk and Wei find a counterexample to De Giorgi’s conjecture for dimension N≥9N \ge9 [3]. In [4], the author proves that for nonlinearity f(u)=∣u∣p−1u−uf(u) = |u|^{p-1}u-u, 1<p<n+2n−21 < p < \frac{n+2}{n-2}, the elliptic equation −Δu=f(u)-\Delta u = f(u) in Rn\mathbb{R}^{n} (n≥3n \ge3) with u∈H1(Rn)u \in H^{1}(\mathbb{R}^{n}) and u≠0u \ne0 has a unique solution u=u(∣x∣)u = u(|x|). These celebrate progresses motivate us to consider what property the model (1) will have theoretically if it defines on a smooth bounded domain Ω\Omega with general polynomial nonlinearity.

From a numerical viewpoint, solving nonlinear elliptic equations still runs into several challenges. First of all, the inherent nonlinearity of these problems often leads to non-convex energy functionals, multiple solutions, and bifurcation structures, rendering classical linear numerical methods ineffective. Secondly, two-dimensional and even high-dimensional versions of these equations yield large-scale discrete systems that require advanced computational strategies to maintain stability and efficiency. Thirdly, an additional difficulty arises from multiscale behavior, boundary layers, and singularities, necessitating numerical schemes with strong adaptivity and robustness. Classic methods such as finite element method, Galerkin-based methods together with Newton-type techniques, homotopy continuation, and multilevel technique [5, 6] have shown some promising abilities to resolve some of the mentioned issues. Recently, due to the success of neural networks and the improvements for solving various problems [7, 8], physics-informed neural networks have also been used to discover multiple solutions[11, 17, 18], where neural networks are mainly used to find good initializations and then classic methods are again used to maintain high accuracy. Overall, for arbitrary semilinear problems, efficiently and accurately finding all solutions of a general nonlinear elliptic equation is still far to be done.

Therefore, in this paper, we mainly focus on the investigation of the numerical method for the model problem with multiple solutions. Instead of using classic methods, we fully take the advantages of randomized neural networks and propose a new efficient and accurate method for identifying potentially as many solutions as possible without a priori information, although some analysis results can speed up finding these solutions. The new method is constructed from three different aspects—initializations, optimizations, and improvements in terms of efficiency and accuracy. And main contributions of this paper are as follows:

  1. Based on randomized neural networks and sampling points, the characteristic matrix and the weakly variant search directions are introduced. Meanwhile, the singular value decomposition of the characteristic equation is used to generate effective candidates at initialization step, instead of generating initialization randomly, which is very low efficiency;

  1. New initialization algorithm together with the recently developed good deflated Gauss-Newton method is combined to form a new algorithm. Under some proper conditions for some solutions, the local error estimate of the randomized neural network is presented in terms of numbers of both neurons in the hidden layer and the sampling points;

  1. Multilevel method, which is like the full multigrid method in some sense, is further proposed to accelerate the computation and improve the solution accuracy;

  1. Various examples with or without exact solutions are used to demonstrate the effectiveness of the proposed method, reaching the relative error 10−1610^{-16} for the best case while reducing the computational cost to only less

than 8%. Meanwhile, numerical tests show that the proposed method is able to preserve the inherent symmetries of multiple solutions, which is a very important property for many applications.

The rest paper is organized as follows. The second section is the introduction of the considered model, some analysis could be used to prove existence of different solutions, and the difficulties of identifying number of solutions by pure analysis tools. The third section is devoted to the numerical method to identify multiple solutions, including randomized neural networks, new algorithm for initialization, the optimization algorithm, and the local error estimate for a solution satisfying some conditions. Then a new improved method based on hierarchical networks, the multilevel method, is proposed in Section 4, followed by several numerical tests from one-dimensional cases to three dimensional ones in Section 5, showing the effective and improvements of the proposed method. Lastly a conclusion together with some future work is given.

Model description

In this paper, we shall recall the elementary analysis of nonlinear elliptic equations. Firstly, we will show the variational property of model problem and introduce some existence results of weak solutions. Then we present the mathematical analysis of multiplicity for one-dimensional nonlinear elliptic equation.

Variational formulation

Let Ω⊂Rn\Omega\subset\mathbb{R}^{n} be a bounded open set with C1C^{1}-boundary, and we consider the Dirichlet problem (1) with f:Ω×R→Rf:\Omega\times\mathbb{R} \to\mathbb{R} being a Carathéodory function. For n>2n > 2, one usually writes 2∗=2nn−22^{*} = \frac{2n}{n-2}, while for n≤2n \le2, it becomes 2∗=+∞2^{*} = +\infty. We denote H=H01(Ω)H = H_{0}^{1}(\Omega) equipped with the Hilbert norm ∥u∥=(∫Ω∣∇u∣2dx)1/2\lVert u\rVert= \left(\int_{\Omega} \lvert\nabla u\rvert^{2}dx\right)^{1/2} and the corresponding inner product. By the Poincaré inequality, this norm is equivalent to the standard H1(Ω)H^{1}(\Omega)-norm on H01(Ω)H_{0}^{1}(\Omega). The continuous embedding H↪Lq(Ω)H \hookrightarrow L^{q}(\Omega), 1≤q≤2∗1 \le q \le2^{*} and compact embedding H↪Lq(Ω)H \hookrightarrow L^{q}(\Omega), 1≤q<2∗1 \le q < 2^{*} are useful in the discussion later. The dual space of HH is denoted by H−1(Ω)H^{-1}(\Omega).

A function u∈Hu \in H is called a weak solution of the problem (1) if

∫Ω∇u⋅∇vdx=λ∫Ωf(x,u)v dxfor every v∈H.\int_{\Omega} \nabla u \cdot\nabla vdx = \lambda\int_{\Omega} f(x,u)v\,dx \qquad\text{for every } v \in H.

Define F(x,s)=∫0sf(x,t)dtF(x,s) = \int_{0}^{s} f(x,t)dt and the energy functional

Iλ(u)=12∥u∥2−λ∫ΩF(x,u)dx,u∈H.I_{\lambda}(u) = \frac{1}{2}\lVert u\rVert^{2} - \lambda\int_{\Omega} F(x,u)dx,\qquad u \in H.

Under the growth assumptions below, Iλ∈C1(H,R)I_{\lambda} \in C^{1}(H,\mathbb{R}) and

Iλ′(u)v=∫Ω∇u⋅∇vdx−λ∫Ωf(x,u)vdx,v∈H.I_{\lambda}'(u)v = \int_{\Omega} \nabla u \cdot\nabla vdx - \lambda\int_{\Omega} f(x,u)vdx,\qquad v \in H.

Thus weak solutions are precisely the critical points of IλI_{\lambda}. Firstly, we have the following result, proof of which is omitted as it is standard.

Theorem 1. Assume that f:Ω×R→Rf:\Omega\times\mathbb{R} \to\mathbb{R} is Carathéodory, and there exists a constant M>0M > 0, such that

∣f(x,s)∣≤Mfor a.e. x∈Ω and all s∈R.\lvert f(x,s)\rvert\le M \qquad\text{for a.e. } x \in\Omega\text{ and all } s \in\mathbb{R}.

Then for every λ>0\lambda> 0, the model problem (1) has at least one weak solution u∈H01(Ω)u \in H_{0}^{1}(\Omega). Moreover, such a solution is the global minimizer of IλI_{\lambda} on H01(Ω)H_{0}^{1}(\Omega).

It is easy to see that ∣f(x,s)∣≤M\lvert f(x,s)\rvert\le M is too restrictive for polynomial nonlinearity, although it holds whenever ss is finite and pre-given. We shall consider the existence of solution to the model problem in weaker assumptions.

Theorem 2. Assume that f:Ω×R→Rf:\Omega\times\mathbb{R} \to\mathbb{R} is Carathéodory and satisfies the following conditions:

(G1) There exist constants C>0C > 0 and 1<p<2∗−11 < p < 2^{*} - 1, such that

∣f(x,s)∣≤C(1+∣s∣p)for a.e. x∈Ω and all s∈R.|f(x,s)| \le C(1+|s|^{p}) \qquad\text{for a.e. } x \in\Omega\text{ and all } s \in\mathbb{R}.

If n≤2n \le2, any finite p≥1p \ge1 is allowed.

(G2) Uniformly in x∈Ωx \in\Omega,

f(x,s)=o(∣s∣)as s→0.f(x,s)=o(|s|) \qquad\text{as } s \to0.

(G3) There exist constants θ>2\theta> 2 and R>0R > 0, such that

0<θF(x,s)≤sf(x,s)for a.e. x∈Ω and all ∣s∣≥R.0 < \theta F(x,s) \le s f(x,s) \qquad\text{for a.e. } x \in\Omega\text{ and all } |s| \ge R.

Then for every λ>0\lambda> 0, the model problem (1) has at least one nontrivial weak solution u∈H01(Ω)u \in H_0^1(\Omega).

Proof. By assumption (G1), the functional Iλ(u)I_\lambda(u) is well defined and of class C1C^1 in HH, and

Iλ′(u)v=∫Ω∇u⋅∇v dx−λ∫Ωf(x,u)v dx,v∈H.I'_\lambda(u)v=\int_\Omega\nabla u\cdot\nabla v\,dx-\lambda\int_\Omega f(x,u)v\,dx,\qquad v\in H.

We first verify the famous Palais-Smale condition. Let {un}⊂H\{u_n\}\subset H be a sequence, such that

Iλ(un)→candIλ′(un)→0in H−1(Ω).I_\lambda(u_n)\to c \qquad\text{and} \qquad I'_\lambda(u_n)\to0 \quad\text{in } H^{-1}(\Omega).

Using assumption (G3), we compute

θIλ(un)−Iλ′(un)un=(θ2−1)∥un∥2−λ∫Ω(θF(x,un)−f(x,un)un) dx.\theta I_\lambda(u_n)-I'_\lambda(u_n)u_n =\left(\frac{\theta}{2}-1\right)\|u_n\|^2-\lambda\int_\Omega\bigl(\theta F(x,u_n)-f(x,u_n)u_n\bigr)\,dx.

It is easy to have that for ∣s∣≥R|s|\ge R, condition (G3) implies θF(x,s)−sf(x,s)≤0\theta F(x,s)-sf(x,s)\le0. Similarly, for ∣s∣≤R|s|\le R, the growth condition (G1) gives that ∣θF(x,s)−sf(x,s)∣≤CR|\theta F(x,s)-sf(x,s)|\le C_R for some constant CR>0C_R>0 depending only on RR. Hence

∫Ω(θF(x,un)−f(x,un)un) dx≤CR∣Ω∣,\int_\Omega\bigl(\theta F(x,u_n)-f(x,u_n)u_n\bigr)\,dx\le C_R|\Omega|,

from which it implies

(θ2−1)∥un∥2≤θIλ(un)−Iλ′(un)un+λCR∣Ω∣.\left(\frac{\theta}{2}-1\right)\|u_n\|^2\le\theta I_\lambda(u_n)-I'_\lambda(u_n)u_n+\lambda C_R|\Omega|.

Since Iλ(un)I_\lambda(u_n) is bounded and Iλ′(un)→0I'_\lambda(u_n)\to0 in H−1(Ω)H^{-1}(\Omega), (θ2−1)∥un∥2≤C(1+∥un∥)\left(\frac{\theta}{2}-1\right)\|u_n\|^2\le C(1+\|u_n\|). Because θ>2\theta>2, it follows that {un}\{u_n\} is bounded in HH. Thus, after passing to a subsequence, un⇀uu_n\rightharpoonup u weakly in HH. By the compact embedding H↪Lp+1(Ω)H\hookrightarrow L^{p+1}(\Omega), we have

un→uin Lp+1(Ω).u_n\to u \quad\text{in } L^{p+1}(\Omega).

From the growth condition (G1), the sequence {f(x,un)}\{f(x,u_n)\} is bounded in L(p+1)/p(Ω)L^{(p+1)/p}(\Omega). Hence, by Hölder’s inequality,

∣∫Ωf(x,un)(un−u) dx∣≤∥f(x,un)∥L(p+1)/p(Ω)∥un−u∥Lp+1(Ω)→0.\left|\int_\Omega f(x,u_n)(u_n-u)\,dx\right| \le\|f(x,u_n)\|_{L^{(p+1)/p}(\Omega)}\|u_n-u\|_{L^{p+1}(\Omega)}\to0.

Since Iλ′(un)→0I'_\lambda(u_n)\to0 in H−1(Ω)H^{-1}(\Omega), we have Iλ′(un)(un−u)→0I'_\lambda(u_n)(u_n-u)\to0. Therefore, ∫Ω∇un⋅∇(un−u) dx→0\int_\Omega\nabla u_n\cdot\nabla(u_n-u)\,dx\to0. That is, ∥un∥2−∫Ω∇un⋅∇u dx→0\|u_n\|^2-\int_\Omega\nabla u_n\cdot\nabla u\,dx\to0. But weak convergence gives ∫Ω∇un⋅∇u dx→∥u∥2\int_\Omega\nabla u_n\cdot\nabla u\,dx\to\|u\|^2. Hence we know ∥un∥2→∥u∥2\|u_n\|^2\to\|u\|^2. Together with weak convergence, this implies

un→ustrongly in H.u_n\to u \quad\text{strongly in } H.

Consequently Iλ′(u)=0I'_\lambda(u)=0. Thus IλI_\lambda satisfies the Palais-Smale condition.

Next we prove the Mountain Pass Geometry. From conditions (G2) and (G1), for every ε>0\varepsilon>0, there exists a constant Cε>0C_\varepsilon>0, such that

∣F(x,s)∣≤ε2∣s∣2+Cε∣s∣p+1.|F(x,s)|\le\frac{\varepsilon}{2}|s|^2+C_\varepsilon|s|^{p+1}.

Therefore

Iλ(u)≥12∥u∥2−λε2∥u∥L2(Ω)2−λCε∥u∥Lp+1(Ω)p+1.I_{\lambda}(u) \ge\frac{1}{2}\lVert u\rVert^2-\frac{\lambda\varepsilon}{2}\lVert u\rVert_{L^2(\Omega)}^2-\lambda C_{\varepsilon}\lVert u\rVert_{L^{p+1}(\Omega)}^{p+1}.

Using the continuous embedding results H↪L2(Ω)H \hookrightarrow L^2(\Omega) and H↪Lp+1(Ω)H \hookrightarrow L^{p+1}(\Omega), we obtain

Iλ(u)≥12(1−λεCP2)∥u∥2−Cε′∥u∥p+1.I_{\lambda}(u) \ge\frac{1}{2}\left(1-\lambda\varepsilon C_P^2\right)\lVert u\rVert^2-C_{\varepsilon}'\lVert u\rVert^{p+1}.

We may choose ε>0\varepsilon>0 so small that 1−λεCP2>01-\lambda\varepsilon C_P^2>0. Since p+1>2p+1>2, it follows that for sufficiently small ρ>0\rho>0,

Iλ(u)≥α>0whenever ∥u∥=ρ.I_{\lambda}(u)\ge\alpha>0 \qquad\text{whenever }\lVert u\rVert=\rho.

Also Iλ(0)=0I_{\lambda}(0)=0. Thus 0 is a local minimum of IλI_{\lambda}.

On the other hand, condition (G3) implies the existence of constants a>0a>0 and b≥0b\ge0, such that

F(x,s)≥a∣s∣θ−bfor a.e. x∈Ω and all s∈R.F(x,s)\ge a|s|^{\theta}-b \qquad\text{for a.e. }x\in\Omega\text{ and all }s\in\mathbb{R}.

We choose φ∈Cc∞(Ω)\varphi\in C_c^\infty(\Omega) with φ≥0\varphi\ge0 and φ≢0\varphi\not\equiv0. Then for t>0t>0,

Iλ(tφ)≤t22∥φ∥2−λatθ∫Ω∣φ∣θ dx+λb∣Ω∣.I_{\lambda}(t\varphi)\le\frac{t^2}{2}\lVert\varphi\rVert^2-\lambda at^{\theta}\int_{\Omega}|\varphi|^{\theta}\,dx+\lambda b|\Omega|.

Since θ>2\theta>2, the right-hand side tends to −∞-\infty as t→+∞t\to+\infty. Hence for sufficiently large t>0t>0, Iλ(tφ)<0I_{\lambda}(t\varphi)<0. Set e=tφe=t\varphi for such a given tt. Then Iλ(e)<0I_{\lambda}(e)<0. Therefore IλI_{\lambda} satisfies the hypotheses of the mountain pass theorem (see [1]). Hence IλI_{\lambda} has a critical point u∈Hu\in H with Iλ(u)≥α>0I_{\lambda}(u)\ge\alpha>0. In particular, u≠0u\ne0. Since every critical point of IλI_{\lambda} is a weak solution of the model problem, uu is a nontrivial weak solution.

Based on Theorem 1 and Theorem 2, it is still difficult to know the number of solutions to the model problem in general. Next, we consider a one-dimensional model problem with polynomial term f(u)f(u) at most quintic, to show how complex this task will be.

Mathematical analysis for one-dimensional model problem

In this section, we discuss some theoretical results of nonlinear elliptic equation with polynomial nonlinearity for one-dimensional case. Let us begin with

{−u′′(x)=α1u+α2u2+α3u3+α4u4+α5u5,x∈(0,1),u(0)=u(1)=0,(2)\begin{cases} -u''(x)=\alpha_1u+\alpha_2u^2+\alpha_3u^3+\alpha_4u^4+\alpha_5u^5, & x\in(0,1),\\ u(0)=u(1)=0, \tag*{(2)} \end{cases}

where Ω=(0,1)\Omega=(0,1), and αk\alpha_k (k=1,2,3,4,5k=1,2,3,4,5) are real constants. Let v(x)=u′(x)v(x)=u'(x), and we have

{u′(x)=v(x),v′(x)=−α1u−α2u2−α3u3−α4u4−α5u5(3)\begin{cases} u'(x)=v(x),\\ v'(x)=-\alpha_1u-\alpha_2u^2-\alpha_3u^3-\alpha_4u^4-\alpha_5u^5 \tag*{(3)} \end{cases}

with u(0)=0u(0)=0 and v(0)=ηv(0)=\eta, where η\eta is a constant determined later. Direct computation shows that

dudv=−v(x)α1u+α2u2+α3u3+α4u4+α5u5,\frac{du}{dv}=-\frac{v(x)}{\alpha_1u+\alpha_2u^2+\alpha_3u^3+\alpha_4u^4+\alpha_5u^5},

which implies

12[v(x)]2=12η2−∫u(0)u(x)(α1u+α2u2+α3u3+α4u4+α5u5) du.\frac{1}{2}[v(x)]^2=\frac{1}{2}\eta^2-\int_{u(0)}^{u(x)}(\alpha_1u+\alpha_2u^2+\alpha_3u^3+\alpha_4u^4+\alpha_5u^5)\,du.

Hence, we arrive at

dudx=±η2−(α1u2+2α23u3+α32u4+2α45u5+α53u6).(4)\frac{du}{dx}=\pm\sqrt{\eta^2-\left(\alpha_1u^2+\frac{2\alpha_2}{3}u^3+\frac{\alpha_3}{2}u^4+\frac{2\alpha_4}{5}u^5+\frac{\alpha_5}{3}u^6\right)}. \tag*{(4)}

Integrating from [0,x)[0,x) with respect to variable xx, we get

∫u(0)u(x)du±η2−(α1u2+2α23u3+α32u4+2α45u5+α53u6)=x.(5)\int_{u(0)}^{u(x)}\frac{du}{\pm\sqrt{\eta^2-\left(\alpha_1u^2+\frac{2\alpha_2}{3}u^3+\frac{\alpha_3}{2}u^4+\frac{2\alpha_4}{5}u^5+\frac{\alpha_5}{3}u^6\right)}}=x. \tag*{(5)}

Therefore, we may see that the key step to search an elementary solution to model (1) subjects to find a primitive of integral for the left hand side of (5).

Let α2=α3=α4=α5=0\alpha_2=\alpha_3=\alpha_4=\alpha_5=0, we get a linear problem −u′′(x)=α1u-u''(x)=\alpha_1u, x∈(0,1)x\in(0,1) with u(0)=u(1)=0u(0)=u(1)=0. After some elementary calculation, one may have the solution

u(x)=C1sin⁡(α1x),α1=n2π2,u(x)=C_1\sin\left(\sqrt{\alpha_1}x\right),\qquad\alpha_1=n^2\pi^2,

where n=1,2,3,⋯n=1,2,3,\cdots and CC is an arbitrary constant. From the viewpoint of dynamical system, we transform the second-order ODE into a first-order system by v(x)=u′(x)v(x)=u'(x) introduced above. Hence,

dudx=±η2−α1u2,\frac{du}{dx}=\pm\sqrt{\eta^2-\alpha_1u^2},

which admits the solution given by

±x=1α1[arcsin⁡(α1u(x)η)−arcsin⁡(α1u(0)η)].\pm x=\frac{1}{\sqrt{\alpha_1}}\left[\arcsin\left(\frac{\sqrt{\alpha_1}u(x)}{\eta}\right)-\arcsin\left(\frac{\sqrt{\alpha_1}u(0)}{\eta}\right)\right].

Since u(0)=0u(0)=0, we can simplify the above expression as u(x)=ηα1sin⁡(α1x)u(x)=\frac{\eta}{\sqrt{\alpha_1}}\sin\left(\sqrt{\alpha_1}x\right), where we have applied the condition v(0)=ηv(0)=\eta to remove the negative sign in ±x\pm x. This also implies that for every fixed α1=n2π2>0\alpha_1=n^2\pi^2>0, model (2) has unique solution up to a constant factor. However, it shall be an obvious truth that uniqueness of solution will be violated once the source function on the right hand side becomes nonlinear and satisfies some mild conditions.

Consider α1=α3=α4=α5=0\alpha_1=\alpha_3=\alpha_4=\alpha_5=0 in model (2), i.e., −u′′(x)=α2u2-u''(x)=\alpha_2u^2. Then by (5) one will have

∫u(0)u(x)du±η2−2α23u3=x.(6)\int_{u(0)}^{u(x)}\frac{du}{\pm\sqrt{\eta^2-\frac{2\alpha_2}{3}u^3}}=x. \tag*{(6)}

Because it has the cubic nonlinear term in the square root, we do not expect an explicit solution to such integral. With the help of hypergeometric function or elliptic integral, one may get

∫u(0)u(x)duη2−2α23u3=u(x)η 2F1(13,12;43;2α23η2u3)−u(0)η 2F1(13,12;43;2α23η2u(0)3).(7)\int_{u(0)}^{u(x)}\frac{du}{\sqrt{\eta^2-\frac{2\alpha_2}{3}u^3}}=\frac{u(x)}{\eta}\,{}_2F_1\left(\frac{1}{3},\frac{1}{2};\frac{4}{3};\frac{2\alpha_2}{3\eta^2}u^3\right)-\frac{u(0)}{\eta}\,{}_2F_1\left(\frac{1}{3},\frac{1}{2};\frac{4}{3};\frac{2\alpha_2}{3\eta^2}u(0)^3\right). \tag*{(7)}

or

∫u(0)u(x)duη2−2α23u3=23(32α2η)1/3[F(arccos⁡(1+3βx1−3βx),k)]x=u(0)x=u(x),(8)\int_{u(0)}^{u(x)}\frac{du}{\sqrt{\eta^2-\frac{2\alpha_2}{3}u^3}}=\frac{2}{\sqrt{3}}\left(\frac{3}{2\alpha_2\eta}\right)^{1/3}\left[F\left(\arccos\left(\frac{1+\sqrt{3}\beta x}{1-\sqrt{3}\beta x}\right),k\right)\right]_{x=u(0)}^{x=u(x)}, \tag*{(8)}

where F(φ,k)F(\varphi,k) is the incomplete elliptic integral of the first kind, β=(2α23η2)1/3\beta=\left(\frac{2\alpha_2}{3\eta^2}\right)^{1/3} and k2=2+34k^2=\frac{2+\sqrt{3}}{4}.

If α1=1\alpha_1=1, α2=α4=α5=0\alpha_2=\alpha_4=\alpha_5=0 and α3=−1\alpha_3=-1 in (2), we have

∫u(0)u(x)du±η2−(u2−12u4)=x.(9)\int_{u(0)}^{u(x)}\frac{du}{\pm\sqrt{\eta^2-\left(u^2-\frac{1}{2}u^4\right)}}=x. \tag*{(9)}

Again, with the help of hypergeometric function or elliptic integral, we shall obtain

∫u(0)u(x)du±η2−(u2−12u4)=u(x)η 2F1(14,12;54;2u(x)2−u(x)42η2)−u(0)η 2F1(14,12;54;2u(0)2−u(0)42η2).(10)\int_{u(0)}^{u(x)}\frac{du}{\pm\sqrt{\eta^2-\left(u^2-\frac{1}{2}u^4\right)}}=\frac{u(x)}{\eta}\,{}_2F_1\left(\frac{1}{4},\frac{1}{2};\frac{5}{4};\frac{2u(x)^2-u(x)^4}{2\eta^2}\right)-\frac{u(0)}{\eta}\,{}_2F_1\left(\frac{1}{4},\frac{1}{2};\frac{5}{4};\frac{2u(0)^2-u(0)^4}{2\eta^2}\right). \tag*{(10)}
∫u(0)u(x)du±η2−(u2−12u4)=2a[F(arcsin⁡(au(0)),ba)−F(arcsin⁡(au(x)),ba)](11)\int_{u(0)}^{u(x)}\frac{du}{\pm\sqrt{\eta^2-\left(u^2-\frac{1}{2}u^4\right)}}=\frac{\sqrt{2}}{a}\left[F\left(\arcsin\left(\frac{a}{u(0)}\right),\frac{b}{a}\right)-F\left(\arcsin\left(\frac{a}{u(x)}\right),\frac{b}{a}\right)\right] \tag*{(11)}

where 0<η2<120<\eta^2<\frac{1}{2}, a=1−1−2η2a=\sqrt{1-\sqrt{1-2\eta^2}}, b=1+1−2η2b=\sqrt{1+\sqrt{1-2\eta^2}}. For the case η2>12\eta^2>\frac{1}{2}, it may need more tools of complex analysis and hence we choose to omit here. Anyhow, we can see the limit of analysis to identify all solutions.

Numerical methods

In this section, we construct a numerical method to identify multiple solutions of the considered problems, which includes the discretization method, how to choose the initial guesses, and how to solve the nonlinear problems.

Randomized neural networks

Neural networks are one important technique to solve forward and inverse partial differential equations. Here we use the randomized neural networks as the tool to discretize the considered problems due to the high efficiency and accuracy [9], compared to the fully trained neural networks, and the mesh-free and flexibility in handling the complex domain, compared to the classic numerical methods. For completeness, we give it a brief introduction.

For a given fully connected neural network, say a shallow neural network Θ:Rdin→Rdout\Theta:\mathbb{R}^{d_{\mathrm{in}}}\to\mathbb{R}^{d_{\mathrm{out}}} with a width mm, the network is capable of representing all functions defined by Θ(x)=G2∘G1∘G0(x)\Theta(x)=G_2\circ G_1\circ G_0(x), where G0(x)=xG_0(x)=x, G1=σ(w1G0+b1)G_1=\sigma(w_1G_0+b_1), and G2=w2G1+b2G_2=w_2G_1+b_2 is the output. Here σ\sigma is the activation function, which is taken to be tanh⁡(x+0.5)−tanh⁡(x−0.5)\tanh(x+0.5)-\tanh(x-0.5) for the later analysis purpose, w1∈Rm×dinw_1\in\mathbb{R}^{m\times d_{\mathrm{in}}} and b1∈Rmb_1\in\mathbb{R}^m are the weights and the bias in the hidden layer, while w2∈Rdout×mw_2\in\mathbb{R}^{d_{\mathrm{out}}\times m} and b2∈Rdoutb_2\in\mathbb{R}^{d_{\mathrm{out}}} are the ones in the output layer. For the randomized neural network, instead of determining all their weights and bias according to the minimization of a given loss function, it randomly determines the weights and bias in the hidden layer (e.g., determine w1w_1 and b1b_1 according to a normal distribution) and only leaves parameters in the last layer tunable. Without loss of generality, we assume the bias term b2b_2 in the last layer to be zero.

Then in order to find a solution of equation (1) based on neural networks, we construct the following loss function and the minimization problem

min⁡u∈H2(Ω)L(u)=min⁡u∈H2(Ω)∑j=12βj2Lj,(12)\min_{u\in H^2(\Omega)}L(u)=\min_{u\in H^2(\Omega)}\sum_{j=1}^{2}\beta_j^2L_j, \tag*{(12)}

where the positive coefficients βj\beta_j serve as penalty weights, and the residual terms LjL_j measure the errors within the domain and on the boundary respectively, which are defined by

L1(u)=∫Ω∣−Δu(x)−λf(x,u(x))∣2dx,L2(u)=∫∂Ω∣u(s)−g(s)∣2ds.L_1(u)=\int_{\Omega}\left|-\Delta u(x)-\lambda f(x,u(x))\right|^2dx,\qquad L_2(u)=\int_{\partial\Omega}\left|u(s)-g(s)\right|^2ds.

By approximating the function u(x)u(x) with a shallow network of width mm and employing Monte Carlo sampling to discretize the loss, we then have the following discrete minimization problem

um∗=arg⁡min⁡um∈HmLd(um)=arg⁡min⁡um∈Hm∑j=12βj2lj,(13)u_{m}^{*}=\arg\min_{u_m\in\mathcal{H}_m}L^d(u_m)=\arg\min_{u_m\in\mathcal{H}_m}\sum_{j=1}^{2}\beta_j^2l_j, \tag*{(13)}

where Hm\mathcal{H}_m denotes the hypothesis space, l1l_1 and l2l_2 are the discrete forms given by

l1(um)=∣Ω∣mΩ∑j=1mΩ∣−Δum(xj)−λf(xj,um(xj))∣2,xj∈Ω,l_1(u_m)=\frac{|\Omega|}{m_{\Omega}}\sum_{j=1}^{m_{\Omega}}\left|-\Delta u_m(x_j)-\lambda f(x_j,u_m(x_j))\right|^2,\quad x_j\in\Omega,
l2(um)=∣∂Ω∣m∂Ω∑j=1m∂Ω∣um(sj)−g(sj)∣2,sj∈∂Ωl_2(u_m)=\frac{|\partial\Omega|}{m_{\partial\Omega}}\sum_{j=1}^{m_{\partial\Omega}}\left|u_m(s_j)-g(s_j)\right|^2,\quad s_j\in\partial\Omega

with mΩm_{\Omega} and m∂Ωm_{\partial\Omega} being the numbers of (uniformly distributed) sampling points in Ω\Omega and on ∂Ω\partial\Omega, respectively.

For a fully connected network, what we need to do is invoking an optimization method to minimize the loss function to obtain a solution. However, for a randomized neural network, due to the special structure of the hypothesis space Hm={ϕ1,⋯ ,ϕm}\mathcal{H}_m=\{\phi_1,\cdots,\phi_m\}, it is equivalent to the following nonlinear least square problem:

min⁡u~∈Hm∥N(u~)−b∥2,(14)\min_{\tilde{u}\in\mathcal{H}_m}\|N(\tilde{u})-b\|^2, \tag*{(14)}

where u~=∑k=1mu~kϕk∈Hm\tilde{u}=\sum_{k=1}^{m}\tilde{u}_k\phi_k\in\mathcal{H}_m,

N(u~)=[β1[−Δu~(xj)−λf(xj,u~(xj))]mΩ×1β2[u~(xj)]m∂Ω×1],N(\tilde{u})= \begin{bmatrix} \beta_1[-\Delta\tilde{u}(x_j)-\lambda f(x_j,\tilde{u}(x_j))]_{m_\Omega\times1}\\ \beta_2[\tilde{u}(x_j)]_{m_{\partial\Omega}\times1} \end{bmatrix},

and

b=[β1[0]mΩ×1β2[g(sj)]m∂Ω×1].b= \begin{bmatrix} \beta_1[0]_{m_\Omega\times1}\\ \beta_2[g(s_j)]_{m_{\partial\Omega}\times1} \end{bmatrix}.

To solve this nonlinear least square problem, we can call some nonlinear solver, like the function least_square from the scipy package, by solving the normal equations iteratively to get an approximation. Of course, the boundary part in (14) can be ignored if we use the hard constraint instead of the soft constraint [10]. Therefore, with a little abuse of notations and for easy presentations in the following, without loss of generality, we will assume the boundary condition is exactly satisfied by the neural network. Next, we are going to construct new method to compute multiple solutions of semilinear problem from two aspects: initializations and optimizations.

Initializations

For a nonlinear problem, it is critical to have a sufficient good initial guess to guarantee the convergence using some Newton-like methods. To find multiple solutions, it is exactly the same here. Meanwhile, we expect that if the considered problem has more than one solution, each solution should have its own convergence region so that different initializations would lead to different final solutions. As shown in [11], random initializations can be used to uncover multiple solutions. So in this subsection, we like to propose a new method to efficiently construct different initial guesses to eventually find different solutions effectively.

Given a randomized neural network with the width mm, the sampling points {xj}j=1mΩ\{x_j\}_{j=1}^{m_\Omega} uniformly distributed in Ω\Omega (no sampling points on the domain boundary as the Dirichlet boundary condition is exactly satisfied by the assumption), and an arbitrary initial guess u1(0)u_1^{(0)}, by solving the nonlinear least square problem (14), suppose we have obtained one solution u1u_1. Next, with this fixed shallow neural network and the fixed sampling points, to obtain different solutions, we propose a new method to systematically design how to choose initial guess properly to fulfill this goal.

First of all, we introduce the following discretized characteristic matrix

Φ=[Φij]mΩ×m with Φij=ϕj(xi),\Phi=[\Phi_{ij}]_{m_\Omega\times m}\text{ with }\Phi_{ij}=\phi_j(x_i),

which is used to judge how good the coefficient vector of ζ≡(u~1,⋯ ,u~m)T\zeta\equiv(\tilde{u}_1,\cdots,\tilde{u}_m)^{\mathsf{T}} in the linear combination of Φζ\Phi\zeta is to fit the problem (14). Then for the solution u1u_1, we have (u1(x1),⋯ ,u1(xmΩ))T=Φζ1(u_1(x_1),\cdots,u_1(x_{m_\Omega}))^{\mathsf{T}}=\Phi\zeta_1 for some coefficient vector ζ1\zeta_1. To effectively construct the initial guess, we will follow the idea of the Newton method and firstly consider the nonlinear problem around the (first) found solution Φζ1\Phi\zeta_1 locally.

To do that, we assume the following discretized nonlinear residual function

F(ζ)=−ΔΦζ−λf(x,Φζ)(15)F(\zeta)=-\Delta\Phi\zeta-\lambda f(x,\Phi\zeta) \tag*{(15)}

with f(x,Φζ)≡(f(xj,(Φζ)j))mΩ×1f(x,\Phi\zeta)\equiv(f(x_j,(\Phi\zeta)_j))_{m_\Omega\times1} and ΔΦ≡(Δϕj(xi))mΩ×m\Delta\Phi\equiv(\Delta\phi_j(x_i))_{m_\Omega\times m}. Then we know that F(ζ1)=0F(\zeta_1)=0 and

F(ζ1+δζ)≈F(ζ1)+J(ζ1)δζ=J(ζ1)δζF(\zeta_1+\delta\zeta)\approx F(\zeta_1)+J(\zeta_1)\delta\zeta=J(\zeta_1)\delta\zeta

with J(ζ1)J(\zeta_1) denoting the Jacobian matrix at the point ζ1\zeta_1 and δζ\delta\zeta meaning a small perturbation. This indicates the local perturbation of the residual δF\delta F is approximately determined by the quantity J(ζ1)δζJ(\zeta_1)\delta\zeta. Therefore, if there is another solution near ζ1\zeta_1, the search direction δζ\delta\zeta with the norm of J(ζ1)δζJ(\zeta_1)\delta\zeta being relatively small would be a good choice, since small residual in some sense indicates being sufficient close to a solution of the considered problem. For the notation simplicity, we call this kind of search direction close to be weakly variant search direction (WVSD). As for WVSD, we have the following easy result to tell us how to choose these directions.

Theorem 3. For δF=J(ζ1)δζ\delta F = J(\zeta_1)\delta\zeta, the best WVSD is any right eigenvector corresponding to the smallest singular value.

Proof. For the matrix J(ζ1)J(\zeta_1), we have the singular value decomposition (SVD) as follows

J(ζ1)δζ=UJΣJVJT.J(\zeta_1)\delta\zeta= U_J\Sigma_JV_J^{T}.

where UJU_J and VJV_J are the orthonormal matrices containing the left and right eigenvectors, and ΣJ\Sigma_J is the diagonal matrix with singular values λ1≥λ2≥⋯λm≥0\lambda_1 \ge\lambda_2 \ge\cdots\lambda_m \ge0.

Let δζ=VJK\delta\zeta= V_JK for some vector K=(k1,⋯ ,km)K = (k_1,\cdots,k_m), and we have

∥δF∥=∥J(ζ1)δζ∥=∥UJΣJK∥=∥ΣJK∥=∑j=1mλj2kj2.\lVert\delta F\rVert= \lVert J(\zeta_1)\delta\zeta\rVert= \lVert U_J\Sigma_JK\rVert= \lVert\Sigma_JK\rVert= \sqrt{\sum_{j=1}^{m}\lambda_j^2 k_j^2}.

from which we know that min⁡∥δζ∥=1∥δF∥=λm\min_{\lVert\delta\zeta\rVert=1}\lVert\delta F\rVert= \lambda_m, exactly when we take δζ\delta\zeta to be right eigenvector in VjV_j corresponding to the singular value λm\lambda_m. Therefore, the conclusion follows.

Based on the solution representation form of Φζ\Phi\zeta, it means finding multiple solutions is just equal to uncover different coefficient vectors ζ\zeta for the nonlinear least square problem (14). However, due to the randomness in generating these basis functions ϕi\phi_i, it may lead to the column vectors of the characteristic matrix Φ\Phi is (weakly) linear dependent so that even for some perturbation δζ\delta\zeta with large norm, it is possible to have

Φζ≈Φ(ζ+δζ)=Φζ+Φδζ,\Phi\zeta\approx\Phi(\zeta+\delta\zeta) = \Phi\zeta+\Phi\delta\zeta,

which is the easy consequence when ΣVδζ≈0\Sigma V\delta\zeta\approx0 with the SVD of Φ\Phi being UΣVU\Sigma V and the smallest singular values close to zero (i.e., δζ\delta\zeta is taken to be the right eigenvector corresponding to the smallest singular value). Therefore, it is proper to introduce the following optimization subproblem:

min⁡δζ∈Rm∥J(ζ1)δζ∥s.t.∥Φδζ∥=1\begin{aligned} &\min_{\delta\zeta\in\mathbb{R}^{m}} \lVert J(\zeta_1)\delta\zeta\rVert\\ &\text{s.t.}\quad\lVert\Phi\delta\zeta\rVert= 1 \end{aligned}

to determine the possible (local) search direction for the purpose of identifying effective initial guesses.

Based on the SVD, it turns out it is unnecessary to solve this subproblem. However, we need to do some modifications in order to improve the numerical stability. First of all, for the characteristic matrix Φ=UΣV\Phi= U\Sigma V, since the search direction δζ\delta\zeta is not changed by a multiplication of a constant, the constraint of ∥Φδζ∥=1\lVert\Phi\delta\zeta\rVert= 1 can be imposed or fulfilled by the normalization technique (i.e., δζ/∥Φδζ∥\delta\zeta/\lVert\Phi\delta\zeta\rVert). Hence in order to avoid the overflow problems caused by the extremely small values of ∥Φδζ∥\lVert\Phi\delta\zeta\rVert, we truncate the SVD decomposition so that the singular values less than or equal to a given threshold ϵ1>0\epsilon_1 > 0 are neglected. By the truncation, we then have Φt=UtΣtVtT\Phi_t = U_t\Sigma_tV_t^T, where Ut∈RmΩ×rU_t \in\mathbb{R}^{m\Omega\times r}, Σt∈Rr×r\Sigma_t \in\mathbb{R}^{r\times r}, and Vt∈Rm×rV_t \in\mathbb{R}^{m\times r} are the matrices consisting of the left eigenvectors, the singular values larger than ϵ1\epsilon_1, and the right eigenvectors correspondingly. Meanwhile, in order to minimize the effect of different numbers of sampling points, following the definition of the root mean square, the norm to measure the variation in terms of the solution is redefined as follows

∥δζ∥h≡1mΩ∥Φtδζ∥2,(16)\lVert\delta\zeta\rVert_h \equiv\sqrt{\frac{1}{m\Omega}\lVert\Phi_t\delta\zeta\rVert^2}, \tag*{(16)}

With this change, the constraint ∥Φδζ∥=1\lVert\Phi\delta\zeta\rVert= 1 in the minimization problem will be changed to ∥δζ∥h=1\lVert\delta\zeta\rVert_h = 1 correspondingly. Furthermore, to reduce the computational costs, we can also setup another threshold ϵ2>0\epsilon_2 > 0 such that the potential direction is only searched in a relatively small subset spanned by the right eigenvectors of small eigenvalues of the Jacobian matrix J(ζ1)J(\zeta_1). This is also essential for increasing the robustness of the method. As for the minimization problem, the exact solution is the right eigenvector of the smallest singular value multiplied by certain constant to satisfy the equality constraint. Indeed, this is the best choice of the search direction locally. However, from the global point of view, it could be better to include also the right eigenvectors corresponding to the small eigenvalues (e.g., less than the given ϵ2\epsilon_2) as the choices of the search direction. For the latter case with multiple eigenvectors, we actually just need to set each eigenvector as the candidate of the search direction δζ\delta\zeta since what we are interested in the search direction for constructing effective initial guesses.

Noticing that ∥Φtδζ∥=∥ΣtVtTδζ∥\lVert\Phi_t\delta\zeta\rVert=\lVert\Sigma_tV_t^T\delta\zeta\rVert as the columns of UU are orthonormal with each other, and the singular values σ1,⋯ ,σr\sigma_1,\cdots,\sigma_r in Σt\Sigma_t after the truncation are positive, if we take δζ≡Wz\delta\zeta\equiv Wz for some vector z∈Rrz\in\mathbb{R}^r with W≡1mΩVtdiag⁡(1σ1,⋯ ,1σr)W\equiv\sqrt{\frac{1}{m_\Omega}}V_t\operatorname{diag}\left(\frac{1}{\sigma_1},\cdots,\frac{1}{\sigma_r}\right), it implies that

∥δζ∥h=∥Wz∥h=1mΩ∥ΦtWz∥2=∥ΣtVtTVtdiag⁡(1σ1,⋯ ,1σr)z∥2=∥z∥.\lVert\delta\zeta\rVert_h=\lVert Wz\rVert_h=\sqrt{\frac{1}{m_\Omega}\lVert\Phi_tWz\rVert^2}=\sqrt{\lVert\Sigma_tV_t^TV_t\operatorname{diag}\left(\frac{1}{\sigma_1},\cdots,\frac{1}{\sigma_r}\right)z\rVert^2}=\lVert z\rVert.

Therefore, for the constraint ∥δζ∥h=1\lVert\delta\zeta\rVert_h=1, we have ∥z∥=1\lVert z\rVert=1 when δζ=Wz\delta\zeta=Wz. So we consider the SVD of the modified Jacobian J(ζ1)W≡UJΣJVJTJ(\zeta_1)W\equiv U_J\Sigma_JV_J^T and once the ϵ2>0\epsilon_2>0 is given, we can find the right eigenvectors vJ(k)v_J^{(k)} from VJV_J whose singular values are smaller than ϵ2\epsilon_2, followed by the multiplication WvJ(k)Wv_J^{(k)} to determine the potential search directions together with arbitrarily chosen step sizes.

For clarity purpose, we summarize the algorithm of the initialization in the following.

Algorithm 1: Initializations

Input: A randomized neural network with mm hidden layers, mΩm_\Omega sampling points, and a precomputed solution u1u_1 with the coefficient vector ζ1\zeta_1. Meanwhile, specify ϵ1\epsilon_1 and ϵ2\epsilon_2.

  1. For the characteristic matrix Φ\Phi and the given ϵ1\epsilon_1, construct the truncated SVD Φt=UtΣtVtT\Phi_t=U_t\Sigma_tV_t^T and the WW matrix.

  2. For the nonlinear problem F(ζ)F(\zeta), compute the Jacobian matrix J(ζ1)J(\zeta_1) at the point ζ1\zeta_1.

  3. Compute the SVD of the modified Jacobian matrix J(ζ1)W=UJΣJVJTJ(\zeta_1)W=U_J\Sigma_JV_J^T.

  4. Given ϵ2\epsilon_2, find the right eigenvectors in VJV_J corresponding to the singular eigenvalues less than ϵ2\epsilon_2.

  5. For each vJ(k)v_J^{(k)} of the right eigenvectors, we construct the search direction by WvJ(k)Wv_J^{(k)}.

Output: the initial guesses constructed by ζ=ζ1±αinitWvJ(k)\zeta=\zeta_1\pm\alpha_{\mathrm{init}}Wv_J^{(k)} with the step size αinit\alpha_{\mathrm{init}}.

In practice, we take ϵ1\epsilon_1 to be the largest module of the eigenvalues multiplied by a given small constant. Meanwhile, we can consider the right eigenvectors and thus the search directions corresponding to the first few KK smallest singular values without using ϵ2\epsilon_2. And the step size αinit\alpha_{\mathrm{init}} can be chosen empirically. By default, we set αinit=0.5,1,2,4,8\alpha_{\mathrm{init}}=0.5,1,2,4,8 and set K=6K=6 in the numerical tests.

Optimization method

This part is devoted to the optimization method based on the deflation technique for the discretized problem F(ζ)F(\zeta) given in (15). Assume currently we already find some solutions, say ζ1,⋯ ,ζn−1\zeta_1,\cdots,\zeta_{n-1} for some integer nn. With the initial guess ζn(0)\zeta_n^{(0)} produced in Algorithm 1, we try to find a new solution ζn∉Us={ζ1,⋯ ,ζn−1}\zeta_n\notin U_s=\{\zeta_1,\cdots,\zeta_{n-1}\}.

For this purpose, first of all, we define the deflation operator μ(x;Us)\mu(x;U_s) so that new solution is expected to find for the considered problem. Commonly used deflation operators for a single root (i.e., Us={ζ1}U_s=\{\zeta_1\}) includes

  • μ(x;{ζ1})=1∥x−ζ1∥\mu(x;\{\zeta_1\})=\frac{1}{\lVert x-\zeta_1\rVert};

  • μ(x;{ζ1})=1∥x−ζ1∥θ+σ\mu(x;\{\zeta_1\})=\frac{1}{\lVert x-\zeta_1\rVert^\theta}+\sigma with θ=2\theta=2 and σ=1\sigma=1;

  • μ(x;{ζ1})=exp⁡(1∥x−ζ1∥)\mu(x;\{\zeta_1\})=\exp\left(\frac{1}{\lVert x-\zeta_1\rVert}\right).

Here the second deflation operator includes the θ\theta parameter to overcome the higher multiplicity of a root, while the last exponential one is proposed to incorporate all possible values of θ\theta instead of choosing the parameter value empirically. Then extended from the single root to the multiple roots, we have the following deflation operator

μ(x;Us)=∏ζk∈Usμ(x;ζk).(17)\mu(x;U_s)=\prod_{\zeta_k\in U_s}\mu(x;\zeta_k). \tag*{(17)}

Then considering the following least square problem

min⁡ζ∈Rm12∥F(ζ)∥2,(18)\min_{\zeta\in\mathbb{R}^m}\frac{1}{2}\lVert F(\zeta)\rVert^2, \tag*{(18)}

we adapt the good deflated Gauss-Newton method proposed in [12], where the norm ∥⋅∥h\lVert\cdot\rVert_h is used in the deflation to measure the effective distance of differnet solutions. Its novelties and advantages lie in the following three aspects:

  • The exponential deflation operator is used;

  • Instead of solving the nonlinear linear square problem, like the Levenberg–Marquardt method, only the linearized part is considered to design the deflation algorithm, which avoids the calculation of the Hessian matrix and thus is computationally cheaper. Meanwhile, it can avoid the convergence to the stationary points;

  • Theoretically it guarantees (see [12 Theorem 3.5]) that the local convergence of the proposed method (i.e., converge to the local minima that are of interest), and it would not converge to any of the deflated points (i.e., the founded solution in UsU_s) under some requirements of the deflation operator and the Jacobian matrix.

For clarity and completeness purpose, we present the good deflation Gauss-Newton algorithm in the following.

Algorithm 2: Good deflated Gauss-Newton algorithm (GDGN)

Input: Given an initial guess ζn(0)\zeta_n^{(0)}, and the set of founded solutions UsU_s as well as the corresponding deflation operator μ(ζ;Us)\mu(\zeta; U_s) defined in (17), where the norm ∥⋅∥h\lVert\cdot\rVert_h defined in (16) is used. Meanwhile, choose a ϵ∈[0,1]\epsilon\in[0,1], a toltol and define η(ζ)=log⁡(μ(ζ;Us))\eta(\zeta)=\log(\mu(\zeta; U_s)).

While ∥p(k)∥>tol\lVert p^{(k)}\rVert> tol do

p(k)=arg⁡min⁡p∥F(ζn(k))+JF(ζn(k))p∥p^{(k)}=\arg\min_p\lVert F(\zeta_n^{(k)})+J_F(\zeta_n^{(k)})p\rVert with JF(ζ)J_F(\zeta) being the Jacobian of the minimized function given (18) in at the point ζ\zeta.

if ⟨p(k),∇η(ζn(k))⟩>ϵ\langle p^{(k)},\nabla\eta(\zeta_n^{(k)})\rangle>\epsilon then

β=1−⟨p(k),∇η(ζn(k))⟩\beta=1-\langle p^{(k)},\nabla\eta(\zeta_n^{(k)})\rangle;

ζn(k+1)=ζn(k)+β−1p(k)\zeta_n^{(k+1)}=\zeta_n^{(k)}+\beta^{-1}p^{(k)};

else

ζn(k+1)=ζn(k)+αp(k)\zeta_n^{(k+1)}=\zeta_n^{(k)}+\alpha p^{(k)} with α\alpha being determined by the quadratic line search on the nonlinear problem defined in (18);

end if

end while

Output: if finding a new solution ζn\zeta_n, update Us=Us∪{ζn}U_s=U_s\cup\{\zeta_n\}.

In this algorithm, for the sub-minimization problem min⁡p∈Rm∥F(ζn(k))+JF(ζn(k))p∥\min_{p\in\mathbb{R}^m}\lVert F(\zeta_n^{(k)})+J_F(\zeta_n^{(k)})p\rVert, since the sampling points mΩm_\Omega is generally larger than the width of the hidden layer mm, so the minimizer can be obtained by solving the following

JFT(ζn(k))JF(ζn(k))p=−JFT(ζn(k))F(ζn(k)),J_F^{T}(\zeta_n^{(k)})J_F(\zeta_n^{(k)})p=-J_F^{T}(\zeta_n^{(k)})F(\zeta_n^{(k)}),

which is efficiently solved based on the QR decomposition or the SVD decomposition of JF(ζn(k))J_F(\zeta_n^{(k)}). Meanwhile, in practice, to see a ζn\zeta_n is a solution or not, we setup another threshold Rϵ>0R_\epsilon>0 and we accept the approximation ζn\zeta_n as a solution if the norm of the residue is less than or equal to RϵR_\epsilon, where RϵR_\epsilon will be specified in the numerical tests.

Local convergence analysis

Here we present the local convergence of the used method for solving the semilinear problem (1) for some particular solution u∗∈H2(Ω)u^*\in H^2(\Omega). Without loss of generality, we assume g=0g=0 and Ω⊂Rn\Omega\subset\mathbb{R}^n is a bounded C1,1C^{1,1} domain with n≤3n\leq3 for simplicity. Meanwhile, we also assume the following assumptions:

A. The function f(x,s)f(x,s) is measurable in xx and twice continuously differentiable in ss for almost every x∈Ωx\in\Omega. Meanwhile, there exists a constant M>0M>0 such that, in a neighbourhood Bu∗,δB_{u^*,\delta} of u∗u^*, ∣fu(x,s)∣+∣fuu(x,s)∣≤M|f_u(x,s)|+|f_{uu}(x,s)|\leq M for almost every x∈Ωx\in\Omega and s∈Bu∗,δs\in B_{u^*,\delta}.

B. [Non-degeneracy] The linearized homogeneous Dirichlet problem

{−Δh−λfu(x,u∗)h=0,x∈Ω,h=0,x∈∂Ω\begin{cases} -\Delta h-\lambda f_u(x,u^*)h=0, & x\in\Omega,\\ h=0, & x\in\partial\Omega \end{cases}

has only the trivial solution. Equivalently, ker⁡L∗={0}\ker L_*=\{0\} with L∗h=F′(v∗)h=−Δh−λfu(x,u∗)hL_*h=F'(v^*)h=-\Delta h-\lambda f_u(x,u^*)h.

Remark. The non-degeneracy condition is satisfied by some solutions, like the positive solutions of the two-dimensional Lane-Emden problem [13], which we will investigate in the numerical section.

Based on these two assumptions, we firstly have the following.

Theorem 4. Suppose X=H2(Ω)∩H01(Ω)X = H^{2}(\Omega) \cap H_{0}^{1}(\Omega) and Y=L2(Ω)Y = L^{2}(\Omega), then we have L∗:X→YL_* : X \to Y is an isomorphism and

∥h∥H2(Ω)≲∥L∗h∥L2(Ω)∀h∈X.\|h\|_{H^{2}(\Omega)} \lesssim\|L_*h\|_{L^{2}(\Omega)} \qquad\forall h \in X.

Proof. For the Laplace operator A=−ΔA = -\Delta defined on XX, by the Lax–Milgram theorem and the elliptic regularity C1,1C^{1,1} on Ω\Omega, it is easy to see that A:X→YA : X \to Y is bijective and therefore we know A−1A^{-1} exists and is bounded. Let V(x)=λfu(x,u∗)V(x) = \lambda f_u(x,u^*). By Assumption A, we have V∈L∞(Ω)V \in L^\infty(\Omega). Denoting by MVM_V the multiplication operator

MVh=Vh,M_Vh = Vh,

then we obtain L∗=A−MV=A(I−A−1MV)L_* = A - M_V = A(I - A^{-1}M_V). Since A−1A^{-1} is bounded and the embedding H2(Ω)↪L2(Ω)H^{2}(\Omega) \hookrightarrow L^{2}(\Omega) is compact by the Rellich–Kondrachov theorem, A−1:L2(Ω)→L2(Ω)A^{-1} : L^{2}(\Omega) \to L^{2}(\Omega) is also compact operator. Consequently, K=A−1MV:L2(Ω)→L2(Ω)K = A^{-1}M_V : L^{2}(\Omega) \to L^{2}(\Omega) is also compact as MVM_V is linear bounded. Therefore, by the Riesz–Schauder theorem and the assumption B, I−A−1MVI - A^{-1}M_V is invertible on L2(Ω)L^{2}(\Omega). Since AA is invertible, we hence know that L∗:X→YL_* : X \to Y is an isomorphism, from which we obtain the inequality.

For the nonlinear problem (1), corresponding we can define the nonlinear operator F:X→YF : X \to Y, where

F(v)=−Δv−λf(x,v).(19)F(v) = -\Delta v - \lambda f(x,v). \tag*{(19)}

Then for ∀h∈X\forall h \in X satisfying u∗+th∈Bu∗,δu^* + th \in B_{u^*,\delta} for t∈[0,1]t \in[0,1] and by the Taylor expansion, we have F(t)≡F(u∗+th)=F(0)+F′(0)t+∫0tF′′(T)(t−T)dTF(t) \equiv F(u^* + th) = F(0) + F'(0)t + \int_0^t F''(T)(t-T)dT, from which we have

F(u∗+h)=F(1)=L∗h+R(h)F(u^* + h) = F(1) = L_*h + R(h)

with R(h)=−λ∫01(1−t)fuu(x,u∗+th)h2dtR(h) = -\lambda\int_0^1 (1-t)f_{uu}(x,u^* + th)h^2dt. By the assumption A and the Sobolev embedding H2(Ω)↪C0,α(Ω)↪L∞(Ω)H^{2}(\Omega) \hookrightarrow C^{0,\alpha}(\Omega) \hookrightarrow L^\infty(\Omega) for n≤3n \le3, we have

∥R(h)∥L22=λ2M22∫Ωh4dx≲∥h∥L∞2∫Ωh2dx=∥h∥L22∥h∥L22≲∥h∥H24,\|R(h)\|_{L^{2}}^{2} = \frac{\lambda^{2}M^{2}}{2}\int_{\Omega}h^{4}dx \lesssim\|h\|_{L^\infty}^{2}\int_{\Omega}h^{2}dx = \|h\|_{L^{2}}^{2}\|h\|_{L^{2}}^{2} \lesssim\|h\|_{H^{2}}^{4},

which give the local estimate of the nonlinear remainder term. Based on the analysis, then we are able to present the following local stability result as a easy consequence.

Theorem 5. For ∀u∈X\forall u \in X satisfying ∥u−u∗∥H2<r\|u-u^*\|_{H^{2}} < r (i.e., u∈Bu∗,ru \in B_{u^*,r}) for some 0<r≤δ0 < r \le\delta, we have

∥u−u∗∥H2≲∥F(u)∥L2.(20)\|u-u^*\|_{H^{2}} \lesssim\|F(u)\|_{L^{2}}. \tag*{(20)}

Proof. Set h=u−u∗h = u-u^*, and we then have

F(u)=F(u∗+h)=L∗h+R(h).F(u) = F(u^* + h) = L_*h + R(h).

For L∗h=F(u)−R(h)L_*h = F(u)-R(h) with h∈Bu∗,δh \in B_{u^*,\delta}, by Theorem 4 and the previous calculation, we have

∥h∥H2≲∥L∗h∥L2≤∥F(u)∥L2+∥R(h)∥L2≲∥F(u)∥L2+∥h∥H22≡C(∥F(u)∥L2+∥h∥H22),\|h\|_{H^{2}} \lesssim\|L_*h\|_{L^{2}} \le\|F(u)\|_{L^{2}} + \|R(h)\|_{L^{2}} \lesssim\|F(u)\|_{L^{2}} + \|h\|_{H^{2}}^{2} \equiv C\left(\|F(u)\|_{L^{2}} + \|h\|_{H^{2}}^{2}\right),

where the generic constant is denoted by CC. We choose 0<r≤δ0 < r \le\delta such that Cr≤12Cr \le\frac{1}{2}. Then if ∥h∥H2<r\|h\|_{H^{2}} < r, we have C∥h∥H22≤12∥h∥H2C\|h\|_{H^{2}}^{2} \le\frac{1}{2}\|h\|_{H^{2}} and 12∥h∥H2≤C∥F(u)∥L2\frac{1}{2}\|h\|_{H^{2}} \le C\|F(u)\|_{L^{2}}. Therefore,

∥u−u∗∥H2≤2C∥F(u)∥L2,\|u-u^*\|_{H^{2}} \le2C\|F(u)\|_{L^{2}},

which concludes the theorem with the generic constant 2C2C in the inequality (20).

Based on the stability result and following the routine analysis we commonly used [9, 14, 15], then we are able to prove the error estimate without considering optimization errors in solving the nonlinear least square problem. Assume the boundary condition is satisfied exactly, then ∥F(u)∥L2=L1(u)=L(u)\lVert F(u)\rVert_{L^2}=L^1(u)=L(u) defined in (12) when β1=1\beta_1=1, and similarly the corresponding discretized problem is the minimization problem LdL^d given in (13) without the boundary term neither. Then, ∀u∈Hm\forall u\in\mathcal{H}_m,

L(umd∗)=L(umd∗)−L(u∗)≤L(umd∗)−Ld(umd∗)+Ld(u)−L(u)+L(u)−L(u∗)≤inf⁡u∈Hm∣L(u)−L(u∗)∣+2sup⁡u∈Hm∣L(u)−Ld(u)∣.\begin{aligned} L(u_{md}^*)=L(u_{md}^*)-L(u^*)\leq L(u_{md}^*)-L^d(u_{md}^*)+L^d(u)-L(u)+L(u)-L(u^*) \\ &\leq\inf_{u\in\mathcal{H}_m}|L(u)-L(u^*)|+2\sup_{u\in\mathcal{H}_m}|L(u)-L^d(u)|. \end{aligned}

Meanwhile, noticing that F(u∗)=0F(u^*)=0, we have

L(u)−L(u∗)=∥F(u)∥L22≤(∥F(u)−F(u∗)∥L2+∥F(u∗)∥L2)2≤∥F(u)−F(u∗)∥L22=∫Ω(−Δu−λf(x,u)+Δu∗+λf(x,u∗))2 dx\begin{aligned} L(u)-L(u^*)=\lVert F(u)\rVert_{L^2}^2\leq\left(\lVert F(u)-F(u^*)\rVert_{L^2}+\lVert F(u^*)\rVert_{L^2}\right)^2\leq\lVert F(u)-F(u^*)\rVert_{L^2}^2 \\ &=\int_{\Omega}\left(-\Delta u-\lambda f(x,u)+\Delta u^*+\lambda f(x,u^*)\right)^2\,\mathrm{d}x \end{aligned}
≤2∫Ω(−Δu+Δu∗)2 dx+2∫Ω(λf(x,u)−λf(x,u∗))2 dx\leq2\int_{\Omega}(-\Delta u+\Delta u^*)^2\,\mathrm{d}x+2\int_{\Omega}(\lambda f(x,u)-\lambda f(x,u^*))^2\,\mathrm{d}x
≲∥u−u∗∥H22+∥u−u∗∥L22≤∥u−u∗∥H22,\lesssim\lVert u-u^*\rVert_{H^2}^2+\lVert u-u^*\rVert_{L^2}^2\leq\lVert u-u^*\rVert_{H^2}^2,

where the last second inequality is obtained due to the Lipschitz continuity of the nonlinear equation ff with respect to uu as assumed in the assumption A. Therefore, we have

L(umd∗)≲inf⁡u∈Hm∥u−u∗∥H22+sup⁡u∈Hm∣L(u)−Ld(u)∣.L(u_{md}^*)\lesssim\inf_{u\in\mathcal{H}_m}\lVert u-u^*\rVert_{H^2}^2+\sup_{u\in\mathcal{H}_m}|L(u)-L^d(u)|.

where the first term characterize the approximation error, and the second term is commonly known as the statistical or generalization error. As for the approximation error, we have the following result proved in [16 Corollary 3.8].

Theorem 6. Assume that u∗u^* have a global extension ue∗u_e^* such that ue∗∈L1(Rn)u_e^*\in L^1(\mathbb{R}^n) and its Fourier transform ue∗^∈L1(Rn)\widehat{u_e^*}\in L^1(\mathbb{R}^n). For the randomized neural networks with random variables (w1,b1)(w_1,b_1) sampled independent and identically distributed from the uniform distributions over the bounded domain {ξ∈Rn∣∥ξ∥≤M2R}×[−M,M]\{\xi\in\mathbb{R}^n\mid\lVert\xi\rVert\leq\frac{M}{2R}\}\times[-M,M], if the parameter MM is chosen as M=O(m1n+1+2η)M=O(m^{\frac{1}{n+1+2\eta}}) and u∗∈H2+k⊂H2u^*\in H^{2+k}\subset H^2, then we have

E[u∗−uw2w1,b1]≲∥u∗∥H4m−ηn+2η+1.\mathbb{E}\left[u^*-u_{w_2}^{w_1,b_1}\right]\lesssim\lVert u^*\rVert_{H^4}m^{-\frac{\eta}{n+2\eta+1}}.

where k>n2k>\frac{n}{2} is a positive integer, η=k−n2\eta=k-\frac{n}{2}, R=max⁡x∈Ω∣x∣R=\max_{x\in\Omega}|x|, uw2w1,b1=∑j=1mw2,jσ(w1,jx+b1,j)u_{w_2}^{w_1,b_1}=\sum_{j=1}^m w_{2,j}\sigma(w_{1,j}x+b_{1,j}) with w1,jw_{1,j} being the jj-th row of the matrix, and w2,jw_{2,j} and b1,jb_{1,j} denoting the jj-th component of the vectors, respectively.

Remark. Fix the way to randomly generate the parameters in the hidden layer, by considering the almost optimal way in the analysis to determine the weights in the output layer, we try to show the smallest bound for all possible different choices of parameters in the hidden layer, from which we know it is reasonable assume the output weights have bounded Euclidean norm under some additional regularity assumption, a commonly-used assumption in the establishing the statistical error.

To do that, suppose Hm={ϕ1,⋯ ,ϕm}\mathcal{H}_m=\{\phi_1,\cdots,\phi_m\} with ϕi=w2,iσ(w1,ix+b1,i)\phi_i=w_{2,i}\sigma(w_{1,i}x+b_{1,i}), where w1,i∈{ξ∈Rn∣∥ξ∥≤M2R}w_{1,i}\in\{\xi\in\mathbb{R}^n\mid\lVert\xi\rVert\leq\frac{M}{2R}\} and b1,i∈[−M,M]b_{1,i}\in[-M,M]. As shown in [16], we know

w2=(w2,1,⋯ ,w2,m)T,w2,k=1mβ(w1,k,b1,k)π(w1,k,b1,k).w_2=(w_{2,1},\cdots,w_{2,m})^{T},\qquad w_{2,k}=\frac{1}{m}\frac{\beta(w_{1,k},b_{1,k})}{\pi(w_{1,k},b_{1,k})}.

where the function β:Rn×R→R\beta:\mathbb{R}^n\times\mathbb{R}\to\mathbb{R} is defined to satisfy integral representation of the shallow neural network, and π\pi is the density function of the uniform distribution satisfying 1π≲Mn+1\frac{1}{\pi}\lesssim M^{n+1}.

Since β(ξ,s)=α(2π)nσ^(α)ue∗^(αξ)e−iαs\beta(\xi,s)=\frac{\alpha}{(2\pi)^n}\widehat{\sigma}(\alpha)\widehat{u_e^*}(\alpha\xi)e^{-i\alpha s} for some constant α\alpha, we know that it is bounded as ue∗∈L1(Rn)u_e^*\in L^1(\mathbb{R}^n). Therefore, we have

∥w2∥=∑k=1m∣w2,k∣2≲1mMn+1≲m−12+n+1n+2η+1.\lVert w_2\rVert=\sqrt{\sum_{k=1}^{m}|w_{2,k}|^2}\lesssim\frac{1}{\sqrt{m}}M^{n+1}\lesssim m^{-\frac{1}{2}+\frac{n+1}{n+2\eta+1}}.

This implies that for solution with high regularity, ∥w2∥2≲mα\|w_2\|_2 \lesssim m^\alpha for some α<0\alpha< 0, and increasing number of neurons leads to the decay of the almost optimal output weights. So assuming the solution u∗∈H5u^* \in H^5 at least or higher, we can reasonably assume the output weights have bounded Euclidean norm independent of the width mm for simplicity, which is also required by the local error estimate.

As for the statistical error, after the set Hm\mathcal{H}_m of basis functions are determined by randomly chosen according to the uniform distributions, we can prove the following.

Theorem 7. For a randomized shallow network with bounded output weights in the Euclidean norm, we have

Ex1,…,xmΩ[sup⁡u∈Hm∣Ld(u)−L(u)∣]≤CmmΩ−12\mathbb{E}_{x_1,\ldots,x_{m_\Omega}}\left[\sup_{u\in\mathcal{H}_m}\left|L^d(u)-L(u)\right|\right]\leq C_m m_\Omega^{-\frac{1}{2}}

for some constant Cm=O(m32+3n+1+2n)C_m=O(m^{\frac{3}{2}+\frac{3}{n+1+2n}}).

Proof. Here we mainly use the Rademacher complexity to derive the result. Firstly,

Ex1,…,xmΩ[sup⁡u∈Hm∣Ld(u)−L(u)∣]≤2RmΩ(ψ∘(ΔHm+λf∘Hm)),\mathbb{E}_{x_1,\ldots,x_{m_\Omega}}\left[\sup_{u\in\mathcal{H}_m}\left|L^d(u)-L(u)\right|\right]\leq2R_{m_\Omega}\left(\psi\circ(\Delta\mathcal{H}_m+\lambda f\circ\mathcal{H}_m)\right),

where RN(F)=Eϵ1,…,ϵNEx1,…,xN[sup⁡h∈F1N∑i=1Nϵih(xi)]R_N(\mathcal{F})=\mathbb{E}_{\epsilon_1,\ldots,\epsilon_N}\mathbb{E}_{x_1,\ldots,x_N}\left[\sup_{h\in\mathcal{F}}\frac{1}{N}\sum_{i=1}^N\epsilon_i h(x_i)\right] with ϵ1,…,ϵN\epsilon_1,\ldots,\epsilon_N being the Rademacher random variables, f∘Hm={f∘u(x)=f(x,u(x))∣u∈Hm}f\circ\mathcal{H}_m=\{f\circ u(x)=f(x,u(x))\mid u\in\mathcal{H}_m\}, and ψ(x)=x2\psi(x)=x^2.

For a basis function ϕj(x)=w2,jσ(w1,jx+b1,j)∈Hm\phi_j(x)=w_{2,j}\sigma(w_{1,j}x+b_{1,j})\in\mathcal{H}_m, Δϕj=w2,j∥w1,j∥2σ′′(w1,jx+b1,j)\Delta\phi_j=w_{2,j}\|w_{1,j}\|^2\sigma''(w_{1,j}x+b_{1,j}), from which we know sup⁡v∈ΔHm∥v∥L∞≲mM2\sup_{v\in\Delta\mathcal{H}_m}\|v\|_{L^\infty}\lesssim mM^2. Since λ\lambda is a fixed constant, σ\sigma is the difference of two tanh functions, and ff is Lipschitz continuous with respect to uu, we know sup⁡v∈Δf∘Hm∥v∥L∞≲m\sup_{v\in\Delta f\circ\mathcal{H}_m}\|v\|_{L^\infty}\lesssim m. Therefore, we further have

RmΩ(ψ∘(ΔHm+λf∘Hm))≲mM2RmΩ(ΔHm+λf∘Hm).R_{m_\Omega}\left(\psi\circ(\Delta\mathcal{H}_m+\lambda f\circ\mathcal{H}_m)\right)\lesssim mM^2R_{m_\Omega}(\Delta\mathcal{H}_m+\lambda f\circ\mathcal{H}_m).

Separating by the linearity of the Rademacher complexity, then for the first term we have

RmΩ(ΔHm)≤Eϵ1,…,ϵmΩEx1,…,xmΩ[sup⁡Hm1mΩ∣∑i=1mΩϵi∑k=1mckΔϕk(xi)∣]≤1mΩEϵ1,…,ϵmΩEx1,…,xmΩ[∑k=1m(∑i=1mΩϵiΔϕk(xi))2]≤1mΩ(∑k=1mEϵ1,…,ϵmΩEx1,…,xmΩ[(∑i=1mΩϵiΔϕk(xi))2])12.\begin{aligned} R_{m_\Omega}(\Delta\mathcal{H}_m) &\leq\mathbb{E}_{\epsilon_1,\ldots,\epsilon_{m_\Omega}}\mathbb{E}_{x_1,\ldots,x_{m_\Omega}}\left[\sup_{\mathcal{H}_m}\frac{1}{m_\Omega}\left|\sum_{i=1}^{m_\Omega}\epsilon_i\sum_{k=1}^m c_k\Delta\phi_k(x_i)\right|\right]\\ &\leq\frac{1}{m_\Omega}\mathbb{E}_{\epsilon_1,\ldots,\epsilon_{m_\Omega}}\mathbb{E}_{x_1,\ldots,x_{m_\Omega}}\left[\sqrt{\sum_{k=1}^m\left(\sum_{i=1}^{m_\Omega}\epsilon_i\Delta\phi_k(x_i)\right)^2}\right]\\ &\leq\frac{1}{m_\Omega}\left(\sum_{k=1}^m\mathbb{E}_{\epsilon_1,\ldots,\epsilon_{m_\Omega}}\mathbb{E}_{x_1,\ldots,x_{m_\Omega}}\left[\left(\sum_{i=1}^{m_\Omega}\epsilon_i\Delta\phi_k(x_i)\right)^2\right]\right)^{\frac{1}{2}}. \end{aligned}

where the first inequality is obtained due to the boundedness of the output weights in 2 norm. Noticing that E[ϵiϵj]=δij\mathbb{E}[\epsilon_i\epsilon_j]=\delta_{ij}, we further have

Eϵ1,…,ϵmΩEx1,…,xmΩ[(∑i=1mΩϵiΔϕk(xi))2]=Ex1,…,xmΩEϵ1,…,ϵmΩ[(∑i=1mΩϵiΔϕk(xi))2]=Ex1,…,xmΩ[mΩΔϕk(x1)2]≤mΩM2,\mathbb{E}_{\epsilon_1,\ldots,\epsilon_{m_\Omega}}\mathbb{E}_{x_1,\ldots,x_{m_\Omega}}\left[\left(\sum_{i=1}^{m_\Omega}\epsilon_i\Delta\phi_k(x_i)\right)^2\right] =\mathbb{E}_{x_1,\ldots,x_{m_\Omega}}\mathbb{E}_{\epsilon_1,\ldots,\epsilon_{m_\Omega}}\left[\left(\sum_{i=1}^{m_\Omega}\epsilon_i\Delta\phi_k(x_i)\right)^2\right] =\mathbb{E}_{x_1,\ldots,x_{m_\Omega}}\left[m_\Omega\Delta\phi_k(x_1)^2\right]\leq m_\Omega M^2,

from which we obtain RmΩ(ΔHm)≲mmΩM2R_{m_\Omega}(\Delta\mathcal{H}_m)\lesssim\sqrt{m m_\Omega}M^2. Similarly, we have RmΩ(λf∘Hm)≲mR_{m_\Omega}(\lambda f\circ\mathcal{H}_m)\lesssim\sqrt{m}. Therefore, we obtain the conclusion noticing that M=O(m32+3n+1+2n)M=O(m^{\frac{3}{2}+\frac{3}{n+1+2n}}).

Combining all of previous results, we obtain the following error estimate.

Theorem 8. With the previous assumptions, we have the following local error estimate

∥u∗−um,d∗∥22≤Cm−2nn+2n+1+Cmmp−12\|u^*-u^*_{m,d}\|_2^2\leq C_m^{-\frac{2n}{n+2n+1}}+C_m m_p^{-\frac{1}{2}}

for some constant CC and Cm=O(m32+3n+1+2n)C_m=O(m^{\frac{3}{2}+\frac{3}{n+1+2n}}), where mm is the number of neurons in the hidden layer, and the error estimate is understood in mean.

Remark. So to guarantee the convergence, at least we need the number of sampling points growing far more fast than the number of neurons in the hidden layer. However, the rate of CmC_m depending on mm can be further decreased by using different tools. Here we just present the worst case.

Improvements using the multilevel method

In this section, in order to accelerate the calculation as well as improving the solution accuracy, adapting the multilevel method proposed in [9], we further propose a projection method by considering a minimization problem to fulfill the purpose of increasing the robustness of the algorithm.

For the discretized characteristic matrix Φ=[Φij]mΩ×m\Phi= [\Phi_{ij}]_{m_{\Omega}\times m}, where mΩm_{\Omega} denotes the number of sampling points and mm is the number of neurons in the hidden layer (i.e., the number of basis functions), to carry out the initialization process followed by the optimization algorithm, relative large values of both mm and mΩm_{\Omega} would be needed for finding more solutions with better accuracy. However, increasing these two numbers too much would significantly increase the memory consumptions and the computational costs. Meanwhile, for the given threshold RϵR_{\epsilon} to determine accepting one approximation as a solution or not, on a coarse neural network, it is highly possible that an approximation is denied due to its low accuracy. So in order to partially overcome these difficulties, we firstly propose a projection method and then combine with the multilevel method, which turns out the new method can sharply reduce the computational costs while preserving high solution accuracy, even being able to find more solutions as shown in the numerical tests.

To be specific, given relatively small numbers of both m1m^{1} and mΩ1m_{\Omega}^{1}, by the initialization algorithm and the Newton method proposed in the previous sections, assume we have obtained one solution ζ1\zeta^{1}. Now with relatively large numbers of m2m^{2} and mΩ2m_{\Omega}^{2}, given a ζ1\zeta^{1} and to map the solution from a coarse network to a fine network, we firstly consider the following linear least square problem

min⁡ζ2∈Rm21N∥H1ζ1−H2ζ2∥d2,(21)\min_{\zeta^{2}\in\mathbb{R}^{m^{2}}}\frac{1}{N}\lVert H^{1}\zeta^{1}-H^{2}\zeta^{2}\rVert_{d}^{2}, \tag*{(21)}

where H1=(ϕ11,ϕ21,⋯ ,ϕm111)H^{1}=(\phi_{1}^{1},\phi_{2}^{1},\cdots,\phi_{m_{1}^{1}}^{1}) and H2=(ϕ12,ϕ22,⋯ ,ϕm222)H^{2}=(\phi_{1}^{2},\phi_{2}^{2},\cdots,\phi_{m_{2}^{2}}^{2}), the row vectors consisting of the randomized basis functions for the neural networks with the width m1m_{1} and m2m_{2}, respectively, NN is number of (uniformly distributed) sampling points to do the fitting, and the corresponding norm is defined to be ∥u∥d2=∑k=1mΩ2u2(xk)\lVert u\rVert_{d}^{2}=\sum_{k=1}^{m_{\Omega}^{2}}u^{2}(x_{k}) for ∀u∈C∞(Ω)\forall u\in C^{\infty}(\Omega). For simplicity, we can take N=mΩ2N=m_{\Omega}^{2} and use the sampling points in the fine network to calibrate the closeness of the solutions in different levels of networks. Like before, for this linear square problem, the solution can be easily obtained by solving the corresponding normal equation. Likewise, given a ζ2\zeta^{2}, we could also define another similar linear least square problem as follows

min⁡ζ1∈Rm11mΩ1∥H1ζ1−H2ζ2∥d2,(22)\min_{\zeta^{1}\in\mathbb{R}^{m^{1}}}\frac{1}{m_{\Omega}^{1}}\lVert H^{1}\zeta^{1}-H^{2}\zeta^{2}\rVert_{d}^{2}, \tag*{(22)}

which maps the solution from a fine network to a coarse network, as we will use later. Inspired by the Gauss-Newton method, suppose the solution of the least square problem (21) is denoted by ζ(0)2\zeta_{(0)}^{2}, then as a good initial guess, we have

f(x,u(x))≈f(x,H2ζ(0)2(x))+f′(x,H2ζ(0)2(x))(u(x)−H2ζ(0)2(x)),f(x,u(x))\approx f(x,H^{2}\zeta_{(0)}^{2}(x))+f'(x,H^{2}\zeta_{(0)}^{2}(x))(u(x)-H^{2}\zeta_{(0)}^{2}(x)),

from which we obtain u(x)≈H2ζ(0)2(x)+H2ζ(x)u(x)\approx H^{2}\zeta_{(0)}^{2}(x)+H^{2}\zeta(x), where ζ\zeta satisfies

{[−(ΔH2)ζ−λf′(xj,H2ζ(0)2(xj))H2ζ](xj)=[ΔH2ζ(0)2(x)+λf(x,H2ζ(0)2)](xj),{xj}j=1mΩ2∈Ω,H2ζ(xj)=0,{xj}j=1mΩ2∈∂Ω,\begin{cases} [-(\Delta H^{2})\zeta-\lambda f'(x_{j},H^{2}\zeta_{(0)}^{2}(x_{j}))H^{2}\zeta](x_{j})=[\Delta H^{2}\zeta_{(0)}^{2}(x)+\lambda f(x,H^{2}\zeta_{(0)}^{2})](x_{j}), & \{x_{j}\}_{j=1}^{m_{\Omega}^{2}}\in\Omega,\\ H^{2}\zeta(x_{j})=0, & \{x_{j}\}_{j=1}^{m_{\Omega}^{2}}\in\partial\Omega, \end{cases}

where the equality is understood also in the least square sense. If this works, then we can repeat several times to further improve the solution’s accuracy. Inspired by the multigrid method, we define a new method, called hierarchical randomized neural networks, to efficiently and accurately find multiple solutions of the considered semilinear problem. We describe the method in Algorithm 3 for the two level version, which is very like the full multigrid method.

In the algorithm, for the initial solution, we can just take the trivial solution if it is. Otherwise, with an arbitrary initial guess, we need solve a nonlinear least square problem once using a randomized neural network. This process can be repeated to compute multiple solutions on a very fine network. And also due to its ability of improving accuracy, we can set a relatively large threshold RϵR_{\epsilon} on the first course network and use a relatively small one on the fine networks to identify more potential solutions.

Algorithm 3: Hierarchical randomized neural networks (Two levels)

Input: Two randomized neural networks with m1m^{1} and m2m^{2} hidden layers (m1≤m2m^{1} \leq m^{2}), mΩ1m^{1}_{\Omega} and mΩ2m^{2}_{\Omega} sampling points (mΩ1≤mΩ2m^{1}_{\Omega} \leq m^{2}_{\Omega}), respectively, and a given constant RεR_{\varepsilon}. And the set of finding solutions is denoted by UsU_{s}. Suppose an initial solution has been identified, denoted by ζ0\zeta_{0}, and Us={ζ0}U_{s} = \{\zeta_{0}\}.

  1. For currently new solution or just added one in UsU_{s}, perform the initialization in Algorithm 1 and then the optimization in Algorithm 2 on the coarse network with the width m1m^{1} using mΩ1m^{1}_{\Omega} sampling points. Here assume we find some approximations, the set of which is denoted by A\mathcal{A}.

  2. In order to enhance the solution’s accuracy, for each potential solution ζ1∈A\zeta^{1} \in\mathcal{A}, (a) we do the prolongation operator by solving the linear least square problem (21) and obtain an improved approximation ζ2\zeta^{2} by the Gauss-Newton method on the fine network with the width m2m^{2} using mΩ2m^{2}_{\Omega} sampling points. (b) Accept the improved approximation ζ2\zeta^{2} as the solution if the norm of residues is less than or equal to RεR_{\varepsilon}, and set Us=Us∪{ζ2}U_{s} = U_{s} \cup\{\zeta^{2}\}; Otherwise deny the approximation as one solution.

  3. For each new solution ζ2\zeta^{2}, we do the restriction operator by solving the linear least square problem (22) on the coarse network with the width m1m^{1} using mΩ1m^{1}_{\Omega} sampling points. And then back to step 1 to repeat the process to find more solutions.

Output: The multiple solutions in UsU_{s} with satisfied accuracy.

Numerical experiments

In this section, we carry out the numerical experiments using the proposed method. Here we use u(x)=u(x1)u(x) = u(x_{1}), u(x)=u(x1,x2)u(x) = u(x_{1}, x_{2}) and u(x)=u(x1,x2,x3)u(x) = u(x_{1}, x_{2}, x_{3}) when x∈Rx \in\mathbb{R}, x∈R2x \in\mathbb{R}^{2} and x∈R3x \in\mathbb{R}^{3}, respectively. All the experiments are implemented by Python on a desktop PC with an Intel Xeon E5-2666 V3 CPU (2.90 GHz) and 32 GB of RAM. The shallow neural networks use σ=tanh⁡(x+0.5)−tanh⁡(x−0.5)\sigma= \tanh(x+0.5)-\tanh(x-0.5) as the activation function. And the weights w1\mathbf{w}_{1} and bias b1\mathbf{b}_{1} of the neural networks are initialized by the scrambled Sobol sequences. That is, w1=s(2Q−1)\mathbf{w}_{1} = s(2\mathbf{Q}-1), b1=−(w1⊙Ξ)1\mathbf{b}_{1} = -(\mathbf{w}_{1} \odot\mathbf{\Xi})1, where Q\mathbf{Q} and Ξ\mathbf{\Xi} denote the two coordinate blocks of a scrambled Sobol point set, ⊙\odot denotes the element-wise product, and ss is the weight scaling parameter. In the coarse level, we set s=4s = 4, and in the refinement levels, we set s=8s = 8 to improve the expressivity of the neural networks. Unless otherwise specified, the structures of the shallow neural networks as well as the sampling points in different levels follow the numbers given in Table 1.

Level1D MM1D MΩM_{\Omega}2D MM2D MΩM_{\Omega}3D MM3D MΩM_{\Omega}
Coarse12040060020007202400
Level 124012001000400013004800
Level 240024001600800022008000
Level 36404000350012000350012000

Table 1. Numbers of random features and collocation points.

In the process of initializations, the parameters ϵ1\epsilon_{1} is set as 10−1110^{-11} at the coarse level and 5×10−165 \times10^{-16} at the refinement levels. In all levels, we employ K=6K = 6 and αinit=0.5,1,2,4,8\alpha_{\mathit{init}} = 0.5, 1, 2, 4, 8. The deflation parameters are set as θ=2\theta= 2 and σ=1\sigma= 1. In GDGN, we set Rε=0.1R_{\varepsilon} = 0.1 and employ a line search with an initial step size of α=1\alpha= 1, and the step size is halved at most 16 times until a reduction in the residual is achieved. Meanwhile, in order to test the accuracy of the proposed method, we use the following relative L2L^{2} errors for problems with exact solutions available and RMS errors for others,

Err⁡L2=∑i=1m∣u^(xi)−u(xi)∣2∑i=1m∣u(xi)∣2,Err⁡RMS=(1m∑i=1m∣F[u^](xi)∣2)1/2,(23)\operatorname{Err}_{L^{2}} = \frac{\sqrt{\sum_{i=1}^{m} \lvert\widehat{u}(x_i)-u(x_i)\rvert^{2}}}{\sqrt{\sum_{i=1}^{m} \lvert u(x_i)\rvert^{2}}}, \qquad\operatorname{Err}_{\mathrm{RMS}} = \left(\frac{1}{m}\sum_{i=1}^{m}\lvert\mathcal{F}[\widehat{u}](x_i)\rvert^{2}\right)^{1/2}, \tag*{(23)}

where u^\hat{u} and uu represent the numerical solutions and the exact solutions, respectively, F[u^]\mathcal{F}[\hat{u}] denotes the residual of the PDEs, and mm represents the total number of test points chosen uniformly in the domain. For the 1D, 2D and 3D problems, we set m=212m = 2^{12}, 2132^{13}, and 2142^{14}, respectively.

Example 1 (Bratu problem). We first consider the following Bratu problem,

{−u′′=λeu,x∈Ω,u=0,x∈∂Ω,(24)\begin{cases} -u^{\prime\prime} = \lambda e^u, & x \in\Omega, \\ u = 0, & x \in\partial\Omega, \tag*{(24)} \end{cases}

where λ=0.5\lambda= 0.5 and Ω=(−1,1)\Omega= (-1, 1). This problem has two exact solutions given by u=log⁡(z2sech⁡2(zx2))u = \log\left(z^2\operatorname{sech}^2\left(\frac{zx}{2}\right)\right), where zz takes either of the two positive roots of z=cosh⁡(z2)z = \cosh\left(\frac{z}{2}\right).

SolutionLevelCoarseLevel 1Level 2Level 3ErrL2Err_{L^2}
Solution 13.718e-051.276e-139.410e-146.097e-141.570e-15
Solution 21.545e-024.579e-132.643e-132.093e-134.060e-14

Table 2. Numerical errors of the multilevel solutions for Example 1.

Table 2 reports the training errors on different levels. It’s clearly observed that the multilevel refinement significantly reduces the PDE residuals, thus yielding the final relative L2L^2 errors of 1.57×10−151.57 \times10^{-15} and 4.06×10−144.06 \times10^{-14}, respectively. These results demonstrate the effectiveness of the proposed method in identifying multiple solutions and achieving high numerical accuracy. For completeness, the numerical solutions and the exact solutions as well as the residuals are presented in Figure 1.

Numerical and exact solutions and PDE residuals for Example 1

Figure 1. Numerical results for Example 1. (a) Comparison of numerical and exact solutions; (b) PDE residuals in different levels.

Example 2. Next we consider the following boundary value problem,

{(u′′)2−(1+ex)u′′+ex=0,x∈Ω,u=0,x∈∂Ω.(25)\begin{cases} (u^{\prime\prime})^2 - (1 + e^x)u^{\prime\prime} + e^x = 0, & x \in\Omega, \\ u = 0, & x \in\partial\Omega. \tag*{(25)} \end{cases}

where Ω=(0,1)\Omega= (0, 1), and exact solutions are u1=x2−x2u_1 = \frac{x^2-x}{2} and u2=ex−1+(1−e)xu_2 = e^x - 1 + (1-e)x.

Table 3 reports the training PDE residuals at different refinement levels for Example 2. We can see that the proposed method successfully identifies both solutions, with relative L2L^2 errors on the order of 10−1510^{-15}. Although the residuals increase slightly at Level 3, they remain at the order of 10−1210^{-12}–10−1310^{-13}. This may be caused by roundoff errors, as the residuals have already reached a very low level.

SolutionLevelCoarseLevel 1Level 2Level 3ErrL2Err_{L^2}
Solution 11.615e-032.924e-132.275e-134.666e-132.210e-15
Solution 24.429e-062.174e-121.768e-123.304e-122.060e-15

Table 3. Numerical errors of the multilevel solutions for Example 2.

Example 3. Here we consider the following nonlinear boundary value problem,

{(u′′)2+u′′−2=0,x∈Ω,u=0,x∈∂Ω,(26)\begin{cases} (u'')^2 + u'' - 2 = 0, & x \in\Omega,\\ u = 0, & x \in\partial\Omega, \tag*{(26)} \end{cases}

where Ω=(0,1)\Omega=(0,1). This nonlinear equation can be factorized as (u′′−1)(u′′+2)=0(u''-1)(u''+2)=0, which has two distinct classical solutions under the homogeneous Dirichlet boundary conditions, where u1=x2−x2u_1=\frac{x^2-x}{2} and u2=x(1−x)u_2=x(1-x). This example also provides a simple test of the proposed method’s ability to identify distinct solution branches.

From Table 4, we can see the training PDE residuals at different refinement levels for Example 3. In the coarse level, the residuals of two solutions are 2.329×10−92.329\times10^{-9} and 2.734×10−32.734\times10^{-3}. After the first refinement, both residuals decrease to 10−1210^{-12}, indicating a substantial improvement. Like the previous example, the residuals increase slightly at Level 3, which may be caused by the roundoff errors, as the solutions have already achieved very high accuracy. Moreover, the relative L2L^2 errors reach 10−1610^{-16}, approaching the machine precision. All of these results show the accuracy of the proposed multilevel method.

SolutionLevelCoarseLevel 1Level 2Level 3ErrL2Err_{L^2}
Solution 12.329e-093.830e-121.441e-122.011e-124.240e-16
Solution 22.734e-037.660e-122.882e-124.022e-124.100e-16

Table 4. Numerical errors of the multilevel solutions for Example 3.

Example 4. Given a non-negative parameter pp, We consider the following nonlinear boundary value problem

{u′′=u2(u2−p),x∈(0,1),u′(0)=0,u(1)=0,(27)\begin{cases} u''=u^2(u^2-p), & x\in(0,1),\\ u'(0)=0,\quad u(1)=0, \tag*{(27)} \end{cases}

Here in order to enforce the mixed boundary conditions, we employ the modified random features defined by ϕ(x)=(1−x2)σ(w1x2+b1)\phi(x)=(1-x^2)\sigma(w_1x^2+b_1). Meanwhile, unlike the previous examples, we set Rε=10R_\varepsilon=10, the coarse-level feature scale s=20s=20, and the refinement feature scales to (32,36,40)(32,36,40).

For this test case, as pointed out in [17], for any given parameter pp, there exist multiple solutions, and the number of solutions increases as pp goes large. So here we consider p=3,10,18p=3,10,18, respectively, to see the abilities of our method identifying the different solutions. As shown in Figure 2, the proposed method successfully identifies all nontrivial solutions for each pp, demonstrating its effectiveness in discovering multiple solutions.

Nontrivial numerical solutions of Example 4 for different $p$

Figure 2. Nontrivial numerical solutions of Example 4 for different pp.

Table 5 presents the numerical results for p=10p=10. The proposed method successfully identifies all three nontrivial solutions. Multilevel refinement significantly reduces the PDE residuals, with two solutions reaching the order of 10−1010^{-10}–10−1210^{-12}, while the third achieves 10−410^{-4}.

SolutionCoarseLevel 1Level 2Level 3ErrRMSErr_{RMS}
Solution 11.702e-039.768e-113.945e-101.980e-102.031e-10
Solution 24.030e-024.059e-121.883e-119.506e-129.737e-12
Solution 36.708e-029.573e-043.323e-042.999e-043.014e-04

Table 5. Numerical errors of the nontrivial multilevel solutions for Example 4 with p=10p = 10.

Example 5. In this case, we consider the following 2D nonlinear elliptic problem,

{−Δu=u3,x∈Ω,u=0,x∈∂Ω,(28)\begin{cases} -\Delta u=u^3, & x\in\Omega,\\ u=0, & x\in\partial\Omega, \tag*{(28)} \end{cases}

where Ω=(0,1)2\Omega= (0, 1)^2. This problem has a trivial solution u≡0u \equiv0 and infinitely many non-trivial solutions. Meanwhile, the set of the exact solutions is invariant under the dihedral group D4D_4, so that the rotation of the solution by integer multiple of 90 degree is still a solution.

In this case, we set coarse-level threshold Rϵ=5R_{\epsilon} = 5 to make more candidates for refinement. As shown in Table 6, although some coarse solutions have relatively large residuals, multilevel refinement reduces them by several orders of magnitude. Meanwhile, to further show the effectiveness of the multilevel method, we compare it with direct nonlinear

SolutionCoarseLevel 1Level 2Level 3ErrRMSErr_{RMS}
Solution 11.149e+003.831e-079.237e-092.127e-102.632e-10
Solution 24.675e+003.831e-079.237e-092.127e-102.632e-10
Solution 34.457e+003.291e-032.313e-041.038e-061.283e-06
Solution 44.467e+003.291e-032.313e-041.038e-061.283e-06
Solution 54.565e+004.054e-031.843e-041.094e-061.264e-06
Solution 64.575e+004.054e-031.843e-041.094e-061.264e-06
Solution 74.869e+005.839e-025.252e-034.932e-055.758e-05
Solution 83.003e+005.839e-025.252e-034.932e-055.758e-05
Solution 94.189e+001.020e-011.048e-021.362e-041.566e-04
Solution 104.399e+001.174e-011.163e-021.434e-041.579e-04
Solution 114.144e+001.174e-011.163e-021.434e-041.579e-04
Solution 124.486e+001.020e-011.048e-021.362e-041.566e-04

Table 6. Numerical errors of the nontrivial multilevel solutions for Example 5.

optimization at Level 2 (Here the direct nonlinear optimization at Level 3 would be computational costs and also may exceed the memory limit). So in order to make a fair comparison, all other procedures remain unchanged, including initialization and solution search algorithms.

Table 7 presents the results, which demonstrates that the proposed multilevel method not only increases the solution accuracy significantly using less than one tenth computational cost, but also is able to find more distinct solutions. This is particular important when we search for as many solution as possible. Lastly, we also show the structures of

MethodSolutionsMin. ErrRMS_{\mathrm{RMS}}Max. ErrRMS_{\mathrm{RMS}}Time (s)
Direct Level-282.803×10−42.803 \times10^{-4}6.141×10−36.141 \times10^{-3}94121
Multilevel122.724×10−102.724 \times10^{-10}1.659×10−41.659 \times10^{-4}7093

Table 7. Comparison results for Example 5.

the identified nontrivial solutions in Figure 3, from which we can see that all symmetric solutions can be identified. That is, as long as u(x1,x2)u(x_1, x_2) is a solution, so is the D4u(x1,x2)D_4u(x_1, x_2) for the dihedral group D4D_4. This is another evaluable point demonstrating the effectiveness of our proposed method.

Nontrivial numerical solutions of Example 5

Figure 3. Nontrivial numerical solutions of Example 5.

Example 6. We consider the following two-dimensional Lotka-Volterra competition system,

{−Δu=u(30−u−0.2v),x∈Ω,−Δv=v(30−0.2u−v),x∈Ω,u=v=0,x∈∂Ω,(29)\begin{cases} -\Delta u = u(30-u-0.2v), & x \in\Omega, \\ -\Delta v = v(30-0.2u-v), & x \in\Omega, \\ u = v = 0, & x \in\partial\Omega, \tag*{(29)} \end{cases}

where Ω=(0,1)2\Omega=(0,1)^2. This problem has four nonnegative solutions, including a trivial solution, two semitrivial solutions, and one positive coexistence solution. Each component uses the same number of random features as in the previous 2D examples, and the two equations are solved simultaneously.

As shown in Table 8, the proposed method again successfully identifies all four nonnegative solutions. The multilevel refinement again reduces the PDE residuals to the order of 10−810^{-8}, with ErrRMS\mathrm{Err}_{\mathrm{RMS}} of order 10−710^{-7}. All of these results show the effectiveness of our proposed method again for the system of nonlinear problems.

SolutionCoarseLevel 1Level 2Level 3ErrRMS\mathrm{Err}_{\mathrm{RMS}}
Solution 11.505e-039.159e-075.014e-077.607e-081.188e-07
Solution 22.817e-049.159e-075.014e-077.607e-081.188e-07
Solution 33.017e-031.079e-065.910e-078.965e-081.400e-07

Table 8. Numerical errors of the nontrivial multilevel solutions for Example 6.

Example 7. Here we consider the following two-dimensional stationary Allen–Cahn equation,

−εΔu+u3−u=0,(x,y)∈(0,1)2u(x,0)=u(x,1)=−4x(1−x),x∈[0,1]u(0,y)=u(1,y)=4y(1−y),y∈[0,1](30)\begin{aligned} -\varepsilon\Delta u + u^{3} - u &= 0, && (x,y) \in(0,1)^{2}\\ u(x,0) = u(x,1) &= -4x(1-x), && x \in[0,1]\\ u(0,y) = u(1,y) &= 4y(1-y), && y \in[0,1] \tag*{(30)} \end{aligned}

where ε=0.01\varepsilon= 0.01. Different from the previous examples, this problem is subject to nonhomogeneous Dirichlet boundary conditions. So in this case, the soft constraint is used to handle the nonhomogeneous boundary conditions.

From Figure 4, we can see that our method successfully identifies three distinct solutions. Table 9 presents the PDE residuals at different refinement levels. The results shows that without requiring any prior knowledge of the solution structures, our method once again successfully discovers multiple solutions and achieves high accuracy. The validation RMS errors of the three solutions are 3.892×10−83.892 \times10^{-8}, 4.090×10−84.090 \times10^{-8}, and 3.981×10−83.981 \times10^{-8}, respectively. These results further demonstrate the effectiveness and accuracy of the proposed method in solving nonlinear PDEs with multiple solutions.

SolutionCoarseLevel 1Level 2Level 3ErrRMS\mathrm{Err}_{\mathrm{RMS}}
Solution 17.938e-035.176e-071.166e-072.535e-083.892e-08
Solution 23.812e-023.044e-062.553e-072.580e-084.090e-08
Solution 38.285e-033.717e-062.085e-072.600e-083.981e-08

Table 9. Numerical errors of the multilevel solutions for Example 7.

Three contour plots showing the unstable, positive stable, and negative stable solutions

Figure 4. Results of Example 7. Here (a) shows the unstable solution, while (b) and (c) show the positive and negative stable solutions, respectively.

Example 8. We lastly consider the following three-dimensional Allen-Cahn equation

{−Δu=λu−u3,x∈Ω,u=0,x∈∂Ω,(31)\begin{cases} -\Delta u = \lambda u - u^3, & x \in\Omega,\\ u = 0, & x \in\partial\Omega, \tag*{(31)} \end{cases}

where Ω=(0,π)3\Omega= (0,\pi)^3 and λ=5\lambda= 5. For λ=5\lambda= 5, this problem has three solutions: the trivial solution u=0u = 0 and a pair of symmetric positive and negative solutions. As shown in Figure 5, the proposed method successfully identifies all nontrivial solutions. And Table 10 presents the training loss and validation Err⁡RMS\operatorname{Err}_{\mathrm{RMS}}. From the table, it’s clear that the multilevel refinement reduces the PDE residuals to 3.033×10−53.033 \times10^{-5}, with Err⁡RMS\operatorname{Err}_{\mathrm{RMS}} of 3.704×10−53.704 \times10^{-5} for both nontrivial solutions. Since these two nontrivial solutions are uu and −u-u, the symmetry known from the equation, and our method seems exactly preserve this hidden symmetry, which explaining why except the coarse level, it seems we have exactly the same residuals for each refined levels and also exact the same RMS for the obtained different solutions lastly.

Nontrivial numerical solutions of Example 8 on the plane z = π/2

Figure 5. Nontrivial numerical solutions of Example 8 on the plane z=π2z = \frac{\pi}{2}. Here (a) and (b) show the negative and positive solutions, respectively.

SolutionCoarseLevel 1Level 2Level 3Err⁡RMS\operatorname{Err}_{\mathrm{RMS}}
Solution 12.088e-035.064e-041.107e-043.033e-053.704e-05
Solution 26.069e-035.064e-041.107e-043.033e-053.704e-05

Table 10. Numerical errors of the nontrivial multilevel solutions for Example 8.

Conclusion

This paper was devoted to developing the method for efficiently and accurately finding multiple solutions of semilinear elliptic problems. The improvements were done mainly from three different aspects, initializations, optimization, and the multilevel technique for accelerations and enhancing solutions’ accuracies. Local error estimate of a particular solution satisfying some conditions were also considered in terms of both numbers of the neurons in the hidden layer and the sampling points. Meanwhile, the numerical tests on several examples with or without exact solutions not only demonstrated the effectiveness of the proposed method (the solution accuracy reaching the machine accuracy for the best case, while the computational cost being reduced to less than 8% for the tested case), but also preserved the inherent symmetries of multiple solutions, latter of which is significant in some applications.

For the proposed method, high dimensional problems are not tested yet, which will be considered in the future. Meanwhile, how to fulfill the proposed algorithm in a cluster using some parallel techniques to identify multiple solutions of some large-scale engineering problems is also worth to consider. Lastly, as the first paper in a series of work, we will continue to work on semilinear problems with exponential nonlinearity or others, to see if further theoretical analysis on solutions can be used to alleviate the computation to find more solutions.

Acknowledgments

The work was supported by the Natural Science Foundation of China (12671352), the Research Foundation and the Young Core Instructor Project of Education Department of Hunan Province (25A0167, 25B0011, and HNJG-20230343), the Major Scientific and Technological Innovation Platform Project of Hunan Province (2024JC1003), and the Natural Science Foundation of Hunan Province (2025JJ50013). We are also grateful to the High Performance Computing Center of Central South University for partial support of this work.

Declaration of interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work.

References

  1. [1]D. Costa, An Invitation to Variational Methods in Differential Equations, Birkhäuser, Boston, 2007.DOI
  2. [2]L. Ambrosio, X. Cabré, Entire solutions of semilinear elliptic equations in ℝ³ and a conjecture of De Giorgi, Journal of the American Mathematical Society 13 (4) (2000) 725–739.DOI
  3. [3]M. Pino, M. Kowalczyk, J. Wei, On De Giorgi’s conjecture in dimension N ≥ 9, Annals of Mathematics 174 (2011) 1485–1569.DOI
  4. [4]M. Tang, Uniqueness of bound states to Δu − u + |u|^{p−1}u = 0 in ℝⁿ, n ≥ 3, Inventiones Mathematicae 243 (2026) 245–291.DOI
  5. [5]A. Brandt, Multilevel adaptive solutions to boundary value problems, Mathematics of Computation 31 (1977) 333–390.DOI
  6. [6]G. Timmermann, A cascadic multigrid algorithm for semilinear elliptic problems, Numerische Mathematik 86 (2000) 717–731.DOI
  7. [7]M. Raissi, P. Perdikaris, G. Karniadakis, Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations, Journal of Computational Physics 378 (2019) 686–707.DOI
  8. [8]J. Ying, J. Li, Q. Liu, Y. Chen, Improved multi-scale fusion network for solving non-smooth elliptic interface problems with applications, Applied Mathematical Modelling 132 (2024) 274–297.DOI
  9. [9]J. Ying, J. Hu, Z. Shi, J. Li, An accurate and efficient continuity-preserved deep learning method for elliptic interface problem, SIAM Journal on Scientific Computing 46 (5) (2024) C633–C657.
  10. [10]M. Lai, Y. Song, X. Yuan, H. Yue, T. Zeng, The hard-constraint PINNs for interface optimal control problems, SIAM Journal on Scientific Computing 47 (3) (2025) C601–C629.arxiv.org/abs/2308.06709
  11. [11]Z. Zou, Z. Wang, G. Karniadakis, Learning and discovering multiple solutions using physics-informed neural networks with random initialization and deep ensemble, Proceedings of the Royal Society A 481 (2325) (2025) 20250205.
  12. [12]A. Riley, M. Webb, M. Baker, Deflation techniques for finding multiple local minima of a nonlinear least squares problem, SIAM Journal on Scientific Computing 47 (5) (2025) A2963–A2987.arxiv.org/abs/2409.14438
  13. [13]M. Grossi, I. Ianni, P. Luo, S. Yan, Non-degeneracy and local uniqueness of positive solutions to the Lane-Emden problem in dimension two, Journal de Mathématiques Pures et Appliquées 157 (2022) 145–210.arxiv.org/abs/2102.09523
  14. [14]J. Li, H. Mei, Q. Ou, H. Wang, J. Ying, Neural networks for solving elliptic problems: analysis and adaptivities, Applied Mathematical Modelling 155 (2025) 116716.DOI
  15. [15]J. Li, H. Mei, H. Wang, J. Ying, Shallow neural networks for solving nonuniform size-modified Poisson-Boltzmann equations, Applied Numerical Mathematics 225 (2026) 128–145.DOI
  16. [16]R. Bi, W. Deng, Adaptive randomized neural networks with locally activation function: Theory and algorithm for solving PDEs, arXiv preprint arXiv:2604.08869 (2026).arxiv.org/abs/2604.08869
  17. [17]Y. Huang, W. Hao, G. Lin, Hompinns: Homotopy physics-informed neural networks for learning multiple solutions of nonlinear elliptic differential equations, Computers & Mathematics with Applications 121 (2022) 62–73.DOI
  18. [18]S. Disarò, R. Maity, A. Bacho, Deflation-PINNs and Deflation-Deep-Ritz: Multi-Solution Discovery, Certification, and Refinement for Nonlinear PDEs, Computer Methods in Applied Mechanics and Engineering 464 (2027) 119476.DOI

Paper details

vlnc:W_rmjumsza
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

Not recorded for this paper

View statement
Looking for related papers…
Contents