Next Article in Journal
Vehicle Make and Model Recognition as an Open-Set Recognition Problem and New Class Discovery
Previous Article in Journal
A New Method for Improving Inverse Finite Element Method Material Characterization for the Mooney–Rivlin Material Model through Constrained Optimization
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Solve High-Dimensional Reflected Partial Differential Equations by Neural Network Method

1
School of Government, Beijing Normal University, Beijing 100875, China
2
School of Information Science and Engineering, Shandong Agriculture and Engineering University, Jinan 251100, China
3
School of Science, Beijing University of Posts and Communications, Beijing 100876, China
*
Author to whom correspondence should be addressed.
Math. Comput. Appl. 2023, 28(4), 79; https://doi.org/10.3390/mca28040079
Submission received: 15 May 2023 / Revised: 20 June 2023 / Accepted: 22 June 2023 / Published: 24 June 2023
(This article belongs to the Topic Numerical Methods for Partial Differential Equations)

Abstract

:
Reflected partial differential equations (PDEs) have important applications in financial mathematics, stochastic control, physics, and engineering. This paper aims to present a numerical method for solving high-dimensional reflected PDEs. In fact, overcoming the “dimensional curse” and approximating the reflection term are challenges. Some numerical algorithms based on neural networks developed recently fail in solving high-dimensional reflected PDEs. To solve these problems, firstly, the reflected PDEs are transformed into reflected backward stochastic differential equations (BSDEs) using the reflected Feyman–Kac formula. Secondly, the reflection term of the reflected BSDEs is approximated using the penalization method. Next, the BSDEs are discretized using a strategy that combines Euler and Crank–Nicolson schemes. Finally, a deep neural network model is employed to simulate the solution of the BSDEs. The effectiveness of the proposed method is tested by two numerical experiments, and the model shows high stability and accuracy in solving reflected PDEs of up to 100 dimensions.

1. Introduction

As a significant mathematical tool for characterizing singularities, the reflection theory and reflected PDEs have a broad range of applications in various fields, including physics, engineering, and finance. These applications encompass describing materials with memory and heredity, determining system equilibrium points, and pricing financial assets. Solving reflected PDEs can be considered as a Skorohod problem [1]. The reflection term in these equations restricts the solution above an obstacle and represents the minimum external force that prevents the solution from breaching the obstacle [2,3]. Since it is challenging to find an explicit solution to reflected PDEs, the development of efficient numerical algorithms is a crucial area of research.
There are many numerical methods for solving PDEs without reflection. For low-dimensional PDEs, practical algorithms include the neural network-based method [4], finite element method [5,6], finite difference method [7,8,9], Monte Carlo approximation method [10,11], spectral Galerkin approximation method [12,13], and sparse grid approximation method [14,15]. These methods have been proven effective and stable in a large body of literature. However, when it comes to high-dimensional problems, these traditional methods are often not applicable due to the ”dimensional curse” [16], which causes an exponential increase in computational complexity and rapid reduction in stability and efficiency as dimension increases. Although the Monte Carlo method can overcome the “dimensional curse”, it can only approximate the solution of an isolated point in space. Recently, with the development of deep learning technology, more and more deep learning-based numerical methods have been developed for solving PDEs, successfully overcoming the “dimensional curse”. For linear high-dimensional PDEs, Beck et al. transformed the problem into a stochastic control problem and designed a deep neural network-based calculator [17], while Becker et al. used a multi-layer Picard iteration method [18]. For high-dimensional nonlinear PDEs, advanced methods include the deep Galerkin method, deep splitting approximation method, nonlinear Picard iteration method and deep BSDE method [19,20,21,22,23,24]. Artificial neural network-based algorithms have demonstrated impressive computational capabilities in solving complex problems, including multi-parameter low-dimensional problems and high-dimensional problems [25,26]. Despite the significant progress made in solving high-dimensional PDEs, there remains a gap in research on the numerical solution of high-dimensional reflected PDEs. To address reflected problems, Cagnetti et al. utilized the adjoint method to examine the Hamilton–Jacobi equation obstacle problem [3], and Côme et al. applied deep learning algorithms to solve nonlinear parabolic reflected PDEs [4]. However, only the RDBDP algorithm based on deep neural networks proposed by Côme et al. [4] can currently solve high-dimensional reflected PDEs with dimensions up to 40. Other methods that have proven successful in solving high-dimensional PDEs are not capable of handling corresponding reflected problems.
The aim of this study is to present a novel numerical algorithm, known as the Deep C-N method, for solving high-dimensional parabolic reflected PDEs. Through the conversion of the problem into reflected BSDEs and penalization method, the reflection term is effectively incorporated into the numerical solution. The use of deep neural networks in the Deep C-N method provides a flexible and powerful approach to tackle complex and high-dimensional problems. This work builds upon previous research and expands upon the existing methods for solving reflected PDEs. This method is an improvement over the traditional deep neural network methods, which are used to solve PDEs and reflected PDEs. The key contribution of this work lies in the following aspects: 1. By utilizing the penalization method, the reflection term is approximated, rather than being directly simulated, as in Côme et al. [4]. 2. In comparison to the Deep BSDE method proposed by E et al. [22], Beck et al. [23], and Han et al. [24], the proposed Deep C-N method demonstrates a higher approximation accuracy in solving high-dimensional PDEs without reflection. This is evident from the numerical results obtained from the Allen–Cahn equation, which was tested up to 400 dimensions. 3. The experiment of pricing American options confirms that the Deep C-N method has the capability of solving reflection problems in higher dimensions compared to the RDBDP method proposed by Come et al. [4]. The test was conducted up to 100 dimensions.
The contents of this paper are structured as follows. Section 2 presents the formulation of the reflected PDEs, followed by a demonstration of the conversion of the reflected PDEs into BSDEs. Section 3 provides a comprehensive overview of the Deep C-N method, including its operational procedures and numerical experiments, which demonstrate its significant properties through the examination of high-dimensional Allen–Cahn and American option equations. Finally, Section 4 concludes the paper by summarizing the key findings and outlining potential avenues for future research.

2. Approximating Schemes for Reflected PDEs

In this section, we propose a numerical algorithm named the Deep C-N method for solving the obstacle problems for high-dimensional non-linear parabolic PDEs. Generally, an obstacle problem for PDEs can be totally solved via three steps based on the above method. In the first step, a connection will be built between as the solution for obstacle problems for PDEs and that of the corresponding reflected BSDEs by the non-linear reflected Feynman–Kac formula. As a result, the original problems for PDEs are converted to problems for RBSDEs. In the second step, the problems for RBSDEs will be transformed further. In this step, the issue about RBSDEs will be considered as an optimal stopping-time problem via the penalty approach. Consequently, our goal is settling a stochastic control problem. In the final step, the optimal stopping-time problem will be regarded as a deep learning issue based on the neural network model. Specifically, the neural network model will act on the policy function Z, which represents the gradient of the solution for the optimal stopping-time problem.

2.1. Nonlinear Parabolic Reflected PDEs

The PDEs with reflection can be presented by nonlinear parabolic PDEs with minimum constraints. The so-called reflection term forces the solution of the equation to be non-negative, and the reflected part is the minimum power that prevents the solution from leaving the non-negative interval. That is, the reflected PDEs are essentially obstacle problems, and the solutions have only two states: located over the obstacle or on the obstacle. In the beginning, we have some assumptions for the basic parameters and functions which are involved in this problem. Let T 0 , , d N , f t , x , y , z is a given non-linear function defined by f : [ 0 , T ] × R d × R × R d R , g ( x ) is a given continuous function defined by g : R d R . In this paper, we describe the continuous obstacle by function h t , x , and the reflected problems for PDEs can be presented by the following scheme:
m i n u t , x h t , x , u t L t u t , x f t , x , u t , x , u σ t , x = 0
where t , x 0 , T × R d , L t = 1 2 i , j = 1 d ( σ σ * ( t , x ) ) i , j 2 x i x j + i = 1 d b i ( t , x ) x i .
The terminal value of the solution for Equation (1) satisfies u T , x = g x , x R d . For Equation (1), there are three further hypotheses as follows:
Hypothesis 1 (H1). 
b : [ 0 , T ] × R d R d , σ : [ 0 , T ] × R d R d × d  are both continuous functions and satisfy:
b t , x b ( t , y ) + σ t , x σ ( t , y ) C 1 x y ;
b t , x 2 + σ t , x 2 C 2 2 ( 1 + x 2 ) .
Hypothesis 2 (H2). 
h : [ 0 , T ] × R d R  is a continuous function related to parameters t and x. Meanwhile, it satisfies:
h ( t , x ) C 3 ( 1 + x l )
where  h t , x 0 , T × R d , l N + , h T , x g x , x R d .
Hypothesis 3 (H3). 
f : [ 0 , T ] × R d × R × R d R  is a continuous function, especially,
f ( t , x , 0 , 0 ) C ( 1 + x l )
where l is a positive constant.
f t , x , y , z f ( t , x , y , z ) C 4 ( y y + z z )
where  t [ 0 , T ] , x , z , z R d , y , y R .
Remarks. 
C((∙)) > 0 are constants from (H1) to (H3).
Proposition 1. 
(Theorem 8.5, 8.6 in [2]) It has been proven that the solution u(t,x) for Equation (1) is existing and unique. Furthermore, it is a function with up to polynomial growth.

2.2. From Reflected PDEs to Related Reflected BSDEs

In this subsection, we build a connection between the solution of reflected PDEs and reflected BSDEs via the nonlinear reflected Feynman–Kac formula.
Let ( Ω , F , P ) be a given probability space, B : [ t , T ] × Ω R d be a d-dimensional standard Brownian motion in this space, F be a normal filtration set generated by B , and continuous functions b ( t , x ) and σ ( t , x ) satisfy the hypothesis (H1) in Section 2.1. Now, consider a stochastic process with d-dimensional, X s : [ t , T ] × Ω R d satisfies:
X t = x + 0 t b ( r , X r ) d r + 0 t σ ( r , X r ) d B r
From [1], under the assumptions (H1)–(H3), the reflected BSDE (3) has a unique solution represented by a triple Y t , Z t , K t [1].
Y t = g X T + t T f ( r , X r , Y r , Z r ) d r + K T K t t T Z r , d B r t T Y S h ( s , X s ) d K s = 0 , 0 t T
Moreover, the solution of Equation (3) satisfies the following three properties:
(C1) E t T Y s 2 + Z s 2 d s < ;
(C2) Y t h t , X t , 0 < t T ;
(C3) K t is continuous and increasing with K 0 = 0 .
Proposition 2. 
(Section 8 in [2]) Under the assumptions (H1)–(H3), a special relationship between reflected PDEs and reflected BSDEs is established by a classic formula, namely, the Feyman–Kac formula:
u t , x = Y t
u σ t , x = Z t
where 0 t T , x R d , u ( t , x ) C 0 , T × R d .
Consequently, from the above discussions, we transform the reflected problems for PDEs to related reflected problems for BSDEs. That is, u t , x can be simulated by Y t . We approximate the reflection term K T K t via the penalization method [2]:
K T K t = m t T Y r h r , X r d r
where 0 t T , m + . Therefore, the reflected BSDE (3) can be approximated by the following scheme:
Y t = g X T + t T f Y r , Z r d r + m t T Y r h r , X r d r t T Z r , d B r
Obviously, Equation (5) is a general BSDE without any reflection. We use a binary group Y t m , Z t m to illustrate the solution of Equation (5). Then, Equation (1) can be solved approximately by Equation (5). That is, the solution of reflected PDEs can be presented effectively by the solution of related BSDEs. In this work, we simulate the gradient of the solution u t , x via a deep neural network rather than solving u t , x directly. The final numerical approximations can be calculated by a series of explicit iteration formats. Details of the whole process will be described in Section 3.

2.3. Discretizing via Two Approaches

From Proposition 2, the goal of approximating u ( t , x ) can be transformed into approximations for Y t . Since the problem we are interested in is the initial value of u ( t , x ) , our goal now is simulating Y 0 by the deep learning algorithm based on the deep neural network. To achieve this goal, we discretize Equations (2) and (5) in time dimension by the Euler and C-N schemes, separately. Firstly, we show some general instructions about these two schemes: the time span is a finite interval from 0 to T, 0 = t 0 < t 1 < < t N = T , with N N + .
X t n + 1 X t n b t n , X t n t n + σ ( t n , X t n ) B n
K t n + 1 K t n m Y t n , X t n h ( t n , X t n ) t n
Y t n + 1 , X t n + 1 Y t n , X t n f t n , X t n , Y t n , X t n , u σ t n , X t n t n m Y t n , X t n h t n , X t n t n + x u σ t n , X t n , B t n + 1 B t n
where t n = t n + 1 t n , B n = B t n + 1 B t n
X t n + 1 X t n + 1 2 b t n , X t n + b t n + 1 , X t n + 1 t n + 1 2 σ t n , X t n + σ ( t n + 1 , X t n + 1 ) B n
K t n + 1 K t n 1 2 m Y t n , X t n + Y t n + 1 , X t n + 1 2 h t n , X t n t n
Y t n + 1 Y t n 1 2 f t n , X t n , Y t n , Z t n + f t n + 1 , X t n + 1 , Y t n + 1 , Z t n t n 1 2 m Y t n , X t n + Y t n + 1 , X t n + 1 2 h t n , X t n t n + x u σ t n , X t n , B t n + 1 B t n
Since this discrete format is implicit, i.e., the value at the latter moment cannot be described by a deterministic formula for the value at the previous moment, then next, we perform a second iteration to obtain the explicit format at any time interval t n , t n + 1 , n = 0,1 , , N 1 . Let s = 0,1 , 2 , , ε = 10 6 , for any time interval t n , t n + 1 , we have:
X t n 0 X t n 1 X t n s X t n + 1
K t n 0 K t n 1 K t n s K t n + 1
Y t n 0 Y t n 1 Y t n s Y t n + 1
when s = 0 :
X t n + 1 s = X t n
Y t n + 1 s = Y t n
when s = 1,2 , :
X t n + 1 s X t n + 1 2 b t n , X t n X t n + X t n + 1 s 1 t n + 1 2 σ t n , X t n X t n + X t n + 1 s 1 B n
K t n + 1 s K t n 1 2 m Y t n , X t n + Y t n + 1 s 1 , X t n + 1 s 1 2 h t n , X t n t n
Y t n + 1 s Y t n 1 2 f t n , X t n , Y t n , Z t n + f t n + 1 s 1 , X n + 1 s 1 , Y n + 1 s 1 , Z n + 1 s 1 t n
1 2 m Y t n , X t n + Y t n + 1 s 1 , X t n + 1 s 1 2 h t n , X t n t n
+ x u σ t n , X t n , B t n + 1 B t n
It should be noted that the condition for stopping the iteration is Y t n + 1 s Y t n + 1 s 1 < ε . As a result, Y t n + 1 = Y t n + 1 s

3. Numerical Experiments

There are three subsections in this part. Firstly, we introduce a general numerical algorithm for solving high-dimensional nonlinear reflected PDEs, then we illustrate the validity and reliability of this method proposed by us with two examples in Section 3.2 and Section 3.3. We operate the equations from continuous time to separation time using the two discrete formats mentioned above, respectively, and the comparison of the significant results will be described by means of tables. The numerical experiments we present are performed in Python code using TensorFlow on a Lenovo Pro-13 with a Radeon microprocessor.

3.1. Deep C-N Algorithm for Solving High-Dimensional Nonlinear Reflected PDEs

In this subsection, we propose a general deep learning framework named the Deep C-N algorithm to calculate high-dimensional nonlinear PDEs with reflection. The issue we are interested in is the initial value of the solutions for Equation (1), i.e., u ( 0 , x ) . From what we have discussed above, with the intermediary roles of reflected BSDEs, a deterministic relationship is established between the solutions for reflected PDEs and BSDEs. That is: u 0 , x = Y t 0 = Y t 0 m . In the whole process, the key step is approximating the gradient term of the solution for reflected PDEs, i.e., u σ t n , x , using multilayer feedback deep neural networks. First of all, we define the definitions of some parameters in this neural networks-based algorithm. Let ρ N denote the dimension of reflected PDEs, θ R ρ is a set of parameters which need to be learned by neural networks, X t n θ , Y t n θ , Z t n θ , and n 0,1 , , N is the solution for BSDEs at time t n . For convenience, we use X n θ , Y n θ , Z n θ instead of X t n θ , Y t n θ , Z t n θ in the algorithm description. It should be noted that X n θ , Y n θ : 0,1 , , N × Ω R , Z n θ : R ρ × Ω R ρ . Let Y Θ represent Y t 0 θ , which is a part of the initial value of the solution for BSDEs. Then, we have: Y t 0 θ Y Θ and,
Y n + 1 θ = Y n θ f t n , X n , Y n θ , Z n θ t n m Y n θ h t n , X n t n + Z n θ , B n
Further, the following relationships hold that:
u t n , X t n = Y t n Y n θ
u t n , X t n = Z t n Z n θ
u 0 , X t 0 = Y t 0 Y Θ
The loss function is defined by the main square error between the terminal output value calculated via the neural network and the real value at that moment. That is, the loss value is given by
E Y N θ g ( X N ) 2
The parameters in neural networks are updating until the loss function is stable. In addition, the existence and uniqueness of the global minimum for Equation (15) is proven by [6]. We choose the stochastic gradient descent (SGD) approach as the optimization algorithm for calculating the loss value. In the back-propagation simulating process, the Adam optimizer is employed to update the parameters layer by layer.
Next, based on the deep neural network technique, the general algorithm framework for solving high-dimensional nonlinear PDEs with reflection is presented (see Figure 1). By dividing the time interval [ 0 , T ] by N , a total of N 1 sub-neural networks are computed separately. Assuming that each sub-neural network has H hidden layers, all parameters to be learned will be optimized in each hidden layer. In particular, the results of the operations located in the hidden layer are batch normalized before they are passed through the activation function to the next layer.
The entire deep neural network-based algorithm consists of four types of operations:
  • X t n , B t n + 1 , B t n X t n + 1 ( n = 1,2 , N 1 and the same settings in 2 to 4) is a forward iterative procedure, which is determined by approximating scheme (6); this procedure does not contain any parameters that need to be optimized.
  • K t n , u t n , X t n , X t n K t n + 1 is a forward iterative procedure too, which is characterized by approximating scheme (7). As in the previous step, no parameters need to be optimized in this operation.
  • X t n , u t n 1 , X t n 1 h n 1 h n 2 ( s u b n e t w o r k s ) u t n , X t n is the key step in the whole calculating procedure. Our goal in this step is approximating the spatial gradients, and meanwhile, the weights θ n are optimized in the (N − 1) sub-networks.
  • u t n , X t n , u t n , X t n , K t n + 1 K t n , B t n + 1 B t n u t n + 1 , X t n + 1 is a forward iteration procedure that yields the neural network’s final output as the unique approximation of u ( T , X T ) , totally characterized by approximating scheme (14).

3.2. Allen–Cahn Equation

In this subsection, we consider the solution of PDEs without any boundary. For comparing the results with the Deep BSDE [22] approach, we choose the Allen–Cahn equation as our experimental case. The significant results are presented by figures and tables. The parameters and format of Allen–Cahn equations are as follows:
t 0 , T , x , ω R d , y R , z R 1 × d , suppose that d = 100 , N = 20 , T = 0.3 , μ t , x = 0 , σ t , x = 2 ω , X t = x + 2 ω , f t , x , y , z = y y 3 is the nonlinear part of the equation, g x = 2 + 2 5 x R d 2 1 is the value function of the solution at the terminal moment. u ( t , x ) satisfies:
u t t , x + u t , x u t , x 3 + u t , x = 0 ,   u T , x = g ( x )
Regarding the settings of the neural network, for comparison with the numerical results in [22], the hyperparameters and the selection of the optimization method are kept the same strategy as that in [22,23,24], except for the change in the discrete format and the input information of the neural network. The Relu function is chosen as the activation function, r = 5 × 10 4 is the learning rate, and the optimization method uses the Adam optimizer and batch normalization, with a total of N 1 subneural networks for stacking, each containing two hidden layers and each hidden layer contains d + 10 neurons.
The numerical results of Equation (16) are illustrated by two tables. Specifically, the results calculated by the Deep BSDE method are described in Table 1, and the results calculated by the Deep C-N method are described in Table 2. When solving Equation (16) using the Deep C-N algorithm, we tried appropriate values of iteration steps repeatedly in the interval [2000, 15,000], and found that 10,000 is a suitable number. Too-small values will make the loss value unstable, and too-large values will encounter an overfitting problem. The numerical experiment results shown in the table are based on the mean values of five independent tests. The true value of Equation (16) is 0.052802, which is derived from the Branching diffusion algorithm in [22].
The two tables above illustrate that the numerical results of the Deep C-N algorithm are better than the Deep BSDE algorithm. The most significant aspect is that the computational accuracy of the Deep C-N algorithm is better than that of the Deep BSDE algorithm. This is demonstrated by the fact that the loss value of the Deep BSDE algorithm is approaching 2 × 10 4 , while the value of the Deep C-N algorithm is approaching 3 × 10 5 , which means that the accuracy is improved by nearly an order of magnitude. In other aspects, the standard deviation of Y 0 of the Deep C-N method is smaller than the Deep BSDE method, which demonstrates that the approximating stability of the Deep C-N method is superior to the Deep BSDE method. In addition, the smaller relative L 1 -approximate error, to a certain extent, reflects the strengths of the model.
We now discuss the stability and accuracy of these two numerical models via eight equations with 50 to 400 dimensions. In Figure 2 and Figure 3, it can be clearly seen that the numerical results of the Deep C-N algorithm are more compact. In particular, the loss function curves of the Deep C-N algorithm are close to overlapping when the dimensionality is greater than 100, while the Deep BSDE algorithm shows a larger difference. This indicates that the Deep C-N model has better stability than the Deep BSDE model when dealing with high-dimensional problems. Regarding the approximation accuracy of the model, Table 3 shows that in tests for different dimensions, the loss values of the Deep C-N model are smaller than the corresponding results of the Deep BSDE model. This indicates that the computational accuracy of the Deep C-N algorithm is higher in the interval of 50 to 400 dimensions.

3.3. American Options

In this subsection, we consider the solution of reflected PDEs with continuous boundary. We select the case of pricing American options in order to make a comparison with the test results in [4]. The significant results are presented as well. The parameters and format of the American options are as follows:
t 0 , T , x , ω R d , y R , z R 1 × d , to be consistent with [4], suppose that d = 5 , 10 , 20 , 40 , N = 20 , T = 1 , K = 1 , r = 0.05 , is the risk-free interest rate, σ t , x = 0.2 , d X t = μ t , x X t d t + σ t , x X t d W t , where W t is a d-dimension Brownian motion with d dimensions, g x = K i = 1 d X t i + is the payoff of option. At time t, the value of an American option u ( t , x ) satisfies:
u t , x = s u p τ T t , T E e r τ g ( X τ )
where T t , T is defined as the set of stopping times; it is also a solution to the PDEs following with a boundary
m i n t u L u , u g = 0 , o n [ 0 , T ) × ( 0 , ) d   u T , . = g ,     o n ( 0 , ) d
where L u t , x = 1 2 i = 1 d σ i 2 x i 2 D x i 2 u t , x + r i = 1 d x i D x i u t , x r u ( t , x )
Now we display the numerical results for pricing American options by three models:
The results in Table 4 show that both the Deep C-N method and the RDBDP method have great approximation accuracy up to 40 dimensions, while the Deep BSDE method has exploding loss values or eventually leads to the wrong results. Therefore, it is concluded that both the Deep C-N method and the RDBDP method have excellent performance when dealing with reflected PDE problems up to 40 dimensions, while the Deep BSDE method cannot solve the high-dimensional reflected PDE problems.
It has been proved in [4] that the RDBDP algorithm has an obvious limitation when solving PDEs with reflection over 40 dimensions. Next, we demonstrate through Figure 4 that the Deep C-N method still has great stability when dealing with reflected PDE problems with more than 40 dimensions.

4. Discussion and Conclusions

In this paper, we proposed a deep learning-based numerical algorithm (named the Deep C-N method) for solving high-dimensional nonlinear reflected PDEs. Through numerical experiments, we found that the Deep C-N method has great approximating accuracy and computational stability in solving reflected PDEs of up to 100 dimensions. To obtain this result, we created a hybrid discrete format to solve some specific reflection problems. Compared with a single format, we found that this hybrid discretization strategy effectively overcomes the problem of loss function explosion or computational paralysis during the neural network computation. In addition, we used the penalization method to approximate the reflection terms instead of simulating them directly with numerical algorithms. The results show that the relative errors of the Deep C-N method are all below 4% when solving up to 40-dimensional reflected PDEs. As the dimension of the equation increases, the value of the neural network loss function shows an increasing trend, and the value of the neural network loss function stabilizes between 0.04 and 0.06 when the dimension rises to 100 dimensions. The Deep C-N method encountered challenges when trying to solve the reflection PDE above 100 dimensions. The first challenge is the computation time rising significantly with the increase in dimensions. The second is the computational accuracy decreasing as the dimensions increase. We support that these two problems are the most common difficulties encountered when dealing with high-dimensional issues, and we can say that the key to developing numerical algorithms for high-dimensional problems is to overcome these two problems.
The method proposed in this paper contributes in two ways. First, in solving high-dimensional reflection PDEs, one of the successful deep learning algorithms is the RDBDP algorithm proposed by Huré et al. [4], which can solve up to 40-dimensional reflected PDEs. The method proposed in this paper successfully extends the dimensions of the equation up to 100 dimensions. Second, in solving high-dimensional PDEs without reflection terms, the method proposed in this paper possesses higher approximating accuracy compared with the Deep BSDE methods proposed by Han et al. [22], Beck et al. [23], and Han et al. [24]. Therefore, the Deep C-N method proposed in this paper can be used to solve both reflected PDEs of up to 100 dimensions and high-dimensional nonlinear PDEs (tested up to 400 dimensions).
Since the discrete strategy we use has more steps, this inevitably leads to an increase in training difficulty and computational cost. One of the most direct evidence is that when approximating the 100-dimensional Allen–Cahn equation, the results can be converged in 426 s with 4000 training sessions using the Deep BSDE method, while with the Deep C-N method proposed in this paper, 10,000 training sessions are required to make the results converge in 3508 s (the exact running time varies with the machine).

Author Contributions

Conceptualization, J.Y.; methodology, J.Y. and X.S.; software, X.S. and X.Z.; validation, X.S. and J.Y.; formal analysis, X.S. and J.Y.; investigation, X.S. and X.Z.; resources, J.Y. and R.T.; data curation, X.S. and X.Z.; writing—original draft preparation, X.S.; writing—review and editing, J.Y.; visualization, X.S. and X.Z.; supervision, R.T.; project administration, J.Y.; funding acquisition, J.Y. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

No new data were created or analyzed in this study. Data sharing is not applicable to this article.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Bensoussan, A.; Lions, J.L. Applications of Variational Inequalities in Stochastic Control; Elsevier: Amsterdam, The Netherlands, 2011. [Google Scholar]
  2. El Karoui, N.; Kapoudjian, C.; Pardoux, E.; Peng, S.; Quenez, M.C. Reflected solutions of backward SDE’s, and related obstacle problems for PDE. Ann. Probab. 1997, 25, 702–737. [Google Scholar] [CrossRef]
  3. Cagnetti, F.; Gomes, D.; Tran, H.V. Adjoint methods for obstacle problems and weakly coupled systems of PDE. ESAIM COCV 2013, 19, 754–779. [Google Scholar] [CrossRef] [Green Version]
  4. Huré, C.; Huyên, P.; Xavier, W. Deep backward schemes for high-dimensional PDEs. Math. Comput. 2020, 89, 1547–1579. [Google Scholar] [CrossRef] [Green Version]
  5. Zienkiewicz, O.C.; Taylor, R.L.; Zienkiewicz, O.C.; Taylor, R.L. The Finite Element Method; McGraw-Hill: London, UK, 1977; Volume 3. [Google Scholar]
  6. Brenner, S.; Scott, R. The Mathematical Theory of Finite Element Methods; Springer Science & Business Media: Heidelberg, Germany, 2007; Volume 15. [Google Scholar]
  7. Brennan, M.J.; Schwartz, E.S. The valuation of American put options. J. Financ. 1977, 32, 449–462. [Google Scholar] [CrossRef]
  8. Brennan, M.J.; Schwartz, E.S. Finite difference methods and jump processes arising in the pricing of contingent claims: A synthesis. J. Financ. Quant. Anal. 1978, 13, 461–474. [Google Scholar] [CrossRef]
  9. Zhao, J.; Davison, M.; Corless, R.M. Compact finite difference method for American option pricing. J. Comput. Appl. Math. 2007, 206, 306–321. [Google Scholar] [CrossRef] [Green Version]
  10. Giles, M.B. Multilevel Monte Carlo path simulation. Oper. Res. 2008, 56, 607–617. [Google Scholar] [CrossRef] [Green Version]
  11. Graham, C.; Talay, D. Stochastic Simulation and Monte Carlo Methods: Mathematical Foundations of Stochastic Simulation; Springer Science & Business Media: Heidelberg, Germany, 2013. [Google Scholar]
  12. Chrysafinos, K.; Karatzas, E.N. Symmetric errors estimates for discontinuous Galerkin approximations for an optimal control problem associated to semilinear parabolic PDE. Discret. Contin. Dyn. Syst. Ser. B 2012, 17, 1473–1506. [Google Scholar]
  13. Duan, Y.; Tan, Y.J. Meshless Galerkin method based on regions partitioned into subdomains. Appl. Math. Comput. 2005, 162, 317–327. [Google Scholar] [CrossRef]
  14. Zumbusch, G.W. A sparse grid PDE solver; discretization, adaptivity, software design and parallelization. In Advances in Software Tools for Scientific Computing; Springer: Berlin/Heidelberg, Germany, 2000; pp. 133–177. [Google Scholar]
  15. Griebel, M.; Oeltz, D. A sparse grid space-time discretization scheme for parabolic problems. Computing 2007, 81, 1–34. [Google Scholar] [CrossRef]
  16. Bellman, R.E. Dynamic Programming; Princeton University Press: Princeton, NJ, USA, 1957. [Google Scholar]
  17. Beck, C.; Becker, S.; Grohs, P.; Jaafari, N.; Jentzen, A. Solving the Kolmogorov PDE by means of deep learning. J. Sci. Comput. 2021, 88, 73–101. [Google Scholar] [CrossRef]
  18. Becker, S.; Braunwarth, R.; Hutzenthaler, M.; Jentzen, A.; Wurstemberger, P. Numerical simulations for full history recursive multilevel Picard approximations for systems of high-dimensional partial differential equations. Commun. Comput. Phys. 2020, 28, 2109–2138. [Google Scholar] [CrossRef]
  19. Sirignano, J.; Spiliopoulos, K. DGM: A deep learning algorithm for solving partial differential equations. J. Comput. Phys. 2018, 375, 1339–1364. [Google Scholar] [CrossRef] [Green Version]
  20. Beck, C.; Becker, S.; Cheridito, P.; Jentzen, A.; Neufeld, A. Deep splitting method for parabolic PDEs. SIAM J. Sci. Comput. 2021, 43, 3135–3154. [Google Scholar] [CrossRef]
  21. Hutzenthaler, M.; Jentzen, A.; Kruse, T. On multilevel Picard numerical approximations for High-dimensional parabolic partial differential equations and High-dimensional backward stochastic differential equations. J. Sci. Comput. 2019, 79, 1534–1571. [Google Scholar]
  22. Han, J.; Jentzen, A. Deep learning-based numerical methods for high-dimensional parabolic partial differential equations and backward stochastic differential equations. Community Math. Stat. 2017, 5, 349–380. [Google Scholar]
  23. Beck, C.; Becker, S.; Grohs, P.; Jaafari, N.; Jentzen, A. Solving stochastic differential equations and Kolmogorov equations by means of deep learning. arXiv 2018, arXiv:1806.00421. [Google Scholar]
  24. Han, J.; Jentzen, A.; Weinan, E. Solving high-dimensional partial differential equations using deep learning. Proc. Natl. Acad. Sci. USA 2018, 115, 8505–8510. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  25. Khoo, Y.; Lu, J.; Ying, L. Solving parametric PDE problems with artificial neural networks. Eur. J. Appl. Math. 2021, 32, 421–435. [Google Scholar] [CrossRef]
  26. Li, Z.; Kovachki, N.; Azizzadenesheli, K.; Liu, B.; Bhattacharya, K.; Stuart, A.; Anandkumar, A. Fourier neural operator for parametric partial differential equations. arXiv 2020, arXiv:2010.08895, 2020. [Google Scholar]
Figure 1. Illustration of the neural network framework for solving obstacle problems for PDEs. There are N 1 sub-networks in total and H hidden layers in each sub-network. Therefore, there exist ( H + 1 ) ( N 1 ) layers in the whole network with parameters that need to be optimized. We divide the time internal [ 0 , T ] for intervals and each column for t = t 1 , t 2 , , t N 1 .
Figure 1. Illustration of the neural network framework for solving obstacle problems for PDEs. There are N 1 sub-networks in total and H hidden layers in each sub-network. Therefore, there exist ( H + 1 ) ( N 1 ) layers in the whole network with parameters that need to be optimized. We divide the time internal [ 0 , T ] for intervals and each column for t = t 1 , t 2 , , t N 1 .
Mca 28 00079 g001
Figure 2. Loss value of different dimensions for Deep BSDE algorithm.
Figure 2. Loss value of different dimensions for Deep BSDE algorithm.
Mca 28 00079 g002
Figure 3. Loss value of different dimensions for Deep C-N algorithm.
Figure 3. Loss value of different dimensions for Deep C-N algorithm.
Mca 28 00079 g003
Figure 4. Loss values for 10 times based on Deep C-N algorithm.
Figure 4. Loss values for 10 times based on Deep C-N algorithm.
Mca 28 00079 g004
Table 1. The numerical results of Deep BSDE algorithm.
Table 1. The numerical results of Deep BSDE algorithm.
Number of
Iteration Step
Mean   of   Y 0 Standard
Deviation   of   Y 0
Relative
L 1 -Approximate Error
Relative
L 1 -Approximate Error
Associated   with   Y 0
Mean Value of Loss FunctionStandard
Deviation of Loss Function
00.47400.05147.97750.97340.116300.02953
10000.14460.03401.73840.64360.005500.00344
20000.05980.00580.13180.11030.000290.00006
30000.05300.00020.00500.00410.000230.00001
40000.05280.00020.00300.00220.000200.00001
Table 2. The numerical results of Deep C-N algorithm.
Table 2. The numerical results of Deep C-N algorithm.
Number of
Iteration Step
Mean   of   Y 0 Standard
Deviation   of   Y 0
Relative
L 1 -Approximate Error
Relative
L 1 -Approximate Error
Associated   with   Y 0
Mean Value of Loss FunctionStandard
Deviation of Loss Function
00.50210.07910.29790.4493130.1371910.043493
20000.06590.00830.01310.0115210.0004070.000142
40000.05690.00210.00020.0000400.0002010.000027
60000.05310.00020.00020.0000130.0001180.000240
80000.05290.00020.00020.0001560.0000550.000012
10,0000.05280.00010.00010.0001170.0000300.000010
Table 3. Convergence levels of loss function of the two methods in different dimensions.
Table 3. Convergence levels of loss function of the two methods in different dimensions.
Dimensions50100150200250300350400
Deep BSDE3.415 × 10−41.886 × 10−41.44 × 10−41.029 × 10−49.973 × 10−55.330 × 10−57.789 × 10−55.774 × 10−5
Deep C-N1.095 × 10−43.095 × 10−51.853 × 10−51.435 × 10−51.398 × 10−51.303 × 10−51.337 × 10−51.506 × 10−5
Table 4. Numerical solutions for 3 models.
Table 4. Numerical solutions for 3 models.
ModelsDimensionsValueReferenceRelative Error
Deep C-N50.107200.107380.17%
RDBDP50.106570.107380.75%
Deep BSDE5NC0.10738NC
Deep C-N100.126870.129962.38%
RDBDP100.128290.129961.29%
Deep BSDE10NC0.12996NC
Deep C-N200.151400.151000.27%
RDBDP200.144300.151004.38%
Deep BSDE20NC0.15100NC
Deep C-N400.162130.168003.49%
RDBDP400.161670.168003.77%
Deep BSDE40NC0.16800NC
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Shi, X.; Zhang, X.; Tang, R.; Yang, J. Solve High-Dimensional Reflected Partial Differential Equations by Neural Network Method. Math. Comput. Appl. 2023, 28, 79. https://doi.org/10.3390/mca28040079

AMA Style

Shi X, Zhang X, Tang R, Yang J. Solve High-Dimensional Reflected Partial Differential Equations by Neural Network Method. Mathematical and Computational Applications. 2023; 28(4):79. https://doi.org/10.3390/mca28040079

Chicago/Turabian Style

Shi, Xiaowen, Xiangyu Zhang, Renwu Tang, and Juan Yang. 2023. "Solve High-Dimensional Reflected Partial Differential Equations by Neural Network Method" Mathematical and Computational Applications 28, no. 4: 79. https://doi.org/10.3390/mca28040079

APA Style

Shi, X., Zhang, X., Tang, R., & Yang, J. (2023). Solve High-Dimensional Reflected Partial Differential Equations by Neural Network Method. Mathematical and Computational Applications, 28(4), 79. https://doi.org/10.3390/mca28040079

Article Metrics

Back to TopTop