Emulating Computationally Expensive Dynamical Simulators Using Gaussian Processes

Emulating Computationally Expensive Dynamical Simulators Using Gaussian Processes

Emulating computationally expensive dynamical simulators using Gaussian processes Hossein Mohammadi,∗ Peter Challenor, and Marc Goodfellow College of Engineering, Mathematics and Physical Sciences, University of Exeter, UK Abstract A Gaussian process (GP)-based methodology is proposed to emu- late computationally expensive dynamical computer models or simu- lators. The method relies on emulating the short-time numerical flow map of the model. The flow map returns the solution of a dynamic sys- tem at an arbitrary time for a given initial condition. The prediction of the flow map is performed via a GP whose kernel is estimated using ran- dom Fourier features. This gives a distribution over the flow map such that each realisation serves as an approximation to the flow map. A realisation is then employed in an iterative manner to perform one-step ahead predictions and forecast the whole time series. Repeating this procedure with multiple draws from the emulated flow map provides a probability distribution over the time series. The mean and variance of that distribution are used as the model output prediction and a mea- sure of the associated uncertainty, respectively. The proposed method is used to emulate several dynamic non-linear simulators including the well-known Lorenz attractor and van der Pol oscillator. The results show that our approach has a high prediction performance in emu- lating such systems with an accurate representation of the prediction uncertainty. Keywords: Dynamic system; Emulation; Gaussian process; Random Fourier features arXiv:2104.14987v3 [stat.ME] 19 Sep 2021 1 Introduction The problem of predicting the output of complex computer codes occurs frequently in many applications. Such simulators are computationally in- tensive, and hence the number of simulation runs is limited by our budget for computation. One way to overcome this problem is to create a surrogate of ∗Corresponding author: [email protected] 1 the complex computer code. Surrogate models are statistical representation of the true model relying on a limited number of simulation runs and are cheap-to-evaluate. Among broad types of surrogate models, Gaussian pro- cess (GP) emulators [38] have become the gold standard for the design and analysis of computer experiments [11, 39, 40]. This is due to their statistical properties such as the flexibility and computational tractability. GPs offer a probabilistic paradigm for modelling unknown functions such that their prediction is equipped with an estimation of the associated uncertainty, see Section2 for further detail. An important class of computer codes are those with a time series output known as dynamical simulators. They simulate the evolution of a physical process over time and are commonly used in many applications e.g. in car- diology to study the dynamics of electrical activity of the cardiac membrane [32], and in climate science to model the Atlantic thermohaline circulation [48]. Another example is the Hindmarsh-Rose (HR) model [23] which simu- lates the dynamics of a single neuron. More details about the HR model and its emulation are given in Section 5.3. Emulating dynamic computer codes is an active field of research and has been tackled via different statistical and machine learning approaches, see e.g. [6,9, 10, 33, 37]. The focus of this paper is on emulating deterministic dynamical simulators relying on a set of ordinary differential equations (ODE) using GPs. One may consider the problem of emulating dynamical simulators as a special case of the multi-output GPs [1, 13, 19] with a temporal dependency between the outputs. However, the size of the output dimension in dy- namical models is usually too high to be treated by multi-output GPs. To tackle this issue one can first apply techniques such as principal component analysis [22, 24] or wavelet decomposition [3, 16] to reduce the output di- mensionality. The pitfall is that we lose some information by not keeping all the components. Another approach is proposed in [26] to account for time using an extra input parameter. This method increases the computational complexity and is reported to be inefficient [12, 31]. The idea of forecasting the time series through iterative one-step ahead predictions is developed in [4, 12]. This method relies on emulating the transition function from one time point to the next, under the assumption that the model output at time t depends only on the output at time t − 1, i.e. the Markov property. The work is continued in [33] by considering the input uncertainty in each step of the one-step ahead prediction paradigm. The method needs to estimate the correlation between emulators of state variables, and hence is not efficient if the problem dimensions, i.e. the number of variables in the ODE, are large. This paper presents a novel approach for emulating non-linear dynamic simulators that are computationally intensive. The method is based on ap- proximating the numerical flow map over a short period of time by a GP whose kernel is approximated via random Fourier features (RFF) [36], see Section 3.1. The flow map can be regarded as the solution trajectory of 2 a dynamical system that starts from a given initial condition and repre- sents the evolution of the system with time. This way of emulating the flow map creates a probability distribution over it such that any realisation from that distribution is an approximation to the flow map. Drawing multiple realisations from the emulated flow map to perform on-step ahead predic- tions gives a distribution over the time series. The mean and variance of that distribution serve as the time series forecast and the associated uncer- tainty, respectively. The results show that our method has a high predictive performance in emulating dynamic simulators and yields an accurate rep- resentation of the uncertainty associated with the model output prediction. In the following, a brief summary of dynamic systems is presented. Dynamical system A dynamical system represents the evolution of a phenomenon over time according to a fixed mathematical rule. It is ex- pressed in terms of differential equations whose (time-varying) variables are called state variables. They are demonstrated by the vector x(t) = > (x1(t); : : : ; xd(t)) by which the state of the system at time t 2 R is deter- mined. The space that consists of all possible values of the state variables d is called the state (phase) space denoted by X ⊂ R . The vector field is the time derivative of the state variables and is given by [42] d v : X 7! X ; x(t) = v (x(t)) : (1) dt We assume that the system is autonomous meaning that the associated vector field does not dependent on time explicitly. Let x0 be an initial condition, i.e. the state of the system for an initial time t0, and ∆t a time step. The flow map is a function that maps the initial condition x0 to the state at the next time step t1 = t0 + ∆t as below [15]: F : X × R 7! X ;F (x0; ∆t) = x (t1) : (2) The flow map can be interpreted as a trajectory traced out in the state space from x0 to x(t1). In this work, we assume that the time step ∆t is fixed, and hence the flow map is a function of x0 only. 2 Gaussian process emulators Our aim is to build statistical representations of the flow map based on GPs to enable efficient construction of trajectories with quantified uncertainty. The potential benefits of this approach are shown in [33]. Before explaining the advances in the current manuscript, we introduce GP emulators. Let f(x); x 2 X , be the function we wish to emulate via the stochastic Gaussian process Y (x) given by Y (x) = µ(x) + Z(x): (3) 3 Here, µ : X 7! R is called the trend function which is deterministic and can take any functional form. In this work, the trend function has a linear form as µ(x) = q(x)>β; (4) > such that q(x) = [q1(x); : : : ; qr(x)] is a vector of basis functions (regression > functions) and β = [β1; : : : ; βr] comprises the corresponding coefficients. The second component in Equation (3), Z(x), is a centred (or zero mean) GP with the covariance as 0 2 0 0 Cov Z(x);Z(x ) = σ k x; x ; 8x; x 2 X : (5) The scalar σ2 is the process (signal) variance and controls the scale of the amplitude of Z(x). The function k : X × X 7! R is the kernel or correlation function and regulates the level of smoothness of Z(x). A kernel is called stationary (shift invariant) if it depends only on the difference between its inputs: k(x; x0) = k(x−x0): One of the most common stationary correlation functions is the squared exponential (SE) kernel defined as [38] 0 0> −1 0 kSE(x; x ) = exp −0:5 x − x ∆ x − x ; (6) d×d where the diagonal matrix ∆ 2 R consists of the correlation length-scales 2 2 denoted by δ1; : : : ; δd. Let D = fX; yg be the training data set in which X = [x1;:::; xn]> is called the design matrix and includes n cites in the input space. The corre- sponding outputs at those locations are gathered in y = [f(x1); : : : ; f(xn)]>. For our purpose x1;:::; xn represent samples taken from the state space and are used to emulate the flow map, see Section4. Given that all parameters in (3) are known, the prediction of f(x) is the expected value of the posterior Y (x) j D and expressed by the following equation f^(x) = µ(x) + k(x)>K−1 (y − µ) : (7) The above equation called the predictive mean in which µ = µ(X) and > k(x) = k(x1; x); : : : ; k(xn; x) and K is an n×n correlation matrix whose i j i j ij-th element is Kij = k(x ; x ); 8x ; x 2 X.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    23 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us