Deep neural network approximation for high-dimensional elliptic PDEs with boundary conditions
Philipp Grohs, Lukas Herrmann
Introduction
The approximation of solutions to partial differential equations (PDEs) in high dimensions by classical algorithms such as finite difference or finite element methods is burdened by the so called curse of dimension. This means that the computational cost to achieve a certain accuracy depends exponentially on the dimension of the domain with respect to the reciprocal of the accuracy as base. This is for example improved in the case of so called sparse tensor discretizations. There the logarithm of the reciprocal of the accuracy is the base, but the dependence with respect to the dimension is still exponential . This curse of dimension does not appear in Monte Carlo methods, which are stochastic methods and converge in the root mean squared sense. These methods are however typically restricted to evaluating the solution of a given PDE at a single point rather than the full computational domain. The approximation of solutions to PDEs in high dimensions on the full computational domain hence remains a challenging problem.
Deep neural networks (DNNs) emerge as an approximation architecture with application in various areas of function approximation theory, which are in many cases as good as the established state of the art method, cf. . They are also used in the context of uncertainty quantification to approximate mappings that result in parametrized physical systems, where each realization is computationally expensive and treated as an offline cost, cf. . The weights of DNNs are usually obtained by approximately solving an optimization problem with a given loss functional defined with computed training data, see for example .
In particular we establish the first result on the approximation of solutions to PDEs with boundary conditions without curse of dimension using DNNs. More precisely, we consider the Poisson equation
We explicitly establish the required DNN approximation property for for a cube or a Euclidean ball. On the way to this result we derive a novel DNN approximation for the square root function at a spectral rate that may be of independent interest, see Lemma A.1. There has been another approach to approximate the Euclidean norm by DNNs based on the observation that the Euclidean norm is a rotation symmetric function, cf. .
Theorem 4.1 is similar in spirit to other existing works where Monte Carlo methods have been used to show existence of the DNN weights, cf. . The approaches and techniques in the presented manuscript differ significantly for the reason that the behavior of the solution near the boundary needs to be taken into account, which complicates the analysis.
The structure of the manuscript is as follows. In Section 2, we briefly recapitulate basic facts on on DNNs. In Section 3, we introduce the walk-on-the-sphere algorithm and prove basic properties. It serves as a tool in Section 4, where we show the existence of DNNs that approximate the solution to certain elliptic PDEs with boundary conditions.
Neural networks
The following lemma is [35, Proposition 3].
The following two lemmas are versions of [7, Lemmas II.5 and II.7].
Throughout this manuscript, we will construct ReLU DNNs mostly by composition and addition of already existing ReLU DNNs. The asserted upper bounds in later parts of the manuscript on the size of certain DNNs then result by Lemmas 2.2 and 2.3.
Basics on the walk-on-the-sphere algorithm
In this work we consider the following elliptic PDE with Dirichlet boundary conditions,
Furthermore, for any define the subdomain of by
This is explicitly [30, Proposition 3.1.8]. ∎
We recall the fact that for a one dimensional Brownian motion starting at zero, the expected time such that it leaves the interval for is equal to , see [30, Proposition 2.2.20]. Thus the claimed estimate follows. ∎
The following result is also implied by [27, Theorems 9.13 and 9.17]. We give a proof to establish some techniques to be used throughout this section.
We will first establish a formula of the type asserted in this proposition in the interior of and then extend it to also incorporate the boundary.
The assumed convexity of the domain implies that all boundary points are regular in the sense of ; for details see [11, pp. 25, 27]. In conjunction with [11, Theorem 4.3], it follows that the solution to (2) exists and is unique. More precisely by [11, Lemma 4.2], is twice continuously differentiable in .
Let be arbitrary. Recall . Suppose that is sufficiently small such that is not empty. By Ito’s formula (see for example [31, Theorem 17.8]), for every
We seek to study the limit . The solution is Lipschitz continuous on the closure with Lipschitz constant , which may be concluded by [5, Theorem 1.4]. There, the statement of [5, Theorem 1.4] is applied to with right hand side . The Lipschitz continuity of yields
cf. [24, Corollary 2.46 and Theorem 2.48], we obtain by Lemma 3.2
We define the discrete processes , , and , , which also tacitly depend on an initial starting point . Let and
The process , , is related to , as follows. Define and . For every ,
Note that and have the same distribution, . Define
Let the assumptions of Proposition 3.3 be satisfied. There holds that
The strong Markov property of the Brownian motion yields
The assertion follows by inserting the previous equality into (11) with and and Proposition 3.3 using that and have the same distribution. ∎
Note that the functional denotes the solution to the Poisson equation with homogeneous Dirichlet boundary conditions on the unit ball evaluated at the origin. An explicit formula for is a classical result by Boggio , see also . Specifically by [8, Lemma 2.27] for ,
For every , let us define the random index by
As a consequence of Lemma 3.4 and its proof, see (11),
The first assertion (13) follows by Lemma 3.2. To show the second assertion (14), we may apply Ito’s lemma (see for example [31, Theorem 17.8]), which implies
The statement of the following lemma is in principle known. We provide a proof for the convenience of the reader.
We recall that for such that , . Thus, by the Markov property and Lemma 3.1, for every ,
Since for every (using convexity of ), it holds that . By Lemma 3.1,
which concludes the proof of this lemma. ∎
Approximation by deep neural networks without curse of dimension
Recall that we aim to approximate solutions to the prototypical elliptic PDE
by DNNs with ReLU activation function. The basics on stochastic sampling methods introduced in Section 3 shall serve as tools in the proofs of this section. The following theorem constitutes our main result.
Let the assumptions of Proposition 3.3 be satisfied. Suppose that for every , there exist ReLU DNNs , , and such that
and , , and for some which do not depend on . Let additionally and be Lipschitz continuous on . For every , there exists a ReLU DNN such that
with . The tacit constants in the Landau symbols depend on , , , the Lipschitz constants of and , and on .
The proof of Theorem 4.1 will be postponed to the end of this section after two intermediate propositions have been proven.
Suppose that , can be realized by a ReLU DNN , and for any there exists a ReLU DNN such that
For every , there exists a ReLU DNN such that
Furthermore, there exist , , , and unit vectors , , , such that for every ,
The accuracy of the ReLU DNN satisfies . The numbers , , satisfy that
The constants only depend on and on .
Let and be arbitrary such that is not empty, which will be determined in the following. Define the random variable . By Proposition 3.5,
The assumed approximability of by the ReLU DNN results in
where , , are mutually independent and have the same distribution as . Recall that , . It is well-known that that for any square integrable
Thus, by (19), (20), (22), and by Lemma 3.6
In conjunction with the previous estimate, the Jensen inequality and Lemma 3.6, imply
Then, the elementary estimate that for any positive numbers , , implies
We choose the parameters and . The assertion (18) follows by inserting the expression for from (23) into the previous estimate. Define the ReLU DNN by its realization
Then, as a consequence of (24) there exists a constant , which only depends on , , and on such that
We choose , which proves the assertion of this proposition. ∎
Let . Suppose that is Lipschitz continuous on , can be realized by a ReLU DNN , and for any there exists a ReLU DNN such that
For every , there exists a ReLU DNN such that
Furthermore, there exist , , unit vectors , and elements of the unit ball , ,, such that for every ,
The constants depend only on and on .
Let and be arbitrary and sufficiently small. The value of these two numbers will be chosen at a later stage in the following proof. The effect of the approximation of the right hand side by is estimated by Lemma 3.1, i.e.,
where the domain may be embedded into a ball with radius in order to apply Lemma 3.1.
Define the random number . By Proposition 3.5,
where we inserted the relation and the value for the volume of the unit -ball, i.e., . Note that denotes the measure of the dimensional unit sphere. Thus,
The Monte Carlo estimators and are independent and also independent from the sequence of random directions , , introduced in (6).
We estimate by (28) that for every ,
where we used the indenpendence of from , . Furthermore, by (5) and Lemma 3.1 for every ,
where we recall that depends on via , , and has the same distribution as , . Thus,
We combine the estimates (30), (31), and (32), which results in
where the latter estimate follows with the Jensen inequality and the elementary estimate that for any positive numbers , , see the derivation of (25).
Let us define the DNN by its realization, i.e., for every
In this proof, we also include the approximation of the distance function to the boundary by a ReLU DNN , where is still to be chosen. We may restrict ourselves to the case . For , the statement follows by [35, Theorem 1], since the solution is Lipschitz continuous on as observed in the proof of Proposition 3.3 and may be extended Lipschitz-continuously to a suitable box that is a superset of . For every , we define the process , , by
The assumed accuracy of the ReLU DNN implies
where we used that the distance function is Lipschitz continuous with Lipschitz constant equal to one. Thus, for every ,
By Proposition 4.2, for every the function satisfies that
Also according to Proposition 4.2, depends on weight parameters , , , and unit vectors , . However, does not constitute a ReLU DNN here, since the assumption on the distance function in Proposition 4.2 is weakened in the theorem to be proved here. Define the ReLU DNN by its realization
where denotes the Lipschitz constant of . By the triangle inequality and the estimates (38) and (39)
We equilibrate the error contributions by the choices and , where is the constant from (18). Thus,
where denotes the Lipschitz constant of . By Proposition 4.3, for every the function satisfies that
Also according to Proposition 4.3, depends on weight parameters , , unit vectors , and elements of the unit ball , , However, does not constitute a ReLU DNN here, since the assumption on the distance function in Proposition 4.3 is weakened in the theorem to be proved here. Recall and . The estimates (41) and (42) imply for ,
Define the ReLU DNN by its realization
By the triangle inequality, (43), and (44)
We define the ReLU DNN by
and chose the remaining two parameter and such that and . Thus, by the estimates (40) and (45)
where are generic constants. The size of the ReLU DNN will be asymptotically dominated by the size of the ReLU DNN . ∎
Thus, we choose and , which implies that has accuracy and , see Lemma A.1 and [35, Proposition 2]. Since here , Theorem 4.1 holds without the curse of dimension.
Conclusions
Appendix A Neural network approximation of the square root
In this appendix we provide a constructive DNN approximation to the square root function that converges at a spectral rate. We use this result to establish spectral DNN approximability of the distance function of Euclidean balls but the result may be of independent interest.
For every , there exists a ReLU DNN such that
with .
Thus, for every , as . However, this convergence is not uniform with respect to . For that reason, we introduce a shift by for some . Specifically, we set for every ,
The condition is satisfied if , where we used the fact that . Since for any ,
The following fact, which follows by an elementary application of the fundamental theorem of calculus,
where . Indeed, by (52) for ,
Another tool is the following estimate for any ,
where and we used the transformation . The estimate of this integral implies
where we used that for every (assuming ). Thus,
In conclusion, combining with (51) we have estimated that
for .
The choice implies that