ArticleslgStudy

mathematics

Gradient-enhanced kriging

Gradient-enhanced kriging is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Gradient-enhanced kriging rather than just read about it. In short: Gradient-enhanced kriging (GEK) is a surrogate modeling technique used in engineering. A surrogate model (alternatively known as a metamodel, response surface or emulator) is a prediction of the output of an expensive computer code.

Gradient-enhanced kriging — main illustration
Gradient-enhanced kriging — illustration

Key takeaways

  • Gradient-enhanced kriging belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Gradient-enhanced kriging to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Gradient-enhanced kriging from memory before moving on to harder problems.

Reference excerpt

Gradient-enhanced kriging (GEK) is a surrogate modeling technique used in engineering. A surrogate model (alternatively known as a metamodel, response surface or emulator) is a prediction of the output of an expensive computer code. This prediction is based on a small number of evaluations of the expensive computer code.

Introduction

Adjoint solvers are now becoming available in a range of computational fluid dynamics (CFD) solvers, such as Fluent, OpenFOAM, SU2 and US3D. Originally developed for optimization, adjoint solvers are now finding more and more use in uncertainty quantification.

Linear speedup An adjoint solver allows one to compute the gradient of the quantity of interest with respect to all design parameters at the cost of one additional solve. This, potentially, leads to a linear speedup: the computational cost of constructing an accurate surrogate decrease, and the resulting computational speedup s scales linearly with the number d of design parameters. The reasoning behind this linear speedup is straightforward. Assume we run N primal solves and N adjoint solves, at a total cost of 2N. This results in N+dN data; N values for the quantity of interest and d partial derivatives in each of the N gradients. Now assume that each partial derivative provides as much information for our surrogate as a single primal solve. Then, the total cost of getting the same amount of information from primal solves only is N+dN. The speedup is the ratio of these costs:

s=N+dN2N=12+12d. A linear speedup has been demonstrated for a fluid-structure interaction problem and for a transonic airfoil.

Noise One issue with adjoint-based gradients in CFD is that they can be particularly noisy. When derived in a Bayesian framework, GEK allows one to incorporate not only the gradient information, but also the uncertainty in that gradient information.

Approach When using GEK one takes the following steps:

Create a design of experiment (DoE): The DoE or 'sampling plan' is a list of different locations in the design space. The DoE indicates which combinations of parameters one will use to sample the computer simulation. With Kriging and GEK, a common choice is to use a Latin Hypercube Design (LHS) design with a 'maximin' criterion. The LHS-design is available in scripting codes like MATLAB or Python. Make observations: For each sample in our DoE one runs the computer simulation to obtain the Quantity of Interest (QoI). Construct the surrogate: One uses the GEK predictor equations to construct the surrogate conditional on the obtained observations. Once the surrogate has been constructed it can be used in different ways, for example for surrogate-based uncertainty quantification (UQ) or optimization.

Predictor equations In a Bayesian framework, we use Bayes' theorem to predict the Kriging mean and covariance conditional on the observations. When using GEK, the observations are usually the results of a number of computer simulations. GEK can be interpreted as a form of Gaussian process regression.

Kriging Along the lines of, we are interested in the output X of our computer simulation, for which we assume the normal prior probability distribution:

X∼𝒩(μ,P), with prior mean μ and prior covariance matrix P. The observations y have the normal likelihood:

Y∣x∼𝒩(Hx,R), with H the observation matrix and R the observation error covariance matrix, which contains the observation uncertainties. After applying Bayes' theorem we obtain a normally distributed posterior probability distribution, with Kriging mean:

E⁡(X∣y)=μ+K(y−Hμ), and Kriging covariance:

cov⁡(X∣y)=(I−KH)P, where we have the gain matrix:

K=PHT(R+HPHT)−1. In Kriging, the prior covariance matrix P is generated from a covariance function. One example of a covariance function is the Gaussian covariance:

Pij=σ2exp⁡(−∑k|ξjk−ξik|22θk2), where we sum over the dimensions k and ξ are the input parameters. The hyperparameters μ, σ and θ can be estimated from a Maximum Likelihood Estimate (MLE).

Indirect GEK There are several ways of implementing GEK. The first method, indirect GEK, defines a small but finite stepsize h, and uses the gradient information to append synthetic data to the observations y, see for example. Indirect Kriging is sensitive to the choice of the step-size h and cannot include observation uncertainties.

Direct GEK (through prior covariance matrix) Direct GEK is a form of co-Kriging, where we add the gradient information as co-variables. This can be done by modifying the prior covariance P or by modifying the observation matrix H; both approaches lead to the same GEK predictor. When we construct direct GEK through the prior covariance matrix, we append the partial derivatives to y, and modify the prior covariance matrix P such that it also contains the derivatives (and second derivatives) of the covariance function, see for example

. The main advantages of direct GEK over indirect GEK are: 1) we do not have to choose a step-size, 2) we can include observation uncertainties for the gradients in R, and 3) it is less susceptible to poor conditioning of the gain matrix K.

Direct GEK (through observation matrix) Another way of arriving at the same direct GEK predictor is to append the partial derivatives to the observations y and include partial derivative operators in the observation matrix H, see for example.

Gradient-enhanced kriging for high-dimensional problems (Indirect method) Current gradient-enhanced kriging methods do not scale well with the number of sampling points due to the rapid growth in the size of the correlation matrix, where new information is added for each sampling point in each direction of the design space. Furthermore, they do not scale well with the number of independent variables due to the increase in the number of hyperparameters that needs to be estimated. To address this issue, a new gradient-enhanced surrogate model approach that drastically reduced the number of hyperparameters through the use of the partial-least squares method that maintains accuracy is developed. In addition, this method is able to control the size of the correlation matrix by adding only relevant points defined through the information provided by the partial-least squares method. For more details, see. This approach is implemented into the Surrogate Modeling Toolbox (SMT) in Python (https://github.com/SMTorg/SMT), and it runs on Linux, macOS, and Windows. SMT is distributed under the New BSD license.

… excerpt ends here. Continue reading the full article.

Illustrations

Gradient-enhanced kriging: Transonic airfoil.
Transonic airfoil.
Gradient-enhanced kriging: Reference results for the drag coefficient of a transonic airfoil, based on a large number of CFD simulations. The horizontal and vertical axis show the deformation of the shape of the airfoil.
Reference results for the drag coefficient of a transonic airfoil, based on a large number of CFD simulations. The horizontal and vertical axis show the deformation of the shape of the airfoil.
Gradient-enhanced kriging: Kriging surrogate model of the drag coefficient of a transonic airfoil. The gray dots indicate the configurations for which the CFD solver was run.
Kriging surrogate model of the drag coefficient of a transonic airfoil. The gray dots indicate the configurations for which the CFD solver was run.
Gradient-enhanced kriging: GEK surrogate model of the drag coefficient of a transonic airfoil. The gray dots indicate the configurations for which the CFD solver was run, the arrows indicate the gradients.
GEK surrogate model of the drag coefficient of a transonic airfoil. The gray dots indicate the configurations for which the CFD solver was run, the arrows indicate the gradients.

Worked examples

Example 1 — a first encounter with Gradient-enhanced kriging

Start with the simplest possible case. Write down what Gradient-enhanced kriging claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Gradient-enhanced kriging before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Gradient-enhanced kriging ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Gradient-enhanced kriging

In research
Gradient-enhanced kriging appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Gradient-enhanced kriging in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Gradient-enhanced kriging is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computational fluid dynamics, Mathematical modeling, so understanding it makes those chapters shorter.
In everyday life
Look for Gradient-enhanced kriging outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Gradient-enhanced kriging” →

How to study Gradient-enhanced kriging in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Gradient-enhanced kriging means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Gradient-enhanced kriging out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Gradient-enhanced kriging in simple terms?

Gradient-enhanced kriging (GEK) is a surrogate modeling technique used in engineering. A surrogate model (alternatively known as a metamodel, response surface or emulator) is a prediction of the output of an expensive computer code.

Why does Gradient-enhanced kriging matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Gradient-enhanced kriging?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Gradient-enhanced kriging.

Tags

  • Computational fluid dynamics
  • Mathematical modeling

Keep exploring