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

On the accuracy of interpolation based on single-layer artificial neural networks with a focus on defeating the Runge phenomenon

관련 산업용 섬유 · (8) HDPE 섬유(FORPE)

기본 정보

저자
  1. Ferdinando Auricchio — Dipartimento di Ingegneria Civile e Architettura, Universià degli Studi di Pavia, Pavia, Italy
  2. M. Belardo — Scuola Superiore Meridionale, Naples, Italy
  3. Francesco Calabrò — Dipartimento di Matematica e Applicazioni "Renato Caccioppoli", Università degli Studi di Napoli "Federico II", Naples, Italy
  4. Gianluca Fabiani — Scuola Superiore Meridionale, Naples, Italy
  5. Ariel Pascaner — Dipartimento di Ingegneria Civile e Architettura, Universià degli Studi di Pavia, Pavia, Italy
DOI
10.1007/s00500-024-09918-2
저널
Soft Computing
발행년도
2024
발행기관
Springer Science+Business Media
피인용수
2
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1007/s00500-024-09918-2
토픽
Thermal properties of materials
OpenAlex ID
W4401079406

평가 내용

관련도
관련
사업분야
산업용 섬유 · (8) HDPE 섬유(FORPE)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '산업용 섬유 > HDPE 섬유(FORPE)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Abstract Artificial Neural Networks (ANNs) are a tool in approximation theory widely used to solve interpolation problems. In fact, ANNs can be assimilated to functions since they take an input and return an output. The structure of the specifically adopted network determines the underlying approximation space, while the form of the function is selected by fixing the parameters of the network. In the present paper, we consider one-hidden layer ANNs with a feedforward architecture, also referred to as shallow or two-layer networks, so that the structure is determined by the number and types of neurons. The determination of the parameters that define the function, called training, is done via the resolution of the approximation problem, so by imposing the interpolation through a set of specific nodes. We present the case where the parameters are trained using a procedure that is referred to as Extreme Learning Machine (ELM) that leads to a linear interpolation problem. In such hypotheses, the existence of an ANN interpolating function is guaranteed. Given that the ANN is interpolating, the error incurred occurs outside the sampling interpolation nodes provided by the user. In this study, various choices of nodes are analyzed: equispaced, Chebychev, and randomly selected ones. Then, the focus is on regular target functions, for which it is known that interpolation can lead to spurious oscillations, a phenomenon that in the ANN literature is referred to as overfitting. We obtain good accuracy of the ANN interpolating function in all tested cases using these different types of interpolating nodes and different types of neurons. The following study is conducted starting from the well-known bell-shaped Runge example, which makes it clear that the construction of a global interpolating polynomial is accurate only if trained on suitably chosen nodes, ad example the Chebychev ones. In order to evaluate the behavior when the number of interpolation nodes increases, we increase the number of neurons in our network and compare it with the interpolating polynomial. We test using Runge’s function and other well-known examples with different regularities. As expected, the accuracy of the approximation with a global polynomial increases only if the Chebychev nodes are considered. Instead, the error for the ANN interpolating function always decays, and in most cases we observe that the convergence follows what is observed in the polynomial case on Chebychev nodes, despite the set of nodes used for training. Then we can conclude that the use of such an ANN defeats the Runge phenomenon. Our results show the power of ANNs to achieve excellent approximations when interpolating regular functions also starting from uniform and random nodes, particularly for Runge’s function.

본문 55,889자

본문 펼치기
Artificial Neural Networks (ANNs) are a tool in approximation theory widely used to solve interpolation problems.In fact, ANNs can be assimilated to functions since they take an input and return an output.The structure of the specifically adopted network determines the underlying approximation space, while the form of the function is selected by fixing the parameters of the network.In the present paper, we consider one-hidden layer ANNs with a feedforward architecture, also referred to as shallow or two-layer networks, so that the structure is determined by the number and types of neurons.The determination of the parameters that define the function, called training, is done via the resolution of the approximation problem, so by imposing the interpolation through a set of specific nodes.We present the case where the parameters are trained using a procedure that is referred to as Extreme Learning Machine (ELM) that leads to a linear interpolation problem.In such hypotheses, the existence of an ANN interpolating function is guaranteed.Given that the ANN is interpolating, the error incurred occurs outside the sampling interpolation nodes provided by the user.In this study, Introduction With no doubt, Artificial Neural Networks (ANNs) are a numerical analysis tool with a great versatility and, therefore, they have had a great development in recent years [20,31,15].ANNs are a class of machine learning algorithms that have a well-established structure, flexibility, and approximation properties.For this reason, they are widely used for function approximations, classification, regression, feature selection, and further applications are constantly being explored.Nevertheless, they are often considered as a black-box for its complex and nonlinear structure.Moreover, ANNs have open issues on some aspects of efficiency and accuracy when the number of training parameters increases.Furthermore, ANNs have opened the road to Artificial Intelligence with the possibility to develop Digital Twins when a warehouse of input-output data is available, even in cases where the govern-ing laws are unknown, even up to being able to mimic extremely complex phenomena, such as brain reaction. Introduction Of all the highlighted points, the present contribution focuses on the aspect that ANNs can be profitably used in function approximation due to the Universal Approximation (UA) results, even under very mild hypotheses see, e.g., [28].In particular, UA states that ANNs can approximate a target function with any required precision, i.e., it can be defined an ANN that is close enough to any target function (at least asymptotically) also in spaces endorsed with very low regularity. Introduction Moreover, some ANNs avoid the phenomenon called curse of dimensionality, an expression coined by [4], referring to a set of issues that appears when dealing with high-dimensional data, that are not present when working on low-dimensional problems.For instance, the amount of data needed to obtain a sufficiently good representation of a given domain often increases exponentially with the dimension of the data.The fact that ANNs avoid the curse of dimensionality opens the possibility to achieve efficient approximations, even in high dimensional cases see, e.g., [19,25,26,27,30]. Introduction The construction of ANNs involves the determination of a sufficiently large number of functions (referred to in this context as activation functions) connected in a grid structure composed by nodes.The activation functions and the interactions among nodes are defined with parameters, which are determined via conditions that are intended as an interpolation (or approximation) of the available information.This process is called the training of the network and this is done by tuning the parameters.The first step to train an ANN is to initialize all the parameters in a proper way and then the tuning is performed, usually via optimization strategies, such as the minimization of a so-called loss function see, e.g., [5,11]. Introduction The existence of a "good" interpolation network is guaranteed by the UA results and the large number of available tuning parameters.Such a network can then "remember" the information with which it has been trained and, even more important, is able to give an appropriate answer to new cases, which had not been used on the training process.Translated into mathematical approximation theory language, a trained network is capable to do usual interpolation and extrapolation procedures.On the other hand, from the authors' point of view, one of the main drawbacks of such a procedure is related to the unclear mathematical interpretation of the underlying approximating space and the definition of the training procedure in presence of a (quasi-) optimal set of parameters [42,15]. Introduction A well known issue in approximation theory is the poor behavior of the degree-increasing polynomial interpolation when applied on some specific functions.In particular, a paradigmatic example of this poor behavior is Runge's function see, e.g., [10]; when taking uniformly or randomly distributed sampling points of Runge's function and performing a polynomial interpolation, the difference between approximating and target function outside from the sampling points can diverge as the polynomial order increases.One way to avoid this divergence is to sample the function using ad-hoc nodes, such as Chebychev nodes.However, in many real-world, non theoretical problems ad-hoc optimal sampling cannot be performed, either because data are already given, or because the analytical expression of the underlying function is unknown, or a combination of both. Introduction According to the previous discussion, the main aim of the present paper is to give some insight into the ability of a class of ANNs to approximate functions, and in particular, we focus on the Runge phenomenon, that is, the presence of spurious oscillations in the interpolant function.The present is not the first study on the interpolation properties of such ANNs and the authors have focused on different aspects (among others, we refer to [37,44,45]), but none, to our knowledge, has results on this phenomenon.Then, we report results for the Runge's function and, by following examples in [41], also for other benchmark functions that exhibit different regularities.Our reference method is the polynomial approximation obtained by interpolation in Chebychev nodes, as extensively discussed in [41]; such a method is well suited to achieve high degree approximation, as well as for its relationships to the truncation (or projection) of the Chebychev series, and it is widely used also in other applications, such as in numerical quadrature see, e.g.[40,8].Moreover, a stable reference implementation is available via CHEBFUN routines in MATLAB [3,14], so that the comparison can be easily conducted. Introduction The paper is organized as follows.Section 2 presents an introduction to ANNs focusing on the definitions of the main concepts and reviewing available results, with a focus on the properties related to the interpolation.In particular, we set the specific ANN structure, later adopted in the paper, namely a single hidden layer network, trained via Extreme Learning Machine with over-parametrization and solved by Least Squares.In Section 3 we show numerical results.First, we use Runge's function, where we also report results in the square (not overparametrized) case and for which we evaluate both the approximation of the function and of the derivative, being the derivative of the ANN interpolating function trivial to compute.The section continues with the results relative to other examples taken from Trefethen ([41]), using overparametrized networks and focusing on the approximation of the interpolated functions.Lastly, in Section 4 we present the final thoughts, conclusions and possible future directions. Preliminaries on Neural Networks In this section we define the main concepts related to Artificial Neural Networks (ANNs).An ANN is a set of connected nodes, usually called neurons, where each neuron takes different real-valued inputs and produces a realvalued output.ANNs may have different connection structures between the neurons, called the architecture of the ANN; for instance, common architectures are: feedforward, deep feedforward, perceptron, convolutional, recurrent, autoencoder, fully complex.In the present work, we consider the most common architecture: the feedforward network (FFN), described in Section 2.1. Preliminaries on Neural Networks The process that each neuron performs is mainly divided into two steps, with each single step being represented by a function.The first step is called interaction scheme and combines the multiple inputs received from the neurons to produce a scalar output.In Section 2.2 we describe some of the possible choices for the interaction scheme.Then, the second step is represented by a transfer function, usually called activation function, which takes the output of the interaction scheme as an input and generates another real value, that is the output of the neuron itself: in Section 2.3 we describe some of the possible choices for the activation functions.The interaction scheme determines how the information coming from a set of inputs is combined, whereas the activation function modulates the result.As discussed in more detail in the respective sections, the choice of each of these steps determines the behavior of the ANN. Preliminaries on Neural Networks After these introductions of ANNs, in Section 2.4 we focus the analysis and particularise the equations to the case of a single hidden layer.Finally, in Section 2.5 we explain the adopted training procedure, called Extreme Learning Machine (ELM). Preliminaries on Neural Networks Throughout the paper we use the following notation.Scalar values are represented by letters without underlining, whereas vectors and matrices are indicated with a single or a double underline, respectively.The elements of a vector are represented with the same letter as the vector itself, with a single sub-script indicating the number of elements.Similarly, the elements of a matrix are represented with the same letter as the matrix itself, using two sub-scripts.In both cases, the letter with the sub-script(s) is not underlined, since it corresponds to a scalar value.Moreover, a single row or column of a matrix (hence a vector) is denoted with the same letter as the matrix and a single sub-script.In this case, the row or column is underlined with a single line since it corresponds to a vector.Finally, super-scripts between parentheses always indicate the corresponding layer number within the ANN. Architecture of ANNs: the feedforward case The first choice for the determination of the structure of an ANN is the architecture of the grid.We use the so-called feedforward architecture, resulting in the feedforward network (FFN), where neurons are stored in consecutive layers; the layers are indicated with an index l, with l = 0, 1, . . ., L, L + 1.The FFN architecture is such that at each layer the input is taken from the output of the previous layer, elaborated by the interaction scheme and the activation functions of the neurons present in the considered layer, and passed as an input to the next layer.The first layer of the FFN (l = 0) is called ANN input layer or simply input layer and it is not actually composed by neurons; each unit of this first layer has the only role of reading the input data and to feed them to the following layer of neurons to start the network process; accordingly, the amount of units in the first layer is always equal to the number of inputs of the network.The last layer of the FFN (l = L + 1) is called ANN output layer or simply output layer since its neurons' outputs constitute the output of the network itself.All the layers between the ANN input and output layers (l = 1, . . ., L) are called hidden layers.Each l-th layer consist of N (l) neurons, each one with its own real scalar output.The set of output values of the l-th layer's neurons1 can be thus thought as a vector, arranged, for example, in the form: Architecture of ANNs: the feedforward case In the FFN architecture, each neuron of the l-th layer is fully connected with the nodes of the previous (l−1)-th layer by weighted edges (often called just weights); the weights are scalar values associated to the connection between neurons of adjacent layers. Architecture of ANNs: the feedforward case When the network has two or more hidden layers (L ≥ 2), the architecture is usually referred to as deep feedforward network (DFFN).Instead, when the network has just one hidden layer (L = 1), the architecture is usually referred to as non-deep FFN, or shallow neural networks [34,39] or two-layer networks [16,38].This last terminology evidences the fact that the input layer does not perform any operation, hence such ANN relies only on a single hidden layer and the output layer. Interaction schemes The first step performed by the neurons of the generic l-th layer is represented by the interaction scheme, which combines all the outputs of the neurons of the previous layer (i.e. the real values x (l−1) j , with j = 1 . . .N (l−1) ) to produce a single output value for each single neuron (i.e., the real values denoted in the following as z (l) i , with i = 1 . . .N (l) ).For each i-th neuron on the l-th layer, such a combination of the output neurons of the previous layer is based on the use of a vector of weights, indicated as Interaction schemes , and a scalar bias, indicated as β (l) i ∈ R, with i = 1 . . .N (l) .In general, the interaction scheme of the single neuron is represented as a function κ l) , so that: Interaction schemes ( Interaction schemes Figure 1 depicts the interaction scheme of the generic i-th neuron on the l-th layer (the figure also shows the activation function ψ Interaction schemes i , which is addressed in Section 2.3). Interaction schemes It is possible to organize the weights A Interaction schemes i and biases β (l) Interaction schemes i associated to the i-th neuron of the l-th layer into a matrix and a vector, respectively.We define the weights matrix A (l) ∈ R N (l) ×N (l−1) by laying the vectors A (l) i as rows.Likewise, the vector of biases β (l) ∈ R N (l) is defined organizing the individual biases as a vector.Consequently, A (l) and β (l) contain the weights and biases associated to all the neurons of the l-th layer. Interaction schemes The interaction scheme distinguishes different classes of FFN formulations.In the following we address only the additive and distance-like schemes, referring to them as classic DFFN and RBF networks, respectively, but it is worthwhile to remark that ANNs have been also extended to many others schemes. Additive interaction scheme Such a scheme is based on an additive combination of the weights A (l) i , biases β (l) i and inputs x (l−1) , and it is defined as follows: Additive interaction scheme where Additive interaction scheme ij is the i-th row and j-th column element of the matrix A (l) . Distance-like interaction scheme Such a scheme is based on the extension of the notion of Radial Basis Functions (RBF) to the networks and it is defined as follows. Distance-like interaction scheme where Distance-like interaction scheme i is the i-th row of the matrix A (l) .Since internal parameters (A Distance-like interaction scheme i and set random centers A (l) i and then proceed to the solution of the linear system in the weights of the last layer A (L+1) i see, e.g., [7,22].Such a procedure is similar to the one proposed in the training via ELMs, as we present in Section 2.5. Activation functions The second step performed by each neuron in the l-th layer is to modulate the output of the interaction scheme z (l) Activation functions i by means of the activation function to produce the so-called output of the neuron, which is indicated as Activation functions i is computed by the activation function ψ Activation functions Figure 1 shows a representation of the action of the generic i-th neuron on the l-th layer, including both the interaction scheme κ (l) i and the activation function ψ (l) i .The use of activation functions gives a wide range of possibilities when defining a network.In principle, one can mix the use of different activation functions in the different hidden layers.However, we use just one activation function for all neurons of all layers, i.e.: ψ (l) i = ψ.In the following, we report the choices that are more common and that we consider in our tests. Activation functions used with additive interaction scheme The most common choices for activation functions adopted in combination with additive interaction scheme are: Activation functions used with additive interaction scheme • Logistic Sigmoid (LS): • SoftPlus (SP): Activation functions used with additive interaction scheme LS and SP functions are widely used when performing approximations in unbounded domains or for extrapolating. Activation functions used with additive interaction scheme Another common activation function adopted in combination with additive interaction scheme is the Rectified Linear Unit (ReLU), which is defined as ψ(x) = max{x, 0}.Notice that the SP function is a smooth C ∞ approximation of the ReLU function with the property that the derivative of the SP function is the LS function.It is well known that shallow networks with ReLU activation functions have piece-wise linear functions as an output.Since our aim is to obtain regular functions on the output of the ANN, in our tests we do not implement networks with ReLU activation functions. Activation functions used with additive interaction scheme Finally, we recall that in the case of shallow networks with LS activation functions the network gives the formation of the so-called Ridge functions [35], or superimpositions of LS functions [2]. Activation functions used with distance-like interaction scheme A common choice for activation function adopted in combination with distancelike interaction scheme is: Activation functions used with distance-like interaction scheme GRB functions are widely used in different domains, and the understanding of the properties of these is well established, see e.g.[18]. Mathematical formulation of the entire ANN According to the notation presented above, for each ANN layer, we can define a layer map Φ (l) : Mathematical formulation of the entire ANN i ) (5) Finally, the whole ANN can be interpreted as a map F : Mathematical formulation of the entire ANN e. a map between the input domain and the output domain that can be expressed by: Mathematical formulation of the entire ANN where the symbol • is the function composition, i.e., f • g(x) = f (g(x)).When FFNs are used for regression or approximation purposes in the context of continuous, integrable or square-integrable functions, a common choice is to use linear activation functions for the neurons on the last layer.The final output is taken as a linear combination of the evaluations done at the last hidden layer, so that transfer functions of the last layer ψ (L+1) i are the identity functions: Mathematical formulation of the entire ANN In this case, the structure of the FFN is exactly a linear combination of the activation functions of the last hidden layer's neurons.If such functions are chosen linearly independent, they are a basis of the approximating space, so this space is easily described.Overall, the effect of the weights of the last hidden layer is only to combine the activation functions, whereas altering the internal parameters that define the shape of the functions changes the approximating space. Approximation results The universal approximation result can be enunciated for FFNs with the same activation function for alla the FFN as follows. Approximation results Theorem 2.1 Consider a DFFN with the same activation function ψ in all the neurons of all the layers.Moreover let ψ ∈ C(R).Then the space M (L) (ψ) generated by a linear combination of the outputs of the last hidden layer x (L) , defined by: Approximation results is dense in C(R), in the topology of uniform convergence on compacta, if and only if ψ is not a polynomial. Approximation results Notice that the choice of the interaction scheme is not discussed here since the two cases presented in Section 2.2 fulfill the requested hypotheses. Approximation results We remark that the norm associated to the uniform convergence on compacta is very general, since if µ is a non-negative finite Borel measure defined on some compact set K, then C(K) is dense in L p (K, µ), for any 1 ≤ p ≤ +∞. Approximation results The possibility of using different activation functions in different layers comes as a consequence of the universal approximation result, that states that a property on universal approximation can be obtained with every non-polynomial function see, e.g., [29,21,33].In fact, Theorem 2.1 can be easily extended to networks with different activation functions in different layers; assuming to deal with two different activation functions ψ 1 and ψ 2 in different layers, then the generated space is the direct sum of two spaces dense in C(R): Approximation results . Furthermore, from a density point of view, there is no need to consider a deep ANN, because, at least for the univariate case, a single hidden layer is enough to achieve the universal approximation propriety.Moreover, the construction of deep neural networks gives spaces of composite functions, see (6), and such composition is unnecessary for the interpolation or approximation of univariate functions due to Theorem 2.1.For this reason, in our analysis we focus on the most simple architecture and take in account only few possible choices of activation functions.With this, we are not intending to assert that this is the optimal choice for all possible cases, but rather because even in these frameworks, we find what aligns with the purpose of this study. Approximation results Furthermore, we would like to point out that function composition can be interpreted as a construction of a new feature set for the output layer.In fact, when a point x (0) is given as an input, this is transformed in an element in the N (1) -dimensional space by the action of the activation functions of first hidden layer; then, the activation functions of the second hidden layer -or, in the case of one layer, the activation function -has to deal with the new point x (1) and, so on, this happens in all the intermediate layers.Accordingly, one common point of view to look at the behavior of ANNs is to think that the effect of all hidden layers is to encode the input in N (L) new coordinates (i.e., the outputs of the last hidden layer), acting thus as a filter.Then, these N (L) values are linearly combined to give the output, when linear activation functions for the neurons on the last layer are used.In other words, the network takes the input data and converts it into numbers that, linearly combined with a weight vector, determine the behavior of the network. Single hidden layer FFN in the univariate scalar case Our aim now is to particularise the formulae from previous sections to the case of a single hidden layer ANN and univariate scalar functions, which are the focus of the present work. Single hidden layer FFN in the univariate scalar case In the case of a single hidden layer (L = 1), the FFN is composed only by three layers, numbered l = 0 (input layer), l = 1 (hidden layer) and l = 2 (output layer); then, there are only two matrices of weights A (1) and A (2) and two vectors of biases β (1) and β (2) .Moreover, when the target functions to be interpolated are univariate and scalar (as we consider in our work), the ANN can be further simplified.On the one hand, the fact that the functions are univariate implies that N (0) = 1, hence x (0) is a scalar and A (1) reduces to a vector.On the other hand, the fact that the functions are scalar implies that N (2) = 1, hence x (2) and β (2) reduce to scalars and A (2) reduces to a vector, which we write as: Single hidden layer FFN in the univariate scalar case and we denote as external weights.Figure 2 shows a diagram of the resulting ANN. Single hidden layer FFN in the univariate scalar case Under these conditions, equations ( 6) and ( 7) become, respectively: Single hidden layer FFN in the univariate scalar case where Φ (1) Single hidden layer FFN in the univariate scalar case 1 ), . . ., ψ Single hidden layer FFN in the univariate scalar case N Single hidden layer FFN in the univariate scalar case N (1) ) and Φ (2) ≡ ψ (2) , Single hidden layer FFN in the univariate scalar case x (2) = Single hidden layer FFN in the univariate scalar case N (1) i=1 Single hidden layer FFN in the univariate scalar case i (z Single hidden layer FFN in the univariate scalar case i ) with z Single hidden layer FFN in the univariate scalar case (1) Single hidden layer FFN in the univariate scalar case i (x (0) , A Single hidden layer FFN in the univariate scalar case i , β Single hidden layer FFN in the univariate scalar case i ). Single hidden layer FFN in the univariate scalar case A classic FFN with a single hidden layer of N (1) neurons and with an additive interaction scheme can be written as: Single hidden layer FFN in the univariate scalar case Likewise, a RBF network with a single hidden layer of N (1) neurons can be written as: Training of the single-layer network When a choice has been done for the number of neurons N (1) and for the activation functions ψ Training of the single-layer network (1) i (see, for example, equations ( 10) and ( 11)), then we are left with the determination of the unknown parameters Training of the single-layer network i and w i , with i = 1 . . .N (1) (a process often indicated as training process). Training of the single-layer network Figure 2: Schematic representation of the single-hidden layer ANN with scalar input x (0) and scalar output x (2) .Each neuron is represented by a circle divided into the interaction scheme κ (l) i and the activation function ψ (l) i .The input neuron, which does not perform any of these operations, is represented by a black dot.Among all possible choices, we assume to fix a-priori all weights and biases associated to the neurons in the hidden layer, i.e.A Training of the single-layer network (1) i and β Training of the single-layer network (1) i , choice often indicated under the name of Extreme Learning Machine (ELM) and the ANNs trained this way are usually called Random Projection Networks.Accordingly, the only unknown of a FFN trained via ELM are the external weights w i , i.e. the coefficients of the linear combination of the outputs of the hidden layer.More detailed analysis on some parameters choices that can influence the analysis can be found, ad example, in [13,17].The weights w i are selected throughout the optimization problem, that in our case is the satisfaction of the interpolation requirements. Training of the single-layer network Therefore, the number of degrees of freedom of an ELM network (N ELM dof ) is equal to the number of neurons in the last hidden layer, independently of how many hidden layers are considered.In our case: Training of the single-layer network whereas for a generic classical DFFN, with L hidden layers, the number of degrees of freedom would be Training of the single-layer network . The use of Random Projection ANN, or ELMs, has a vast literature and includes theoretical foundings and applications to various fields; we refer to the review papers [12,23,43] for interested readers. Training of the single-layer network Remark: The suggested ELM training procedure, based on a choice made via random selection for part of the unknown parameters and some linear problems to be solved for the determination of the remaining unknown parameters, has been very vastly studied in the literature.When ELM was defined by Huang and co-authors, it gained huge popularity and lead to very interesting developments [24].Nevertheless, the debate on the original denomination or on the first researcher that has introduced such a procedure populates both scientific papers and internet blogs.In the authors' opinion, the contribution due to Huang is out of doubt, though it is far from the scope of the authors to crown one scholar or another.We refer to two websites2 for those who are interested in such debate. Training of the single-layer network Remark: In the ELM framework, the multilayer construction (i.e., deep ANNs) becomes a linear combination of trial functions, which are, in turn, compositions of activation functions, themselves generated by the random choices of the parameters.The deep architecture is usually adopted when considering high-dimensional problems.However, in our experience, for the low-dimensional approximation problem considered, the structure of the deep network is not necessary to meet the required properties, but is only useful to change the shape of the functions. Resulting interpolation problem Based on the ELM training procedure adopted in the present work, we can define a function ũ to summarize the action of the entire network (called the network function).The network function relates the network input and the external weights with the network output, such that: x (2) = ũ(x (0) , w).In our approximation problem, x (0) and x (2) are the independent and dependent variables of the target univariate scalar function sought to be interpolated.The leading philosophy of the ELM framework is to learn only external weights since the following theorem holds see [24]: Theorem 2.2 Let (x j , y j ) , j = 1, . . ., M be a set of data points such that x j ̸ = x j+1 , and lets take the single-layer FFN with N (1) ≤ M neurons, then: Resulting interpolation problem i (x (0) , A Resulting interpolation problem i ) , Resulting interpolation problem Moreover, consider weights A Resulting interpolation problem (1) i and bias β (1) randomly generated, independently from the data points (x j , y j ), according to any continuous probability distribution P.Then, ∀ε > 0, there exists a choice of w such that P(∥(ũ(x j ; w i ) − y j )∥ < ε) = 1.Moreover, if N (1) = M then w i can be found such that P(∥(ũ(x j ; w i ) − y j )∥ = 0) = 1. Resulting interpolation problem Under the single-hidden layer architecture and ELM training framework adopted in the present work, the underlying approximation space is formed by the activation functions of the hidden layer ψ Resulting interpolation problem (1) i (with i = 1 . . .N (1) ).A common nomenclature to refer to the functions ψ (1) i is trial functions.The trial functions are fixed because the internal parameters of the activation functions are given after the random projection.Following what presented in [9], in our numerical experiments we randomly select internal weights and biases, within a certain fixed range, so that the the centers of the activation functions are located in random points. Resulting interpolation problem In order to select the external weights w, we introduce a loss function to be optimized.Since we focus on the problem of function interpolation, we call f a generic target function, consider M training points (x j , y j ) such that f (x j ) := y j , j = 1, . . ., M , with M ≤ N (1) and we look for the network function ũ (13) as a linear combination of trial functions and such that: ũ(x j , w) = y j , ∀j = 1, . . ., M. Resulting interpolation problem The presence of free parameters acting only linearly clearly distinguishes the ELM case from other training approaches, in which the determination of the degrees of freedom is a nonlinear problem.Accordingly, in networks trained via ELM, the exact (optimal) choice of weights w can be determined in a "one-shot" process.Notice that such a training can be also considered as an useful procedure for the initialization of the iterative optimization procedure of standard ANNs. Resulting interpolation problem In fact, our target problem ( 14) can be rewritten in matrix form as follows. Resulting interpolation problem N (1) (x 1 ) . . . . . . . . . Resulting interpolation problem where S ∈ R M ×N (1) can be interpreted as a collocation matrix, since it consists of different functions (represented by each column of the matrix) evaluated in a set of points (each one represented by a row of the matrix).Since Theorem 2.2 guarantees (at least with probability 1) the existence of an interpolation network, the optimal solution of problem ( 14) is computed by the resolution of (15).Then, we aim to study the behavior of the constructed interpolant in terms of function approximation as it is well known that interpolation on nodes does not imply (in general) good behavior between nodes see, e.g., [41]. Resulting interpolation problem Theorem 2.2 states that square problems are full rank with probability 1. Ill-conditioning can occur because of two reasons: the location of interpolating nodes or the presence of similar trial functions see, e.g., [10,41].In these cases, the rank can be (at least to machine precision) lowered.A convenient way to overcome both these issues is to adopt an overparametrized system, i.e. the number of network parameters N (1) is higher than the number of data points M .We point out that the requested interpolation conditions are matched also in these cases.Then one of the solutions has to be selected because the linear system with M < N (1) is underdetermined.We chose to solve it by the least square procedure that gives the minimum-norm solution, as is done by backslash command in MATLAB.This leads to an increased computational cost with respect to the square case, related to the construction of the normal equations.When overparametrizing, we take M = N (1) /2, following [9].Nevertheless, in the next section where Runge's example is considered, we consider also the square case (i.e.M = N (1) ). Numerical results In this section, we study the problem of approximating a regular function through a single-layer ANN trained via ELM; in particular, we study the obtained convergence properties increasing the number of training points M (i.e. the interpolation nodes) and correspondingly increasing the number of neurons N (L) (i.e. the number of degrees of freedom).In particular, we consider the square case, where M = N (L) and the overparametrized case, where M = N (L) /2. Numerical results Our focus is on the behavior of the interpolation independently of the location of nodes, and we present tests done on three different sets of interpolation nodes: equispaced including boundary points, Chebychev points, and randomly generated points.We compare such convergence with what is obtained with the use of degree-increasing polynomial interpolation on the same nodes.The polynomial interpolation on Chebychev nodes is chosen as reference target behavior, since it is, on one side, (quasi-) optimal, as widely discussed in [40,41] and, on the other side, efficiently implemented in the CHEBFUN suite [14].The results reported regarding polynomial interpolation (Poly) are obtained by the CHEBFUN routine chebf un.interp1(x, y), while the training of ANN is done via ELM as discussed in the previous section. Numerical results When adopting ANNs, we construct the interpolation network ũ of ( 14) with various activation functions: summarizing what was presented in the previous section, the explored options are the following: Numerical results • ANN-based interpolation with Logistic Sigmoidal activation function (LS); Numerical results • ANN-based interpolation with Gaussian Radial Basis activation function (GRB); Numerical results • ANN-based interpolation with SoftPlus activation function (SP). Numerical results In all cases, we are interested in the behavior outside the interpolation nodes, where the exactness conditions are guaranteed by Theorem 2.2.Then, we introduce the interpolation error: Numerical results where the interpolating ũ and the interpolated -target-f are functions evaluated on 4000 equispaced points and the 2-norm (∥ . . .∥ 2 ) is evaluated via a trapezoidal rule. Numerical results We use different target functions with different regularities so that results are reported in proper scales according to the expected convergence: when available, we report also the reference convergence ratio. Numerical results In Section 3.1 we discuss results obtained in the case of Runge's example.For this function, we present various convergence plots.First of all, we consider the case where the ANN architecture is squared: the number of neurons in the hidden layer N (L) is the same as the number of interpolation nodes M .Then, we consider the case where the ANN architecture is overparametrized: in this case, we choose M = N (L) /2.In the square case, we notice a good but not optimal convergence, while in the latter we observe a convergence that exactly meets the reference one, i.e. the degree-increasing polynomial interpolation on Chebychev nodes.We also present convergence results regarding the approximation of the derivative: we train the ANN on the nodes and evaluate the exact derivative of the trained ANN, then we estimate the error with respect to the exact derivative of the interpolated function.Also in this case we obtain very good results. Numerical results In Section 3.2 we discuss results obtained in other test cases, focusing on overparametrized ANNs.We range our tests following what is presented in [41]: both analytic functions and functions with lower regularities with known behavior of the error are considered.In all cases, good results are obtained, especially due to the fact that the convergence is observed independently of the location of the interpolating nodes.This result demonstrates that the interpolation is stable with respect to the choice of nodes.In the current study, we have focused our attention on exact interpolation, thus not considering noisy functions.These cases could be better handled by adding regularization terms; however, it is important to note that the inclusion of regularization terms does not allow for exact interpolation. Runge's function approximation As a first test, we consider a well-known benchmark function based on the socalled Runge's example.The target problem is to approximate the following bell-shaped function: Runge's function approximation It is well-known that for this function polynomial interpolation on equispaced points diverges while adopting an interpolation based on Chebychev nodes results in a geometrical convergence with respect to the number of interpolating points M , that is, the convergence rate is O(C −M ) for some constant C > 1 [36,1,6]; in particular, calling p Runge's function approximation M the interpolating polynomial on M Chebychev nodes, then: ) , where M is the number of nodes and N (L) is the number of neurons in the hidden layer.The left panel is the case of equispaced nodes, the center is the case of Chebychev nodes, and the right is the case of randomly generated nodes.Convergence is tested at different choices of the activation function and increasing M and compared with one of the polynomial interpolation.In this case, the linear problem (15) is squared. Runge's function approximation In figures 3-6 we report the errors obtained when testing our procedure with the target function being Runge's one and its derivative.In the first two, figures 3-4 the convergence is done in the squared case M = N (L) , respectively interpolating the function ( 16) and its derivative.In the first case, we can notice that the convergence is exponential although not optimal, i.e. geometrical but with a different constant.Surprisingly, exponential convergence is independent of the choice of the interpolation nodes.Convergence in all cases is obtained up to a precision that is related to the condition of the linear problem (15) that is solved.We point out that no particular care has been taken for the resolution of such a problem: all tests are done via the backslash command in MATLAB: recall that the determination of the 1.In this case, we use random nodes, as reported in the third panel of Figure 3. ) is the number of neurons in the hidden layer.The left panel is the case of equispaced nodes, the central panel is the case of Chebychev nodes, and the right panel is the case of randomly generated nodes at different choices of the activation function.The difference is between the exact derivative of a function f R in (16) and the computed derivative of the function obtained by interpolation, the one used in Figure 3. Runge's function approximation parameters of the ANN does not involve optimization: the internal parameters are fixed via ELM and the external weights are solved through a square linear problem. Runge's function approximation In the second case, the one reported in Figure 4, we plot the errors obtained for the approximation of the derivative of Runge's function in the squared case.We compute the interpolant as in the first case and then evaluate the error that is done with respect to the derivative of the original functions.This can be done in our case because both the exact derivative of the function f R and the exact derivative of the interpolating ANN can be done in an exact way.From the reported test we can conclude that the convergence of the network function is exponential also in this case, which reveals a surprising ability of such interpolating ANN to approximate very well also the derivative of the function.Polynomial interpolation is not well suited for the approximation of the derivative of an interpolated function so the results of this test are not reported in the figures. Runge's function approximation In order to recover the exact optimal convergence for Runge's example, ) is the number of neurons in the hidden layer.The left panel is the case of equispaced nodes, the central panel is the case of Chebychev nodes, and the right panel is the case of randomly generated nodes.The difference is between the exact derivative of function f R in (16) and the computed derivative of the function obtained by interpolation, the one used in Figure 5. Other function approximation tests In this section, we present some examples to test our procedure with the target function being various regular functions. Other function approximation tests Notation follows what was presented in the previous section.The reference interval is always [−1, 1].The considered test covers all possible behaviors of regular functions and we consider: Other function approximation tests • a polynomial function (Section 3.2.1); Other function approximation tests • analytic functions of the three possible types: analytic in the whole complex plane, analytic in the reference domain with a pole far away from the domain, analytic with poles in the complex plane near the considered domain (Section 3.2.2); Other function approximation tests • functions with lower regularities (Section 3.2.3). Other function approximation tests Moreover, while selecting such functions, we include also highly oscillating and steep gradient behaviors: all examples in sections 3.2.2-3.2.3 follow the work reported in [41]. Polynomial function In this section, we present a polynomial example to test the accuracy and stability of our procedure.We generate, with a random procedure based on the randi function of Matlab, the following: Polynomial function This test is of particular interest because our choice of network does not reproduce polynomials, thus, as expected, also in this case we can evaluate convergence but not exactness.Then, the aim is to test the accuracy of our procedure and, by considering increasing numbers of degrees of freedom, the stability.In Figure 7 we notice that the convergence is exponential, and stops at different accuracy levels, which is expected due to the difference in condition number when the location of nodes is changed.Also, stability is confirmed, being in all tests the higher accuracy is maintained when the number of nodes increases.As already noticed in Runge's example, we obtain good accuracy in all tests, and independently of the location of nodes as we present tests done on three different sets of interpolation nodes and the convergence is maintained. Other analytic functions In this section, we present some examples to test the accuracy and stability of our procedure when applied to target functions that are analytic functions in the reference interval.In particular, the functions selected are those investigated in [41], in order to have benchmark results on the convergence rate and we compare the convergence of our network function with the geometric convergence of the polynomial interpolation on Chebychev nodes. Other analytic functions The first example that we present is f (x) = cos(20x) that is analytic not just on [−1, 1], but in the whole complex plane, and the convergence expected for the polynomial interpolation on the Chebychev nodes is even faster than geometric.Moreover, this function is rapidly oscillating in [−1, 1].In Figure 8 we report the computed error.We observe again that by applying our procedure we obtain convergence independently on the choice of the interpolation nodes.Also, as before, we notice that the convergence stops at different accuracy levels, due to the condition number of location of the interpolation nodes. is the number of neurons in the hidden layer.The left panel is the case of equispaced nodes, the central panel is the case of Chebychev nodes, and the right panel is the case of randomly generated nodes.The linear problem ( 15) is solved by least squares.Convergence is reported in a semi-log scale.The black triangle in the reference convergence (interpolating polynomial on Chebychev nodes). Differentiable functions We now present some examples to test the accuracy and stability of our procedure under different regularity hypotheses of the target functions.We use differentiable functions again selected among the functions examined in [41] to study the smoothness-approximability link.More precisely, the analyzed functions are, for an integer ν ≥ 0, ν − 1 times differentiable and with the (ν − 1)-th derivative absolutely continuous and ν-th derivative of bounded variation in [−1, 1].From the results of Theorem 7.2 in [41], this implies the convergence at the algebraic rate O(M −ν ) of the polynomial interpolation on Chebychev nodes.In these cases, we pass from an exponential to a polynomial convergence rate with respect to the number of nodes. Differentiable functions The first function that we use is f (x) = |x|, which is once differentiable with a jump in the first derivative at x = 0, thus it belongs to the space C 0 ([−1, 1]).In Figure 11 we plot the computed error in a log-log scale and the convergence curve of our procedure nicely matches M −1 in all tests.Thus, not only it matches the theoretic convergence expected on Chebychev nodes, but also we find the same rate on equispaced and random nodes where the polynomial interpolation diverges. Differentiable functions The second function that we use is f (x) = |sin 5x| 3 which is three times differentiable with jumps in the third derivative at x = 0 and x = ±π/5, thus it belongs to the space C 2 ([−1, 1]).In Figure 12 we report the errors obtained in a log-log scale and we observe a similarity with what is predicted for the polynomial interpolation on Chebychev nodes, finding that the convergence curve of our procedure nicely matches M −3 in all tests.Again, the same accuracy is observed for all the choices of the interpolation nodes. Conclusion In the present paper, we have solved the problem of function approximation via interpolation within a class of single-layer artificial neural networks.Such class of ANN is trained via a procedure, named ELM, that involves a random determination of internal parameters, given that the determination of the free parameters is a linear problem.We conclude that the ANN interpolating function constructed as overparametrized ANN trained via ELM is a very good approximating function: the approximation error converges in most cases with the same rate with respect to the reference method when increasing the number of neurons, while keeping linear the approximation problem to be solved.The first example that is taken into account in the present paper is Runge's function, where no divergence shows up also taking equispaced or randomly generating nodes.In this and all other test cases, also rapidly oscillating and steep, the function is properly approximated and the approximation error decreases.We suggest that if the target function is regular there is no need for deep structure in the ANN nor the training of internal parameters.Our result, which shows that the Runge phenomenon is defected by ANN trained via ELM, opens up two important scenarios from our perspective.On the one hand, it highlights that the more general problem of overfitting in ANNs can be studied without the need to select training points.Instead, one can focus on the optimization procedure in overparametrized networks: the minimum norm solution without tuning internal parameters achieves the desired outcome.On the other hand, it allows for the more confident use of these functions in scientific machine learning contexts where regular solutions are expected.This provides a valid alternative to using Lagrange interpolation when global methods are desired.It allows for in- Convergence is reported in a log-log scale.The black triangle is the reference convergence (interpolating polynomial on Chebychev nodes). Conclusion creasing the number of degrees of freedom without introducing spurious oscillations, while still achieving optimal convergence compared to global polynomial interpolation.Furthermore, as a future development, we believe that some of the results presented in this article can be revisited in light of the theoretical findings contained in [32] that we found as a recently published preprint while finalizing the first round of review of this work. Conclusion All included in the present paper adds informations on the use of ANN trained vial ELMs, that have been succesfully used in various applications, see [12,23,43]. Conclusion formative Agreement.Conflict of Interest: The authors declare that they have no conflict of interest.Ethical approval: This article does not contain any studies with human participants or animals performed by any of the authors.Acknowledgments Francesco Calabrò and Maria Roberta Belardo are members of GNCS-INdAM.The authors would like to express many thanks to anonymous referees for helpful corrections and valuable comments on the original version of this paper. Figure 1 : Figure 1: Schematic representation of the action of the generic i-th neuron of the l-th layer.The inputs x (l−1) j are represented with blue circles, the Figure 3 : Figure 3: Runge's example: computed error, square case M = N (L) , where M is the number of nodes and N(L) is the number of neurons in the hidden layer.The left panel is the case of equispaced nodes, the center is the case of Chebychev nodes, and the right is the case of randomly generated nodes.Convergence is tested at different choices of the activation function and increasing M and compared with one of the polynomial interpolation.In this case, the linear problem (15) is squared. Figure 4 : Figure 4: Runge's example: computed error for the derivative, square case M = N L where M is the number of nodes and N (L) is the number of neurons in the hidden layer.The left panel is the case of equispaced nodes, the central panel is the case of Chebychev nodes, and the right panel is the case of randomly generated nodes at different choices of the activation function.The difference is between the exact derivative of a function f R in(16) and the computed derivative of the function obtained by interpolation, the one used in Figure3. Figure 6 : Figure 6: Runge's example: computed error for the derivative with respect to the number of interpolating nodes M , overparametrized case with M = N (L) /2 where N (L) is the number of neurons in the hidden layer.The left panel is the case of equispaced nodes, the central panel is the case of Chebychev nodes, and the right panel is the case of randomly generated nodes.The difference is between the exact derivative of function f R in(16) and the computed derivative of the function obtained by interpolation, the one used in Figure5. Figure 10 : Figure10: Interpolation of the peaked function tanh(50πx): computed error with respect to the number of interpolating nodes M , overparametrized case with M = N (L) /2 where N (L) is the number of neurons in the hidden layer.The left panel is the case of equispaced nodes, the central panel is the case of Chebychev nodes, and the right panel is the case of randomly generated nodes.The linear problem(15) is solved by least squares.Convergence is reported in a semi-log scale.The black triangle in the reference convergence (interpolating polynomial on Chebychev nodes). Figure 11 : Figure 11: Interpolation of the C 0 function |x|: computed error with respect to the number of interpolating nodes M , overparametrized case with M = N (L) /2 where N (L) is the number of neurons in the hidden layer.The left panel is the case of equispaced nodes, the central panel is the case of Chebychev nodes, and the right panel is the case of randomly generated nodes.The linear problem (15) is solved by least squares.Convergence is reported in a log-log scale.The black triangle in the reference convergence (interpolating polynomial on Chebychev nodes). Figure 12 : Figure 12: Interpolation of the C 2 function |sin 5x| 3 : computed error with respect to the number of interpolating nodes M , overparametrized case with M = N (L) /2.The left panel is the case of equispaced nodes, the central panel is the case of Chebychev nodes, and the right panel is the case of randomly generated nodes.The linear problem (15) is solved by least squares.Convergence is reported in a log-log scale.The black triangle is the reference convergence (interpolating polynomial on Chebychev nodes). Table 1 : Computed errors of the interpolation of Runge's function increasing the number of nodes M -in the first column -both for different choices of the activation function and polynomial interpolation.Notation follows what presented at the beginning of Section 3. The table reports the errors computed for equispaced nodes in the square case M = N(L), where N (L) is the number of neurons in the hidden layer.Such results are those depicted in the first panel of Figure3. Table 2 : Computed errors for the Runge's function.For the notation, see Table1.In this case, we use Chebychev nodes, as reported in the second panel of Figure3. Table 3 : Computed errors for the Runge's function.For the notation, see Table Table 4 : Computed errors of the interpolation of Runge's function increasing the number of nodes M -in the first column -both for different choices of the activation function and polynomial interpolation.Notation follows what presented at the beginning of Section 3. The table reports the errors computed for equispaced nodes in the overparametrized case M = N (L) /2, where N (L) is the number of neurons in the hidden layer.Such results are those depicted in the first panel of Figure5. Table 5 : Computed errors for the Runge's function.For the notation, see Table4.In this case, we use Chebychev nodes, as reported in the second panel of Figure5. Table 6 : Computed errors for the Runge's function.For the notation, see Table4.In this case, we use random nodes, as reported in the third panel of Figure5.

섹션 본문 146문단 · 51,315자

(제목 없음)

1Artificial Neural Networks (ANNs) are a tool in approximation theory widely used to solve interpolation problems.In fact, ANNs can be assimilated to functions since they take an input and return an output.The structure of the specifically adopted network determines the underlying approximation space, while the form of the function is selected by fixing the parameters of the network.In the present paper, we consider one-hidden layer ANNs with a feedforward architecture, also referred to as shallow or two-layer networks, so that the structure is determined by the number and types of neurons.The determination of the parameters that define the function, called training, is done via the resolution of the approximation problem, so by imposing the interpolation through a set of specific nodes.We present the case where the parameters are trained using a procedure that is referred to as Extreme Learning Machine (ELM) that leads to a linear interpolation problem.In such hypotheses, the existence of an ANN interpolating function is guaranteed.Given that the ANN is interpolating, the error incurred occurs outside the sampling interpolation nodes provided by the user.In this study,

Introduction

2With no doubt, Artificial Neural Networks (ANNs) are a numerical analysis tool with a great versatility and, therefore, they have had a great development in recent years [20,31,15].ANNs are a class of machine learning algorithms that have a well-established structure, flexibility, and approximation properties.For this reason, they are widely used for function approximations, classification, regression, feature selection, and further applications are constantly being explored.Nevertheless, they are often considered as a black-box for its complex and nonlinear structure.Moreover, ANNs have open issues on some aspects of efficiency and accuracy when the number of training parameters increases.Furthermore, ANNs have opened the road to Artificial Intelligence with the possibility to develop Digital Twins when a warehouse of input-output data is available, even in cases where the govern-ing laws are unknown, even up to being able to mimic extremely complex phenomena, such as brain reaction.

3Of all the highlighted points, the present contribution focuses on the aspect that ANNs can be profitably used in function approximation due to the Universal Approximation (UA) results, even under very mild hypotheses see, e.g., [28].In particular, UA states that ANNs can approximate a target function with any required precision, i.e., it can be defined an ANN that is close enough to any target function (at least asymptotically) also in spaces endorsed with very low regularity.

4Moreover, some ANNs avoid the phenomenon called curse of dimensionality, an expression coined by [4], referring to a set of issues that appears when dealing with high-dimensional data, that are not present when working on low-dimensional problems.For instance, the amount of data needed to obtain a sufficiently good representation of a given domain often increases exponentially with the dimension of the data.The fact that ANNs avoid the curse of dimensionality opens the possibility to achieve efficient approximations, even in high dimensional cases see, e.g., [19,25,26,27,30].

5The construction of ANNs involves the determination of a sufficiently large number of functions (referred to in this context as activation functions) connected in a grid structure composed by nodes.The activation functions and the interactions among nodes are defined with parameters, which are determined via conditions that are intended as an interpolation (or approximation) of the available information.This process is called the training of the network and this is done by tuning the parameters.The first step to train an ANN is to initialize all the parameters in a proper way and then the tuning is performed, usually via optimization strategies, such as the minimization of a so-called loss function see, e.g., [5,11].

6The existence of a "good" interpolation network is guaranteed by the UA results and the large number of available tuning parameters.Such a network can then "remember" the information with which it has been trained and, even more important, is able to give an appropriate answer to new cases, which had not been used on the training process.Translated into mathematical approximation theory language, a trained network is capable to do usual interpolation and extrapolation procedures.On the other hand, from the authors' point of view, one of the main drawbacks of such a procedure is related to the unclear mathematical interpretation of the underlying approximating space and the definition of the training procedure in presence of a (quasi-) optimal set of parameters [42,15].

7A well known issue in approximation theory is the poor behavior of the degree-increasing polynomial interpolation when applied on some specific functions.In particular, a paradigmatic example of this poor behavior is Runge's function see, e.g., [10]; when taking uniformly or randomly distributed sampling points of Runge's function and performing a polynomial interpolation, the difference between approximating and target function outside from the sampling points can diverge as the polynomial order increases.One way to avoid this divergence is to sample the function using ad-hoc nodes, such as Chebychev nodes.However, in many real-world, non theoretical problems ad-hoc optimal sampling cannot be performed, either because data are already given, or because the analytical expression of the underlying function is unknown, or a combination of both.

8According to the previous discussion, the main aim of the present paper is to give some insight into the ability of a class of ANNs to approximate functions, and in particular, we focus on the Runge phenomenon, that is, the presence of spurious oscillations in the interpolant function.The present is not the first study on the interpolation properties of such ANNs and the authors have focused on different aspects (among others, we refer to [37,44,45]), but none, to our knowledge, has results on this phenomenon.Then, we report results for the Runge's function and, by following examples in [41], also for other benchmark functions that exhibit different regularities.Our reference method is the polynomial approximation obtained by interpolation in Chebychev nodes, as extensively discussed in [41]; such a method is well suited to achieve high degree approximation, as well as for its relationships to the truncation (or projection) of the Chebychev series, and it is widely used also in other applications, such as in numerical quadrature see, e.g.[40,8].Moreover, a stable reference implementation is available via CHEBFUN routines in MATLAB [3,14], so that the comparison can be easily conducted.

9The paper is organized as follows.Section 2 presents an introduction to ANNs focusing on the definitions of the main concepts and reviewing available results, with a focus on the properties related to the interpolation.In particular, we set the specific ANN structure, later adopted in the paper, namely a single hidden layer network, trained via Extreme Learning Machine with over-parametrization and solved by Least Squares.In Section 3 we show numerical results.First, we use Runge's function, where we also report results in the square (not overparametrized) case and for which we evaluate both the approximation of the function and of the derivative, being the derivative of the ANN interpolating function trivial to compute.The section continues with the results relative to other examples taken from Trefethen ([41]), using overparametrized networks and focusing on the approximation of the interpolated functions.Lastly, in Section 4 we present the final thoughts, conclusions and possible future directions.

Preliminaries on Neural Networks

10In this section we define the main concepts related to Artificial Neural Networks (ANNs).An ANN is a set of connected nodes, usually called neurons, where each neuron takes different real-valued inputs and produces a realvalued output.ANNs may have different connection structures between the neurons, called the architecture of the ANN; for instance, common architectures are: feedforward, deep feedforward, perceptron, convolutional, recurrent, autoencoder, fully complex.In the present work, we consider the most common architecture: the feedforward network (FFN), described in Section 2.1.

11The process that each neuron performs is mainly divided into two steps, with each single step being represented by a function.The first step is called interaction scheme and combines the multiple inputs received from the neurons to produce a scalar output.In Section 2.2 we describe some of the possible choices for the interaction scheme.Then, the second step is represented by a transfer function, usually called activation function, which takes the output of the interaction scheme as an input and generates another real value, that is the output of the neuron itself: in Section 2.3 we describe some of the possible choices for the activation functions.The interaction scheme determines how the information coming from a set of inputs is combined, whereas the activation function modulates the result.As discussed in more detail in the respective sections, the choice of each of these steps determines the behavior of the ANN.

12After these introductions of ANNs, in Section 2.4 we focus the analysis and particularise the equations to the case of a single hidden layer.Finally, in Section 2.5 we explain the adopted training procedure, called Extreme Learning Machine (ELM).

13Throughout the paper we use the following notation.Scalar values are represented by letters without underlining, whereas vectors and matrices are indicated with a single or a double underline, respectively.The elements of a vector are represented with the same letter as the vector itself, with a single sub-script indicating the number of elements.Similarly, the elements of a matrix are represented with the same letter as the matrix itself, using two sub-scripts.In both cases, the letter with the sub-script(s) is not underlined, since it corresponds to a scalar value.Moreover, a single row or column of a matrix (hence a vector) is denoted with the same letter as the matrix and a single sub-script.In this case, the row or column is underlined with a single line since it corresponds to a vector.Finally, super-scripts between parentheses always indicate the corresponding layer number within the ANN.

Architecture of ANNs: the feedforward case

14The first choice for the determination of the structure of an ANN is the architecture of the grid.We use the so-called feedforward architecture, resulting in the feedforward network (FFN), where neurons are stored in consecutive layers; the layers are indicated with an index l, with l = 0, 1, . . ., L, L + 1.The FFN architecture is such that at each layer the input is taken from the output of the previous layer, elaborated by the interaction scheme and the activation functions of the neurons present in the considered layer, and passed as an input to the next layer.The first layer of the FFN (l = 0) is called ANN input layer or simply input layer and it is not actually composed by neurons; each unit of this first layer has the only role of reading the input data and to feed them to the following layer of neurons to start the network process; accordingly, the amount of units in the first layer is always equal to the number of inputs of the network.The last layer of the FFN (l = L + 1) is called ANN output layer or simply output layer since its neurons' outputs constitute the output of the network itself.All the layers between the ANN input and output layers (l = 1, . . ., L) are called hidden layers.Each l-th layer consist of N (l) neurons, each one with its own real scalar output.The set of output values of the l-th layer's neurons1 can be thus thought as a vector, arranged, for example, in the form:

15In the FFN architecture, each neuron of the l-th layer is fully connected with the nodes of the previous (l−1)-th layer by weighted edges (often called just weights); the weights are scalar values associated to the connection between neurons of adjacent layers.

16When the network has two or more hidden layers (L ≥ 2), the architecture is usually referred to as deep feedforward network (DFFN).Instead, when the network has just one hidden layer (L = 1), the architecture is usually referred to as non-deep FFN, or shallow neural networks [34,39] or two-layer networks [16,38].This last terminology evidences the fact that the input layer does not perform any operation, hence such ANN relies only on a single hidden layer and the output layer.

Interaction schemes

17The first step performed by the neurons of the generic l-th layer is represented by the interaction scheme, which combines all the outputs of the neurons of the previous layer (i.e. the real values x (l−1) j , with j = 1 . . .N (l−1) ) to produce a single output value for each single neuron (i.e., the real values denoted in the following as z (l) i , with i = 1 . . .N (l) ).For each i-th neuron on the l-th layer, such a combination of the output neurons of the previous layer is based on the use of a vector of weights, indicated as

18, and a scalar bias, indicated as β (l) i ∈ R, with i = 1 . . .N (l) .In general, the interaction scheme of the single neuron is represented as a function κ l) , so that:

19(

20Figure 1 depicts the interaction scheme of the generic i-th neuron on the l-th layer (the figure also shows the activation function ψ

21i , which is addressed in Section 2.3).

22It is possible to organize the weights A

23i and biases β (l)

24i associated to the i-th neuron of the l-th layer into a matrix and a vector, respectively.We define the weights matrix A (l) ∈ R N (l) ×N (l−1) by laying the vectors A (l) i as rows.Likewise, the vector of biases β (l) ∈ R N (l) is defined organizing the individual biases as a vector.Consequently, A (l) and β (l) contain the weights and biases associated to all the neurons of the l-th layer.

25The interaction scheme distinguishes different classes of FFN formulations.In the following we address only the additive and distance-like schemes, referring to them as classic DFFN and RBF networks, respectively, but it is worthwhile to remark that ANNs have been also extended to many others schemes.

Additive interaction scheme

26Such a scheme is based on an additive combination of the weights A (l) i , biases β (l) i and inputs x (l−1) , and it is defined as follows:

27where

28ij is the i-th row and j-th column element of the matrix A (l) .

Distance-like interaction scheme

29Such a scheme is based on the extension of the notion of Radial Basis Functions (RBF) to the networks and it is defined as follows.

30where

31i is the i-th row of the matrix A (l) .Since internal parameters (A

32i and set random centers A (l) i and then proceed to the solution of the linear system in the weights of the last layer A (L+1) i see, e.g., [7,22].Such a procedure is similar to the one proposed in the training via ELMs, as we present in Section 2.5.

Activation functions

33The second step performed by each neuron in the l-th layer is to modulate the output of the interaction scheme z (l)

34i by means of the activation function to produce the so-called output of the neuron, which is indicated as

35i is computed by the activation function ψ

36Figure 1 shows a representation of the action of the generic i-th neuron on the l-th layer, including both the interaction scheme κ (l) i and the activation function ψ (l) i .The use of activation functions gives a wide range of possibilities when defining a network.In principle, one can mix the use of different activation functions in the different hidden layers.However, we use just one activation function for all neurons of all layers, i.e.: ψ (l) i = ψ.In the following, we report the choices that are more common and that we consider in our tests.

Activation functions used with additive interaction scheme

37The most common choices for activation functions adopted in combination with additive interaction scheme are:

38• Logistic Sigmoid (LS): • SoftPlus (SP):

39LS and SP functions are widely used when performing approximations in unbounded domains or for extrapolating.

40Another common activation function adopted in combination with additive interaction scheme is the Rectified Linear Unit (ReLU), which is defined as ψ(x) = max{x, 0}.Notice that the SP function is a smooth C ∞ approximation of the ReLU function with the property that the derivative of the SP function is the LS function.It is well known that shallow networks with ReLU activation functions have piece-wise linear functions as an output.Since our aim is to obtain regular functions on the output of the ANN, in our tests we do not implement networks with ReLU activation functions.

41Finally, we recall that in the case of shallow networks with LS activation functions the network gives the formation of the so-called Ridge functions [35], or superimpositions of LS functions [2].

Activation functions used with distance-like interaction scheme

42A common choice for activation function adopted in combination with distancelike interaction scheme is:

43GRB functions are widely used in different domains, and the understanding of the properties of these is well established, see e.g.[18].

Mathematical formulation of the entire ANN

44According to the notation presented above, for each ANN layer, we can define a layer map Φ (l) :

45i ) (5) Finally, the whole ANN can be interpreted as a map F :

46e. a map between the input domain and the output domain that can be expressed by:

47where the symbol • is the function composition, i.e., f • g(x) = f (g(x)).When FFNs are used for regression or approximation purposes in the context of continuous, integrable or square-integrable functions, a common choice is to use linear activation functions for the neurons on the last layer.The final output is taken as a linear combination of the evaluations done at the last hidden layer, so that transfer functions of the last layer ψ (L+1) i are the identity functions:

48In this case, the structure of the FFN is exactly a linear combination of the activation functions of the last hidden layer's neurons.If such functions are chosen linearly independent, they are a basis of the approximating space, so this space is easily described.Overall, the effect of the weights of the last hidden layer is only to combine the activation functions, whereas altering the internal parameters that define the shape of the functions changes the approximating space.

Approximation results

49The universal approximation result can be enunciated for FFNs with the same activation function for alla the FFN as follows.

50Theorem 2.1 Consider a DFFN with the same activation function ψ in all the neurons of all the layers.Moreover let ψ ∈ C(R).Then the space M (L) (ψ) generated by a linear combination of the outputs of the last hidden layer x (L) , defined by:

51is dense in C(R), in the topology of uniform convergence on compacta, if and only if ψ is not a polynomial.

52Notice that the choice of the interaction scheme is not discussed here since the two cases presented in Section 2.2 fulfill the requested hypotheses.

53We remark that the norm associated to the uniform convergence on compacta is very general, since if µ is a non-negative finite Borel measure defined on some compact set K, then C(K) is dense in L p (K, µ), for any 1 ≤ p ≤ +∞.

54The possibility of using different activation functions in different layers comes as a consequence of the universal approximation result, that states that a property on universal approximation can be obtained with every non-polynomial function see, e.g., [29,21,33].In fact, Theorem 2.1 can be easily extended to networks with different activation functions in different layers; assuming to deal with two different activation functions ψ 1 and ψ 2 in different layers, then the generated space is the direct sum of two spaces dense in C(R):

55. Furthermore, from a density point of view, there is no need to consider a deep ANN, because, at least for the univariate case, a single hidden layer is enough to achieve the universal approximation propriety.Moreover, the construction of deep neural networks gives spaces of composite functions, see (6), and such composition is unnecessary for the interpolation or approximation of univariate functions due to Theorem 2.1.For this reason, in our analysis we focus on the most simple architecture and take in account only few possible choices of activation functions.With this, we are not intending to assert that this is the optimal choice for all possible cases, but rather because even in these frameworks, we find what aligns with the purpose of this study.

56Furthermore, we would like to point out that function composition can be interpreted as a construction of a new feature set for the output layer.In fact, when a point x (0) is given as an input, this is transformed in an element in the N (1) -dimensional space by the action of the activation functions of first hidden layer; then, the activation functions of the second hidden layer -or, in the case of one layer, the activation function -has to deal with the new point x (1) and, so on, this happens in all the intermediate layers.Accordingly, one common point of view to look at the behavior of ANNs is to think that the effect of all hidden layers is to encode the input in N (L) new coordinates (i.e., the outputs of the last hidden layer), acting thus as a filter.Then, these N (L) values are linearly combined to give the output, when linear activation functions for the neurons on the last layer are used.In other words, the network takes the input data and converts it into numbers that, linearly combined with a weight vector, determine the behavior of the network.

Single hidden layer FFN in the univariate scalar case

57Our aim now is to particularise the formulae from previous sections to the case of a single hidden layer ANN and univariate scalar functions, which are the focus of the present work.

58In the case of a single hidden layer (L = 1), the FFN is composed only by three layers, numbered l = 0 (input layer), l = 1 (hidden layer) and l = 2 (output layer); then, there are only two matrices of weights A (1) and A (2) and two vectors of biases β (1) and β (2) .Moreover, when the target functions to be interpolated are univariate and scalar (as we consider in our work), the ANN can be further simplified.On the one hand, the fact that the functions are univariate implies that N (0) = 1, hence x (0) is a scalar and A (1) reduces to a vector.On the other hand, the fact that the functions are scalar implies that N (2) = 1, hence x (2) and β (2) reduce to scalars and A (2) reduces to a vector, which we write as:

59and we denote as external weights.Figure 2 shows a diagram of the resulting ANN.

60Under these conditions, equations ( 6) and ( 7) become, respectively:

61where Φ (1)

621 ), . . ., ψ

63N

64N (1) ) and Φ (2) ≡ ψ (2) ,

65x (2) =

66N (1) i=1

67i (z

68i ) with z

69(1)

70i (x (0) , A

71i , β

72i ).

73A classic FFN with a single hidden layer of N (1) neurons and with an additive interaction scheme can be written as:

74Likewise, a RBF network with a single hidden layer of N (1) neurons can be written as:

Training of the single-layer network

75When a choice has been done for the number of neurons N (1) and for the activation functions ψ

76(1) i (see, for example, equations ( 10) and ( 11)), then we are left with the determination of the unknown parameters

77i and w i , with i = 1 . . .N (1) (a process often indicated as training process).

78Figure 2: Schematic representation of the single-hidden layer ANN with scalar input x (0) and scalar output x (2) .Each neuron is represented by a circle divided into the interaction scheme κ (l) i and the activation function ψ (l) i .The input neuron, which does not perform any of these operations, is represented by a black dot.Among all possible choices, we assume to fix a-priori all weights and biases associated to the neurons in the hidden layer, i.e.A

79(1) i and β

80(1) i , choice often indicated under the name of Extreme Learning Machine (ELM) and the ANNs trained this way are usually called Random Projection Networks.Accordingly, the only unknown of a FFN trained via ELM are the external weights w i , i.e. the coefficients of the linear combination of the outputs of the hidden layer.More detailed analysis on some parameters choices that can influence the analysis can be found, ad example, in [13,17].The weights w i are selected throughout the optimization problem, that in our case is the satisfaction of the interpolation requirements.

81Therefore, the number of degrees of freedom of an ELM network (N ELM dof ) is equal to the number of neurons in the last hidden layer, independently of how many hidden layers are considered.In our case:

82whereas for a generic classical DFFN, with L hidden layers, the number of degrees of freedom would be

83. The use of Random Projection ANN, or ELMs, has a vast literature and includes theoretical foundings and applications to various fields; we refer to the review papers [12,23,43] for interested readers.

84Remark: The suggested ELM training procedure, based on a choice made via random selection for part of the unknown parameters and some linear problems to be solved for the determination of the remaining unknown parameters, has been very vastly studied in the literature.When ELM was defined by Huang and co-authors, it gained huge popularity and lead to very interesting developments [24].Nevertheless, the debate on the original denomination or on the first researcher that has introduced such a procedure populates both scientific papers and internet blogs.In the authors' opinion, the contribution due to Huang is out of doubt, though it is far from the scope of the authors to crown one scholar or another.We refer to two websites2 for those who are interested in such debate.

85Remark: In the ELM framework, the multilayer construction (i.e., deep ANNs) becomes a linear combination of trial functions, which are, in turn, compositions of activation functions, themselves generated by the random choices of the parameters.The deep architecture is usually adopted when considering high-dimensional problems.However, in our experience, for the low-dimensional approximation problem considered, the structure of the deep network is not necessary to meet the required properties, but is only useful to change the shape of the functions.

Resulting interpolation problem

86Based on the ELM training procedure adopted in the present work, we can define a function ũ to summarize the action of the entire network (called the network function).The network function relates the network input and the external weights with the network output, such that: x (2) = ũ(x (0) , w).In our approximation problem, x (0) and x (2) are the independent and dependent variables of the target univariate scalar function sought to be interpolated.The leading philosophy of the ELM framework is to learn only external weights since the following theorem holds see [24]: Theorem 2.2 Let (x j , y j ) , j = 1, . . ., M be a set of data points such that x j ̸ = x j+1 , and lets take the single-layer FFN with N (1) ≤ M neurons, then:

87i (x (0) , A

88i ) ,

89Moreover, consider weights A

90(1) i and bias β (1) randomly generated, independently from the data points (x j , y j ), according to any continuous probability distribution P.Then, ∀ε > 0, there exists a choice of w such that P(∥(ũ(x j ; w i ) − y j )∥ < ε) = 1.Moreover, if N (1) = M then w i can be found such that P(∥(ũ(x j ; w i ) − y j )∥ = 0) = 1.

91Under the single-hidden layer architecture and ELM training framework adopted in the present work, the underlying approximation space is formed by the activation functions of the hidden layer ψ

92(1) i (with i = 1 . . .N (1) ).A common nomenclature to refer to the functions ψ (1) i is trial functions.The trial functions are fixed because the internal parameters of the activation functions are given after the random projection.Following what presented in [9], in our numerical experiments we randomly select internal weights and biases, within a certain fixed range, so that the the centers of the activation functions are located in random points.

93In order to select the external weights w, we introduce a loss function to be optimized.Since we focus on the problem of function interpolation, we call f a generic target function, consider M training points (x j , y j ) such that f (x j ) := y j , j = 1, . . ., M , with M ≤ N (1) and we look for the network function ũ (13) as a linear combination of trial functions and such that: ũ(x j , w) = y j , ∀j = 1, . . ., M.

94The presence of free parameters acting only linearly clearly distinguishes the ELM case from other training approaches, in which the determination of the degrees of freedom is a nonlinear problem.Accordingly, in networks trained via ELM, the exact (optimal) choice of weights w can be determined in a "one-shot" process.Notice that such a training can be also considered as an useful procedure for the initialization of the iterative optimization procedure of standard ANNs.

95In fact, our target problem ( 14) can be rewritten in matrix form as follows.

96N (1) (x 1 ) . . . . . . . . .

97where S ∈ R M ×N (1) can be interpreted as a collocation matrix, since it consists of different functions (represented by each column of the matrix) evaluated in a set of points (each one represented by a row of the matrix).Since Theorem 2.2 guarantees (at least with probability 1) the existence of an interpolation network, the optimal solution of problem ( 14) is computed by the resolution of (15).Then, we aim to study the behavior of the constructed interpolant in terms of function approximation as it is well known that interpolation on nodes does not imply (in general) good behavior between nodes see, e.g., [41].

98Theorem 2.2 states that square problems are full rank with probability 1. Ill-conditioning can occur because of two reasons: the location of interpolating nodes or the presence of similar trial functions see, e.g., [10,41].In these cases, the rank can be (at least to machine precision) lowered.A convenient way to overcome both these issues is to adopt an overparametrized system, i.e. the number of network parameters N (1) is higher than the number of data points M .We point out that the requested interpolation conditions are matched also in these cases.Then one of the solutions has to be selected because the linear system with M < N (1) is underdetermined.We chose to solve it by the least square procedure that gives the minimum-norm solution, as is done by backslash command in MATLAB.This leads to an increased computational cost with respect to the square case, related to the construction of the normal equations.When overparametrizing, we take M = N (1) /2, following [9].Nevertheless, in the next section where Runge's example is considered, we consider also the square case (i.e.M = N (1) ).

Numerical results

99In this section, we study the problem of approximating a regular function through a single-layer ANN trained via ELM; in particular, we study the obtained convergence properties increasing the number of training points M (i.e. the interpolation nodes) and correspondingly increasing the number of neurons N (L) (i.e. the number of degrees of freedom).In particular, we consider the square case, where M = N (L) and the overparametrized case, where M = N (L) /2.

100Our focus is on the behavior of the interpolation independently of the location of nodes, and we present tests done on three different sets of interpolation nodes: equispaced including boundary points, Chebychev points, and randomly generated points.We compare such convergence with what is obtained with the use of degree-increasing polynomial interpolation on the same nodes.The polynomial interpolation on Chebychev nodes is chosen as reference target behavior, since it is, on one side, (quasi-) optimal, as widely discussed in [40,41] and, on the other side, efficiently implemented in the CHEBFUN suite [14].The results reported regarding polynomial interpolation (Poly) are obtained by the CHEBFUN routine chebf un.interp1(x, y), while the training of ANN is done via ELM as discussed in the previous section.

101When adopting ANNs, we construct the interpolation network ũ of ( 14) with various activation functions: summarizing what was presented in the previous section, the explored options are the following:

102• ANN-based interpolation with Logistic Sigmoidal activation function (LS);

103• ANN-based interpolation with Gaussian Radial Basis activation function (GRB);

104• ANN-based interpolation with SoftPlus activation function (SP).

105In all cases, we are interested in the behavior outside the interpolation nodes, where the exactness conditions are guaranteed by Theorem 2.2.Then, we introduce the interpolation error:

106where the interpolating ũ and the interpolated -target-f are functions evaluated on 4000 equispaced points and the 2-norm (∥ . . .∥ 2 ) is evaluated via a trapezoidal rule.

107We use different target functions with different regularities so that results are reported in proper scales according to the expected convergence: when available, we report also the reference convergence ratio.

108In Section 3.1 we discuss results obtained in the case of Runge's example.For this function, we present various convergence plots.First of all, we consider the case where the ANN architecture is squared: the number of neurons in the hidden layer N (L) is the same as the number of interpolation nodes M .Then, we consider the case where the ANN architecture is overparametrized: in this case, we choose M = N (L) /2.In the square case, we notice a good but not optimal convergence, while in the latter we observe a convergence that exactly meets the reference one, i.e. the degree-increasing polynomial interpolation on Chebychev nodes.We also present convergence results regarding the approximation of the derivative: we train the ANN on the nodes and evaluate the exact derivative of the trained ANN, then we estimate the error with respect to the exact derivative of the interpolated function.Also in this case we obtain very good results.

109In Section 3.2 we discuss results obtained in other test cases, focusing on overparametrized ANNs.We range our tests following what is presented in [41]: both analytic functions and functions with lower regularities with known behavior of the error are considered.In all cases, good results are obtained, especially due to the fact that the convergence is observed independently of the location of the interpolating nodes.This result demonstrates that the interpolation is stable with respect to the choice of nodes.In the current study, we have focused our attention on exact interpolation, thus not considering noisy functions.These cases could be better handled by adding regularization terms; however, it is important to note that the inclusion of regularization terms does not allow for exact interpolation.

Runge's function approximation

110As a first test, we consider a well-known benchmark function based on the socalled Runge's example.The target problem is to approximate the following bell-shaped function:

111It is well-known that for this function polynomial interpolation on equispaced points diverges while adopting an interpolation based on Chebychev nodes results in a geometrical convergence with respect to the number of interpolating points M , that is, the convergence rate is O(C −M ) for some constant C > 1 [36,1,6]; in particular, calling p

112M the interpolating polynomial on M Chebychev nodes, then: ) , where M is the number of nodes and N (L) is the number of neurons in the hidden layer.The left panel is the case of equispaced nodes, the center is the case of Chebychev nodes, and the right is the case of randomly generated nodes.Convergence is tested at different choices of the activation function and increasing M and compared with one of the polynomial interpolation.In this case, the linear problem (15) is squared.

113In figures 3-6 we report the errors obtained when testing our procedure with the target function being Runge's one and its derivative.In the first two, figures 3-4 the convergence is done in the squared case M = N (L) , respectively interpolating the function ( 16) and its derivative.In the first case, we can notice that the convergence is exponential although not optimal, i.e. geometrical but with a different constant.Surprisingly, exponential convergence is independent of the choice of the interpolation nodes.Convergence in all cases is obtained up to a precision that is related to the condition of the linear problem (15) that is solved.We point out that no particular care has been taken for the resolution of such a problem: all tests are done via the backslash command in MATLAB: recall that the determination of the 1.In this case, we use random nodes, as reported in the third panel of Figure 3. ) is the number of neurons in the hidden layer.The left panel is the case of equispaced nodes, the central panel is the case of Chebychev nodes, and the right panel is the case of randomly generated nodes at different choices of the activation function.The difference is between the exact derivative of a function f R in (16) and the computed derivative of the function obtained by interpolation, the one used in Figure 3.

114parameters of the ANN does not involve optimization: the internal parameters are fixed via ELM and the external weights are solved through a square linear problem.

115In the second case, the one reported in Figure 4, we plot the errors obtained for the approximation of the derivative of Runge's function in the squared case.We compute the interpolant as in the first case and then evaluate the error that is done with respect to the derivative of the original functions.This can be done in our case because both the exact derivative of the function f R and the exact derivative of the interpolating ANN can be done in an exact way.From the reported test we can conclude that the convergence of the network function is exponential also in this case, which reveals a surprising ability of such interpolating ANN to approximate very well also the derivative of the function.Polynomial interpolation is not well suited for the approximation of the derivative of an interpolated function so the results of this test are not reported in the figures.

116In order to recover the exact optimal convergence for Runge's example, ) is the number of neurons in the hidden layer.The left panel is the case of equispaced nodes, the central panel is the case of Chebychev nodes, and the right panel is the case of randomly generated nodes.The difference is between the exact derivative of function f R in (16) and the computed derivative of the function obtained by interpolation, the one used in Figure 5.

Other function approximation tests

117In this section, we present some examples to test our procedure with the target function being various regular functions.

118Notation follows what was presented in the previous section.The reference interval is always [−1, 1].The considered test covers all possible behaviors of regular functions and we consider:

119• a polynomial function (Section 3.2.1);

120• analytic functions of the three possible types: analytic in the whole complex plane, analytic in the reference domain with a pole far away from the domain, analytic with poles in the complex plane near the considered domain (Section 3.2.2);

121• functions with lower regularities (Section 3.2.3).

122Moreover, while selecting such functions, we include also highly oscillating and steep gradient behaviors: all examples in sections 3.2.2-3.2.3 follow the work reported in [41].

Polynomial function

123In this section, we present a polynomial example to test the accuracy and stability of our procedure.We generate, with a random procedure based on the randi function of Matlab, the following:

124This test is of particular interest because our choice of network does not reproduce polynomials, thus, as expected, also in this case we can evaluate convergence but not exactness.Then, the aim is to test the accuracy of our procedure and, by considering increasing numbers of degrees of freedom, the stability.In Figure 7 we notice that the convergence is exponential, and stops at different accuracy levels, which is expected due to the difference in condition number when the location of nodes is changed.Also, stability is confirmed, being in all tests the higher accuracy is maintained when the number of nodes increases.As already noticed in Runge's example, we obtain good accuracy in all tests, and independently of the location of nodes as we present tests done on three different sets of interpolation nodes and the convergence is maintained.

Other analytic functions

125In this section, we present some examples to test the accuracy and stability of our procedure when applied to target functions that are analytic functions in the reference interval.In particular, the functions selected are those investigated in [41], in order to have benchmark results on the convergence rate and we compare the convergence of our network function with the geometric convergence of the polynomial interpolation on Chebychev nodes.

126The first example that we present is f (x) = cos(20x) that is analytic not just on [−1, 1], but in the whole complex plane, and the convergence expected for the polynomial interpolation on the Chebychev nodes is even faster than geometric.Moreover, this function is rapidly oscillating in [−1, 1].In Figure 8 we report the computed error.We observe again that by applying our procedure we obtain convergence independently on the choice of the interpolation nodes.Also, as before, we notice that the convergence stops at different accuracy levels, due to the condition number of location of the interpolation nodes. is the number of neurons in the hidden layer.The left panel is the case of equispaced nodes, the central panel is the case of Chebychev nodes, and the right panel is the case of randomly generated nodes.The linear problem ( 15) is solved by least squares.Convergence is reported in a semi-log scale.The black triangle in the reference convergence (interpolating polynomial on Chebychev nodes).

Differentiable functions

127We now present some examples to test the accuracy and stability of our procedure under different regularity hypotheses of the target functions.We use differentiable functions again selected among the functions examined in [41] to study the smoothness-approximability link.More precisely, the analyzed functions are, for an integer ν ≥ 0, ν − 1 times differentiable and with the (ν − 1)-th derivative absolutely continuous and ν-th derivative of bounded variation in [−1, 1].From the results of Theorem 7.2 in [41], this implies the convergence at the algebraic rate O(M −ν ) of the polynomial interpolation on Chebychev nodes.In these cases, we pass from an exponential to a polynomial convergence rate with respect to the number of nodes.

128The first function that we use is f (x) = |x|, which is once differentiable with a jump in the first derivative at x = 0, thus it belongs to the space C 0 ([−1, 1]).In Figure 11 we plot the computed error in a log-log scale and the convergence curve of our procedure nicely matches M −1 in all tests.Thus, not only it matches the theoretic convergence expected on Chebychev nodes, but also we find the same rate on equispaced and random nodes where the polynomial interpolation diverges.

129The second function that we use is f (x) = |sin 5x| 3 which is three times differentiable with jumps in the third derivative at x = 0 and x = ±π/5, thus it belongs to the space C 2 ([−1, 1]).In Figure 12 we report the errors obtained in a log-log scale and we observe a similarity with what is predicted for the polynomial interpolation on Chebychev nodes, finding that the convergence curve of our procedure nicely matches M −3 in all tests.Again, the same accuracy is observed for all the choices of the interpolation nodes.

Conclusion

130In the present paper, we have solved the problem of function approximation via interpolation within a class of single-layer artificial neural networks.Such class of ANN is trained via a procedure, named ELM, that involves a random determination of internal parameters, given that the determination of the free parameters is a linear problem.We conclude that the ANN interpolating function constructed as overparametrized ANN trained via ELM is a very good approximating function: the approximation error converges in most cases with the same rate with respect to the reference method when increasing the number of neurons, while keeping linear the approximation problem to be solved.The first example that is taken into account in the present paper is Runge's function, where no divergence shows up also taking equispaced or randomly generating nodes.In this and all other test cases, also rapidly oscillating and steep, the function is properly approximated and the approximation error decreases.We suggest that if the target function is regular there is no need for deep structure in the ANN nor the training of internal parameters.Our result, which shows that the Runge phenomenon is defected by ANN trained via ELM, opens up two important scenarios from our perspective.On the one hand, it highlights that the more general problem of overfitting in ANNs can be studied without the need to select training points.Instead, one can focus on the optimization procedure in overparametrized networks: the minimum norm solution without tuning internal parameters achieves the desired outcome.On the other hand, it allows for the more confident use of these functions in scientific machine learning contexts where regular solutions are expected.This provides a valid alternative to using Lagrange interpolation when global methods are desired.It allows for in- Convergence is reported in a log-log scale.The black triangle is the reference convergence (interpolating polynomial on Chebychev nodes).

131creasing the number of degrees of freedom without introducing spurious oscillations, while still achieving optimal convergence compared to global polynomial interpolation.Furthermore, as a future development, we believe that some of the results presented in this article can be revisited in light of the theoretical findings contained in [32] that we found as a recently published preprint while finalizing the first round of review of this work.

132All included in the present paper adds informations on the use of ANN trained vial ELMs, that have been succesfully used in various applications, see [12,23,43].

133formative Agreement.Conflict of Interest: The authors declare that they have no conflict of interest.Ethical approval: This article does not contain any studies with human participants or animals performed by any of the authors.Acknowledgments Francesco Calabrò and Maria Roberta Belardo are members of GNCS-INdAM.The authors would like to express many thanks to anonymous referees for helpful corrections and valuable comments on the original version of this paper.

Figure 1 :

134Figure 1: Schematic representation of the action of the generic i-th neuron of the l-th layer.The inputs x (l−1) j are represented with blue circles, the

Figure 3 :

135Figure 3: Runge's example: computed error, square case M = N (L) , where M is the number of nodes and N(L) is the number of neurons in the hidden layer.The left panel is the case of equispaced nodes, the center is the case of Chebychev nodes, and the right is the case of randomly generated nodes.Convergence is tested at different choices of the activation function and increasing M and compared with one of the polynomial interpolation.In this case, the linear problem (15) is squared.

Figure 4 :

136Figure 4: Runge's example: computed error for the derivative, square case M = N L where M is the number of nodes and N (L) is the number of neurons in the hidden layer.The left panel is the case of equispaced nodes, the central panel is the case of Chebychev nodes, and the right panel is the case of randomly generated nodes at different choices of the activation function.The difference is between the exact derivative of a function f R in(16) and the computed derivative of the function obtained by interpolation, the one used in Figure3.

Figure 6 :

137Figure 6: Runge's example: computed error for the derivative with respect to the number of interpolating nodes M , overparametrized case with M = N (L) /2 where N (L) is the number of neurons in the hidden layer.The left panel is the case of equispaced nodes, the central panel is the case of Chebychev nodes, and the right panel is the case of randomly generated nodes.The difference is between the exact derivative of function f R in(16) and the computed derivative of the function obtained by interpolation, the one used in Figure5.

Figure 10 :

138Figure10: Interpolation of the peaked function tanh(50πx): computed error with respect to the number of interpolating nodes M , overparametrized case with M = N (L) /2 where N (L) is the number of neurons in the hidden layer.The left panel is the case of equispaced nodes, the central panel is the case of Chebychev nodes, and the right panel is the case of randomly generated nodes.The linear problem(15) is solved by least squares.Convergence is reported in a semi-log scale.The black triangle in the reference convergence (interpolating polynomial on Chebychev nodes).

Figure 11 :

139Figure 11: Interpolation of the C 0 function |x|: computed error with respect to the number of interpolating nodes M , overparametrized case with M = N (L) /2 where N (L) is the number of neurons in the hidden layer.The left panel is the case of equispaced nodes, the central panel is the case of Chebychev nodes, and the right panel is the case of randomly generated nodes.The linear problem (15) is solved by least squares.Convergence is reported in a log-log scale.The black triangle in the reference convergence (interpolating polynomial on Chebychev nodes).

Figure 12 :

140Figure 12: Interpolation of the C 2 function |sin 5x| 3 : computed error with respect to the number of interpolating nodes M , overparametrized case with M = N (L) /2.The left panel is the case of equispaced nodes, the central panel is the case of Chebychev nodes, and the right panel is the case of randomly generated nodes.The linear problem (15) is solved by least squares.Convergence is reported in a log-log scale.The black triangle is the reference convergence (interpolating polynomial on Chebychev nodes).

Table 1 :

141Computed errors of the interpolation of Runge's function increasing the number of nodes M -in the first column -both for different choices of the activation function and polynomial interpolation.Notation follows what presented at the beginning of Section 3. The table reports the errors computed for equispaced nodes in the square case M = N(L), where N (L) is the number of neurons in the hidden layer.Such results are those depicted in the first panel of Figure3.

Table 2 :

142Computed errors for the Runge's function.For the notation, see Table1.In this case, we use Chebychev nodes, as reported in the second panel of Figure3.

Table 3 :

143Computed errors for the Runge's function.For the notation, see Table

Table 4 :

144Computed errors of the interpolation of Runge's function increasing the number of nodes M -in the first column -both for different choices of the activation function and polynomial interpolation.Notation follows what presented at the beginning of Section 3. The table reports the errors computed for equispaced nodes in the overparametrized case M = N (L) /2, where N (L) is the number of neurons in the hidden layer.Such results are those depicted in the first panel of Figure5.

Table 5 :

145Computed errors for the Runge's function.For the notation, see Table4.In this case, we use Chebychev nodes, as reported in the second panel of Figure5.

Table 6 :

146Computed errors for the Runge's function.For the notation, see Table4.In this case, we use random nodes, as reported in the third panel of Figure5.

참고문헌 34건

  1. Pattern Recognition and Machine Learning Kybernetes · Emerald Publishing Limited · 2007 10.1108/03684920710743466
  2. Extreme learning machine: algorithm, theory and applications Artificial Intelligence Review · Springer Science+Business Media · 2013 10.1007/s10462-013-9405-z
  3. Stable Computations with Gaussian Radial Basis Functions SIAM Journal on Scientific Computing · Society for Industrial and Applied Mathematics · 2011 10.1137/09076756x
  4. Optimization approximation solution for regression problem based on extreme learning machine Neurocomputing · Elsevier BV · 2011 10.1016/j.neucom.2010.12.037
  5. Universal approximation of an unknown mapping and its derivatives using multilayer feedforward networks Neural Networks · Elsevier BV · 1990 10.1016/0893-6080(90)90005-6
  6. A study on effectiveness of extreme learning machine Neurocomputing · Elsevier BV · 2011 10.1016/j.neucom.2010.11.030
  7. Impossibility of Fast Stable Approximation of Analytic Functions from Equispaced Samples SIAM Review · Society for Industrial and Applied Mathematics · 2011 10.1137/090774707
  8. An evaluation of Clenshaw–Curtis quadrature rule for integration w.r.t. singular measures Journal of Computational and Applied Mathematics · Elsevier BV · 2008 10.1016/j.cam.2008.10.022
  9. Is Gauss Quadrature Better than Clenshaw–Curtis? SIAM Review · Society for Industrial and Applied Mathematics · 2008 10.1137/060659831
  10. Extreme learning machine: Theory and applications Neurocomputing · Elsevier BV · 2006 10.1016/j.neucom.2005.12.126
  11. Universal Approximation Using Radial-Basis-Function Networks Neural Computation · The MIT Press · 1991 10.1162/neco.1991.3.2.246
  12. Trends in extreme learning machines: A review Neural Networks · Elsevier BV · 2014 10.1016/j.neunet.2014.10.001
  13. An Extension of MATLAB to Continuous Functions and Operators SIAM Journal on Scientific Computing · Society for Industrial and Applied Mathematics · 2004 10.1137/s1064827503430126
  14. Approximation theory of the MLP model in neural networks Acta Numerica · Cambridge University Press · 1999 10.1017/s0962492900002919
  15. Universal approximation bounds for superpositions of a sigmoidal function IEEE Transactions on Information Theory · Institute of Electrical and Electronics Engineers · 1993 10.1109/18.256500
  16. Two-hidden-layer extreme learning machine for regression and classification Neurocomputing · Elsevier BV · 2015 10.1016/j.neucom.2015.11.009
  17. Deep Convolutional Neural Network for Inverse Problems in Imaging IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2017 10.1109/tip.2017.2713099
  18. Solving high-dimensional partial differential equations using deep learning Proceedings of the National Academy of Sciences · National Academy of Sciences · 2018 10.1073/pnas.1718942115
  19. Deep Learning: An Introduction for Applied Mathematicians SIAM Review · Society for Industrial and Applied Mathematics · 2019 10.1137/18m1165748
  20. Optimal sampling rates for approximating analytic functions from pointwise samples IMA Journal of Numerical Analysis · Oxford University Press · 2018 10.1093/imanum/dry024
  21. 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
  22. The Runge Example for Interpolation and Wilkinson's Examples for Rootfinding SIAM Review · Society for Industrial and Applied Mathematics · 2020 10.1137/18m1181985
  23. Approximation rates for neural networks with general activation functions Neural Networks · Elsevier BV · 2020 10.1016/j.neunet.2020.05.019
  24. Approximation Theory and Approximation Practice, Extended Edition Society for Industrial and Applied Mathematics eBooks · Society for Industrial and Applied Mathematics · 2019 10.1137/1.9781611975949
  25. Multilayer feedforward networks with a nonpolynomial activation function can approximate any function Neural Networks · Elsevier BV · 1993 10.1016/s0893-6080(05)80131-5
  26. Physics-informed machine learning Nature Reviews Physics · Nature Portfolio · 2021 10.1038/s42254-021-00314-5
  27. A review on extreme learning machine Multimedia Tools and Applications · Springer Science+Business Media · 2021 10.1007/s11042-021-11007-7
  28. The Barron Space and the Flow-Induced Function Spaces for Neural Network Models Constructive Approximation · Springer Science+Business Media · 2021 10.1007/s00365-021-09549-y
  29. Estimates on the generalization error of physics-informed neural networks for approximating a class of inverse problems for PDEs IMA Journal of Numerical Analysis · Oxford University Press · 2021 10.1093/imanum/drab032
  30. Extreme learning machine collocation for the numerical solution of elliptic PDEs with sharp gradients arXiv (Cornell University) · Cornell University · 2020 10.1016/j.cma.2021.114188
  31. Deep Kronecker neural networks: A general framework for neural networks with adaptive activation functions Neurocomputing · Elsevier BV · 2021 10.1016/j.neucom.2021.10.036
  32. High-order approximation rates for shallow neural networks with cosine and ReLU activation functions Applied and Computational Harmonic Analysis · Elsevier BV · 2021 10.1016/j.acha.2021.12.005
  33. Ridge Functions 2015 10.1017/cbo9781316408124
  34. On computing the hyperparameter of extreme learning machines: Algorithm and application to computational PDEs, and comparison with classical and high-order finite elements Journal of Computational Physics · Elsevier BV · 2022 10.1016/j.jcp.2022.111290