Sparse polynomial chaos expansion for universal stochastic kriging
Abstract
Ministerio de Ciencia e Innovación (Spain) [PID2020-116809GB-I00]
Full text
Journal of Computational and Applied Mathematics 444 (2024) 115794 Available online 26 January 2024 0377-0427/© 2024 The Author(s). Published by Elsevier B.V. This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/). Contents lists available at ScienceDirect Journal of Computational and Applied Mathematics journal homepage: www.elsevier.com/locate/cam Sparse polynomial chaos expansion for universal stochastic kriging J.C. García-Merino a,∗, C. Calvo-Juradoa, E. García-Macías b aDepartamento de Matemáticas, Escuela Politécnica, Universidad de Extremadura, 10003, Cáceres, España bDepartment of Structural Mechanics and Hydraulic Engineering, University of Granada, Campus de Fuentenueva s/n, 18071 Granada, Spain ARTICLE INFO Keywords: Kriging Least angle regression Polynomial chaos expansion Stochastic simulation Surrogate modelling Uncertainty quantification ABSTRACT Surrogate modelling techniques have opened up new possibilities to overcome the limitations of computationally intensive numerical models in various areas of engineering and science. However, while fundamental in many engineering applications and decision-making, the incorporation of uncertainty quantification into meta-models remains a challenging open area of research. To address this issue, this paper presents a novel stochastic simulation approach combining sparse polynomial chaos expansion (PCE) and Stochastic Kriging (SK). Specifically, the proposed approach adopts adaptive sparse PCE as the trend model in SK, achieving both global and local prediction capabilities and maximizing the role of the stochastic term to conduct uncertainty quantification. To maximize the generalization and computational efficiency of the meta-model, the Least Angle Regression (LAR) algorithm is adopted to automatically select the optimal polynomial basis in the PCE. The computational effectiveness and accuracy of the proposed approach are appraised through a comprehensive set of case studies and different quality metrics. The presented numerical results and discussion demonstrate the superior performance of the proposed approach compared to the classical ordinary SK model, offering high flexibility for the characterization of both extrinsic and intrinsic uncertainty for a wide variety of problems. 1. Introduction Computer models, commonly referred to as simulators, have become ubiquitous assets in most areas of engineering and science. In cases where systems or processes are assumed to be predictable and devoid of inherent randomness, a deterministic simulator can be adopted. Nonetheless, deterministic approaches appear inadequate for facing real-world problems characterized by intrinsic or non-parameterizable randomness, for which the adoption of stochastic simulators becomes necessary for proper modelling. A stochastic simulator incorporates randomness or uncertainty in its predictions. Thus, while a deterministic simulator always produces the same prediction for a fixed input, in stochastic simulators, each simulation run may produce different results as a result of the inherent randomness in the model. Such models have gained significant popularity with manifold applications in diverse fields such as epidemiology [1,2], materials science [3,4], or reliability analysis [5], enabling researchers to make robust predictions to assist decision-making for complex systems. However, for both deterministic and stochastic computationally demanding simulators, formidable challenges arise when implemented in iterative procedures such as optimization [6], sensitivity analysis [7], parameter inference [8], or uncertainty propagation [9]. Despite the introduction of numerous surrogate models or meta-models in the literature over the past few years to replace intensive numerical models and alleviate the computational burden, their success mostly limits to deterministic simulators, while the consideration of stochasticity remains an open research topic. ∗Corresponding author. E-mail address: [email protected] (J.C. García-Merino). https://doi.org/10.1016/j.cam.2024.115794 Received 24 July 2023; Received in revised form 18 December 2023
Journal of Computational and Applied Mathematics 444 (2024) 115794 2 J.C. García-Merino et al. There is a vast literature on the development of surrogate models for deterministic simulators [10,11]. In particular, non-intrusive models such as polynomial chaos expansion (PCE) [12], radial basis functions [13] or Kriging [14] have received significant attention from the scientific community due to their effectiveness in addressing resource-intensive simulations. The construction of these meta-models is usually conducted on the basis of a training dataset, also referred to as the experimental design (ED) [14]. Such a training dataset contains the evaluations of the forward model, representing the quantity of interest (QoI), for a set of combinations of the input parameters covering the parameter space. In the context of stochastic simulators, the QoI usually presents a certain level of uncertainty, stemming from the stochastic nature of the model parameters and/or the presence of epistemic uncertainties in the model predictions [15]. A first approach to meta-model such processes involves estimating the probability density function (PDF) of the simulator’s predictions through functional decomposition [16]. Alternatively, Stochastic Kriging (SK) [17] has gained significant recognition as a general meta-modelling tool for representing stochastic simulation response surfaces. Defined as an extension of Kriging, SK accounts for heteroscedastic noise in the response by estimating the sample variance at each point of the ED using multiple runs of the simulator for each specific input. The effectiveness of SK has been demonstrated on a broad range of applications, including risk and reliability analysis [18,19], industrial welding processes [20], and game theoretic simulations [21], to mention a few. One of the primary challenges encountered in SK is the requirement of a significant number of replications at each ED point to accurately estimate the sample variance [15], which often leads to serious computational demands. One approach to alleviate such a limitation regards the optimal definition of the ED. In the case of stochastic simulators, sampling efforts are divided into two parts: (i) sampling new ED locations, and (ii) acquiring additional replications at existing points. In this light, numerous sequential sampling techniques have been presented (refer to [22,23] for an extensive state-of-the-art review). On the other hand, various extensions of the classical SK have been proposed in the literature. It is worth noting the work by Binois et al. [24], who proposed modelling the input-dependent noise as a separate Gaussian process. Additionally, they employed computationally efficient techniques such as the Woodbury identity to address the challenges encountered in SK for large EDs. In a similar vein, Hao et al. [19] introduced a Nested SK model, which decouples in an iterative way the response noise parameters from the deterministic Kriging parameters used for calibrating the meta-model. In a similar context, Cheng et al. [25] proposed a generalized polynomial chaos-stochastic Kriging (gPCE SK) approach, which combines the benefits of PCE and SK. The gPCE SK method proposed by those authors utilizes a local PCE surrogate model at each design point, which is calibrated using a small number of simulation runs. By relying on these local surrogate models, numerous replications can be performed at each training point, significantly reducing the computational burden involved in the calibration of the SK model. However, it is important to note that this model assumes a distinction between controllable design variables and non-controllable noise variables, the latter causing the variations between replicates at each fixed design point. Furthermore, it relies on knowledge of the PDFs of the uncontrollable variables, which may be a strong assumption in many real-life applications. In light of the discussion above, it is apparent that the development and application of surrogate modelling approaches for stochastic simulators have experienced considerable advances in recent years. Nevertheless, there are some aspects of SK that remain not fully addressed in the literature. Notably, while most applications of SK in the literature are limited to the use of constant trend models (Ordinary Kriging), the use of more advanced models for Universal SK remains largely unexplored in the literature, to the best of the author’s knowledge. To address this gap, this paper presents an extension of the deterministic Polynomial-Chaos Kriging (PCK) method originally presented in [26] for the meta-modelling of stochastic simulators with predictions contaminated by noise. The PCK meta-model is a powerful technique that combines PCE with Kriging to develop highly efficient surrogate models for complex systems. Notably, a prior work by the authors [27] demonstrated the ability of PCK meta-modelling to successfully capture the behaviour of highly non-linear functions. Drawing from this positive outcome, the current study aims to apply the principles of PCK to the realm of stochastic simulators. Specifically, the proposed meta-model involves a Universal SK model with an adaptive sparse PCE model as the trend term. The orthonormal polynomial basis of the PCE is optimally selected by a model selection technique for sparse linear models, the least-angle regression (LAR) algorithm set out by Efron [28]. Afterwards, the adjusted LAR-PC model is inserted as the trend term in a Universal SK model, and the hyper-parameters of the resulting meta-model are calibrated through a genetic algorithm (GA) global optimization approach. The effectiveness of the proposed approach is validated through a set of well-known benchmark case studies in the surrogate modelling literature. The presented results and discussion demonstrate the potential of the proposed approach and the importance of selecting a suitable trend model in the context of SK. The remainder of this paper is organized as follows. Section 2outlines the theoretical formulation of Kriging and SK respectively. Section 3provides a concise review of PCE and LAR and illustrates the proposed LAR-PCE SK approach. Section 4presents the numerical results and discussion and, finally, Section 5closes the paper with concluding remarks and potential future developments. 2. Surrogate modelling: Deterministic and Stochastic Kriging Let (𝛺, , 𝜇)be a probability space, where 𝛺denotes the event space equipped with a 𝜎-algebra of subsets of 𝛺and the probability measure 𝜇. Given 𝛺 ⊂ R𝑀as a connected set, let ∶𝛺 ⊂ R𝑀→Rbe a computational model mapping an 𝑀- dimensional vector of input (design) variables 𝒙=[𝑥1,…, 𝑥𝑀]Tinto the output variable 𝑦∈R(response surface or QoI). The aim of a surrogate model is to replace the original model by an approximated one ∗, whose evaluation needs lower computational cost. When defined in a non-intrusive framework, the hyper-parameters of ∗must be calibrated on a basis of a certain training dataset. Such a training dataset consists in the realization of the forward model over a set ED ={𝒙(1),…,𝒙(𝑘)}of 𝑘samples of the input variable 𝒙covering the design space, often referred to as the experimental design (ED). Note that, when the model is deterministic, the purpose of the surrogate model is simply to approximate the response surface 𝑦=(𝒙) ∀𝒙∈𝛺. Conversely, when
Journal of Computational and Applied Mathematics 444 (2024) 115794 3 J.C. García-Merino et al. the model exhibits a stochastic behaviour and its response is affected by a zero-mean random noise, the goal is to approximate the mean surface E[(𝛺)] and, possibly, provide a certain characterization of the uncertainty [17]. In this context, Kriging or Gaussian process meta-modelling has proved to represent a powerful meta-modelling approach commonly used in engineering or geostatistics. In a deterministic computer experiment, the Kriging model assumes that the model response (𝒙)can be conceived as the sum of a deterministic and a stochastic model as: (𝒙)≈𝐾(𝒙)=(𝒙)+(𝒙),(1) where (𝒙)is a zero-mean stochastic process and the trend (𝒙)=𝒇(𝒙)T𝜷=∑𝑠 𝑟=1 𝛽𝑟𝑓𝑟(𝒙)is a linear regression model with 𝑠 regression coefficients 𝛽𝑟and user-selected regression functions 𝑓𝑟(𝒙)(e.g 𝑓𝑟(𝒙)=𝒙𝑟). The formulation in Eq. (1) corresponds to the most general version of Kriging, often referred to as Universal Kriging (UK). Simpler expressions known as Simple Kriging (SK) and Ordinary Kriging (OK) are deduced when the trend term is assumed to be constant throughout the design space. In SK, it is assumed that the mean of the variable being predicted is known and constant across the entire area of study, whereas (OK) estimates the mean based on the available sample data. An interpretation of Eq. (1) is that deviations from the regression model may resemble a sample path of a properly chosen stochastic process [29]. The stochastic process (𝒙)is determined by the process variance 𝜎and an auto-correlation function R(𝒙,𝒙′)=𝐑(||𝒙−𝒙′||;𝜽), which depends on the spatial distance |||𝒙(𝑖)−𝒙(𝑗)|||and some hyper-parameters 𝜽to be determined. The auto-correlation function 𝐑must satisfy 𝐑(𝟎;𝜽)= 1 and 𝐑(𝒙(𝑖)−𝒙(𝑗);𝜽)→0when |||𝒙(𝑖)−𝒙(𝑗)|||→+∞. Thus, is characterized by the covariance matrix [30,31]: 𝜮∶= {Cov ((𝒙(𝑖)),(𝒙(𝑗)))}𝑖𝑗 =𝜎2𝐑(|||𝒙(𝑖)−𝒙(𝑗)|||;𝜽).(2) Among the possible choices of the function 𝐑, a common alternative and the one used in the present work is the Gaussian correlation function 𝐑(||𝒙−𝒙′||;𝜽)= exp (−𝜽||𝒙−𝒙′||2)[29]. The Kriging model is thus fully determined by the hyper-parameters {𝜷,𝜽, 𝜎}, which are usually estimated by maximizing the likelihood function over the 𝑘samples of the ED [32]: (𝜽, 𝜎, 𝜷;𝐲)=1 √(2𝜋𝜎2)𝑘|𝐑| exp [−1 2𝜎2(𝐲−𝐅𝜷)T𝐑−1 (𝐲−𝐅𝜷)],(3) where y=[𝑦(1) =(𝒙(1)),…, 𝑦(𝑘)=(𝒙(𝑘))]Tand 𝐅𝑖𝑗 =𝑓𝑗(𝒙(𝑖))is referred to as the information matrix. Nevertheless, it is possible to extract estimates in closed form of the hyper-parameters 𝜷and 𝝈as functions of the estimates of 𝜽by the best linear unbiased estimator (BLUE) as: 𝜷( 𝜽) = (𝐅T𝐑−1𝐅)−1 𝐅T𝐑−1𝐲, 𝜎2( 𝜽)=1 𝑘(𝐲−𝐅𝜷)T𝐑−1 (𝐲−𝐅𝜷).(4) Substituting Eq. (4) into (3) and taking logarithm, a simplified optimization problem that depends only on 𝜽is derived as: 𝜽=arg min 𝜽[1 𝑘(𝐲−𝐅𝜷)T𝐑−1 (𝐲−𝐅𝜷)|𝐑|1∕𝑘].(5) Therefore, the Kriging mean and mean-squared error (MSE) at any point 𝒙in the parameter space can be computed as [31]: 𝐾(𝒙) = 𝒇(𝒙)T 𝜷+𝒓(𝒙)T𝐑−1 (𝒚−𝐅 𝜷), MSE(𝒙) = 𝜎2[1 − 𝒓(𝒙)T𝐑−1𝒓(𝒙) + 𝒖(𝒙)T(𝐅T𝐑−1𝐅)−1 𝒖(𝒙)],(6) where 𝒖(𝒙)=𝐅T𝐑−1𝒓(𝒙) − 𝒇(𝒙)and 𝑟𝑖(𝒙) = 𝐑(|||𝒙−𝒙(𝑖)|||; 𝜽),𝑖= 1,…, 𝑘. To accommodate the existence of stochasticity in the response surface model (𝑥), Ankenman et al. [17] proposed Stochastic Kriging as an extension of the classical Kriging scheme specified in Eq. (1) to define the response surface (𝒙)in stochastic terms. In this context, several simulation runs in the same design point are performed, so the experimental design must be redefined as ED ={(𝒙(𝑖), 𝑛𝑖)}𝑘 𝑖=1, where 𝑛𝑖∈Nis the number of replications at the design point 𝒙(𝑖). In particular, the output of the 𝑙th simulation replication at 𝒙(𝑖),𝑖= 1,…, 𝑘 is given by: 𝑖(𝒙(𝑖))=𝒇(𝒙)T𝜷+(𝒙(𝑖))+𝜀𝑙(𝒙(𝑖)), 𝑙 = 1,…, 𝑛𝑖,(7) where the terms (𝒙(𝑖))and 𝜀𝑙(𝒙(𝑖))represent the model extrinsic uncertainty and the intrinsic uncertainty for the 𝑙th replication, respectively. In other words, the changes in the model response are due to the simulator evaluation at different points in the parameter space, or due to the stochastic nature of the model itself, respectively. Analogously to Eq. (2), the intrinsic uncertainty can be characterized by the 𝑘×𝑘covariance matrix: 𝜮𝜀={Cov (𝜀 (𝒙(𝑖)), 𝜀 (𝒙(𝑗)))}𝑖𝑗 , 𝜀 (𝒙(𝑖))=1 𝑛𝑖 𝑛𝑖 ∑ 𝑙=1 𝜀𝑙(𝒙(𝑖)), 𝑖 = 1,…, 𝑘. (8) In this light, similarly to Kriging, the calibration of the surrogate model involves maximizing a likelihood function, whose expression is the natural consequence of incorporating the intrinsic uncertainty in the Kriging methodology: (𝜷, 𝜎2,𝜽;)=1 √||𝜮+𝜮𝜀||(2𝜋)𝑘 exp (−1 2(−𝐅𝜷)T(𝜮+𝜮𝜀)−1 (−𝐅𝜷)),(9)
Journal of Computational and Applied Mathematics 444 (2024) 115794 4 J.C. García-Merino et al. where =[(𝒙(1)),…,(𝒙(𝑘))]T,(𝒙(𝑖))=1 𝑛𝑖 𝑛𝑖 ∑ 𝑙=1 𝑙(𝒙(𝑖)),(10) and 𝜮(𝒙,⋅)represents the 𝑘× 1 cross-correlation vector {Cov ((𝒙),(𝒙(𝑗)))}𝑘 𝑗=1 between the prediction point 𝒙and each one of the ED points. Upon the computation of the SK parameters, the SK predictor along with its associated mean squared error (MSE) can be derived as follows [33]: 𝑆𝐾 (𝒙)=𝒇(𝒙)T 𝜷+𝜮(𝒙,⋅)[𝜮+𝜮𝜀]−1 (−𝐅 𝜷), MSE (𝒙)=𝜮(𝒙,𝒙)−𝜮(𝒙,⋅)T[𝜮+𝜮𝜀]−1 𝜮(𝒙,⋅)+𝜻T(𝐅T[𝜮+𝜮𝜀]−1 𝐅)−1 𝜻,(11) with 𝜻=𝒇(𝒙)−𝐅T[𝜮+𝜮𝜀]−1 𝜮(𝒙,⋅). It is worth mentioning that the last term in Eq. (11) represents the variability inflation of the SK predictor resulting from the estimation of 𝜷. Additionally, it is important to highlight that, in deterministic scenarios where the intrinsic uncertainty is negligible, 𝜮𝜀vanishes and Eq. (11) naturally converges to Eq. (6). In other words, SK reduces to the standard Kriging metamodel when 𝜮𝜀tends to zero. 3. LAR-PCE based Stochastic Kriging The higher complexity of UK compared to OK might suggest that it leads to improved estimates. However, as reported in the literature, a trend misspecification can lead UK not to improve the accuracy in its estimates [34] or even worsen its performance [35]. This limitation can be attributed to the fact that UK involves the estimation of additional parameters (𝜷), which can potentially induce over-fitting [36]. Therefore, to harness the advantages of UK while mitigating its potential drawbacks, it is crucial to choose a minimal trend basis that effectively captures the complexity of the response surface. Motivated by these considerations, the objective of this section is to identify an optimal choice of the trend model 𝒇in Eq. (7) by combining PCE and LAR. Hereafter, the fundamentals of PCE and the LAR algorithm are briefly presented, followed by their combination into Universal SK. 3.1. Polynomial-chaos expansion The PCE model represents the model output response 𝑦∈Ras its expansion through a basis of orthonormal multivariate polynomials 𝛹𝜶as: 𝑦=(𝒙)=∑ 𝜶∈N𝑀 𝑎𝜶𝛹𝜶(𝒙),(12) where 𝑎𝜶are the coefficients of the expansion, and the multi-dimensional index notation 𝜶=[𝛼1,…, 𝛼𝑀]T,𝛼𝑖∈N, has been adopted. Depending on the nature of the input variables, classical families of orthonormal polynomials 𝛹𝜶include the Hermite or Legendre polynomials [37]. Although the expression (12) is exact on deterministic simulators for an infinite number of terms, only a finite number of terms can be computed in practice. Consequently, different truncation schemes have been proposed in the literature. One of the simplest approaches consists in selecting the set of all polynomials whose total degree |𝜶|=∑𝑀 𝑖=1 𝛼𝑖is up to 𝑝, that is 𝑀,𝑝 = {𝜶∈N𝑀∶ 0 ≤|𝜶|≤𝑝}[38]. This leads to a total number of terms in the expansion: ∶= card (𝑀,𝑝)=(𝑀+𝑝 𝑝).(13) Note however that, for high-dimensional or non-linear problems, this truncation scheme leads to computing a large number of coefficients. As a solution, a more restrictive hyperbolic truncation scheme was proposed by Blatman and Sudret [12]. Based on the common observation in practice that coefficients associated with high-order interaction terms are usually close to zero (often referred to as the sparsity-of-effect principle), this truncation scheme selects all the multi-indices belonging to the set 𝑀,𝑝,𝑞 = {𝜶∈N∶ 0 ≤ ‖𝜶‖𝑞≤𝑝}with 𝑞-norm ‖𝜶‖𝑞=(∑𝑀 𝑖=1 ||𝛼𝑖||𝑞)1 𝑞. Note that, as the 𝑞-norm decreases, the number of mixed-order terms in the expansion also decreases until, ultimately leaving only the univariate polynomials remain. Once the set of candidate polynomials and an ED of 𝑘samples are defined, the expansion coefficients 𝒂={𝒂𝛼,𝜶∈𝑀,𝑝 ⊂N𝑀} are obtained by minimizing the expectation of the least squares residuals: 𝒂=arg min 𝒂∈R 1 𝑘 𝑘 ∑ 𝑖=1 [(𝒙(𝑖))−∑ 𝜶∈𝑀,𝑝 𝒂𝜶𝜳𝜶(𝒙(𝑖))]2 .(14) Collecting the realizations of the QoI in the ED in vector form as y=[𝑦(1) =(𝒙(1)),…, 𝑦(𝑘)=(𝒙(𝑘))]T, the solution of the optimization problem (14) is given by: 𝒂=(𝜳T𝜳)−1 𝜳T𝒚,𝜳=(𝛹𝑖𝑗)=[𝛹𝜶𝑗(𝒙(𝑖))]𝑗=1,…, 𝑖=1,…, 𝑘 ,(15)
Journal of Computational and Applied Mathematics 444 (2024) 115794 5 J.C. García-Merino et al. where the information matrix 𝜳contains the evaluation of the basis polynomials on the ED. Once Eq. (14) has been solved, the estimates by the resulting PCE surrogate model read: 𝑃 𝐶 (𝒙) = ∑ 𝜶∈𝑀,𝑝 𝒂𝜶𝜳𝜶(𝒙).(16) The quality of the resulting expansion is typically assessed through cross-validation. Among the different metrics available in the literature, the leave-one-out (LOO) error 𝜖𝐿𝑂𝑂 is particularly interesting since it can be estimated in closed form for linear models. In the case of the PCE model as given in Eq. (16),𝜖𝐿𝑂𝑂 can be expressed as follows: 𝜖𝐿𝑂𝑂 = 𝑘 ∑ 𝑖=1 ((𝒙(𝑖))−𝑃 𝐶 (𝒙(𝑖)) 1 − ℎ𝑖)2 𝑘 ∑ 𝑖=1 ((𝒙(𝑖))−𝜇𝒚)2 ,(17) where ℎ𝑖is the 𝑖th component of the vector 𝐡= diag {𝜳(𝜳T𝜳)−1 𝜳T}and 𝜇𝒚=1 𝑘∑𝑘 𝑖=1 (𝒙(𝑖)). 3.2. Least angle regression (LAR) The LAR algorithm is a model selection approach [28] that provides a very efficient procedure to implement the Least Absolute Shrinkage and Selection Operator (LASSO) method introduced by Tibshirani [39]. LASSO is a procedure for shrinking some regression coefficients to zero in a regression model by adding a restriction or penalty term to the least squares problem as: min 𝜷∈ IR(‖𝜳(𝒙)𝜷−(𝒙)‖2+𝜂‖𝜷‖1), 𝜂 ∈ IR, 𝜂 ≥0.(18) The norm ‖⋅‖1adds a penalty equal to the absolute value of the magnitude of the coefficients. In other words, it limits the size of the coefficients leading to sparse models, i.e. models with few coefficients. The computation of the solution of the optimization problem in Eq. (18) is a convex quadratic programming problem with linear inequality constraints, which can be solved very efficiently by means of the LAR algorithm [28]. It is based on a variable selection procedure called Incremental Forward Stepwise Regression [40] that builds the model sequentially, adding one basis polynomial function 𝛹𝜶𝑖at a time to the set 𝑖of active basis functions, i.e. the set of predictors most correlated with the current residual 𝑟𝑖=𝑦−𝜳𝑖𝜷𝑖at the 𝑖th iteration. The LAR algorithm can be summarily described by the following steps: 1. Set the vector residuals 𝑟0=𝑦and initialize the coefficients vector 𝜷𝜶𝑖= 0,𝑖= 1,…,− 1. Set all the predictors 𝛹𝜶𝑖 standardized to have mean zero and unit norm. 2. Find the predictor 𝛹𝜶𝑖most correlated with the current residual 𝑟𝑖=𝑦−𝜳𝑖𝜷𝑖(with 𝜷𝑖the vector of coefficients for the set of the active basis functions 𝑖at the 𝑖th iteration). 3. Move 𝜷𝜶𝑖from 𝟎towards its least-squares coefficient on 𝛹𝜶𝑖, until another predictor 𝛹𝜶𝑗has as much correlation with the current residual 𝑟𝑖as 𝛹𝜶𝑖. 4. Move {𝜷𝜶𝑖,𝜷𝜶𝑗}in the direction defined by their joint least squares coefficient of the current residual on {𝛹𝜶𝑖, 𝛹𝜶𝑗}, until another predictor 𝛹𝜶𝑙has the same correlation with the current residual. 5. Continue the process until 𝑚=min (, 𝑘 − 1) predictors have been added. Steps 3 and 4 update the set of active coefficients towards their least-square value in the form 𝜷𝑖+1 =𝜷𝑖+𝜁𝑖𝒖𝑖. The factor 𝜁𝑖is the smallest positive scalar such that some new index 𝑗joins the active set 𝑖+1 =𝑖∪ {𝑗}, and the vector 𝒖𝑖is known as the descent direction (refer to [28] for further details). The name least angle arises from a geometric interpretation of this process, whereby 𝒖𝑖provides the smallest (and equal) angle with each of the predictors in 𝑖. Using the LAR scheme, a collection of 𝑚 PCE meta-models of decreasing sparsity is extracted. Then, the optimal meta-model can be selected by a cross-validation scheme, to which the LOO error from Eq. (17) has been adopted in this work. Typically, the optimal model maximizing prediction accuracy and minimizing overfitting presents a cardinality, i.e. the number of active basis functions, lower that the cardinality of the whole candidate basis. It is known that LAR only requires (3+𝑘2)computations [28]. Therefore, when ≪ 𝑘, it follows that 3< 𝑘2 and (𝑘2) ∼ (𝑘). Thus, the computational complexity added by the PCE model when inserted as the trend term in the SK model is marginal with respect to the optimization problem related to the determination of the hyper-parameters in Eq. (5), which is (𝑘3). 3.3. LAR-PCE Stochastic Kriging This section presents the proposed PCE SK surrogate modelling approach, synthetically described in Fig. 1. One of the most remarkable features of the proposed model regards the automatic optimal definition of the trend model 𝒇for Universal SK. This is achieved by the PCE meta-model introduced in Eq. (16) using the hyperbolic truncation and the LAR algorithm overviewed in Sections 3.1 and 3.2, respectively. Note that the resulting approach provides a trend model with high flexibility in virtue of the
Journal of Computational and Applied Mathematics 444 (2024) 115794 6 J.C. García-Merino et al. Fig. 1. Flowchart of the proposed PCE SK surrogate modelling approach for stochastic simulators. LAR algorithm, in such a way that the terms in the PCE expansion are automatically tuned depending on the specific problem at hand. For the development of the proposed meta-model, once the optimal set 𝜳is identified, a universal SK surrogate model is fitted (see Eq. (9)) through a GA global optimization approach to avoid stagnation in local extrema. Then, the prediction of the response surface and the associated MSE are extracted from Eqs. (25) and (26) respectively. Under the common assumption in the literature that {𝜀𝑙(𝒙(𝑖))}𝑛𝑖 𝑙=1 are i.i.d. and independent of the random field [17,25,41], the proposed optimal LAR-PCE based SK predictor reads: 𝑃𝐶𝐸𝑆𝐾 (𝒙)=𝜳(𝒙)𝜷+𝜮(𝒙,⋅)T[𝜮+𝜮𝜀]−1 (−𝜳 𝜷),(19) and the corresponding optimal MSE reads MSE ( 𝑃 𝐶𝐸𝑆𝐾 )=𝜮(𝒙,𝒙)−𝜮(𝒙,⋅)T[𝜮+𝜮𝜀]−1 𝜮(𝒙,⋅).(20) It is straightforward to check that the estimator proposed above is the best linear estimator of the form 𝑃𝐶𝐸𝑆𝐾 (𝒙)= 𝜆0(𝒙)+𝝀T(𝒙), where 𝜆0and 𝝀are weights depending on 𝒙and chosen in the sense of minimizing the MSE. Moreover, the
Journal of Computational and Applied Mathematics 444 (2024) 115794 7 J.C. García-Merino et al. estimator is unbiased. This can be deduced by following the general reasoning given in [42] as follows: MSE = E[(𝐾(𝒙)− 𝑃𝐶𝐸𝑆𝐾 (𝒙))2]=E[(𝜳(𝒙)𝜷+(𝒙)−𝜆0(𝒙)−𝝀T(𝒙)±𝝀T(𝒙)𝜳 𝜷)2] =(𝜳(𝒙)𝜷−𝜆0(𝒙)−𝝀T(𝒙)𝜳𝜷)2+ Var ((𝒙)−𝝀T(𝒙)+𝝀T(𝒙)𝜳𝜷)+E[((𝒙)−𝝀T(𝒙)+𝝀T(𝒙)𝜳 𝜷)]2 =(𝜳(𝒙)𝜷−𝜆0(𝒙)−𝝀T(𝒙)𝜳𝜷)2+𝛴(𝒙,𝒙)+ 𝑘 ∑ 𝑖,𝑗=1 𝜆𝑖(𝒙)𝜆𝑗(𝒙)Cov ((𝒙(𝑖)),(𝒙(𝑗)))+ 𝑘 ∑ 𝑖,𝑗=1 𝜆𝑖(𝒙)𝜆𝑗(𝒙)Cov (𝜀(𝒙(𝑖)), 𝜀 (𝒙(𝑗))) −2 𝑘 ∑ 𝑖=1 𝜆𝑖(𝒙)𝜆𝑗(𝒙)Cov ((𝒙(𝑖)),(𝒙))− 2 𝑘 ∑ 𝑖=1 𝜆𝑖(𝒙)𝜆𝑗(𝒙)Cov ((𝒙(𝑖)), 𝜀 (𝒙(𝑖)))= =(𝜳(𝒙)𝜷−𝜆0(𝒙)−𝝀T(𝒙)𝜳𝜷)2+𝛴(𝒙,𝒙)+𝝀T(𝒙)[𝛴+𝛴𝜀]𝝀(𝒙)− 2𝝀T(𝒙)𝛴(𝒙,⋅), where 𝜆𝑖(𝒙)denotes the 𝑖th component of 𝝀(𝒙). Minimizing the MSE with respect to 𝜆0and 𝝀, i.e. taking 𝜕MSE∕𝜕𝜆0=𝜕MSE∕𝜕𝝀= 0, extract the solutions 𝜆0(𝒙)=𝛹(𝒙)𝜷−𝝀T(𝒙)𝜳𝜷 and 𝝀(𝒙)=[𝛴+𝛴𝜀]−1 𝛴(𝒙,⋅)can be readily extracted. With these weights, the optimal linear estimator and MSE are directly given by Eqs. (19) and (20), respectively. Furthermore, following that is a zero-mean stochastic process, i.e. E[(𝒙)]= 0, and E[−𝜳𝜷]= 0, it follows that: E[ 𝑃𝐶𝐸𝑆𝐾 (𝒙)−𝐾(𝒙)]=𝜳(𝒙)𝜷+𝛴(𝒙,⋅)T[𝛴+𝛴𝜀]−1 E[−𝜳 𝜷]−𝜳(𝒙)𝜷−E[(𝒙)]= 0,(21) and, therefore, it is extracted that 𝑃𝐶𝐸𝑆𝐾 (𝒙)is an unbiased estimation for 𝐾(𝒙). The estimation of the hyper-parameters of the proposed LAR-PCE SK surrogate model requires maximizing the likelihood function described in Eq. (9), where the information matrix 𝐅is simply replaced by the optimal trend matrix 𝜳. However, some considerations must be made. Firstly, note that the covariance matrix of the noise in the response surface (intrinsic bias between the surrogate model and the true simulator’s response), 𝛴𝜀, in Eq. (9) is unknown in general. Nonetheless, 𝜀is commonly assumed in practice to be normally distributed, so one can write: {𝜀𝑙(𝒙(𝑖))}𝑛𝑖 𝑙=1 ∼(0, 𝑉𝑖),with 𝑉𝑖estimated as 𝑉𝑖=1 𝑛𝑖− 1 𝑛𝑖 ∑ 𝑙=1 (𝑙(𝒙(𝑖))−𝑙(𝒙(𝑖)))2,(22) leading to a positive definite diagonal covariance matrix 𝛴𝜀(see Theorem 1 in [17]). Secondly, it should be noted that, when calibrating a Kriging meta-model for deterministic simulators, Eq. (3) can be simplified as a function of 𝜽by leveraging on the BLUE, while in SK this fact is no longer valid. Instead, 𝜷must be first approximated as 𝒂in Eq. (15). This entails limited computational overhead because the trend term has been optimally adjusted beforehand by LAR-PCE. Then, the extrinsic variance 𝜎2needs to be simultaneously optimized with the hyper-parameters 𝜽as: 𝜽, 𝜎2=arg max 𝜽, 𝜎2 log ((𝜷, 𝜎2,𝜽)).(23) Finally, and based on Eq. (23), the optimal estimate for 𝜷as a function of 𝜽and 𝜎2can be written similarly to Eq. (4) as: 𝜷( 𝜽, 𝜎2, 𝜀)=[𝜳T( 𝜮+ 𝜮𝜀)−1 𝜳]−1 𝜳T( 𝜮+ 𝜮𝜀)−1 .(24) Once the optimal parameters have been derived, the optimal predictor can be re-written as: 𝑃𝐶𝐸𝑆𝐾 (𝒙)=𝜳(𝒙) 𝜷+ 𝜮(𝒙,⋅)T[ 𝜮+ 𝜮𝜀]−1 (−𝜳 𝜷).(25) with the MSE estimator MSE (𝒙)= 𝜮(𝒙,𝒙)− 𝜮(𝒙,⋅)T[ 𝜮+ 𝜮𝜀]−1 𝜮(𝒙,⋅)+𝜸T(𝜳T[ 𝜮+ 𝜮𝜀]−1 𝜳)−1 𝜸,(26) and 𝜸=𝒇(𝒙)−𝜳T[ 𝜮+ 𝜮𝜀]−1 𝜮(𝒙,⋅). The expression (26) follows from the development in [42] for standard Kriging by replacing the covariance matrix of the random field by 𝜮+ 𝜮𝜀. Let us lastly focus on the common assumption of the stochastic process following a Gaussian distribution. In this case, when considering an ED of 𝑘samples, the hypotheses in Eq. (2) imply that ((𝒙),(𝒙(1)),…,(𝒙(𝑘)))∼𝑘+1 (𝝁,𝜮)follow a multivariate Gaussian distribution with mean vector and covariance matrix given by: 𝝁=((𝒙),𝜳(𝒙)𝜷)∈ IR𝑘+1 and 𝜮=(𝜎2𝜮(𝒙,⋅)T 𝜮(𝒙,⋅)𝜮+𝜮𝜀)∈ IR(𝑘+1) × (𝑘+1),(27) and Eq. (19) coincides with the conditional mean of (𝒙)given , i.e. E[(𝒙)|](see [30]). To conclude, the quality of the proposed metamodel must be assessed. In practical contexts where the computational burden is high, cross-validation techniques are popular approaches for evaluation the accuracy of stochastic simulators (refer to reference [43] for an extensive discussion). Nevertheless, in this work, to conduct a robust assessment of the proposed PCE SK metamodel, its accuracy has been evaluated on the basis of a dense validation set VS ∶= {𝒙(1),…,𝒙(𝐾)}, with 𝐾 ≫ 𝑘, covering the parameter space, and using diverse quality metrics reported hereafter.
Journal of Computational and Applied Mathematics 444 (2024) 115794 8 J.C. García-Merino et al. 4. Numerical results and discussion This section presents an extensive numerical assessment of the proposed LAR-PCE SK meta-model. The evaluation includes a detailed comparison against ordinary SK through various well-known benchmark examples from the literature. These presented numerical studies cover both single (Section 4.1) and multi-dimensional functions (Sections 4.2 and 4.3) contaminated by noise. For each case study, given a fixed computational budget, several sampling strategies to obtain the ED are discussed. These approaches range from (i) using a low number of sampling points with many replications to represent the uncertainty to (ii) strategies with numerous sampling points with less budget devoted to the characterization of the uncertainty. Additionally, intermediate strategies that fall between these two extremes are also explored. The purpose of defining different sampling scenarios is to demonstrate that the proposed LAR-PCE SK method consistently outperforms ordinary SK, regardless of whether a sparse and deep ED (with few points but high accuracy) or a denser but shallower ED is chosen. The computational effort allocated at each point is proportional to its corresponding noise variance in every instance. In all the analyses, the model performance is assessed by means of two error metrics, namely the Empirical Root Mean Squared Error (ERMSE) and the Normalized Maximum Absolute Error (NMAE) over a large VS given by: ERMSE = √ √ √ √1 𝐾 𝐾 ∑ 𝑖=1 ( (𝒙(𝑖))−(𝒙(𝑖)))2,NMAE = max 1≤𝑖≤𝐾||| (𝒙(𝑖))−(𝒙(𝑖))||| 𝐾𝜎𝑉 𝑆 , 𝑥(𝑖)∈𝑉 𝑆, (28) where: 𝜎𝑉 𝑆 =√ √ √ √1 𝐾 𝐾 ∑ 𝑖=1 ((𝒙(𝑖))−(𝒙(𝑖)))2.(29) Note that the ERMSE metric evaluates the global quality of the meta-model, while the NMAE metric is an indicator of the local error. 4.1. Case study I: M/M/1 queue The M/M/1 queue model is a simple yet powerful model used to analyse the behaviour of a wide range of real-world queuing systems [44], from call centres to manufacturing lines. The model represents a system where there is a single server and a line of entities to be served (e.g., packets, customers, etc.). In this system, entities arrive randomly at a certain rate, called arrival rate, and wait in a queue until the server becomes available. The waiting time is determined by the arrival rate and by the service rate, which refer to the time it takes for the server to process an entity and complete its service, respectively. The present case study consists of the simulation of an M/M/1 queue where the service rate is fixed at one and the arrival rate ranges from 0.3 to 0.9. The response surface 𝑦represents the expected waiting time as a function of the arrival rate 𝑥. The accuracy of the simulation at each design point is determined by its time run-length 𝑇, that is, the period of time over which the system’s behaviour is observed and analysed. This system is one of the most studied examples in the SK literature [17,33,45]. It is particularly notable for its distinct and progressively increasing intrinsic variance across the parameter space. This characteristic naturally provides a formidable yet simple example to understand the potential benefits of the proposed approach. Despite the stochastic nature of the model, analytical expressions for the response surface and its intrinsic variance are known [17,33]: 𝑦(𝑥) = 1 1 − 𝑥, 𝑉 (𝑥) = 2𝑥(1 + 𝑥) 𝑇(1 − 𝑥)4.(30) In the following, we introduce two variations of the experiment. In the first one in Section 4.1.1, the intrinsic variance is assumed as known following Eq. (30), and one single simulation is run for each design point. In the second variation in Section 4.1.2, the intrinsic variance of the simulator is estimated by performing multiple replications at each of the ED points. For both cases, the results obtained by the classical Ordinary SK are compared with those obtained by the proposed LAR-PCE SK approach. 4.1.1. Known intrinsic noise For this first numerical investigation, we will consider the intrinsic variance as 𝛴𝜀= diag (𝑉(𝒙(𝑖)))𝑘 𝑖=1. Additionally, is directly taken as ((𝑥(𝑖)))𝑘 𝑖=1 since one single replication at each design point is considered in this first numerical study. It is important to note that, although this situation may not reflect the complexity of most real-world applications, it serves as a useful analysis to shed light on the characteristics of the proposed LAR-PCE SK approach. Three different scenarios with varying number of design points and run-lengths but with constant computational resources have been considered. The first one involves 10 equispaced design points with a run-length of 6000; the second one consists of 30 design points with a run-length of 2000; and the third scenario encompasses 50 design points with a run-length of 1200. In the case of LAR-PCE SK, following the recommendations provided in Ref. [46], the maximum degree of the polynomials is considered as 5,10 and 16 for the scenarios one to three, respectively. It is worth noting that, given the one-dimensional nature of the problem, the LAR algorithm simply selects the optimal degree for the uni-variate regression model. Fig. 2 (a,d) depict the true response surface along with the analytically computed 95% confidence intervals represented as (𝑦(𝑥) ± 𝑧𝛼√𝑉(𝑥))for Scenarios 1 and 2, respectively. Similarly, Fig. 2 (b,e) and (c,f) illustrate the estimates produced by Ordinary SK and LAR-PCE SK, respectively. Estimated 95% confidence intervals in Fig. 2 (b,e) and (c,f) have been computed as
Journal of Computational and Applied Mathematics 444 (2024) 115794 9 J.C. García-Merino et al. Fig. 2. Case Study I: M/M/1 example. Comparison between the true simulator (a,d) against the predictions by the proposed LAR-PCE SK (c,f) and Ordinary SK (b,e) under the assumption of known variance (one replication per ED sample) in Scenarios 1 (a,b,c) (10 ED samples and run-length =6000) and 2 (d,e,f) (30 ED samples and run-length =2000). Scatter points denote the ED samples, and light blue shaded areas represent the 95% confidence interval. Table 1 Summary of the accuracy in the estimates of the M/M/1 model with known intrinsic noise variance by ordinary SK and LAR-PCE SK adopting sampling scenarios 1 to 3. SK LAR-PCE SK Mean ERMSE Mean NMAE Mean ERMSE Mean NMAE Scenario 1 0.787 0.0076 0.516 0.0049 Scenario 2 0.810 0.0079 0.519 0.0052 Scenario 3 0.832 0.0080 0.650 0.0074 ( 𝑆𝐾 ±𝑧𝛼√ 𝑀𝑆𝐸(𝑥))and ( 𝑃𝐶𝐸𝑆𝐾 ±𝑧𝛼√ 𝑀𝑆𝐸(𝑥)), respectively. It can be seen that for low values of 𝑥, where the intrinsic uncertainty is small, both meta-models exhibit a similar behaviour. In contrast, for high values of 𝑥where both the QoI and the intrinsic variance experience a rapid growth, Ordinary SK fails to capture the variation in the response, whereas LAR-PCE SK exhibits a significantly better performance. This is to be expected since, as reported in [35], Ordinary SK virtually ignores those simulation outputs whose estimated intrinsic variance are large compared to the estimated extrinsic variance. Thus, these results demonstrate that introducing a proper trend model effectively mitigates this issue. To provide a further comparison in performance of LAR-PCE SK with respect to Ordinary SK, the results of the fitting of one hundred independent experiments are reported in Fig. 3 and Table 1. Significant enhancements have been achieved in terms of ERMSE, with improvements ranging from 20% to 35% on average. Similarly, the NMAE showed average improvements ranging from 8% to 35%. It is noteworthy that, when considering the median values, the improvements are even more significant, ranging from 28% to 42% for ERMSE and from 28% to 38% for NMAE. Finally, it can be noted in Fig. 2 that, in terms of variance estimation, both approaches similarly fail to capture the true variability. This issue has been recognized and documented in the SK literature [19,36]. Although there are methods available to address this problem (refer e.g. to [36]), they are beyond the scope of our study, in which the primary focus is on the evaluation of the importance of properly selecting the trend model in SK. 4.1.2. Unknown intrinsic noise This section introduces a modified version of the previous investigation, where the intrinsic variance is assumed to be unknown. Consequently, following Eq. (22), the estimation of the 𝛴𝜀matrix is carried out through a series of replications at each ED point.
Journal of Computational and Applied Mathematics 444 (2024) 115794 16 J.C. García-Merino et al. [32] A. Marrel, B. Iooss, F. Van Dorpe, E. Volkova, An efficient methodology for modeling complex computer codes with Gaussian processes, Comput. Stat. Data Anal. 52 (10) (2008) 4731–4744. [33] X. Chen, Q. Zhou, Sequential experimental designs for stochastic Kriging, in: Proceedings of the Winter Simulation Conference 2014, IEEE, 2014, pp. 3821–3832. [34] S.D. Tajbakhsh, E. Del Castillo, J.L. Rosenberger, A Bayesian approach to sequential optimization based on computer experiments, Qual. Reliab. Eng. Int. 31 (6) (2015) 1001–1012. [35] J. Staum, Better simulation metamodeling: The why, what, and how of stochastic Kriging, in: Proceedings of the 2009 Winter Simulation Conference, WSC, IEEE, 2009, pp. 119–133. [36] J.P. Kleijnen, E. Mehdad, Estimating the variance of the predictor in stochastic Kriging, Simul. Model. Pract. Theory 66 (2016) 166–173. [37] D. Xiu, G.E. Karniadakis, The Wiener–Askey polynomial chaos for stochastic differential equations, SIAM J. Sci. Comput. 24 (2) (2002) 619–644. [38] N. Fajraoui, S. Marelli, B. Sudret, Sequential design of experiment for sparse polynomial chaos expansions, ASA J. Uncertain. Quant. 5 (1) (2017) 1061–1085. [39] R. Tibshirani, Regression shrinkage and selection via the lasso, J. R. Stat. Soc. Ser. B 58 (1) (1996) 267–288. [40] T. Hastie, R. Tibshirani, J.H. Friedman, J.H. Friedman, The Elements of Statistical Learning: Data Mining, Inference, and Prediction, Vol. 2, Springer, 2009. [41] X. Chen, B.E. Ankenman, B.L. Nelson, The effects of common random numbers on stochastic Kriging metamodels, ACM Trans. Model. Comput. Simul. 22 (2) (2012) 1–20. [42] M.L. Stein, Interpolation of Spatial Data: Some Theory for Kriging, Springer Science and Business Media, 1999. [43] J.P.C. Kleijnen, Design and Analysis of Simulation Experiments, Springer, 2018. [44] S. Zheng, A.F. Seila, Some well–behaved estimators for the m/m/1 queue, Oper. Res. Lett. 26 (5) (2000) 231–235. [45] G. Xie, X. Chen, Uniform error bounds for stochastic Kriging, in: 2020 Winter Simulation Conference, WSC, IEEE, 2020, pp. 361–372. [46] [46], B. Sudret, Polynomial chaos expansions and stochastic finite–element methods, in: Risk and Rel. Geoth. Eng., CRC Press, 2018, pp. 295–330.