원시데이터 수집 시스템
선정목록으로

A modified batch intrinsic plasticity method for pre-training the random coefficients of extreme learning machines

관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)

기본 정보

저자
  1. Suchuan Dong — Center for Computational and Applied Mathematics, Department of Mathematics, Purdue University, West Lafayette, IN, USA
  2. Zongwei Li — Department of Mathematics, Purdue University, Fort Wayne, IN, USA
DOI
10.1016/j.jcp.2021.110585
저널
Journal of Computational Physics
발행년도
2021
발행기관
Elsevier BV
피인용수
27
라이선스
publisher-specific-oa
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1016/j.jcp.2021.110585
토픽
Thermal properties of materials
OpenAlex ID
W3136639013

평가 내용

관련도
관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

초록이 없습니다.

본문 79,907자

본문 펼치기
In extreme learning machines (ELM) the hidden-layer coefficients are randomly set and fixed, while the output-layer coefficients of the neural network are computed by a least squares method.The randomlyassigned coefficients in ELM are known to influence its performance and accuracy significantly.In this paper we present a modified batch intrinsic plasticity (modBIP) method for pre-training the random coefficients in the ELM neural networks.The current method is devised based on the same principle as the batch intrinsic plasticity (BIP) method, namely, by enhancing the information transmission in every node of the neural network.It differs from BIP in two prominent aspects.First, modBIP does not involve the activation function in its algorithm, and it can be applied with any activation function in the neural network.In contrast, BIP employs the inverse of the activation function in its construction, and requires the activation function to be invertible (or monotonic).The modBIP method can work with the oftenused non-monotonic activation functions (e.g.Gaussian, swish, Gaussian error linear unit, and radial-basis type functions), with which BIP breaks down.Second, modBIP generates target samples on random intervals with a minimum size, which leads to highly accurate computation results when combined with ELM.The combined ELM/modBIP method is markedly more accurate than ELM/BIP in numerical simulations.Ample numerical experiments are presented with shallow and deep neural networks for function approximation and boundary/initial value problems with partial differential equations.They demonstrate that the combined ELM/modBIP method produces highly accurate simulation results, and that its accuracy is insensitive to the random-coefficient initializations in the neural network.This is in sharp contrast with the ELM results without pre-training of the random coefficients. Introduction This work concerns the use of extreme learning machines (ELM) for scientific computing, chiefly for solving ordinary and partial differential equations (ODE/PDE).ELM is proposed in [20] for single hidden-layer feed-forward networks (SLFN), and consists of two main ideas: (i) the weights/biases in the hidden layer are randomly set and fixed, and (ii) the weights of the linear output layer are computed/trained by a linear least squares method or by using the pseudo-inverse (Moore-Penrose inverse) of the coefficient matrix.In the context of the current paper we will broadly refer to neural network-based methods adopting these strategies as ELM methods, including those that employ multiple hidden layers in the neural network and those that train the output-layer coefficients by nonlinear least squares computations (see e.g.[6]).ELM is one type of random-weight neural networks [37,13], which randomly assign and fix a subset of the network's weights so that the resultant optimization task of training the neural network can be simpler, and often linear, for example, formulated as a linear least squares problem.Randomization can be applied to both feed-forward and recurrent networks, leading to methodologies such as the random vector functional link (RVFL) networks [32,21], the extreme learning machine [20,19], the no-propagation network [45], the echo-state network [22,27], and the liquid state machine [28].The universal approximation property of the random-weight feed-forward neural networks has been studied and proven in e.g.[21,25,20].Randomized neural networks can be traced to the un-organized machines by Turing [43] and the perceptron by Rosenblatt [34] in the 1950s.After a hiatus of several decades, contributions started to appear in the 1990s, and in recent years such methods have witnessed a strong revival.We refer to e.g.[37] for a historical overview of randomized neural networks. Introduction With ELM one employs the least squares method, either linear or nonlinear least squares [6], to compute/train the training parameters, which consist of only the weights in the linear output layer of the neural network.This training method is different from the back propagation (or gradient descent) type algorithms [44,16], which have been widely used in the deep neural network (DNN) based PDE solvers in recent years (see e.g.[38,33] and related approaches [24,35,11,46,17,26,47,50,42,23,36,48,7]).This is the primary factor that accounts for ELM's lower computational cost observed in numerical simulations [6]. Introduction The randomly-assigned coefficients in the neural network are crucial to the performance of ELM, and strongly influence its accuracy.As an illustration, Figure 1 shows a typical plot of the L ∞ (maximum) and L 2 (root-mean-squares or rms) norms of the absolute error of the ELM solution as a function of R m , which denotes the maximum magnitude of the random coefficients, for solving the one-dimensional (1D) Helmholtz equation with Dirichlet boundary conditions.Here the hidden-layer coefficients of the network are assigned to uniform random values generated on the interval [−R m , R m ].It is evident that the random coefficients are critical to the ELM performance.We refer to [6] for a recent fairly detailed study of the random-coefficient effects on the ELM simulation results in solving linear and nonlinear partial differential equations.The effects of the random coefficients on the performance of ELM and other random-weight neural networks have also been recognized in regression and classification problems other than scientific computing (see e.g.[30,29,49,41,9,13], among others). Introduction How to choose, or perhaps pre-train, the random coefficients in the ELM (or related random-weight) neural networks is an important issue, and this issue is the focus of the current work.Several studies in this regard are available from the literature in the past few years.In [30] the batch intrinsic plasticity (BIP) method is proposed to pre-train and adapt the activation function of the hidden-layer neurons by a pseudo-inverse technique to achieve a desired output distribution, so that the information transmission of the neural network can be improved.BIP is inspired by the biological intrinsic-plasticity mechanism [40], which, when applied to recurrent networks, can enhance the encoding and improve the information transmission of the network [39].In [29] the authors employ the ELM method in handwritten digit classification, and investigate ways to set the input weights as a function of the input data by aiming to e.g.increase the inner product between the weights and the training data samples, constrain the input weights to a set of difference vectors, or make the input weights sparse.A combination of such ideas is also studied therein.In [49] the authors present an algorithm to grow the single hidden-layer feed-forward network incrementally, by adding a macro node each time, which consists of several hidden nodes and is called a subnetwork hidden node.The method calculates the subnetwork hidden nodes by pulling back the network error into the hidden layer for invertible activation functions, and by aiming to reduce the norms of the weights.In [41] the authors present a technique to constructively build single hidden-layer feed-forward networks by stochastic configuration algorithms (called stochastic configuration networks or SCN).The constructive process starts with a small network, and the hidden nodes are added incrementally until an acceptable tolerance is achieved.The added weights/biases are assigned by a supervisory mechanism to satisfy certain inequality constraints guided by the universal approximation property.In addition to the above works, other researchers have aimed to utilize the relationship between the input-data rank and the performance of randomized neural networks, or to pick the weights/bias based on the input data range and the activation function type, or to consider the numerical stabilities (see e.g.[1,9,13], among others). Introduction In the current paper we present a modified batch intrinsic plasticity (modBIP) method for pre-training the random coefficients of the ELM neural networks, which can be shallow (single hidden layer) or deep (multiple hidden layers).By random coefficient pre-training we mean that, after the weight/bias coefficients of the hidden layers are initialized to random values, we update these coefficients systematically by a welldefined procedure.The updated coefficients are then fixed, and employed in ELM for computing/training the weights in the output layer (i.e. the training parameters) by the least squares method. Introduction The current modBIP method is devised based on the same principle as the batch intrinsic plasticity (BIP) method [30], namely, by enhancing the information transmission in every node of the neural network.The current method differs from BIP [30] in two key aspects.First, modBIP does not involve the activation function in its algorithm, and it can work with any activation function in the ELM neural network.In contrast, BIP [30] employs the inverse of the activation function in its algorithm, and requires the activation function to be invertible (i.e.monotonic).BIP can only work with those activation functions that are monotonic.This excludes many often-used activation functions that are non-invertible, such as the Gaussian function, the swish function [12], the Gaussian error linear unit (GELU) [18], and other radial-basis type activation functions.Second, the modBIP method generates the target samples on random intervals with some minimum size, which leads to highly accurate simulation results when combined with ELM.The combined ELM/modBIP method is observed to be markedly more accurate than the combined ELM/BIP method in numerical simulations. Introduction We present a number of numerical examples of boundary-value and boundary/initial-value problems with linear partial differential equations to evaluate the performance of modBIP and the combined ELM/modBIP method.We compare their performance with those of the combined ELM/BIP method and the ELM method without pre-training of the random coefficients.These numerical experiments show that the combined ELM/modBIP method produces highly accurate simulation results with both shallow and deep neural networks, and that the accuracy of the ELM/modBIP solution is insensitive to the initial random coefficients in the neural network.More precisely, with the hidden-layer coefficients initialized as uniform random values generated on [−R m , R m ], for an arbitrary R m , the combined ELM/modBIP method results in very accurate results.This is in sharp contrast with the ELM method without pre-training of the random coefficients (see e.g. Figure 1).The numerical results demonstrate that the combined ELM/modBIP method, with non-invertible activation functions such as the Gaussian/swish/GELU functions in the neural network, exhibits the same properties of high accuracy and insensitivity to the random coefficient initialization.This is in sharp contrast with the ELM/BIP method, which breaks down with the class of non-invertible activation functions.The simulation results also signify the exponential decrease in the numerical errors of the ELM/modBIP method as the number of degrees of freedom (e.g.number of training collocation points, number of training parameters) in the system increases, analogous to the observations of [6]. Introduction We have also looked into the computational cost of the modBIP pre-training of the random coefficients, as compared to that of the ELM training of the neural networks.For every hidden-layer node, the primary operations with modBIP consist of (i) the computation of the total input to the current node induced by the input samples to the network, and (ii) the solution of a small linear system consisting of two unknown variables by the linear least squares method.The modBIP pre-training cost increases linearly or nearly linearly with increasing number of training parameters and collocation points.The pre-training cost is insignificant, and it is only a fraction of the ELM training cost for the neural network.In typical numerical simulations, the modBIP pre-training cost is within 10% of the ELM network training cost. Introduction The contribution of this paper lies in the development of the modBIP algorithm for pre-training the random coefficients of shallow and deep ELM neural networks.The algorithm has been shown to be effective, efficient, and highly accurate.The combined ELM/modBIP method is observed to be a promising technique for scientific computing. Introduction The rest of this paper is structured as follows.In Section 2 we present the modBIP algorithm for pre-training the random coefficients of ELM neural networks, and outline how to employ the combined ELM/modBIP method to solve linear differential equations.In Section 3 we test the performance of the modBIP algorithm and the combined ELM/modBIP method with function approximation and several PDEs commonly encountered in computational science/engineering [8,3,4].We compare the performance of the current modBIP algorithm, the BIP algorithm, and the case with no pre-training of the random coefficients.The effectiveness of modBIP for shallow and deep neural networks, and with invertible and non-invertible activation functions is demonstrated.Section 4 then concludes the discussions with some closing remarks. Introduction 2 Pre-training Random Coefficients of Extreme Learning Machines Extreme Learning Machine and Random Coefficients We consider a feed-forward neural network [15] with one or multiple hidden layers, and the function representation using this network.We assume the following in its configuration and settings: Extreme Learning Machine and Random Coefficients • The weight/bias coefficients in all the hidden layers are pre-set to random values, and are fixed throughout the computation once they are set.In this work we follow [6] and set the hidden-layer coefficients to uniform random values generated on [−R m , R m ], where R m > 0 is a user-provided parameter. Extreme Learning Machine and Random Coefficients • The last hidden layer, i.e. the layer before the output layer, can be wide.It may contain a large number of nodes. Extreme Learning Machine and Random Coefficients • The output layer is linear (i.e.no activation function applied) and has zero bias.The training parameters consist of the weights of the output layer, and will be adjusted by the training computation. Extreme Learning Machine and Random Coefficients • The network is to be trained, and the training parameters are to be determined by a least squares computation. Extreme Learning Machine and Random Coefficients In the current work we concentrate on function approximation and linear partial differential equations, and so the network training is via a linear least squares computation.We refer to [6] for the network training by a nonlinear least squares method for solving nonlinear partial differential equations.A feed-forward neural network with the above settings, when containing a single hidden layer, is known as an extreme learning machine (ELM) [20,19].In the current work we consider neural networks with both a single and multiple hidden layers, and we follow this terminology and will refer to them as shallow and deep extreme learning machines, respectively. Extreme Learning Machine and Random Coefficients The random coefficients in the hidden layers of the neural network are crucial to the performance and accuracy of ELM [30,29,13,6].It has been observed from the numerical experiments in [6] that the ELM accuracy can be influenced strongly by the maximum magnitude of the random coefficients (i.e.R m ), where uniform random coefficients generated on [−R m , R m ] are employed.When R m is very large or very small, ELM tends to produce results with poor accuracy.More accurate results tend to be attained with R m in a range of moderate values.This "optimal" range for R m is problem dependent and is also affected by the simulation resolution (e.g. the number of training parameters, number of training data points) [6].For many problems the optimal range for R m appears to reside somewhere between 1 and 15.As discussed in the Introduction section, Figure 1 is an illustration of the effect of R m on the ELM accuracy. Extreme Learning Machine and Random Coefficients Our goal here is to devise a method for pre-training the random coefficients once they are initialized, so that accurate ELM results can be obtained with random coefficients initialized by essentially an arbitrary R m .Once the hidden-layer coefficients in the neural network are initialized to uniform random values from [−R m , R m ], for some given R m , our method can be applied to update or adjust these random coefficients. Extreme Learning Machine and Random Coefficients The updated hidden-layer coefficients are then fixed, and the usual ELM method and the least squares procedure can be employed to determine the training parameters (i.e. the output-layer coefficients). Modified Batch Intrinsic Plasticity (modBIP) Algorithm Consider a feed-forward neural network [15] with (L + 1) layers, and let M l denote the number of nodes in layer l for 0 l L. The layer zero represents the input to the neural network, and let the matrix X of dimension N s × M 0 denote the input data, where N s is the number of samples in the input data.The layer L represents the output of the neural network, denoted by the matrix U of dimension N s × M L .The layers in between are the hidden layers.Let the matrix Φ l , with dimension N s × M l , denote the output data of layer l for 0 l L, with Φ 0 = X and Φ L = U.Then the logic of the hidden layer l (1 l L − 1) is given by, Modified Batch Intrinsic Plasticity (modBIP) Algorithm where σ(•) denotes the activation function, the M l−1 × M l matrix W l denotes the weights of layer l, and the row vector b l (with dimension 1 × M l ) denotes the biases of this layer.Note that here we have adopted the convention (as in the computer language Python) that when computing (Φ l−1 W l + b l ), the data in the vector b l will first be propagated along the first dimension to form a N s × M l matrix.In equation (1) we have also assumed for simplicity that the same activation function is employed for different hidden layers.The logic of the output layer is given by Modified Batch Intrinsic Plasticity (modBIP) Algorithm where the M L−1 × M L matrix W L denotes the weights of the output layer, and they are the training parameters of the neural network.As discussed before, the output layer is assumed to contain no bias and no activation function.The weight and bias coefficients of the hidden layers, W l and b l (1 l L − 1), are initialized to uniform random values generated on the interval [−R m , R m ] for some prescribed R m .Once the specific problem is given, the training parameters W L can be determined by a least squares computation based on the ELM procedure [6].The parameter value R m , and hence the random coefficients W l and b l , strongly influence the ELM accuracy, as discussed in the previous subsection. Modified Batch Intrinsic Plasticity (modBIP) Algorithm Given the input data X and the initial random coefficients W l and b l (1 l L − 1), we will compute a set of new coefficients W l and b l for 1 l L − 1 based on a procedure presented below, and replace W l and b l by the newly computed values, so that the resultant neural network will give rise to results that are more accurate and less sensitive or insensitive to R m .We refer to this process as the pre-training of the random coefficients.Once the random hidden-layer coefficients are pre-trained, they will be fixed throughout the rest of the computation, when the training parameters are determined by the least squares method in the usual ELM algorithm. Modified Batch Intrinsic Plasticity (modBIP) Algorithm To pre-train the random hidden-layer coefficients, we follow the philosophy as advocated in [30].In other words, these coefficients should assume values that will facilitate the information transmission within each neuron.Consider a particular node (or neuron) in a particular hidden layer of the neural network.Let s denote the total input (synaptic input) to this neuron from the previous layer, and φ denote the output signal of this neuron.Then φ = σ(s), where σ is the activation function of this neuron.For commonly used activation functions (e.g.tanh, sigmoid, Gaussian), if the magnitude of the input s is very large, the output φ of the neuron will reach the level of saturation, which is unfavorable for the information transmission in this neuron.Therefore, the magnitude of the synaptic input to the neuron should not be too large, in order to facilitate the information transfer.Let us further suppose that the synaptic input to this neuron consists of N s independent samples s i (1 i N s ), and let s max and s min denote the maximum and the minimum of these input samples.If s max and s min are very close to each other, then this neuron will output essentially a constant value under these N s input samples, which is unfavorable for the information transmission.Therefore, the samples of the synaptic input to a neuron should maintain a reasonable spread in their values, in order to facilitate the information transfer.In light of these considerations, in order to facilitate the information transmission, we will impose the following requirements on the synaptic input to any neuron: Modified Batch Intrinsic Plasticity (modBIP) Algorithm • The synaptic input to the neuron should fall within a range [−S b , S b ], where S b > 0 is a user-provided hyper-parameter.The larger the S b parameter, the more likely the input will cause a saturation in the neuron response. Modified Batch Intrinsic Plasticity (modBIP) Algorithm • The samples of the synaptic input to the neuron should be such that s max − s min > S c , where S c (with 0 S c < 2S b ) is a user-provided hyper-parameter.A non-zero S c ensures that the input samples to the neuron have a spread of at least S c in their values. Modified Batch Intrinsic Plasticity (modBIP) Algorithm These requirements provide the basis for the algorithm described below for pre-training the random hiddenlayer coefficients in the neural network. Modified Batch Intrinsic Plasticity (modBIP) Algorithm Given S b and S c , we pre-train the random coefficients as follows.We start with the first hidden layer, and pre-train the random coefficients in each layer individually and successively, until the last hidden layer is pre-trained.It should be noted that pre-training a later hidden layer depends on the updated weight/bias coefficients in previous layers that are already pre-trained.Within each hidden layer, we pre-train the random coefficients associated with each node individually and independently.We start with the first node and proceed until all the nodes in the layer are pre-trained. Modified Batch Intrinsic Plasticity (modBIP) Algorithm The general idea for pre-training a node is as follows.For any particular node in a layer, we first compute the total input to this node corresponding to all the N s input data samples to the neural network.This produces the input samples s i (1 i N s ) to this node.We generate a random sub-interval [t min , t max ] ⊂ [−S b , S b ], satisfying the condition t max − t min > S c .Then we generate N s random numbers t i (1 i N s ) on the interval [t min , t max ], which will be referred to as the target samples.We sort the input samples s i and the target samples t i in the ascending order, respectively.Then we compute an affine mapping between s i and t i by a linear least squares method.The weight/bias coefficients associated with this node are then updated by the computed affine mapping coefficients to complete the pre-training for this node. Modified Batch Intrinsic Plasticity (modBIP) Algorithm Let us now expand on the general idea to provide more details for pre-training a node.We consider pre-training the random coefficients associated with node k in the hidden layer l, for 1 l L − 1 and 1 k M l .At this point, all the previous hidden layers have been pre-trained and their weight/bias coefficients have been updated.We evaluate the neural network against the input data X to attain the output of the layer l − 1, which is denoted by the matrix Modified Batch Intrinsic Plasticity (modBIP) Algorithm this is the first hidden layer (i.e.l = 1).The current weights for layer l are given by the M l−1 × M l matrix W l , and the current biases for this layer are given by the row vector b l with dimension M l .Let w denote the k-th column of W l , and b k denote the k-th component of b l .Then the synaptic input, s, to the current node in consideration is given by Modified Batch Intrinsic Plasticity (modBIP) Algorithm where s i (1 i N s ) are the components of s, and 1 denotes the vector of all ones.The values of w and b k will be updated when this node is pre-trained. Modified Batch Intrinsic Plasticity (modBIP) Algorithm Next we generate two uniform random numbers t min and t max on [−S b , S b ] that satisfy the condition t max − t min > S c .Then we generate N s random numbers t i (1 i N s ) on the interval [t min , t max ] as the target samples.In the current implementation we have considered two distributions when generating the target samples: Modified Batch Intrinsic Plasticity (modBIP) Algorithm from a normal distribution with a mean 1 2 (t min + t max ) and a standard deviation 1 4 (t max − t min ).When drawing from the normal distribution, if the generated random number is out of the range [t min , t max ], a simple sub-iteration can produce a random number on [t min , t max ]. Modified Batch Intrinsic Plasticity (modBIP) Algorithm We sort the input samples s i (1 i N s ) in the ascending order, and also sort the target samples t i (1 i N s ) in the ascending order.Then we solve for two scalar numbers ξ and η from the following linear system by the linear least squares method, Modified Batch Intrinsic Plasticity (modBIP) Algorithm Algorithm 1: modBIP algorithm input : input data X; initial random weight coefficients W l and initial random bias coefficients b l , for 1 l L − 1; constant S b > 0; constant S c , with 0 S c < 2S b .output: updated weight coefficients W l and updated bias coefficients b l , for 1 l L − 1.Finally, we update the column k of the weight-coefficient matrix W l and the k-th component of the bias vector b l by the following relations: Modified Batch Intrinsic Plasticity (modBIP) Algorithm This completes the pre-training of the node. Modified Batch Intrinsic Plasticity (modBIP) Algorithm The overall pre-training procedure by the modBIP method is summarized in Algorithm 1.A key construction in the algorithm that enables high accuracy of this method is the adoption of random sub-intervals [t min , t max ] with a minimum size S c when generating the target samples.If this interval is taken to be [−S b , S b ] or some fixed sub-interval of [−S b , S b ], numerical experiments show that the method will be much less accurate.Target samples generated on [t min , t max ] from a uniform distribution and from a normal distribution seem to produce results with comparable accuracy.For different problems one type of distribution may lead to results with slightly better accuracy than the other, but their error levels are largely the same.In the numerical tests of Section 3, we employ the normal distribution when generating random target samples on [t min , t max ]. Modified Batch Intrinsic Plasticity (modBIP) Algorithm Remark 2.1.The parameter S c controls the minimum size of the random sub-interval [t min , t max ].As S c → 0, random intervals with a near-zero size may be generated.This will cause the mapped synaptic input (and also the neuron response) to cluster around a constant level, which will affect the accuracy adversely.On the other hand, as S c → 2S b , all the random sub-intervals [t min , t max ] → [−S b , S b ].So the randomness in the sub-interval will be lost, and the accuracy will deteriorate as mentioned before.We observe from numerical experiments that a value around S c = S b /2 produces results with very good (and oftentimes the best) accuracy.So in the current paper we will employ S c = S b /2 with modBIP in the numerical simulations. Modified Batch Intrinsic Plasticity (modBIP) Algorithm Remark 2.2.The parameter S b controls which regime the pre-training algorithm generally maps the synaptic input data into.If S b is very small, the mapped synaptic input will be close to zero, and many activation functions are close to a linear function in this regime.Since a linear function reduces the approximation capability of a neuron, the accuracy in this case will be limited.If S b is very large, the magnitude of the mapped synaptic input to the neuron can be large.It is thus more likely to cause saturation in the neuron response, which is unfavorable for the information transmission and can have an adverse effect on the accuracy.Figure 2 shows the profiles of several commonly-used activation functions, including the tanh, Gaussian (σ(x) = e −x 2 ), softplus (σ(x) = log(1 + e x )), and swish (σ(x) = x/(1 + e −x )) functions.They suggest that a reasonable range for the input to the activation function seems to be somewhere around [−3, 3], and perhaps even a little larger with the swish and softplus functions.We observe from numerical experiments that, with the tanh (and Gaussian) activation function and a single hidden layer in the neural network, a value around S b = 2 ∼ 3 will produce results with good accuracy.For certain problems, the method achieves even better accuracy if S b is adjusted from this base value.When the neural network contains more hidden layers, it is observed that S b should typically be decreased from this reference range to achieve a better accuracy.While the above reference range for S b is useful, for a given problem can we estimate the S b value that provides the best or close to the best accuracy?The answer is positive, and we next outline a procedure for estimating the optimal S b using simple numerical experiments.Let us use the problem of solving linear PDEs for illustration.When training the ELM neural network, suppose the linear system resulting from the PDE that one needs to solve using the least squares method is given by the following (see Section 2.3), Modified Batch Intrinsic Plasticity (modBIP) Algorithm where A, x, and b denote the coefficient matrix (non-square), the vector of unknowns, and the right-hand-side vector, respectively.Let r denote the residual vector associated with the least squares solution, Modified Batch Intrinsic Plasticity (modBIP) Algorithm where x + denotes the least squares solution to equation (6) (with minimum norm if rank-deficient).We use the residual norm r as an indicator to the accuracy of the least squares solution.Since r can be readily evaluated, we will use preliminary simulations to compute r and estimate the best S b .The main steps are as follows: Modified Batch Intrinsic Plasticity (modBIP) Algorithm • Consider a set of points from a range for S b (e.g. S b ∈ [0.5, 5]). Modified Batch Intrinsic Plasticity (modBIP) Algorithm • For each S b value, set S c = S b /2 and pre-train the random coefficients of the network using modBIP. Modified Batch Intrinsic Plasticity (modBIP) Algorithm • Perform a preliminary ELM simulation using the pre-trained neural network, and compute r . Modified Batch Intrinsic Plasticity (modBIP) Algorithm • Collect r for the set of S b values.Find the S b corresponding to the smallest (or close to the smallest) r .Use this value as an estimate for the best S b . Modified Batch Intrinsic Plasticity (modBIP) Algorithm With the estimate for S b available, we can then use it in modBIP and perform actual simulations for the given problem with ELM.It should be noted that in the simulations for estimating S b , the number of training data points should be larger than the number of training parameters in the neural network to avoid the regime of rank deficiency in the least squares solution. Modified Batch Intrinsic Plasticity (modBIP) Algorithm Remark 2.3.In the current work we have considered a symmetric interval [−S b , S b ] in the modBIP algorithm.For activation functions that are not symmetric or anti-symmetric (e.g.swish, softplus), one can imagine that the use of a non-symmetric interval such as [S b1 , S b2 ] in the algorithm might be more favorable.This aspect is not considered here, and we employ a symmetric interval in the current work. Modified Batch Intrinsic Plasticity (modBIP) Algorithm Remark 2.4.We observe that the ELM method, with the random coefficients pre-trained by the current modBIP algorithm, produces highly accurate simulation results, and that the accuracy of the combined ELM/modBIP method is insensitive to the random coefficient initializations.More specifically, with the hidden-layer coefficients initialized as random values generated on [−R m , R m ], for an arbitrary R m , the combined ELM/modBIP method produces accurate results and the accuracy is insensitive to R m .This is very different from the behavior of ELM without pre-training of the random coefficients (see e.g. Figure 1).We will demonstrate this point with numerical experiments in Section 3. Modified Batch Intrinsic Plasticity (modBIP) Algorithm Remark 2.5.It is evident that the modBIP algorithm does not involve the activation function in its construction.Therefore, essentially any activation function can be used in the neural network together with the current method.This is in sharp contrast with the BIP algorithm [30], which employs the inverse of the activation function in its construction.BIP requires the activation functions in the neural network to be invertible (i.e.monotonic).This precludes many often-used activation functions such as the Sigmoid weighted linear unit (SiLU or swish) [12], Gaussian error linear unit (GELU) [18], Gaussian, and other radial basis-type functions. Modified Batch Intrinsic Plasticity (modBIP) Algorithm Remark 2.6.We briefly mention another method for generating target samples from a normal distribution, which is different from what has been discussed above.In Algorithm 1 we replace the constant S c by two constants S c1 and S c2 , with 0 < S c1 S c2 .So now there are three constant parameters in the input, S b , S c1 and S c2 .We replace the lines 12 and 13 of Algorithm 1 by the following steps for generating the random target samples t i (1 i N s ): Here we use a random mean µ from [−S b , S b ] and a random standard deviation δ from [S c1 , S c2 ] for generating the target samples t i .We observe that a value around S b = 2 ∼ 2.5, S c1 = 0.2 and S c2 = S b /2 generally produce results with good accuracy. Solving Linear Differential Equations with Combined ELM/modBIP We will test the modBIP pre-training algorithm by combining it with ELM for solving linear partial differential equations.We first initialize the hidden-layer coefficients in the neural network by uniform random values from [−R m , R m ], for some prescribed R m .Then we pre-train these random coefficients by modBIP, and afterwards fix the updated hidden-layer coefficients.At this point, we can use the ELM method and the pre-trained neural network in the usual fashion.We can compute the training parameters (output-layer coefficients) by a linear least squares method for solving linear partial differential equations.This will be discussed in this subsection. Solving Linear Differential Equations with Combined ELM/modBIP The use of ELM for solving linear partial differential equations has been discussed in a number of previous works; see e.g.[31,10,6] and the references therein.For the sake of completeness, we summarize the main procedure below, and we refer the reader to e.g.[6] for more detailed discussions of related aspects.Here we assume that the hidden-layer coefficients of the neural network have been pre-trained by modBIP as discussed above.So the weight/bias coefficients in the hidden layers are fixed throughout the computations to be discussed below. Solving Linear Differential Equations with Combined ELM/modBIP For illustration we consider a rectangular domain in two dimensions (2D Solving Linear Differential Equations with Combined ELM/modBIP If the problem is time-dependent, we will treat the time t in the same way as the spatial variables, and use the last independent variable to denote the time t.In the case with two independent variables, for time-dependent problems, the last independent variable (i.e.y) denotes the time t.With this notation, we can treat time-dependent and time-independent problems in a unified fashion.So the following discussions also apply to time-dependent problems. Solving Linear Differential Equations with Combined ELM/modBIP Consider a generic linear partial differential equation on Ω, Solving Linear Differential Equations with Combined ELM/modBIP where u(x, y) is the field function to be solved for, L is a linear differential operator, B is a linear operator, f (x, y) is a prescribed source term on the domain, and g(x, y) is a prescribed source term defined on the domain boundary ∂Ω.We assume that the system as given by (8a)-(8b) is well-posed.Note that, depending on the order of L, the boundary condition (8b) may be imposed only on a part of the domain boundary, and that it should include the initial condition(s) if this is a time-dependent problem. Solving Linear Differential Equations with Combined ELM/modBIP To solve equations (8a)-(8b), we use an extreme learning machine (feed-forward neural network), with its random hidden-layer coefficients pre-trained by modBIP, to represent the solution field u(x, y).The input layer of the neural network consists of two nodes, representing x and y, respectively.The output layer of the neural network consists of one node, representing the solution u.The neural network contains one or multiple hidden layers in between.Let M denote the number of nodes in the last hidden layer of the neural network, and let V j (x, y) (1 j M ) denote the output fields of the last hidden layer.Then the logic of the output layer is given by Solving Linear Differential Equations with Combined ELM/modBIP where β j (1 j M ) denote the weight coefficients in the output layer, which are the training parameters of the neural network.We employ (Q x + 1) and (Q y + 1) uniform grid points in the x and y directions, respectively, with their coordinates given by Solving Linear Differential Equations with Combined ELM/modBIP We enforce the equation (8a) on all the grid points (x p , y q ), which will be refer to as the collocation points, and arrive at Solving Linear Differential Equations with Combined ELM/modBIP where equation ( 9) has been employed.Let X b denote the set of collocation points, among (x p , y q ), that reside on the domain boundary ∂Ω where the boundary condition (8b) is imposed on.Let Q b denote the number of points in X b .We enforce the boundary condition (8b) on each (x m , y m ) ∈ X b , and arrive at Solving Linear Differential Equations with Combined ELM/modBIP Equations ( 11) and ( 12) form a linear algebraic system about the training parameters β j (1 j M ).This system consists of [(Q x + 1)(Q y + 1) + Q b ] equations and M unknowns.The terms involved in the coefficient matrix, such as V j (x p , y q ), LV j (x p , y q ), V j (x m , y m ) and BV j (x m , y m ), can be computed by a forward evaluation of the neural network or by auto-differentiation.We seek a least squares solution (with minimum norm if the problem is rank deficient) to this system, and solve it by the linear least squares method [14].In the current implementation, we have employed the linear least squares routine from LAPACK, available through the wrapper function in the scipy package in Python (function scipy.linalg.lstsq). Solving Linear Differential Equations with Combined ELM/modBIP In the current paper, we implement the neural network in Python employing the Tensorflow and Keras libraries.The neural-network layers are implemented as the "Dense" layers in Keras.The input (training) data to the neural network consist of the coordinates of all the collocation points (x p , y q ) (0 p Q x and 0 q Q y ) in the domain.In our implementation, we have incorporated an affine mapping between the input layer and the first hidden layer to normalize the input (x, y) Solving Linear Differential Equations with Combined ELM/modBIP . This mapping is implemented by a "lambda" layer in Keras, which contains no weight/bias coefficients.This lambda layer does not need to be pre-trained by modBIP.With this lambda layer incorporated, in line 3 of Algorithm 1, Φ l−1 should be the output of the lambda layer, i.e. the normalized data, instead of the original input data X. Solving Linear Differential Equations with Combined ELM/modBIP After the linear system consisting of ( 11) and ( 12) is solved by the linear least squares method, the weight coefficients of the output layer will be set to the computed solution.Then the neural network is evaluated on a set of finer grid points, which is different from the training data points, to attain the field solution data u(x, y).The solution data is then compared with e.g. the exact solution to compute the errors and other useful quantities.These steps have been followed in the numerical experiments of Section 3. Solving Linear Differential Equations with Combined ELM/modBIP Remark 2.7.For longer-time simulations of time-dependent partial differential equations, we employ the block time-marching scheme developed in [6].The spatial-temporal domain is first divided into a number of windows along the time (time blocks).The equations (11) and (12) are solved on each time block, individually and successively, using the method discussed in this sub-section.After one time block is computed, the solution at the last time instant will be evaluated, and used as the initial condition for the computation of the time block that follows.We refer to [6] for more detailed discussions of this scheme.Block time marching has been employed for simulations of time-dependent problems in Section 3. Representative Numerical Examples In this section we evaluate the performance of the modBIP algorithm using function approximation and linear partial differential equations in one or two dimensions (1D/2D) in space, and plus time if the problem is time-dependent.We solve these equations numerically by the combined ELM/modBIP method as discussed in Section 2.3.The random hidden-layer coefficients in the neural network are pre-trained by modBIP first, and then they are fixed and used in ELM for finding the solutions to the differential equations.In the numerical experiments reported below, with modBIP we employ S c = S b /2, and estimate S b using the procedure outlined in Remark 2.2 by computing the residual norm of the linear least squares (LLSQ) problem in ELM.When generating the target samples on the random interval [t min , t max ], we have employed the normal distribution with a mean (t min + t max )/2 and a standard deviation (t max − t min )/4 (see line 13 of Algorithm 1) in all the numerical tests.The numerical experiments are conducted on a MAC computer (3.2GHzQuad-Core Intel Core i5 CPU, 24GB memory) in the authors' institution.The wall clock time is collected by using the "timeit" module in Python. Representative Numerical Examples In the current implementation, the initial random coefficients in the hidden layers are generated using the random number generator from the Tensorflow library (invoked by the initialization routines in the Keras library), while the random values in the modBIP algorithm are generated by the random number generator in the numpy package in Python.In order to make all the simulation results reported here fully repeatable, we have employed the same seed value for the random number generators in both Tensorflow and numpy, and the seed value is fixed for all the numerical experiments reported within a subsection.More specifically, the seed value is 1 for the numerical experiments presented in Sections 3.1 and 3.2, 12 for those in Section 3.3, and 22 for those in Section 3.4, respectively. Representative Numerical Examples Hereafter we employ the vector [M 0 , M 1 , . . ., M L ] (L 2) to represent the architecture of the feed-forward neural network in ELM, where the vector length (L + 1) denotes the number of layers in the network and M i is the number of nodes in layer i for 0 i L. Note that M 0 and M L are the numbers of nodes in the input and output layers, respectively.The number of training parameters in ELM is M L−1 , i.e. the number of nodes in the last hidden layer, as discussed in Section 2. Function Approximation We approximate the following function u(x) by the combined ELM/modBIP method, Function Approximation Figure 3(a) shows the distribution of this function on the domain.Note that the function approximation problem is equivalent to solving the linear PDE (8a), with no boundary condition, in which L is given by the identity operator and f is given by the function to be approximated.Let us first consider a single hidden layer in the neural network, with the network architecture given by [1, 100, 1] and tanh as the activation function in the hidden layer (the output layer is linear).The input node represents x, and the output node represents the function u(x).The input data to the neural network consists of Q = 121 uniform grid (collocation) points on [0, 2.5]; see equation (10) when restricted to 1D.The function values on these collocation points are provided in equation (8a) as the data for the source term.The hidden-layer coefficients are initialized by uniform random values generated on [−R m , R m ], with R m specified below. Function Approximation We first estimate the S b in modBIP using the procedure from Remark 2.2.The pre-trained random coefficients are then used in ELM to compute the training parameters (i.e. the output-layer coefficients) by the linear least squares method for approximating the function (13).So the approximation function is now represented by the fully trained neural network.We then evaluate the trained neural network on a set of 401 (finer) uniform grid points to compute the approximant values, which are then compared with the exact function (13) to attain the errors.We can observe from Figure 3(c) that, with the modBIP pre-training of the random coefficients, the ELM error is essentially independent of R m , although some fluctuations with respect to R m can be observed in certain cases.This insensitivity to R m is a common characteristic of the combined ELM/modBIP method, which will be observed repeatedly in subsequent numerical experiments. Function Approximation Figures 4 and 5 are comparisons of the ELM errors of the function approximation problem obtained with three configurations: no pre-training of the random coefficients, and with pre-training of the random coefficients by the BIP algorithm [30] and by the current modBIP algorithm.As mentioned before, the network architecture is characterized by [1, 100, 1], with the tanh activation function and Q = 121 uniform collocation points as the training data points.In this set of tests the initial random coefficients are generated with R m either fixed at R m = 50 or varied systematically.In the case without pre-training, the initial random coefficients are directly used in ELM for computing the training parameters and the approximation function.In the cases with pre-training, the initial random coefficients are pre-trained by BIP or modBIP first, and the pre-trained hidden-layer coefficients are then used in ELM for computing the approximation function. Function Approximation With BIP, we employ a normal distribution for generating the target samples for each hidden-layer node, with a random mean from [−1, 1] and a standard deviation 0.5, as described in [30].The inverse of tanh is then applied to the target samples, which are then used to compute the mapping coefficients in BIP [30]. Function Approximation With modBIP pre-training, we employ S c = S b /2 and S b = 10 in Algorithm 1. Figure 4 compares profiles of the absolute error of the ELM approximant obtained without pre-training, with BIP pre-training, and with modBIP pre-training of the random coefficients.The initial random coefficients are generated with R m = 50 in this set of tests.The error levels of the ELM result with BIP pre-training and without pre-training are largely comparable, both on the order of 10 −3 .In contrast, the error level of the ELM result with the modBIP pre-training is considerably lower, on the order of 10 −9 .This indicates that the combined ELM/modBIP method is markedly more accurate than the ELM methods without pre-training and with the BIP pre-training of the random coefficients. Function Approximation Figure 5 shows the maximum and root-mean-squares (rms) errors in the domain of the ELM approximants obtained without pre-training and with BIP and modBIP pre-training of the random coefficients.In this set of tests, R m is varied systematically between 0.1 and 100, and the maximum/rms errors of the ELM solution corresponding to the initial random coefficients generated on [−R m , R m ], with and without pre-training, are computed and collected.Without pre-training of the random coefficients, the ELM accuracy exhibits a strong dependence on R m .It produces quite accurate results in a range of moderate R m values, while outside this range the accuracy can be quite poor; see Figure 5 of the random coefficients, the error of the ELM result is observed to be largely independent of R m .The ELM error level corresponding to the modBIP pre-training is considerably smaller than that of the BIP pre-training (see Figures 5(b,c)). Function Approximation A prominent advantage of modBIP over BIP lies in that modBIP does not place any constraint on the activation function, while BIP requires the activation function to be invertible.So modBIP can be applied with many activation functions with which BIP breaks down.Two such examples are provided in Figure 6, with the Gaussian and the swish [12] activation functions.Neither of these two functions has an inverse.Here the neural network has the same architecture as before, but the activation function for the hidden layer has been changed to the Gaussian function (σ(x) = e −x 2 ) or the swish function (σ(x) = x/(1 + e −x )).The initial random coefficients are generated with a fixed R m = 50 (plot (a)) or a varying R m (plots (b,c)), and pre-trained by modBIP.We employ the same training data points as before (Q = 121), and S c = S b /2 in modBIP.Figure 6(a) shows the LLSQ residual norms for estimating the best S b , suggesting a value around S b ≈ 20 with the Gaussian function and around S b ≈ 24 with the swish function.Figures 6(b,c) show the maximum and rms errors in the domain of the ELM/modBIP approximant as a function of R m , corresponding to the Gaussian activation function (with S b = 20) and to the swish activation function (with S b = 24).The ELM/modBIP results exhibit a high accuracy (error level around 10 −10 ∼ 10 −7 ), which is insensitive to R m (or the initial random coefficients).It should be noted that the BIP algorithm breaks down when used with these activation functions, because they do not have an inverse. Function Approximation The results presented so far are obtained with a single hidden layer in the neural network.Let us next investigate the performance of the ELM/modBIP method with neural networks containing multiple hidden layers.Figures 7 and 8 display ELM/modBIP results obtained with 3 and 7 hidden layers in the neural network, respectively.The network architecture is characterized by the vectors [1,40,40 Figure 8 shows the corresponding ELM/modBIP results obtained with seven hidden layers in the neural The results in Figures 7 and 8 indicate that the combined ELM/modBIP method produces highly accurate results with multiple hidden layers in the neural network.The best S b for modBIP (with S c = S b /2) appears to decrease with increasing number of hidden layers in the neural network.The ELM/modBIP errors are not sensitive to the initial random coefficients, similar to what has been observed with a single hidden layer in the network.These errors decrease approximately exponentially as the number of collocation points or the number of training parameters increases, until they essentially saturate when the number of collocation points or training parameters becomes sufficiently large. Poisson Equation We next consider the two-dimensional (2D) domain Ω = {(x, y) | x ∈ [0, 2], y ∈ [0, 2]}, and test the combined ELM/modBIP method using the boundary value problem with the Poisson equation on Ω: Poisson Equation u(0, y) = g 1 (y), (14b) Poisson Equation where u(x, y) is the field function to be solved for, f (x, y) is a prescribed source term, and g 1 , g 2 , h 1 and h 2 are the Dirichlet boundary distributions.We consider the following manufactured solution to this problem, Poisson Equation Accordingly, the source term f and the boundary distributions are chosen such that the expression (15) satisfies the system (14).Figure 9(a) illustrates the distribution of this analytic solution. Poisson Equation We employ the combined ELM/modBIP method to solve the system (14); see Section 2.3.We first consider a single hidden layer in the neural network, with an architecture given by [2, 500, 1], the tanh activation function for the hidden layer, and a linear output layer.The input layer (2 nodes) represents the coordinates x and y, and the output layer (1 node) represents the field solution u(x, y).We employ a set of Q = 25 × 25 uniform grid (collocation) points as the training data points, i.e. with 25 points in both x and y directions (see equation ( 10)), which constitute the input data into the neural network.The hidden-layer Figure 10 compares distributions of the absolute error of the ELM solution obtained with no pre-training and with the BIP and the modBIP pre-training of the random coefficients in the neural network.Here we have employed a network architecture given by [2, 500, 1], the tanh activation function for the hidden layer, Q = 25 × 25 uniform collocation points, and R m = 10 for generating the initial random coefficients.With BIP, we employ a normal distribution for the target samples, with a random mean generated on [−1, 1] from a uniform distribution and a standard deviation 0.5 [30].With modBIP we employ S b = 3 and S c = S b /2 in the algorithm.One can observe that the ELM result is inaccurate without pre-training of the random coefficients.With both BIP and modBIP pre-training of the random coefficients, the ELM method produces accurate solutions to the Poisson equation.The ELM/modBIP solution is markedly more accurate than that of ELM/BIP. Poisson Equation Figure 11 is a further comparison of the cases with no pre-training and with BIP and modBIP pre-training of the random coefficients.Here we vary R m systematically, and for each R m we initialize the hidden-layer coefficients to uniform random values from [−R m , R m ], which are then pre-trained by BIP or modBIP and Figure 12 illustrates the ELM/modBIP results attained with the Gaussian and the swish activation functions for the hidden layers.It should be noted that the BIP algorithm [30] breaks down with these activation functions because they do not have an inverse.In these tests, we have employed a network architecture [2, 500, 1], Q = 25 × 25 uniform collocation points, either a fixed R m = 10 or a varying R m for generating the initial random coefficients, and S c = S b /2 in modBIP.Figure 12(a) shows the LLSQ residual norms for estimating the S b parameter in modBIP, which suggest a value around S b ≈ 5 with the Gaussian function and a value around S b ≈ 7 with the swish function.Figures 12(b) and (d) show the error distribution of the ELM/modBIP solution with R m = 10, and its maximum/rms errors corresponding to the initial random coefficients generated with different R m , computed using the Gaussian activation function with S b = 5 in modBIP.Figures 12(c) and (e) show the corresponding ELM/modBIP results computed using the swish activation function with S b = 7 in modBIP.These data indicate that the combined ELM/modBIP method produces highly accurate results with these activation functions, and that its accuracy is insensitive to the initial random coefficients. Poisson Equation Figure 13 compares the accuracy of the combined ELM/modBIP method and the ELM method with no pre-training of the random coefficients, and also examines the computational cost of the modBIP pre-training of the random coefficients.In this set of tests, we employ a neural network architecture [2, M, 1], where the number of training parameters M is either fixed at M = 500 or varied between M = 50 and M = 600.We employ the tanh activation function for the hidden layer, and directly for subsequent ELM computations. collocation points in the We next test the combined ELM/modBIP method for solving the Poisson equation with multiple hidden layers in the neural network.Figures 14 and 15 illustrate the ELM/modBIP simulation results obtained using neural networks containing 3 hidden layers, with an architecture [2,50,50,500,1], and 5 hidden layers, with an architecture [2,50,50,50,50,500,1], respectively.The activation function is tanh in the hidden layers.In these tests the initial random coefficients are generated on [−R m , R m ] with R m either fixed at R m = 10 or varied between R m = 0.1 and R m = 100.We employ Q = Q 1 × Q 1 uniform collocation points, where Q 1 is fixed at Q 1 = 25 or varied between Q 1 = 5 and Q 1 = 50.In modBIP we employ S c = S b /2 and determine S b based on the procedure from Remark 2.2. collocation points in the Figure 14(a) shows the LLSQ residual norms for estimating S b , suggesting a value around S b ≈ 1 for modBIP with three hidden layers in the neural network.Figures 14(b) to (d) show the error distribution, and the maximum/rms errors in the domain of the ELM/modBIP solution as a function of R m and Q 1 , obtained with S b = 1 in modBIP.The specific parameter values for each plot are provided in the caption of this figure.Figure 15(a) shows the LLSQ residual norms computed with 5 hidden layers in the neural network, suggesting a value around S b ≈ 0.8 in this case.Figures 15(b,c,d) show the ELM/modBIP results obtained with 5 hidden layers in the neural network and S b = 0.8 in modBIP, which correspond to those of Figures 14(b,c,d).These results confirm that the combined ELM/modBIP method produces accurate simulation results with multiple hidden layers in the neural network.The characteristics of exponential convergence and insensitivity to R m are similar to what has been observed with single-hidden-layer neural networks. collocation points in the Figure 16 Wave Equation We next test the ELM/modBIP method using the one-dimensional second-order wave equation (plus time).Consider the spatial-temporal domain, Ω = {(x, t) | x ∈ [0, 5], t ∈ [0, 10]}, and the initial/boundary-value problem with the wave equation on this domain, Wave Equation where u(x, t) is the field solution to be solved for, periodic boundary conditions are imposed on x = 0 and 5, c is the wave speed, x 0 is the initial peak location of the wave, and the constant δ 0 controls the width of the wave profile.The constant parameters assume the following values for this problem: Wave Equation This problem has the following solution, Wave Equation where mod refers to the modulo operation.The two terms in this solution represent the leftward-and rightward-traveling waves, respectively.Figure 17(a) shows the distribution of this solution in the spatialtemporal plane. Wave Equation To simulate this problem, we employ the block time-marching scheme and the local extreme learning machines (locELM) developed in [6].We first divide the spatial-temporal domain Ω along the temporal direction into 20 uniform time blocks, and the system (16) is computed on each time block individually and successively (see Remark 2.7).We partition the spatial-temporal domain of each time block into 4 uniform sub-domains along the x direction, and represent the field solution u(x, t) on each sub-domain by a local feed-forward neural network [6].C 1 continuity conditions are imposed on the sub-domain boundaries.The configuration of the local neural networks follows that of the ELM.The weight/bias coefficients in the hidden layers of the local neural networks are initialized as uniform random values generated on [−R m , R m ], which are pre-trained by modBIP and then fixed afterwards.The output layers of the local neural networks are linear (with zero bias), and the weight coefficients therein are the training parameters and can be determined by a least squares computation.The local neural networks are coupled with one another due to the C 1 continuity conditions [6], and need to be trained together as a whole system.By enforcing the system of equations, boundary/initial conditions, and the C 1 continuity conditions on a set of collocation points inside each sub-domain and on the domain and sub-domain boundaries, we arrive at a system of linear algebraic equations about the training parameters, which can be solved by the linear least squares method.We refer to [6] for more detailed discussions of the locELM method and the block time marching scheme. Wave Equation After the random coefficients in the local neural networks are initialized, we use modBIP to pre-train the random coefficients in each local neural network (see Algorithm 1), and then employ the pre-trained random coefficients in the locELM computation for the training parameters based on the linear least squares method.We refer to the overall method as the combined locELM/modBIP method. Wave Equation We first consider a single hidden layer in the local neural networks, whose architecture each is characterized by [2, 250, 1] and with tanh as the activation function for the hidden layers.The two nodes in the input layer represent the spatial-temporal coordinates x and t, and the single node in the output layer represents the field function u(x, t) on the corresponding sub-domain.We employ Q = 25 × 25 uniform collocation points on each sub-domain, and S c = S b /2 in the modBIP algorithm.S b in modBIP is determined by the procedure from Remark 2.2.value problem, Wave Equation where u(x, t) is the field solution to be solved for, the constant ν = 0.01 denotes the diffusion coefficient, f (x, t) is a prescribed source term, g 1 and g 2 are the Dirichlet boundary distributions at x = 0 and x = 1, and h(x) is the initial distribution.We employ the following manufactured solution to this problem, Wave Equation Accordingly, the source term f (x, t), the boundary/initial distributions g 1 , g 2 and h are chosen such that the expression (19) satisfies the system (18).Figure 22(a) shows the distribution of the analytic solution (19) in the spatial-temporal (x, t) plane.We employ the block time-marching scheme and the combined ELM/modBIP method to solve the system (18).We divide the spatial-temporal domain Ω along the temporal direction into 10 uniform time blocks, and solve the system (18) on each time block individually and successively (see Remark 2.7) using the combined ELM/modBIP method (see Section 2.3). Wave Equation Let us first consider the neural network containing a single hidden layer, with the architecture characterized by [2, 300, 1], the tanh activation function for the hidden layer and a linear output layer.The input layer (2 nodes) denotes the spatial/temporal coordinates (x and t), and the output layer (1 node) represents the field solution u(x, t).We employ a set of Q = 25 Concluding Remarks We have presented an effective algorithm (termed modBIP) for pre-training the random hidden-layer coefficients of extreme learning machines (ELM), and applied the combined ELM/modBIP method to function approximations and solving partial differential equations.The initial random coefficients in the neural network are first pre-trained by modBIP, and the updated hidden-layer coefficients are then fixed and employed in the least squares computation with the ELM method.The modBIP algorithm is devised based on the same principle as the batch intrinsic plasticity (BIP) method, namely, by enhancing the information transmission in every node of the neural network. Concluding Remarks Suppose the neural network architecture is chosen, which may be shallow or deep, the hidden-layer coefficients are initialized to random values, and that the input data to the neural network are given.The modBIP algorithm pre-trains the random hidden-layer coefficients as follows.For each node in each hidden layer of the neural network, this algorithm first computes the total (synaptic) input to this node for all input data samples to the neural network.The synaptic input samples are then mapped, by an affine mapping, to a set of random target samples on a random sub-interval of [−S b , S b ] with a minimum size, where S b is a user-provided hyper-parameter.The coefficients in the affine mapping are determined by solving a linear least squares problem, and are used to update the random weight and bias coefficients associated with this node.These operations are performed on each hidden layer, individually and successively, and within each hidden layer node by node.For a given particular problem, the S b parameter in modBIP can be estimated with preliminary simulations by computing the residual norm of the least squares problem associated with the least squares solution in ELM; see the procedure outlined in Remark 2.2. Concluding Remarks The modBIP method differs from BIP [30] in one prominent aspect: modBIP does not involve the activation function in its algorithm.In contrast, the BIP method employs the inverse of the activation function in its construction, and requires the activation function to be invertible (or monotonic).This limits the applicability of BIP to neural networks with only monotonic activation functions.On the other hand, the modBIP method can be applied with essentially any activation function, including those often-used nonmonotonic activation functions such as the Gaussian function, swish function, Gaussian error linear unit (GELU), and the class of radial basis activation functions. Concluding Remarks Another crucial construction in modBIP is the random sub-interval of [−S b , S b ] with a minimum size S c , on which the random target samples are generated.This is the key that accounts for the high accuracy of the modBIP (combined with ELM) results.If this sub-interval is fixed, instead of being random, much of the high accuracy will be lost.As demonstrated by ample numerical experiments, when combined with ELM, the modBIP method typically produces much more accurate simulation results than BIP. Concluding Remarks In the current paper we have used partial differential equations to test the combined ELM/modBIP method, and presented extensive numerical experiments to evaluate its computational performance.We have the following observations: Concluding Remarks • The combined ELM/modBIP method produces highly accurate simulation results, and its accuracy is insensitive to the initial random coefficients of the neural network.More precisely, its accuracy is insensitive to the R m for generating the initial random coefficients.In contrast, without pre-training the random coefficients, the accuracy of the ELM solution is strongly dependent on R m , where the initial random coefficients are generated on [−R m , R m ]. Concluding Remarks • The combined ELM/modBIP method works well with non-monotonic activation functions, and produces highly accurate results.With the Gaussian activation function, the combined ELM/modBIP method appears to produce generally the most accurate results among the activation functions tested herein.In contrast, the BIP method [30] breaks down with non-monotonic activation functions. Concluding Remarks • Irrespective of the initial random coefficients, the errors of the combined ELM/modBIP solution decrease exponentially or nearly exponentially, as the number of training data points in the domain or the number of training parameters in the neural network increases. Concluding Remarks • The combined ELM/modBIP method works well with both shallow and deep neural networks.The favorable numerical properties, such as the error insensitivity to initial random coefficients and the exponential convergence with respect to the collocation points and the training parameters, are observed with both shallow and deep neural networks. Concluding Remarks • The computational cost of the modBIP pre-training of the random coefficients is low, and it is only a fraction of the ELM training cost of the neural network.In typical simulations the modBIP pretraining cost is within 10% of the ELM training cost for the neural network.Furthermore, the modBIP pre-training of the random coefficients logically only needs to be performed once for a given network architecture and the input data, and the pre-trained random coefficients can be saved and used later directly by ELM. Concluding Remarks The numerical results demonstrate unequivocally that modBIP provides an efficient and effective technique for pre-training the random coefficients to achieve high accuracy with ELM.It significantly boosts the computational performance of ELM.The combined ELM/modBIP method can produce accurate simulation results, regardless of the initial random coefficients in the neural network.This method is promising in terms of both the accuracy and the computational cost.We anticipate that the ELM/modBIP method will be useful to and instrumental in neural network-based scientific computing and the computational understanding of important physical processes and phenomena [5,2]. Figure 1 : Figure 1: Illustration of the random-coefficient effect on ELM accuracy: the maximum/rms errors of the ELM solution versus R m (maximum magnitude of the random coefficients), for solving 1D Helmholtz equation. 4 else 5 compute 6 end 7 for k ← 1 Φ l−1 by evaluating the neural network (first l − 1 layers) on the input data X to M l do 8 set w to point to the column k of W l 9 set b k to point to the k-th component of b l 10 compute the input samples s i (1 i N s ) by equation (3) Figure 2 : Figure 2: Profiles of several commonly-used activation functions. Figure 2 : generate a uniform random number µ on [−S b , S b ]; generate a uniform random number δ on [S c1 , S c2 ]; generate random numbers t i (1 i N s ) from a normal distribution with mean = µ, stddev = δ. Figure 3 : Figure 3: Function approximation: (a) Distribution of the exact function.(b) Residual norm of the linear least squares (LLSQ) problem versus S b , for estimating the best S b in modBIP.(c) The maximum error of the ELM/modBIP solution as a function of R m , corresponding to several S b in modBIP. Figure 3 ( b) shows the residual norm of the linear least squares (LLSQ) problem as a function of S b in a set of preliminary simulations.Here the initial random coefficients in the neural network are generated with R m = 50.They are pre-trained by modBIP, with S c = S b /2 and S b from a range of values.The residual norm of the LLSQ problem in ELM is collected corresponding to these S b values and plotted in Figure 3(b).This plot indicates that, while the residual norm at times fluctuates with respect to S b , it achieves a relatively low level for a range of S b ≈ 10 ∼ 20 for this problem.We employ S b = 10 in modBIP in the majority of subsequent tests for this problem. Figure 3 ( c) illustrates the general behavior of the ELM approximation error, with the random coefficients pre-trained by modBIP.It shows the maximum error in the domain of the ELM approximant as a function of R m , the maximum magnitude of the initial random coefficients, corresponding to several S b values around S b = 10 in the modBIP algorithm.Here for a given S b value, we vary R m systematically in the range 0.1 R m 100, and for each R m we initialize the hidden-layer coefficients by uniform random values generated on [−R m , R m ] and pre-train the random coefficients by modBIP with the given S b and S c = S b /2. Figure 4 : Figure 4: Function approximation: Distributions of the absolute error of the ELM approximant obtained with (a) no pre-training, (b) BIP pre-training, and (c) modBIP pre-training of the random coefficients. Figure 5 : Figure 5: Function approximation: The maximum and rms errors in the domain of the ELM approximant as a function of R m , attained with (a) no pre-training, (b) BIP pre-training, and (c) modBIP pre-training of the random coefficients. Figure 6 : Figure 6: Function approximation (non-monotonic activation functions): (a) Residual norm of the LLSQ problem versus S b , for estimating the best S b in modBIP.The maximum and rms errors of the ELM solution as a function of R m obtained using (b) the Gaussian and (c) the swish activation functions, with the random coefficients pre-trained by modBIP. Figure 6 : , M, 1] and [1, 40, 40, 40, 40, 40, 40, M, 1] in these two cases, respectively, where M denotes the number of training parameters and is either fixed at M = 100 or varied between M = 20 and M = 200.The activation function is tanh in all hidden layers, and the output layer is linear.We employ Q uniform grid (collocation) points in the domain as the training data points, with Q either fixed at Q = 150 or varied between Q = 10 and Q = 300.The initial hidden-layer coefficients are set to uniform random values generated on [−R m , R m ], with R m either fixed at R m = 50 or varied between R m = 0.1 and R m = 100.These initial random coefficients are pre-trained by modBIP with S c = S b /2. Figure 7 illustrates the ELM/modBIP results with three hidden layers in the neural network.The plot (a) shows the LLSQ residual norms for estimating the best S b in modBIP, suggesting a value around S b ≈ 3.5.The plot (b) depicts the error distribution of the ELM/modBIP approximant against the actual function (13).The plots (c,d,e) show the maximum and rms errors in the domain of the ELM/modBIP appximant as a function of R m , the number of training collocation points Q, and the number of training parameters M .The specific parameter values employed for each plot are provided in the caption of Figure 7. Figure 9 : Figure 9: Poisson equation: (a) Distribution of the exact solution.(b) LLSQ residual norm as a function of S b , for estimating the best S b in modBIP.(c) The maximum error of the ELM/modBIP solution as a function of R m .R m = 10 in (b) and is varied in (c).Q = 25 × 25 in (c), and takes several values in (b).S b takes several values in (c), and is varied in (b). Figure 10 : Figure 10: Poisson equation: Distributions of the absolute error of the ELM solution computed with (a) no pre-training, (b) BIP pre-training, and (c) modBIP pre-training of the random coefficients. Figure 11 : Figure 11: Poisson equation: the maximum and rms errors in the domain as a function of R m , obtained with (a) no pre-training, (b) BIP pre-training, and (c) modBIP pre-training of the random coefficients. Figure 12 : Figure 12: Poisson equation (non-monotonic activation functions): (a) LLSQ residual norms versus S b , for estimating the best S b in modBIP with the Gaussian and swish activation functions.Error distributions of the ELM/modBIP solution obtained with (b) Gaussian and (c) swish activation functions.Maximum/rms errors of the ELM/modBIP solution versus R m , obtained with (d) Gaussian and (e) swish activation functions.R m = 10 in (a,b,c) and is varied in (d,e).S b = 5 in (b,d) and S b = 7 in (c,e). Figure 13 : Figure 13: Poisson equation: The maximum/rms errors of the ELM/modBIP solution as a function of (a) the number of collocation points in each direction and (b) the number of training parameters, attained with no pre-training and with modBIP pre-training of the random coefficients.The modBIP pre-training time of the random coefficients, and the ELM training time of the neural network, as a function of (c) the number of collocation points in each direction and (d) the number of training parameters. Figure 14 : Figure 14: Poisson equation (3 hidden layers in neural network): (a) LLSQ residual norms versus S b , for estimating the best S b in modBIP.(b) Error distribution of the ELM/modBIP solution.Maximum/rms errors of the ELM/modBIP solution as a function of (c) R m , and (d) the number of collocation points in each direction.S b = 1 in (b,c,d) and is varied in (a).R m = 10 in (a,b,d) and is varied in (c).Q = 25 × 25 in (a,b,c) and is varied in (d).M = 500 in (a,b,c,d). Figure 15 : Figure 15: Poisson equation (5 hidden layers in neural network): (a) LLSQ residual norm for estimating the best S b in modBIP.(b) Error distribution of the ELM/modBIP solution.The maximum/rms errors of ELM/modBIP solution as a function of (c) R m , and (d) the number of collocation points in each direction.S b = 0.8 in (b,c,d) and is varied in (a).R m = 10 in (a,b,d) and is varied in (c).Q = 25 × 25 in (a,b,c) and is varied in (d).M = 500 in (a,b,c,d). Figure 16 : Figure 16: Poisson equation: The modBIP pre-training time of the random coefficients and the ELM training time of the neural network as a function of the number of collocation points in each direction, obtained with 3 hidden layers (a) and 5 hidden layers (b) in the neural network.The network architecture of (a) is [2, 50, 50, 500, 1] and the parameter values correspond to those of Figure 14(d).The network architecture of (b) is [2, 50, 50, 50, 50, 500, 1] and the parameter values correspond to those of Figure 15(d). Figure 17 : Figure 17: Wave equation: (a) Distribution of the exact solution in the spatial-temporal plane.(b) The maximum residual norm of the LLSQ problem versus S b , for estimating the best S b in modBIP.(c) The maximum error in the overall domain as a function of R m , corresponding to several S b values in modBIP for pre-training the random coefficients. Figure 22 : Figure 22: Diffusion equation: (a) Distribution of the exact solution in the spatial-temporal plane.(b) The maximum residual norm of the linear least squares (LLSQ) problem as a function of S b , for estimating the best S b in modBIP.(c) The maximum error in the domain of the ELM/BIP solution as a function of R m , corresponding to several S b values in modBIP.R m = 100 in (b) and is varied in (c). Figure 22 : × 25 uniform grid (collocation) points on each time block (25 points in both x and t directions) as the training data points, which constitute the input data into the neural network.The hidden-layer coefficients in the neural network are initialized to uniform random values generated on [−R m , R m ], with R m either fixed at R m = 100 or varied between R m = 0.1 and R m = 100 in the subsequent tests.The initial random coefficients are pre-trained by modBIP with S c = S b /2 and S b determined by the procedure discussed in Remark 2.2. Figure 22(b) shows the LLSQ maximum residual norm among the 10 time blocks for estimating the best S b in modBIP, which suggests a value around S b ≈ 2.5.This set of tests are performed with a fixed R m = 100 when generating the random coefficients in the neural network. Figure 22 : Figure 22(c) plots the maximum error in the overall domain of the ELM/modBIP solution as a function of R m , with several S b values around S b = 2.5

섹션 본문 135문단 · 75,331자

(제목 없음)

1In extreme learning machines (ELM) the hidden-layer coefficients are randomly set and fixed, while the output-layer coefficients of the neural network are computed by a least squares method.The randomlyassigned coefficients in ELM are known to influence its performance and accuracy significantly.In this paper we present a modified batch intrinsic plasticity (modBIP) method for pre-training the random coefficients in the ELM neural networks.The current method is devised based on the same principle as the batch intrinsic plasticity (BIP) method, namely, by enhancing the information transmission in every node of the neural network.It differs from BIP in two prominent aspects.First, modBIP does not involve the activation function in its algorithm, and it can be applied with any activation function in the neural network.In contrast, BIP employs the inverse of the activation function in its construction, and requires the activation function to be invertible (or monotonic).The modBIP method can work with the oftenused non-monotonic activation functions (e.g.Gaussian, swish, Gaussian error linear unit, and radial-basis type functions), with which BIP breaks down.Second, modBIP generates target samples on random intervals with a minimum size, which leads to highly accurate computation results when combined with ELM.The combined ELM/modBIP method is markedly more accurate than ELM/BIP in numerical simulations.Ample numerical experiments are presented with shallow and deep neural networks for function approximation and boundary/initial value problems with partial differential equations.They demonstrate that the combined ELM/modBIP method produces highly accurate simulation results, and that its accuracy is insensitive to the random-coefficient initializations in the neural network.This is in sharp contrast with the ELM results without pre-training of the random coefficients.

Introduction

2This work concerns the use of extreme learning machines (ELM) for scientific computing, chiefly for solving ordinary and partial differential equations (ODE/PDE).ELM is proposed in [20] for single hidden-layer feed-forward networks (SLFN), and consists of two main ideas: (i) the weights/biases in the hidden layer are randomly set and fixed, and (ii) the weights of the linear output layer are computed/trained by a linear least squares method or by using the pseudo-inverse (Moore-Penrose inverse) of the coefficient matrix.In the context of the current paper we will broadly refer to neural network-based methods adopting these strategies as ELM methods, including those that employ multiple hidden layers in the neural network and those that train the output-layer coefficients by nonlinear least squares computations (see e.g.[6]).ELM is one type of random-weight neural networks [37,13], which randomly assign and fix a subset of the network's weights so that the resultant optimization task of training the neural network can be simpler, and often linear, for example, formulated as a linear least squares problem.Randomization can be applied to both feed-forward and recurrent networks, leading to methodologies such as the random vector functional link (RVFL) networks [32,21], the extreme learning machine [20,19], the no-propagation network [45], the echo-state network [22,27], and the liquid state machine [28].The universal approximation property of the random-weight feed-forward neural networks has been studied and proven in e.g.[21,25,20].Randomized neural networks can be traced to the un-organized machines by Turing [43] and the perceptron by Rosenblatt [34] in the 1950s.After a hiatus of several decades, contributions started to appear in the 1990s, and in recent years such methods have witnessed a strong revival.We refer to e.g.[37] for a historical overview of randomized neural networks.

3With ELM one employs the least squares method, either linear or nonlinear least squares [6], to compute/train the training parameters, which consist of only the weights in the linear output layer of the neural network.This training method is different from the back propagation (or gradient descent) type algorithms [44,16], which have been widely used in the deep neural network (DNN) based PDE solvers in recent years (see e.g.[38,33] and related approaches [24,35,11,46,17,26,47,50,42,23,36,48,7]).This is the primary factor that accounts for ELM's lower computational cost observed in numerical simulations [6].

4The randomly-assigned coefficients in the neural network are crucial to the performance of ELM, and strongly influence its accuracy.As an illustration, Figure 1 shows a typical plot of the L ∞ (maximum) and L 2 (root-mean-squares or rms) norms of the absolute error of the ELM solution as a function of R m , which denotes the maximum magnitude of the random coefficients, for solving the one-dimensional (1D) Helmholtz equation with Dirichlet boundary conditions.Here the hidden-layer coefficients of the network are assigned to uniform random values generated on the interval [−R m , R m ].It is evident that the random coefficients are critical to the ELM performance.We refer to [6] for a recent fairly detailed study of the random-coefficient effects on the ELM simulation results in solving linear and nonlinear partial differential equations.The effects of the random coefficients on the performance of ELM and other random-weight neural networks have also been recognized in regression and classification problems other than scientific computing (see e.g.[30,29,49,41,9,13], among others).

5How to choose, or perhaps pre-train, the random coefficients in the ELM (or related random-weight) neural networks is an important issue, and this issue is the focus of the current work.Several studies in this regard are available from the literature in the past few years.In [30] the batch intrinsic plasticity (BIP) method is proposed to pre-train and adapt the activation function of the hidden-layer neurons by a pseudo-inverse technique to achieve a desired output distribution, so that the information transmission of the neural network can be improved.BIP is inspired by the biological intrinsic-plasticity mechanism [40], which, when applied to recurrent networks, can enhance the encoding and improve the information transmission of the network [39].In [29] the authors employ the ELM method in handwritten digit classification, and investigate ways to set the input weights as a function of the input data by aiming to e.g.increase the inner product between the weights and the training data samples, constrain the input weights to a set of difference vectors, or make the input weights sparse.A combination of such ideas is also studied therein.In [49] the authors present an algorithm to grow the single hidden-layer feed-forward network incrementally, by adding a macro node each time, which consists of several hidden nodes and is called a subnetwork hidden node.The method calculates the subnetwork hidden nodes by pulling back the network error into the hidden layer for invertible activation functions, and by aiming to reduce the norms of the weights.In [41] the authors present a technique to constructively build single hidden-layer feed-forward networks by stochastic configuration algorithms (called stochastic configuration networks or SCN).The constructive process starts with a small network, and the hidden nodes are added incrementally until an acceptable tolerance is achieved.The added weights/biases are assigned by a supervisory mechanism to satisfy certain inequality constraints guided by the universal approximation property.In addition to the above works, other researchers have aimed to utilize the relationship between the input-data rank and the performance of randomized neural networks, or to pick the weights/bias based on the input data range and the activation function type, or to consider the numerical stabilities (see e.g.[1,9,13], among others).

6In the current paper we present a modified batch intrinsic plasticity (modBIP) method for pre-training the random coefficients of the ELM neural networks, which can be shallow (single hidden layer) or deep (multiple hidden layers).By random coefficient pre-training we mean that, after the weight/bias coefficients of the hidden layers are initialized to random values, we update these coefficients systematically by a welldefined procedure.The updated coefficients are then fixed, and employed in ELM for computing/training the weights in the output layer (i.e. the training parameters) by the least squares method.

7The current modBIP method is devised based on the same principle as the batch intrinsic plasticity (BIP) method [30], namely, by enhancing the information transmission in every node of the neural network.The current method differs from BIP [30] in two key aspects.First, modBIP does not involve the activation function in its algorithm, and it can work with any activation function in the ELM neural network.In contrast, BIP [30] employs the inverse of the activation function in its algorithm, and requires the activation function to be invertible (i.e.monotonic).BIP can only work with those activation functions that are monotonic.This excludes many often-used activation functions that are non-invertible, such as the Gaussian function, the swish function [12], the Gaussian error linear unit (GELU) [18], and other radial-basis type activation functions.Second, the modBIP method generates the target samples on random intervals with some minimum size, which leads to highly accurate simulation results when combined with ELM.The combined ELM/modBIP method is observed to be markedly more accurate than the combined ELM/BIP method in numerical simulations.

8We present a number of numerical examples of boundary-value and boundary/initial-value problems with linear partial differential equations to evaluate the performance of modBIP and the combined ELM/modBIP method.We compare their performance with those of the combined ELM/BIP method and the ELM method without pre-training of the random coefficients.These numerical experiments show that the combined ELM/modBIP method produces highly accurate simulation results with both shallow and deep neural networks, and that the accuracy of the ELM/modBIP solution is insensitive to the initial random coefficients in the neural network.More precisely, with the hidden-layer coefficients initialized as uniform random values generated on [−R m , R m ], for an arbitrary R m , the combined ELM/modBIP method results in very accurate results.This is in sharp contrast with the ELM method without pre-training of the random coefficients (see e.g. Figure 1).The numerical results demonstrate that the combined ELM/modBIP method, with non-invertible activation functions such as the Gaussian/swish/GELU functions in the neural network, exhibits the same properties of high accuracy and insensitivity to the random coefficient initialization.This is in sharp contrast with the ELM/BIP method, which breaks down with the class of non-invertible activation functions.The simulation results also signify the exponential decrease in the numerical errors of the ELM/modBIP method as the number of degrees of freedom (e.g.number of training collocation points, number of training parameters) in the system increases, analogous to the observations of [6].

9We have also looked into the computational cost of the modBIP pre-training of the random coefficients, as compared to that of the ELM training of the neural networks.For every hidden-layer node, the primary operations with modBIP consist of (i) the computation of the total input to the current node induced by the input samples to the network, and (ii) the solution of a small linear system consisting of two unknown variables by the linear least squares method.The modBIP pre-training cost increases linearly or nearly linearly with increasing number of training parameters and collocation points.The pre-training cost is insignificant, and it is only a fraction of the ELM training cost for the neural network.In typical numerical simulations, the modBIP pre-training cost is within 10% of the ELM network training cost.

10The contribution of this paper lies in the development of the modBIP algorithm for pre-training the random coefficients of shallow and deep ELM neural networks.The algorithm has been shown to be effective, efficient, and highly accurate.The combined ELM/modBIP method is observed to be a promising technique for scientific computing.

11The rest of this paper is structured as follows.In Section 2 we present the modBIP algorithm for pre-training the random coefficients of ELM neural networks, and outline how to employ the combined ELM/modBIP method to solve linear differential equations.In Section 3 we test the performance of the modBIP algorithm and the combined ELM/modBIP method with function approximation and several PDEs commonly encountered in computational science/engineering [8,3,4].We compare the performance of the current modBIP algorithm, the BIP algorithm, and the case with no pre-training of the random coefficients.The effectiveness of modBIP for shallow and deep neural networks, and with invertible and non-invertible activation functions is demonstrated.Section 4 then concludes the discussions with some closing remarks.

122 Pre-training Random Coefficients of Extreme Learning Machines

Extreme Learning Machine and Random Coefficients

13We consider a feed-forward neural network [15] with one or multiple hidden layers, and the function representation using this network.We assume the following in its configuration and settings:

14• The weight/bias coefficients in all the hidden layers are pre-set to random values, and are fixed throughout the computation once they are set.In this work we follow [6] and set the hidden-layer coefficients to uniform random values generated on [−R m , R m ], where R m > 0 is a user-provided parameter.

15• The last hidden layer, i.e. the layer before the output layer, can be wide.It may contain a large number of nodes.

16• The output layer is linear (i.e.no activation function applied) and has zero bias.The training parameters consist of the weights of the output layer, and will be adjusted by the training computation.

17• The network is to be trained, and the training parameters are to be determined by a least squares computation.

18In the current work we concentrate on function approximation and linear partial differential equations, and so the network training is via a linear least squares computation.We refer to [6] for the network training by a nonlinear least squares method for solving nonlinear partial differential equations.A feed-forward neural network with the above settings, when containing a single hidden layer, is known as an extreme learning machine (ELM) [20,19].In the current work we consider neural networks with both a single and multiple hidden layers, and we follow this terminology and will refer to them as shallow and deep extreme learning machines, respectively.

19The random coefficients in the hidden layers of the neural network are crucial to the performance and accuracy of ELM [30,29,13,6].It has been observed from the numerical experiments in [6] that the ELM accuracy can be influenced strongly by the maximum magnitude of the random coefficients (i.e.R m ), where uniform random coefficients generated on [−R m , R m ] are employed.When R m is very large or very small, ELM tends to produce results with poor accuracy.More accurate results tend to be attained with R m in a range of moderate values.This "optimal" range for R m is problem dependent and is also affected by the simulation resolution (e.g. the number of training parameters, number of training data points) [6].For many problems the optimal range for R m appears to reside somewhere between 1 and 15.As discussed in the Introduction section, Figure 1 is an illustration of the effect of R m on the ELM accuracy.

20Our goal here is to devise a method for pre-training the random coefficients once they are initialized, so that accurate ELM results can be obtained with random coefficients initialized by essentially an arbitrary R m .Once the hidden-layer coefficients in the neural network are initialized to uniform random values from [−R m , R m ], for some given R m , our method can be applied to update or adjust these random coefficients.

21The updated hidden-layer coefficients are then fixed, and the usual ELM method and the least squares procedure can be employed to determine the training parameters (i.e. the output-layer coefficients).

Modified Batch Intrinsic Plasticity (modBIP) Algorithm

22Consider a feed-forward neural network [15] with (L + 1) layers, and let M l denote the number of nodes in layer l for 0 l L. The layer zero represents the input to the neural network, and let the matrix X of dimension N s × M 0 denote the input data, where N s is the number of samples in the input data.The layer L represents the output of the neural network, denoted by the matrix U of dimension N s × M L .The layers in between are the hidden layers.Let the matrix Φ l , with dimension N s × M l , denote the output data of layer l for 0 l L, with Φ 0 = X and Φ L = U.Then the logic of the hidden layer l (1 l L − 1) is given by,

23where σ(•) denotes the activation function, the M l−1 × M l matrix W l denotes the weights of layer l, and the row vector b l (with dimension 1 × M l ) denotes the biases of this layer.Note that here we have adopted the convention (as in the computer language Python) that when computing (Φ l−1 W l + b l ), the data in the vector b l will first be propagated along the first dimension to form a N s × M l matrix.In equation (1) we have also assumed for simplicity that the same activation function is employed for different hidden layers.The logic of the output layer is given by

24where the M L−1 × M L matrix W L denotes the weights of the output layer, and they are the training parameters of the neural network.As discussed before, the output layer is assumed to contain no bias and no activation function.The weight and bias coefficients of the hidden layers, W l and b l (1 l L − 1), are initialized to uniform random values generated on the interval [−R m , R m ] for some prescribed R m .Once the specific problem is given, the training parameters W L can be determined by a least squares computation based on the ELM procedure [6].The parameter value R m , and hence the random coefficients W l and b l , strongly influence the ELM accuracy, as discussed in the previous subsection.

25Given the input data X and the initial random coefficients W l and b l (1 l L − 1), we will compute a set of new coefficients W l and b l for 1 l L − 1 based on a procedure presented below, and replace W l and b l by the newly computed values, so that the resultant neural network will give rise to results that are more accurate and less sensitive or insensitive to R m .We refer to this process as the pre-training of the random coefficients.Once the random hidden-layer coefficients are pre-trained, they will be fixed throughout the rest of the computation, when the training parameters are determined by the least squares method in the usual ELM algorithm.

26To pre-train the random hidden-layer coefficients, we follow the philosophy as advocated in [30].In other words, these coefficients should assume values that will facilitate the information transmission within each neuron.Consider a particular node (or neuron) in a particular hidden layer of the neural network.Let s denote the total input (synaptic input) to this neuron from the previous layer, and φ denote the output signal of this neuron.Then φ = σ(s), where σ is the activation function of this neuron.For commonly used activation functions (e.g.tanh, sigmoid, Gaussian), if the magnitude of the input s is very large, the output φ of the neuron will reach the level of saturation, which is unfavorable for the information transmission in this neuron.Therefore, the magnitude of the synaptic input to the neuron should not be too large, in order to facilitate the information transfer.Let us further suppose that the synaptic input to this neuron consists of N s independent samples s i (1 i N s ), and let s max and s min denote the maximum and the minimum of these input samples.If s max and s min are very close to each other, then this neuron will output essentially a constant value under these N s input samples, which is unfavorable for the information transmission.Therefore, the samples of the synaptic input to a neuron should maintain a reasonable spread in their values, in order to facilitate the information transfer.In light of these considerations, in order to facilitate the information transmission, we will impose the following requirements on the synaptic input to any neuron:

27• The synaptic input to the neuron should fall within a range [−S b , S b ], where S b > 0 is a user-provided hyper-parameter.The larger the S b parameter, the more likely the input will cause a saturation in the neuron response.

28• The samples of the synaptic input to the neuron should be such that s max − s min > S c , where S c (with 0 S c < 2S b ) is a user-provided hyper-parameter.A non-zero S c ensures that the input samples to the neuron have a spread of at least S c in their values.

29These requirements provide the basis for the algorithm described below for pre-training the random hiddenlayer coefficients in the neural network.

30Given S b and S c , we pre-train the random coefficients as follows.We start with the first hidden layer, and pre-train the random coefficients in each layer individually and successively, until the last hidden layer is pre-trained.It should be noted that pre-training a later hidden layer depends on the updated weight/bias coefficients in previous layers that are already pre-trained.Within each hidden layer, we pre-train the random coefficients associated with each node individually and independently.We start with the first node and proceed until all the nodes in the layer are pre-trained.

31The general idea for pre-training a node is as follows.For any particular node in a layer, we first compute the total input to this node corresponding to all the N s input data samples to the neural network.This produces the input samples s i (1 i N s ) to this node.We generate a random sub-interval [t min , t max ] ⊂ [−S b , S b ], satisfying the condition t max − t min > S c .Then we generate N s random numbers t i (1 i N s ) on the interval [t min , t max ], which will be referred to as the target samples.We sort the input samples s i and the target samples t i in the ascending order, respectively.Then we compute an affine mapping between s i and t i by a linear least squares method.The weight/bias coefficients associated with this node are then updated by the computed affine mapping coefficients to complete the pre-training for this node.

32Let us now expand on the general idea to provide more details for pre-training a node.We consider pre-training the random coefficients associated with node k in the hidden layer l, for 1 l L − 1 and 1 k M l .At this point, all the previous hidden layers have been pre-trained and their weight/bias coefficients have been updated.We evaluate the neural network against the input data X to attain the output of the layer l − 1, which is denoted by the matrix

33this is the first hidden layer (i.e.l = 1).The current weights for layer l are given by the M l−1 × M l matrix W l , and the current biases for this layer are given by the row vector b l with dimension M l .Let w denote the k-th column of W l , and b k denote the k-th component of b l .Then the synaptic input, s, to the current node in consideration is given by

34where s i (1 i N s ) are the components of s, and 1 denotes the vector of all ones.The values of w and b k will be updated when this node is pre-trained.

35Next we generate two uniform random numbers t min and t max on [−S b , S b ] that satisfy the condition t max − t min > S c .Then we generate N s random numbers t i (1 i N s ) on the interval [t min , t max ] as the target samples.In the current implementation we have considered two distributions when generating the target samples:

36from a normal distribution with a mean 1 2 (t min + t max ) and a standard deviation 1 4 (t max − t min ).When drawing from the normal distribution, if the generated random number is out of the range [t min , t max ], a simple sub-iteration can produce a random number on [t min , t max ].

37We sort the input samples s i (1 i N s ) in the ascending order, and also sort the target samples t i (1 i N s ) in the ascending order.Then we solve for two scalar numbers ξ and η from the following linear system by the linear least squares method,

38Algorithm 1: modBIP algorithm input : input data X; initial random weight coefficients W l and initial random bias coefficients b l , for 1 l L − 1; constant S b > 0; constant S c , with 0 S c < 2S b .output: updated weight coefficients W l and updated bias coefficients b l , for 1 l L − 1.Finally, we update the column k of the weight-coefficient matrix W l and the k-th component of the bias vector b l by the following relations:

39This completes the pre-training of the node.

40The overall pre-training procedure by the modBIP method is summarized in Algorithm 1.A key construction in the algorithm that enables high accuracy of this method is the adoption of random sub-intervals [t min , t max ] with a minimum size S c when generating the target samples.If this interval is taken to be [−S b , S b ] or some fixed sub-interval of [−S b , S b ], numerical experiments show that the method will be much less accurate.Target samples generated on [t min , t max ] from a uniform distribution and from a normal distribution seem to produce results with comparable accuracy.For different problems one type of distribution may lead to results with slightly better accuracy than the other, but their error levels are largely the same.In the numerical tests of Section 3, we employ the normal distribution when generating random target samples on [t min , t max ].

41Remark 2.1.The parameter S c controls the minimum size of the random sub-interval [t min , t max ].As S c → 0, random intervals with a near-zero size may be generated.This will cause the mapped synaptic input (and also the neuron response) to cluster around a constant level, which will affect the accuracy adversely.On the other hand, as S c → 2S b , all the random sub-intervals [t min , t max ] → [−S b , S b ].So the randomness in the sub-interval will be lost, and the accuracy will deteriorate as mentioned before.We observe from numerical experiments that a value around S c = S b /2 produces results with very good (and oftentimes the best) accuracy.So in the current paper we will employ S c = S b /2 with modBIP in the numerical simulations.

42Remark 2.2.The parameter S b controls which regime the pre-training algorithm generally maps the synaptic input data into.If S b is very small, the mapped synaptic input will be close to zero, and many activation functions are close to a linear function in this regime.Since a linear function reduces the approximation capability of a neuron, the accuracy in this case will be limited.If S b is very large, the magnitude of the mapped synaptic input to the neuron can be large.It is thus more likely to cause saturation in the neuron response, which is unfavorable for the information transmission and can have an adverse effect on the accuracy.Figure 2 shows the profiles of several commonly-used activation functions, including the tanh, Gaussian (σ(x) = e −x 2 ), softplus (σ(x) = log(1 + e x )), and swish (σ(x) = x/(1 + e −x )) functions.They suggest that a reasonable range for the input to the activation function seems to be somewhere around [−3, 3], and perhaps even a little larger with the swish and softplus functions.We observe from numerical experiments that, with the tanh (and Gaussian) activation function and a single hidden layer in the neural network, a value around S b = 2 ∼ 3 will produce results with good accuracy.For certain problems, the method achieves even better accuracy if S b is adjusted from this base value.When the neural network contains more hidden layers, it is observed that S b should typically be decreased from this reference range to achieve a better accuracy.While the above reference range for S b is useful, for a given problem can we estimate the S b value that provides the best or close to the best accuracy?The answer is positive, and we next outline a procedure for estimating the optimal S b using simple numerical experiments.Let us use the problem of solving linear PDEs for illustration.When training the ELM neural network, suppose the linear system resulting from the PDE that one needs to solve using the least squares method is given by the following (see Section 2.3),

43where A, x, and b denote the coefficient matrix (non-square), the vector of unknowns, and the right-hand-side vector, respectively.Let r denote the residual vector associated with the least squares solution,

44where x + denotes the least squares solution to equation (6) (with minimum norm if rank-deficient).We use the residual norm r as an indicator to the accuracy of the least squares solution.Since r can be readily evaluated, we will use preliminary simulations to compute r and estimate the best S b .The main steps are as follows:

45• Consider a set of points from a range for S b (e.g. S b ∈ [0.5, 5]).

46• For each S b value, set S c = S b /2 and pre-train the random coefficients of the network using modBIP.

47• Perform a preliminary ELM simulation using the pre-trained neural network, and compute r .

48• Collect r for the set of S b values.Find the S b corresponding to the smallest (or close to the smallest) r .Use this value as an estimate for the best S b .

49With the estimate for S b available, we can then use it in modBIP and perform actual simulations for the given problem with ELM.It should be noted that in the simulations for estimating S b , the number of training data points should be larger than the number of training parameters in the neural network to avoid the regime of rank deficiency in the least squares solution.

50Remark 2.3.In the current work we have considered a symmetric interval [−S b , S b ] in the modBIP algorithm.For activation functions that are not symmetric or anti-symmetric (e.g.swish, softplus), one can imagine that the use of a non-symmetric interval such as [S b1 , S b2 ] in the algorithm might be more favorable.This aspect is not considered here, and we employ a symmetric interval in the current work.

51Remark 2.4.We observe that the ELM method, with the random coefficients pre-trained by the current modBIP algorithm, produces highly accurate simulation results, and that the accuracy of the combined ELM/modBIP method is insensitive to the random coefficient initializations.More specifically, with the hidden-layer coefficients initialized as random values generated on [−R m , R m ], for an arbitrary R m , the combined ELM/modBIP method produces accurate results and the accuracy is insensitive to R m .This is very different from the behavior of ELM without pre-training of the random coefficients (see e.g. Figure 1).We will demonstrate this point with numerical experiments in Section 3.

52Remark 2.5.It is evident that the modBIP algorithm does not involve the activation function in its construction.Therefore, essentially any activation function can be used in the neural network together with the current method.This is in sharp contrast with the BIP algorithm [30], which employs the inverse of the activation function in its construction.BIP requires the activation functions in the neural network to be invertible (i.e.monotonic).This precludes many often-used activation functions such as the Sigmoid weighted linear unit (SiLU or swish) [12], Gaussian error linear unit (GELU) [18], Gaussian, and other radial basis-type functions.

53Remark 2.6.We briefly mention another method for generating target samples from a normal distribution, which is different from what has been discussed above.In Algorithm 1 we replace the constant S c by two constants S c1 and S c2 , with 0 < S c1 S c2 .So now there are three constant parameters in the input, S b , S c1 and S c2 .We replace the lines 12 and 13 of Algorithm 1 by the following steps for generating the random target samples t i (1 i N s ): Here we use a random mean µ from [−S b , S b ] and a random standard deviation δ from [S c1 , S c2 ] for generating the target samples t i .We observe that a value around S b = 2 ∼ 2.5, S c1 = 0.2 and S c2 = S b /2 generally produce results with good accuracy.

Solving Linear Differential Equations with Combined ELM/modBIP

54We will test the modBIP pre-training algorithm by combining it with ELM for solving linear partial differential equations.We first initialize the hidden-layer coefficients in the neural network by uniform random values from [−R m , R m ], for some prescribed R m .Then we pre-train these random coefficients by modBIP, and afterwards fix the updated hidden-layer coefficients.At this point, we can use the ELM method and the pre-trained neural network in the usual fashion.We can compute the training parameters (output-layer coefficients) by a linear least squares method for solving linear partial differential equations.This will be discussed in this subsection.

55The use of ELM for solving linear partial differential equations has been discussed in a number of previous works; see e.g.[31,10,6] and the references therein.For the sake of completeness, we summarize the main procedure below, and we refer the reader to e.g.[6] for more detailed discussions of related aspects.Here we assume that the hidden-layer coefficients of the neural network have been pre-trained by modBIP as discussed above.So the weight/bias coefficients in the hidden layers are fixed throughout the computations to be discussed below.

56For illustration we consider a rectangular domain in two dimensions (2D

57If the problem is time-dependent, we will treat the time t in the same way as the spatial variables, and use the last independent variable to denote the time t.In the case with two independent variables, for time-dependent problems, the last independent variable (i.e.y) denotes the time t.With this notation, we can treat time-dependent and time-independent problems in a unified fashion.So the following discussions also apply to time-dependent problems.

58Consider a generic linear partial differential equation on Ω,

59where u(x, y) is the field function to be solved for, L is a linear differential operator, B is a linear operator, f (x, y) is a prescribed source term on the domain, and g(x, y) is a prescribed source term defined on the domain boundary ∂Ω.We assume that the system as given by (8a)-(8b) is well-posed.Note that, depending on the order of L, the boundary condition (8b) may be imposed only on a part of the domain boundary, and that it should include the initial condition(s) if this is a time-dependent problem.

60To solve equations (8a)-(8b), we use an extreme learning machine (feed-forward neural network), with its random hidden-layer coefficients pre-trained by modBIP, to represent the solution field u(x, y).The input layer of the neural network consists of two nodes, representing x and y, respectively.The output layer of the neural network consists of one node, representing the solution u.The neural network contains one or multiple hidden layers in between.Let M denote the number of nodes in the last hidden layer of the neural network, and let V j (x, y) (1 j M ) denote the output fields of the last hidden layer.Then the logic of the output layer is given by

61where β j (1 j M ) denote the weight coefficients in the output layer, which are the training parameters of the neural network.We employ (Q x + 1) and (Q y + 1) uniform grid points in the x and y directions, respectively, with their coordinates given by

62We enforce the equation (8a) on all the grid points (x p , y q ), which will be refer to as the collocation points, and arrive at

63where equation ( 9) has been employed.Let X b denote the set of collocation points, among (x p , y q ), that reside on the domain boundary ∂Ω where the boundary condition (8b) is imposed on.Let Q b denote the number of points in X b .We enforce the boundary condition (8b) on each (x m , y m ) ∈ X b , and arrive at

64Equations ( 11) and ( 12) form a linear algebraic system about the training parameters β j (1 j M ).This system consists of [(Q x + 1)(Q y + 1) + Q b ] equations and M unknowns.The terms involved in the coefficient matrix, such as V j (x p , y q ), LV j (x p , y q ), V j (x m , y m ) and BV j (x m , y m ), can be computed by a forward evaluation of the neural network or by auto-differentiation.We seek a least squares solution (with minimum norm if the problem is rank deficient) to this system, and solve it by the linear least squares method [14].In the current implementation, we have employed the linear least squares routine from LAPACK, available through the wrapper function in the scipy package in Python (function scipy.linalg.lstsq).

65In the current paper, we implement the neural network in Python employing the Tensorflow and Keras libraries.The neural-network layers are implemented as the "Dense" layers in Keras.The input (training) data to the neural network consist of the coordinates of all the collocation points (x p , y q ) (0 p Q x and 0 q Q y ) in the domain.In our implementation, we have incorporated an affine mapping between the input layer and the first hidden layer to normalize the input (x, y)

66. This mapping is implemented by a "lambda" layer in Keras, which contains no weight/bias coefficients.This lambda layer does not need to be pre-trained by modBIP.With this lambda layer incorporated, in line 3 of Algorithm 1, Φ l−1 should be the output of the lambda layer, i.e. the normalized data, instead of the original input data X.

67After the linear system consisting of ( 11) and ( 12) is solved by the linear least squares method, the weight coefficients of the output layer will be set to the computed solution.Then the neural network is evaluated on a set of finer grid points, which is different from the training data points, to attain the field solution data u(x, y).The solution data is then compared with e.g. the exact solution to compute the errors and other useful quantities.These steps have been followed in the numerical experiments of Section 3.

68Remark 2.7.For longer-time simulations of time-dependent partial differential equations, we employ the block time-marching scheme developed in [6].The spatial-temporal domain is first divided into a number of windows along the time (time blocks).The equations (11) and (12) are solved on each time block, individually and successively, using the method discussed in this sub-section.After one time block is computed, the solution at the last time instant will be evaluated, and used as the initial condition for the computation of the time block that follows.We refer to [6] for more detailed discussions of this scheme.Block time marching has been employed for simulations of time-dependent problems in Section 3.

Representative Numerical Examples

69In this section we evaluate the performance of the modBIP algorithm using function approximation and linear partial differential equations in one or two dimensions (1D/2D) in space, and plus time if the problem is time-dependent.We solve these equations numerically by the combined ELM/modBIP method as discussed in Section 2.3.The random hidden-layer coefficients in the neural network are pre-trained by modBIP first, and then they are fixed and used in ELM for finding the solutions to the differential equations.In the numerical experiments reported below, with modBIP we employ S c = S b /2, and estimate S b using the procedure outlined in Remark 2.2 by computing the residual norm of the linear least squares (LLSQ) problem in ELM.When generating the target samples on the random interval [t min , t max ], we have employed the normal distribution with a mean (t min + t max )/2 and a standard deviation (t max − t min )/4 (see line 13 of Algorithm 1) in all the numerical tests.The numerical experiments are conducted on a MAC computer (3.2GHzQuad-Core Intel Core i5 CPU, 24GB memory) in the authors' institution.The wall clock time is collected by using the "timeit" module in Python.

70In the current implementation, the initial random coefficients in the hidden layers are generated using the random number generator from the Tensorflow library (invoked by the initialization routines in the Keras library), while the random values in the modBIP algorithm are generated by the random number generator in the numpy package in Python.In order to make all the simulation results reported here fully repeatable, we have employed the same seed value for the random number generators in both Tensorflow and numpy, and the seed value is fixed for all the numerical experiments reported within a subsection.More specifically, the seed value is 1 for the numerical experiments presented in Sections 3.1 and 3.2, 12 for those in Section 3.3, and 22 for those in Section 3.4, respectively.

71Hereafter we employ the vector [M 0 , M 1 , . . ., M L ] (L 2) to represent the architecture of the feed-forward neural network in ELM, where the vector length (L + 1) denotes the number of layers in the network and M i is the number of nodes in layer i for 0 i L. Note that M 0 and M L are the numbers of nodes in the input and output layers, respectively.The number of training parameters in ELM is M L−1 , i.e. the number of nodes in the last hidden layer, as discussed in Section 2.

Function Approximation

72We approximate the following function u(x) by the combined ELM/modBIP method,

73Figure 3(a) shows the distribution of this function on the domain.Note that the function approximation problem is equivalent to solving the linear PDE (8a), with no boundary condition, in which L is given by the identity operator and f is given by the function to be approximated.Let us first consider a single hidden layer in the neural network, with the network architecture given by [1, 100, 1] and tanh as the activation function in the hidden layer (the output layer is linear).The input node represents x, and the output node represents the function u(x).The input data to the neural network consists of Q = 121 uniform grid (collocation) points on [0, 2.5]; see equation (10) when restricted to 1D.The function values on these collocation points are provided in equation (8a) as the data for the source term.The hidden-layer coefficients are initialized by uniform random values generated on [−R m , R m ], with R m specified below.

74We first estimate the S b in modBIP using the procedure from Remark 2.2.The pre-trained random coefficients are then used in ELM to compute the training parameters (i.e. the output-layer coefficients) by the linear least squares method for approximating the function (13).So the approximation function is now represented by the fully trained neural network.We then evaluate the trained neural network on a set of 401 (finer) uniform grid points to compute the approximant values, which are then compared with the exact function (13) to attain the errors.We can observe from Figure 3(c) that, with the modBIP pre-training of the random coefficients, the ELM error is essentially independent of R m , although some fluctuations with respect to R m can be observed in certain cases.This insensitivity to R m is a common characteristic of the combined ELM/modBIP method, which will be observed repeatedly in subsequent numerical experiments.

75Figures 4 and 5 are comparisons of the ELM errors of the function approximation problem obtained with three configurations: no pre-training of the random coefficients, and with pre-training of the random coefficients by the BIP algorithm [30] and by the current modBIP algorithm.As mentioned before, the network architecture is characterized by [1, 100, 1], with the tanh activation function and Q = 121 uniform collocation points as the training data points.In this set of tests the initial random coefficients are generated with R m either fixed at R m = 50 or varied systematically.In the case without pre-training, the initial random coefficients are directly used in ELM for computing the training parameters and the approximation function.In the cases with pre-training, the initial random coefficients are pre-trained by BIP or modBIP first, and the pre-trained hidden-layer coefficients are then used in ELM for computing the approximation function.

76With BIP, we employ a normal distribution for generating the target samples for each hidden-layer node, with a random mean from [−1, 1] and a standard deviation 0.5, as described in [30].The inverse of tanh is then applied to the target samples, which are then used to compute the mapping coefficients in BIP [30].

77With modBIP pre-training, we employ S c = S b /2 and S b = 10 in Algorithm 1. Figure 4 compares profiles of the absolute error of the ELM approximant obtained without pre-training, with BIP pre-training, and with modBIP pre-training of the random coefficients.The initial random coefficients are generated with R m = 50 in this set of tests.The error levels of the ELM result with BIP pre-training and without pre-training are largely comparable, both on the order of 10 −3 .In contrast, the error level of the ELM result with the modBIP pre-training is considerably lower, on the order of 10 −9 .This indicates that the combined ELM/modBIP method is markedly more accurate than the ELM methods without pre-training and with the BIP pre-training of the random coefficients.

78Figure 5 shows the maximum and root-mean-squares (rms) errors in the domain of the ELM approximants obtained without pre-training and with BIP and modBIP pre-training of the random coefficients.In this set of tests, R m is varied systematically between 0.1 and 100, and the maximum/rms errors of the ELM solution corresponding to the initial random coefficients generated on [−R m , R m ], with and without pre-training, are computed and collected.Without pre-training of the random coefficients, the ELM accuracy exhibits a strong dependence on R m .It produces quite accurate results in a range of moderate R m values, while outside this range the accuracy can be quite poor; see Figure 5 of the random coefficients, the error of the ELM result is observed to be largely independent of R m .The ELM error level corresponding to the modBIP pre-training is considerably smaller than that of the BIP pre-training (see Figures 5(b,c)).

79A prominent advantage of modBIP over BIP lies in that modBIP does not place any constraint on the activation function, while BIP requires the activation function to be invertible.So modBIP can be applied with many activation functions with which BIP breaks down.Two such examples are provided in Figure 6, with the Gaussian and the swish [12] activation functions.Neither of these two functions has an inverse.Here the neural network has the same architecture as before, but the activation function for the hidden layer has been changed to the Gaussian function (σ(x) = e −x 2 ) or the swish function (σ(x) = x/(1 + e −x )).The initial random coefficients are generated with a fixed R m = 50 (plot (a)) or a varying R m (plots (b,c)), and pre-trained by modBIP.We employ the same training data points as before (Q = 121), and S c = S b /2 in modBIP.Figure 6(a) shows the LLSQ residual norms for estimating the best S b , suggesting a value around S b ≈ 20 with the Gaussian function and around S b ≈ 24 with the swish function.Figures 6(b,c) show the maximum and rms errors in the domain of the ELM/modBIP approximant as a function of R m , corresponding to the Gaussian activation function (with S b = 20) and to the swish activation function (with S b = 24).The ELM/modBIP results exhibit a high accuracy (error level around 10 −10 ∼ 10 −7 ), which is insensitive to R m (or the initial random coefficients).It should be noted that the BIP algorithm breaks down when used with these activation functions, because they do not have an inverse.

80The results presented so far are obtained with a single hidden layer in the neural network.Let us next investigate the performance of the ELM/modBIP method with neural networks containing multiple hidden layers.Figures 7 and 8 display ELM/modBIP results obtained with 3 and 7 hidden layers in the neural network, respectively.The network architecture is characterized by the vectors [1,40,40 Figure 8 shows the corresponding ELM/modBIP results obtained with seven hidden layers in the neural The results in Figures 7 and 8 indicate that the combined ELM/modBIP method produces highly accurate results with multiple hidden layers in the neural network.The best S b for modBIP (with S c = S b /2) appears to decrease with increasing number of hidden layers in the neural network.The ELM/modBIP errors are not sensitive to the initial random coefficients, similar to what has been observed with a single hidden layer in the network.These errors decrease approximately exponentially as the number of collocation points or the number of training parameters increases, until they essentially saturate when the number of collocation points or training parameters becomes sufficiently large.

Poisson Equation

81We next consider the two-dimensional (2D) domain Ω = {(x, y) | x ∈ [0, 2], y ∈ [0, 2]}, and test the combined ELM/modBIP method using the boundary value problem with the Poisson equation on Ω:

82u(0, y) = g 1 (y), (14b)

83where u(x, y) is the field function to be solved for, f (x, y) is a prescribed source term, and g 1 , g 2 , h 1 and h 2 are the Dirichlet boundary distributions.We consider the following manufactured solution to this problem,

84Accordingly, the source term f and the boundary distributions are chosen such that the expression (15) satisfies the system (14).Figure 9(a) illustrates the distribution of this analytic solution.

85We employ the combined ELM/modBIP method to solve the system (14); see Section 2.3.We first consider a single hidden layer in the neural network, with an architecture given by [2, 500, 1], the tanh activation function for the hidden layer, and a linear output layer.The input layer (2 nodes) represents the coordinates x and y, and the output layer (1 node) represents the field solution u(x, y).We employ a set of Q = 25 × 25 uniform grid (collocation) points as the training data points, i.e. with 25 points in both x and y directions (see equation ( 10)), which constitute the input data into the neural network.The hidden-layer Figure 10 compares distributions of the absolute error of the ELM solution obtained with no pre-training and with the BIP and the modBIP pre-training of the random coefficients in the neural network.Here we have employed a network architecture given by [2, 500, 1], the tanh activation function for the hidden layer, Q = 25 × 25 uniform collocation points, and R m = 10 for generating the initial random coefficients.With BIP, we employ a normal distribution for the target samples, with a random mean generated on [−1, 1] from a uniform distribution and a standard deviation 0.5 [30].With modBIP we employ S b = 3 and S c = S b /2 in the algorithm.One can observe that the ELM result is inaccurate without pre-training of the random coefficients.With both BIP and modBIP pre-training of the random coefficients, the ELM method produces accurate solutions to the Poisson equation.The ELM/modBIP solution is markedly more accurate than that of ELM/BIP.

86Figure 11 is a further comparison of the cases with no pre-training and with BIP and modBIP pre-training of the random coefficients.Here we vary R m systematically, and for each R m we initialize the hidden-layer coefficients to uniform random values from [−R m , R m ], which are then pre-trained by BIP or modBIP and Figure 12 illustrates the ELM/modBIP results attained with the Gaussian and the swish activation functions for the hidden layers.It should be noted that the BIP algorithm [30] breaks down with these activation functions because they do not have an inverse.In these tests, we have employed a network architecture [2, 500, 1], Q = 25 × 25 uniform collocation points, either a fixed R m = 10 or a varying R m for generating the initial random coefficients, and S c = S b /2 in modBIP.Figure 12(a) shows the LLSQ residual norms for estimating the S b parameter in modBIP, which suggest a value around S b ≈ 5 with the Gaussian function and a value around S b ≈ 7 with the swish function.Figures 12(b) and (d) show the error distribution of the ELM/modBIP solution with R m = 10, and its maximum/rms errors corresponding to the initial random coefficients generated with different R m , computed using the Gaussian activation function with S b = 5 in modBIP.Figures 12(c) and (e) show the corresponding ELM/modBIP results computed using the swish activation function with S b = 7 in modBIP.These data indicate that the combined ELM/modBIP method produces highly accurate results with these activation functions, and that its accuracy is insensitive to the initial random coefficients.

87Figure 13 compares the accuracy of the combined ELM/modBIP method and the ELM method with no pre-training of the random coefficients, and also examines the computational cost of the modBIP pre-training of the random coefficients.In this set of tests, we employ a neural network architecture [2, M, 1], where the number of training parameters M is either fixed at M = 500 or varied between M = 50 and M = 600.We employ the tanh activation function for the hidden layer, and directly for subsequent ELM computations.

collocation points in the

88We next test the combined ELM/modBIP method for solving the Poisson equation with multiple hidden layers in the neural network.Figures 14 and 15 illustrate the ELM/modBIP simulation results obtained using neural networks containing 3 hidden layers, with an architecture [2,50,50,500,1], and 5 hidden layers, with an architecture [2,50,50,50,50,500,1], respectively.The activation function is tanh in the hidden layers.In these tests the initial random coefficients are generated on [−R m , R m ] with R m either fixed at R m = 10 or varied between R m = 0.1 and R m = 100.We employ Q = Q 1 × Q 1 uniform collocation points, where Q 1 is fixed at Q 1 = 25 or varied between Q 1 = 5 and Q 1 = 50.In modBIP we employ S c = S b /2 and determine S b based on the procedure from Remark 2.2.

89Figure 14(a) shows the LLSQ residual norms for estimating S b , suggesting a value around S b ≈ 1 for modBIP with three hidden layers in the neural network.Figures 14(b) to (d) show the error distribution, and the maximum/rms errors in the domain of the ELM/modBIP solution as a function of R m and Q 1 , obtained with S b = 1 in modBIP.The specific parameter values for each plot are provided in the caption of this figure.Figure 15(a) shows the LLSQ residual norms computed with 5 hidden layers in the neural network, suggesting a value around S b ≈ 0.8 in this case.Figures 15(b,c,d) show the ELM/modBIP results obtained with 5 hidden layers in the neural network and S b = 0.8 in modBIP, which correspond to those of Figures 14(b,c,d).These results confirm that the combined ELM/modBIP method produces accurate simulation results with multiple hidden layers in the neural network.The characteristics of exponential convergence and insensitivity to R m are similar to what has been observed with single-hidden-layer neural networks.

90Figure 16

Wave Equation

91We next test the ELM/modBIP method using the one-dimensional second-order wave equation (plus time).Consider the spatial-temporal domain, Ω = {(x, t) | x ∈ [0, 5], t ∈ [0, 10]}, and the initial/boundary-value problem with the wave equation on this domain,

92where u(x, t) is the field solution to be solved for, periodic boundary conditions are imposed on x = 0 and 5, c is the wave speed, x 0 is the initial peak location of the wave, and the constant δ 0 controls the width of the wave profile.The constant parameters assume the following values for this problem:

93This problem has the following solution,

94where mod refers to the modulo operation.The two terms in this solution represent the leftward-and rightward-traveling waves, respectively.Figure 17(a) shows the distribution of this solution in the spatialtemporal plane.

95To simulate this problem, we employ the block time-marching scheme and the local extreme learning machines (locELM) developed in [6].We first divide the spatial-temporal domain Ω along the temporal direction into 20 uniform time blocks, and the system (16) is computed on each time block individually and successively (see Remark 2.7).We partition the spatial-temporal domain of each time block into 4 uniform sub-domains along the x direction, and represent the field solution u(x, t) on each sub-domain by a local feed-forward neural network [6].C 1 continuity conditions are imposed on the sub-domain boundaries.The configuration of the local neural networks follows that of the ELM.The weight/bias coefficients in the hidden layers of the local neural networks are initialized as uniform random values generated on [−R m , R m ], which are pre-trained by modBIP and then fixed afterwards.The output layers of the local neural networks are linear (with zero bias), and the weight coefficients therein are the training parameters and can be determined by a least squares computation.The local neural networks are coupled with one another due to the C 1 continuity conditions [6], and need to be trained together as a whole system.By enforcing the system of equations, boundary/initial conditions, and the C 1 continuity conditions on a set of collocation points inside each sub-domain and on the domain and sub-domain boundaries, we arrive at a system of linear algebraic equations about the training parameters, which can be solved by the linear least squares method.We refer to [6] for more detailed discussions of the locELM method and the block time marching scheme.

96After the random coefficients in the local neural networks are initialized, we use modBIP to pre-train the random coefficients in each local neural network (see Algorithm 1), and then employ the pre-trained random coefficients in the locELM computation for the training parameters based on the linear least squares method.We refer to the overall method as the combined locELM/modBIP method.

97We first consider a single hidden layer in the local neural networks, whose architecture each is characterized by [2, 250, 1] and with tanh as the activation function for the hidden layers.The two nodes in the input layer represent the spatial-temporal coordinates x and t, and the single node in the output layer represents the field function u(x, t) on the corresponding sub-domain.We employ Q = 25 × 25 uniform collocation points on each sub-domain, and S c = S b /2 in the modBIP algorithm.S b in modBIP is determined by the procedure from Remark 2.2.value problem,

98where u(x, t) is the field solution to be solved for, the constant ν = 0.01 denotes the diffusion coefficient, f (x, t) is a prescribed source term, g 1 and g 2 are the Dirichlet boundary distributions at x = 0 and x = 1, and h(x) is the initial distribution.We employ the following manufactured solution to this problem,

99Accordingly, the source term f (x, t), the boundary/initial distributions g 1 , g 2 and h are chosen such that the expression (19) satisfies the system (18).Figure 22(a) shows the distribution of the analytic solution (19) in the spatial-temporal (x, t) plane.We employ the block time-marching scheme and the combined ELM/modBIP method to solve the system (18).We divide the spatial-temporal domain Ω along the temporal direction into 10 uniform time blocks, and solve the system (18) on each time block individually and successively (see Remark 2.7) using the combined ELM/modBIP method (see Section 2.3).

100Let us first consider the neural network containing a single hidden layer, with the architecture characterized by [2, 300, 1], the tanh activation function for the hidden layer and a linear output layer.The input layer (2 nodes) denotes the spatial/temporal coordinates (x and t), and the output layer (1 node) represents the field solution u(x, t).We employ a set of Q = 25

Concluding Remarks

101We have presented an effective algorithm (termed modBIP) for pre-training the random hidden-layer coefficients of extreme learning machines (ELM), and applied the combined ELM/modBIP method to function approximations and solving partial differential equations.The initial random coefficients in the neural network are first pre-trained by modBIP, and the updated hidden-layer coefficients are then fixed and employed in the least squares computation with the ELM method.The modBIP algorithm is devised based on the same principle as the batch intrinsic plasticity (BIP) method, namely, by enhancing the information transmission in every node of the neural network.

102Suppose the neural network architecture is chosen, which may be shallow or deep, the hidden-layer coefficients are initialized to random values, and that the input data to the neural network are given.The modBIP algorithm pre-trains the random hidden-layer coefficients as follows.For each node in each hidden layer of the neural network, this algorithm first computes the total (synaptic) input to this node for all input data samples to the neural network.The synaptic input samples are then mapped, by an affine mapping, to a set of random target samples on a random sub-interval of [−S b , S b ] with a minimum size, where S b is a user-provided hyper-parameter.The coefficients in the affine mapping are determined by solving a linear least squares problem, and are used to update the random weight and bias coefficients associated with this node.These operations are performed on each hidden layer, individually and successively, and within each hidden layer node by node.For a given particular problem, the S b parameter in modBIP can be estimated with preliminary simulations by computing the residual norm of the least squares problem associated with the least squares solution in ELM; see the procedure outlined in Remark 2.2.

103The modBIP method differs from BIP [30] in one prominent aspect: modBIP does not involve the activation function in its algorithm.In contrast, the BIP method employs the inverse of the activation function in its construction, and requires the activation function to be invertible (or monotonic).This limits the applicability of BIP to neural networks with only monotonic activation functions.On the other hand, the modBIP method can be applied with essentially any activation function, including those often-used nonmonotonic activation functions such as the Gaussian function, swish function, Gaussian error linear unit (GELU), and the class of radial basis activation functions.

104Another crucial construction in modBIP is the random sub-interval of [−S b , S b ] with a minimum size S c , on which the random target samples are generated.This is the key that accounts for the high accuracy of the modBIP (combined with ELM) results.If this sub-interval is fixed, instead of being random, much of the high accuracy will be lost.As demonstrated by ample numerical experiments, when combined with ELM, the modBIP method typically produces much more accurate simulation results than BIP.

105In the current paper we have used partial differential equations to test the combined ELM/modBIP method, and presented extensive numerical experiments to evaluate its computational performance.We have the following observations:

106• The combined ELM/modBIP method produces highly accurate simulation results, and its accuracy is insensitive to the initial random coefficients of the neural network.More precisely, its accuracy is insensitive to the R m for generating the initial random coefficients.In contrast, without pre-training the random coefficients, the accuracy of the ELM solution is strongly dependent on R m , where the initial random coefficients are generated on [−R m , R m ].

107• The combined ELM/modBIP method works well with non-monotonic activation functions, and produces highly accurate results.With the Gaussian activation function, the combined ELM/modBIP method appears to produce generally the most accurate results among the activation functions tested herein.In contrast, the BIP method [30] breaks down with non-monotonic activation functions.

108• Irrespective of the initial random coefficients, the errors of the combined ELM/modBIP solution decrease exponentially or nearly exponentially, as the number of training data points in the domain or the number of training parameters in the neural network increases.

109• The combined ELM/modBIP method works well with both shallow and deep neural networks.The favorable numerical properties, such as the error insensitivity to initial random coefficients and the exponential convergence with respect to the collocation points and the training parameters, are observed with both shallow and deep neural networks.

110• The computational cost of the modBIP pre-training of the random coefficients is low, and it is only a fraction of the ELM training cost of the neural network.In typical simulations the modBIP pretraining cost is within 10% of the ELM training cost for the neural network.Furthermore, the modBIP pre-training of the random coefficients logically only needs to be performed once for a given network architecture and the input data, and the pre-trained random coefficients can be saved and used later directly by ELM.

111The numerical results demonstrate unequivocally that modBIP provides an efficient and effective technique for pre-training the random coefficients to achieve high accuracy with ELM.It significantly boosts the computational performance of ELM.The combined ELM/modBIP method can produce accurate simulation results, regardless of the initial random coefficients in the neural network.This method is promising in terms of both the accuracy and the computational cost.We anticipate that the ELM/modBIP method will be useful to and instrumental in neural network-based scientific computing and the computational understanding of important physical processes and phenomena [5,2].

Figure 1 :

112Figure 1: Illustration of the random-coefficient effect on ELM accuracy: the maximum/rms errors of the ELM solution versus R m (maximum magnitude of the random coefficients), for solving 1D Helmholtz equation.

4 else 5 compute 6 end 7 for k ← 1

113Φ l−1 by evaluating the neural network (first l − 1 layers) on the input data X to M l do 8 set w to point to the column k of W l 9 set b k to point to the k-th component of b l 10 compute the input samples s i (1 i N s ) by equation (3)

Figure 2 :

114Figure 2: Profiles of several commonly-used activation functions.

115generate a uniform random number µ on [−S b , S b ]; generate a uniform random number δ on [S c1 , S c2 ]; generate random numbers t i (1 i N s ) from a normal distribution with mean = µ, stddev = δ.

Figure 3 :

116Figure 3: Function approximation: (a) Distribution of the exact function.(b) Residual norm of the linear least squares (LLSQ) problem versus S b , for estimating the best S b in modBIP.(c) The maximum error of the ELM/modBIP solution as a function of R m , corresponding to several S b in modBIP.

Figure 3 (

117b) shows the residual norm of the linear least squares (LLSQ) problem as a function of S b in a set of preliminary simulations.Here the initial random coefficients in the neural network are generated with R m = 50.They are pre-trained by modBIP, with S c = S b /2 and S b from a range of values.The residual norm of the LLSQ problem in ELM is collected corresponding to these S b values and plotted in Figure 3(b).This plot indicates that, while the residual norm at times fluctuates with respect to S b , it achieves a relatively low level for a range of S b ≈ 10 ∼ 20 for this problem.We employ S b = 10 in modBIP in the majority of subsequent tests for this problem.

118c) illustrates the general behavior of the ELM approximation error, with the random coefficients pre-trained by modBIP.It shows the maximum error in the domain of the ELM approximant as a function of R m , the maximum magnitude of the initial random coefficients, corresponding to several S b values around S b = 10 in the modBIP algorithm.Here for a given S b value, we vary R m systematically in the range 0.1 R m 100, and for each R m we initialize the hidden-layer coefficients by uniform random values generated on [−R m , R m ] and pre-train the random coefficients by modBIP with the given S b and S c = S b /2.

Figure 4 :

119Figure 4: Function approximation: Distributions of the absolute error of the ELM approximant obtained with (a) no pre-training, (b) BIP pre-training, and (c) modBIP pre-training of the random coefficients.

Figure 5 :

120Figure 5: Function approximation: The maximum and rms errors in the domain of the ELM approximant as a function of R m , attained with (a) no pre-training, (b) BIP pre-training, and (c) modBIP pre-training of the random coefficients.

Figure 6 :

121Figure 6: Function approximation (non-monotonic activation functions): (a) Residual norm of the LLSQ problem versus S b , for estimating the best S b in modBIP.The maximum and rms errors of the ELM solution as a function of R m obtained using (b) the Gaussian and (c) the swish activation functions, with the random coefficients pre-trained by modBIP.

122, M, 1] and [1, 40, 40, 40, 40, 40, 40, M, 1] in these two cases, respectively, where M denotes the number of training parameters and is either fixed at M = 100 or varied between M = 20 and M = 200.The activation function is tanh in all hidden layers, and the output layer is linear.We employ Q uniform grid (collocation) points in the domain as the training data points, with Q either fixed at Q = 150 or varied between Q = 10 and Q = 300.The initial hidden-layer coefficients are set to uniform random values generated on [−R m , R m ], with R m either fixed at R m = 50 or varied between R m = 0.1 and R m = 100.These initial random coefficients are pre-trained by modBIP with S c = S b /2.

Figure 7

123illustrates the ELM/modBIP results with three hidden layers in the neural network.The plot (a) shows the LLSQ residual norms for estimating the best S b in modBIP, suggesting a value around S b ≈ 3.5.The plot (b) depicts the error distribution of the ELM/modBIP approximant against the actual function (13).The plots (c,d,e) show the maximum and rms errors in the domain of the ELM/modBIP appximant as a function of R m , the number of training collocation points Q, and the number of training parameters M .The specific parameter values employed for each plot are provided in the caption of Figure 7.

Figure 9 :

124Figure 9: Poisson equation: (a) Distribution of the exact solution.(b) LLSQ residual norm as a function of S b , for estimating the best S b in modBIP.(c) The maximum error of the ELM/modBIP solution as a function of R m .R m = 10 in (b) and is varied in (c).Q = 25 × 25 in (c), and takes several values in (b).S b takes several values in (c), and is varied in (b).

Figure 10 :

125Figure 10: Poisson equation: Distributions of the absolute error of the ELM solution computed with (a) no pre-training, (b) BIP pre-training, and (c) modBIP pre-training of the random coefficients.

Figure 11 :

126Figure 11: Poisson equation: the maximum and rms errors in the domain as a function of R m , obtained with (a) no pre-training, (b) BIP pre-training, and (c) modBIP pre-training of the random coefficients.

Figure 12 :

127Figure 12: Poisson equation (non-monotonic activation functions): (a) LLSQ residual norms versus S b , for estimating the best S b in modBIP with the Gaussian and swish activation functions.Error distributions of the ELM/modBIP solution obtained with (b) Gaussian and (c) swish activation functions.Maximum/rms errors of the ELM/modBIP solution versus R m , obtained with (d) Gaussian and (e) swish activation functions.R m = 10 in (a,b,c) and is varied in (d,e).S b = 5 in (b,d) and S b = 7 in (c,e).

Figure 13 :

128Figure 13: Poisson equation: The maximum/rms errors of the ELM/modBIP solution as a function of (a) the number of collocation points in each direction and (b) the number of training parameters, attained with no pre-training and with modBIP pre-training of the random coefficients.The modBIP pre-training time of the random coefficients, and the ELM training time of the neural network, as a function of (c) the number of collocation points in each direction and (d) the number of training parameters.

Figure 14 :

129Figure 14: Poisson equation (3 hidden layers in neural network): (a) LLSQ residual norms versus S b , for estimating the best S b in modBIP.(b) Error distribution of the ELM/modBIP solution.Maximum/rms errors of the ELM/modBIP solution as a function of (c) R m , and (d) the number of collocation points in each direction.S b = 1 in (b,c,d) and is varied in (a).R m = 10 in (a,b,d) and is varied in (c).Q = 25 × 25 in (a,b,c) and is varied in (d).M = 500 in (a,b,c,d).

Figure 15 :

130Figure 15: Poisson equation (5 hidden layers in neural network): (a) LLSQ residual norm for estimating the best S b in modBIP.(b) Error distribution of the ELM/modBIP solution.The maximum/rms errors of ELM/modBIP solution as a function of (c) R m , and (d) the number of collocation points in each direction.S b = 0.8 in (b,c,d) and is varied in (a).R m = 10 in (a,b,d) and is varied in (c).Q = 25 × 25 in (a,b,c) and is varied in (d).M = 500 in (a,b,c,d).

Figure 16 :

131Figure 16: Poisson equation: The modBIP pre-training time of the random coefficients and the ELM training time of the neural network as a function of the number of collocation points in each direction, obtained with 3 hidden layers (a) and 5 hidden layers (b) in the neural network.The network architecture of (a) is [2, 50, 50, 500, 1] and the parameter values correspond to those of Figure 14(d).The network architecture of (b) is [2, 50, 50, 50, 50, 500, 1] and the parameter values correspond to those of Figure 15(d).

Figure 17 :

132Figure 17: Wave equation: (a) Distribution of the exact solution in the spatial-temporal plane.(b) The maximum residual norm of the LLSQ problem versus S b , for estimating the best S b in modBIP.(c) The maximum error in the overall domain as a function of R m , corresponding to several S b values in modBIP for pre-training the random coefficients.

Figure 22 :

133Figure 22: Diffusion equation: (a) Distribution of the exact solution in the spatial-temporal plane.(b) The maximum residual norm of the linear least squares (LLSQ) problem as a function of S b , for estimating the best S b in modBIP.(c) The maximum error in the domain of the ELM/BIP solution as a function of R m , corresponding to several S b values in modBIP.R m = 100 in (b) and is varied in (c).

134× 25 uniform grid (collocation) points on each time block (25 points in both x and t directions) as the training data points, which constitute the input data into the neural network.The hidden-layer coefficients in the neural network are initialized to uniform random values generated on [−R m , R m ], with R m either fixed at R m = 100 or varied between R m = 0.1 and R m = 100 in the subsequent tests.The initial random coefficients are pre-trained by modBIP with S c = S b /2 and S b determined by the procedure discussed in Remark 2.2. Figure 22(b) shows the LLSQ maximum residual norm among the 10 time blocks for estimating the best S b in modBIP, which suggests a value around S b ≈ 2.5.This set of tests are performed with a fixed R m = 100 when generating the random coefficients in the neural network.

135Figure 22(c) plots the maximum error in the overall domain of the ELM/modBIP solution as a function of R m , with several S b values around S b = 2.5

참고문헌 59건

  1. A Gradient Rule for the Plasticity of a Neuron’s Intrinsic Excitability Lecture notes in computer science · Springer Science+Business Media · 2005 10.1007/11550822_11
  2. Beyond Regression : "New Tools for Prediction and Analysis in the Behavioral Sciences 1974
  3. Fast, Simple and Accurate Handwritten Digit Classification by Training Shallow Neural Network Classifiers with the ‘Extreme Learning Machine’ Algorithm PLoS ONE · Public Library of Science · 2015 10.1371/journal.pone.0134254
  4. A convective-like energy-stable open boundary condition for simulations of incompressible flows Journal of Computational Physics · Elsevier BV · 2015 10.1016/j.jcp.2015.09.017
  5. Matrix computations (3rd ed.) Johns Hopkins University Press eBooks · Johns Hopkins University Press · 1996
  6. Stochastic choice of basis functions in adaptive function approximation and the functional-link net IEEE Transactions on Neural Networks · Institute of Electrical and Electronics Engineers · 1995 10.1109/72.471375
  7. A pressure correction scheme for generalized form of energy-stable open boundary conditions for incompressible flows Journal of Computational Physics · Elsevier BV · 2015 10.1016/j.jcp.2015.03.012
  8. Enhanced random search based incremental extreme learning machine Neurocomputing · Elsevier BV · 2007 10.1016/j.neucom.2007.10.008
  9. Learning and generalization characteristics of the random vector functional-link net Neurocomputing · Elsevier BV · 1994 10.1016/0925-2312(94)90053-1
  10. Optimization and applications of echo state networks with leaky- integrator neurons Neural Networks · Elsevier BV · 2007 10.1016/j.neunet.2007.04.016
  11. Comments on "Stochastic choice of basis functions in adaptive function approximation and the functional-link net" [with reply] IEEE Transactions on Neural Networks · Institute of Electrical and Electronics Engineers · 1997 10.1109/72.557702
  12. Alan Turing’s unorganized machines and artificial neural networks: his remarkable early work and future possibilities Evolutionary Intelligence · Springer Science+Business Media · 2011 10.1007/s12065-011-0060-5
  13. An outflow boundary condition and algorithm for incompressible two-phase flows with phase field approach Journal of Computational Physics · Elsevier BV · 2014 10.1016/j.jcp.2014.02.011
  14. Online reservoir adaptation by intrinsic plasticity for backpropagation–decorrelation and echo state learning Neural Networks · Elsevier BV · 2007 10.1016/j.neunet.2007.04.011
  15. The perceptron: A probabilistic model for information storage and organization in the brain. Psychological Review · American Psychological Association · 1958 10.1037/h0042519
  16. Optimizing extreme learning machines via ridge regression and batch intrinsic plasticity Neurocomputing · Elsevier BV · 2012 10.1016/j.neucom.2012.01.041
  17. A constrained integration (CINT) approach to solving partial differential equations using artificial neural networks Neurocomputing · Elsevier BV · 2014 10.1016/j.neucom.2014.11.058
  18. The No-Prop algorithm: A new learning algorithm for multilayer neural networks Neural Networks · Elsevier BV · 2012 10.1016/j.neunet.2012.09.020
  19. Extreme learning machine: Theory and applications Neurocomputing · Elsevier BV · 2006 10.1016/j.neucom.2005.12.126
  20. On the computational power of circuits of spiking neurons Journal of Computer and System Sciences · Elsevier BV · 2004 10.1016/j.jcss.2004.04.001
  21. Trends in extreme learning machines: A review Neural Networks · Elsevier BV · 2014 10.1016/j.neunet.2014.10.001
  22. Convex incremental extreme learning machine Neurocomputing · Elsevier BV · 2007 10.1016/j.neucom.2007.02.009
  23. Neural Networks: A Comprehensive Foundation 1998
  24. Universal Approximation using Incremental Constructive Feedforward Networks with Random Hidden Nodes IEEE Transactions on Neural Networks · Institute of Electrical and Electronics Engineers · 2006 10.1109/tnn.2006.875977
  25. Artificial neural networks for solving ordinary and partial differential equations IEEE Transactions on Neural Networks · Institute of Electrical and Electronics Engineers · 1998 10110972712178
  26. Reservoir computing approaches to recurrent neural network training Computer Science Review · Elsevier BV · 2009 10.1016/j.cosrev.2009.03.005
  27. Extreme Learning Machine With Subnetwork Hidden Nodes for Regression and Classification IEEE Transactions on Cybernetics · Institute of Electrical and Electronics Engineers · 2015 10.1109/tcyb.2015.2492468
  28. Bridging Nonlinearities and Stochastic Regularizers with Gaussian Error Linear Units arXiv (Cornell University) · Cornell University · 2016
  29. Wall-bounded multiphase flows of N immiscible incompressible fluids: Consistency and contact-angle boundary condition Journal of Computational Physics · Elsevier BV · 2017 10.1016/j.jcp.2017.02.048
  30. Deep Learning MIT Press eBooks · MIT Press · 2016
  31. Randomness in neural networks: an overview Wiley Interdisciplinary Reviews Data Mining and Knowledge Discovery · Wiley · 2017 10.1002/widm.1200
  32. Stochastic Configuration Networks: Fundamentals and Algorithms IEEE Transactions on Cybernetics · Institute of Electrical and Electronics Engineers · 2017 10.1109/tcyb.2017.2734043
  33. Multiphase flows of N immiscible incompressible fluids: A reduction-consistent and thermodynamically-consistent formulation and associated algorithm Journal of Computational Physics · Elsevier BV · 2018 10.1016/j.jcp.2018.01.041
  34. DGM: A deep learning algorithm for solving partial differential equations Journal of Computational Physics · Elsevier BV · 2018 10.1016/j.jcp.2018.08.029
  35. The Deep Ritz Method: A Deep Learning-Based Numerical Algorithm for Solving Variational Problems Communications in Mathematics and Statistics · Springer Science+Business Media · 2018 10.1007/s40304-018-0127-z
  36. Matrix Computations Johns Hopkins University Press eBooks · 2012 10.56021/9781421407944
  37. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations Journal of Computational Physics · Elsevier BV · 2018 10.1016/j.jcp.2018.10.045
  38. Gaussian Error Linear Units (GELUs) arXiv (Cornell University) · Cornell University · 2016 10.48550/arxiv.1606.08415
  39. Generating random weights and biases in feedforward neural networks with random hidden nodes Information Sciences · Elsevier BV · 2018 10.1016/j.ins.2018.12.063
  40. MgNet: A unified framework of multigrid and convolutional neural network Science China Mathematics · Springer Nature · 2019 10.1007/s11425-019-9547-2
  41. ConvPDE-UQ: Convolutional neural networks with quantified uncertainty for heterogeneous elliptic partial differential equations on varied domains Journal of Computational Physics · Elsevier BV · 2019 10.1016/j.jcp.2019.05.026
  42. Sigmoid-weighted linear units for neural network function approximation in reinforcement learning Neural Networks · Elsevier BV · 2018 10.1016/j.neunet.2017.12.012
  43. Efficient deep learning techniques for multiphase flow simulation in heterogeneous porousc media Journal of Computational Physics · Elsevier BV · 2019 10.1016/j.jcp.2019.108968
  44. Weak adversarial networks for high-dimensional partial differential equations Journal of Computational Physics · Elsevier BV · 2020 10.1016/j.jcp.2020.109409
  45. Learning nonlinear operators via DeepONet based on the universal approximation theorem of operators Nature Machine Intelligence · Nature Portfolio · 2021 10.1038/s42256-021-00302-5
  46. Deep Coregionalization for the Emulation of Spatial-Temporal Fields arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1910.07577
  47. Physics Informed Extreme Learning Machine (PIELM)–A rapid method for the numerical solution of partial differential equations Neurocomputing · Elsevier BV · 2019 10.1016/j.neucom.2019.12.099
  48. An energy approach to the solution of partial differential equations in computational mechanics via machine learning: Concepts, implementation and applications Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2020 10.1016/j.cma.2019.112790
  49. A study on the relationship between the rank of input data and the performance of random weight neural network Neural Computing and Applications · Springer Science+Business Media · 2020 10.1007/s00521-020-04719-8
  50. Optimization free neural network approach for solving ordinary and partial differential equations Engineering With Computers · Springer Science+Business Media · 2020 10.1007/s00366-020-00985-1
  51. Conservative physics-informed neural networks on discrete domains for conservation laws: Applications to forward and inverse problems Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2020 10.1016/j.cma.2020.113028
  52. On robust randomized neural networks for regression: a comprehensive review and evaluation Neural Computing and Applications · Springer Science+Business Media · 2020 10.1007/s00521-020-04994-5
  53. A method for representing periodic functions and enforcing exactly periodic boundary conditions with deep neural networks Journal of Computational Physics · Elsevier BV · 2021 10.1016/j.jcp.2021.110242
  54. Finite Neuron Method and Convergence Analysis Communications in Computational Physics · Cambridge University Press · 2020 10.4208/cicp.oa-2020-0191
  55. Artificial neural networks for solving ordinary and partial differential equations IEEE Transactions on Neural Networks · Institute of Electrical and Electronics Engineers · 1998 10.1109/72.712178
  56. Local extreme learning machines and domain decomposition for solving linear and nonlinear partial differential equations Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2021 10.1016/j.cma.2021.114129
  57. Beyond regression : new fools for prediction and analysis in the behavioral sciences 1974
  58. Learning nonlinear operators via DeepONet based on the universal approximation theorem of operators Nature Machine Intelligence · Nature Portfolio · 2021 10.1038/s42256-021-00302-5
  59. On the Computational Power of Recurrent Circuits of Spiking Neurons Electronic colloquium on computational complexity · Society for Industrial and Applied Mathematics · 2002