Back to list

Tech Blog · Algorithms Explained

[Prescription Methods 7] Testing on a virtual process instead of the real one — Surrogate-based optimization

You cannot run hundreds of tests on a real process, so you search for the optimum on a virtual process built from data. The types of surrogate models, the most common trap (extrapolation), and how trust regions and uncertainty reduce it.

Aug 6, 2026 · OPTI-X

Series “Prescription Methods” · Part 7

A surrogate (proxy) model is a fast, cheap approximate model used in place of the real target, which is expensive and slow. For a process, a predictive model that has learned the "conditions → results" relationship from operating data becomes the surrogate. On top of it, an optimization algorithm can try as much as it likes.

The previous part noted that evolutionary algorithms need so many evaluations that running them directly on real equipment is hard. Surrogate-based optimization lets a model take over those evaluations. In return, a new question appears: how far can that model be trusted?

How it works: replacing expensive evaluations with a cheap approximation

The structure of surrogate-based optimization

Optimize on the virtual process, confirm in reality

01Operating dataPast conditions and results
02Surrogate modelApproximates conditions → results (regression models, neural networks, Gaussian processes, etc.)
03Optimization algorithmSearches thousands to tens of thousands of times on the surrogate
04Validation on the floorChecks the conditions found in practice and adds them to the data

The starting point is an experimental design. Jones (2001) explains that by running simulations at a set of conditions and fitting response surfaces to the input-output data, you obtain fast surrogates for the objective and constraint functions. These runs can be done in parallel and reused when solving a modified version of the problem, such as one with different constraint limits.

The data does not have to come from simulations. Jin et al. (2019) group optimization driven by data from simulations, physical experiments and production processes under the name "data-driven evolutionary optimization." In a factory, the operating history is that data.

Take heat treatment as an example. A model that has learned past batches' heating temperature and cooling rate and the resulting hardness is a surrogate. The optimization algorithm feeds thousands of conditions into this model and puts forward the combinations closest to the target hardness. Only a few of them then need to be checked in the real furnace.

Bayesian optimization in Part 4 is also one of the methods that use a surrogate (a Gaussian process). How you build the surrogate and how you search on top of it can be combined freely.

Types of surrogates

Jones (2001) first divides surrogates into those that do not pass through the data points and those that pass through all of them. The first kind, which fits a fixed form such as a quadratic regression by minimizing the sum of squared errors, is considered unreliable because it may fail to capture the function's shape even as points are added. In his example, the minimum of the quadratic surface was not close to either of the true function's two local minima, and iterating brought no improvement.

Methods that pass through the data points include splines, radial basis functions and kriging. As points are added, they approach the true function. Among them, kriging (a Gaussian process) tunes from the data how much each variable matters to the result, and gives along with each prediction an estimate of how wrong it might be (the standard error).

Main types of surrogates

For optimization, look at whether a model estimates its own error, not just its accuracy

TypeExampleCharacteristicUncertainty estimate
Fitted fixed formQuadratic regressionMay fail to capture the function's shape even with more pointsNone
Interpolation through pointsSplines, radial basis functionsApproaches the true function as points are addedNone
KrigingGaussian processTunes each variable's importance from the dataProvides a standard error
Model ensembleCombined predictions of several modelsBuilt from models of the same or different kindsVariance of predictions across models
Source: Summarized from Jones (2001) and Jin et al. (2019)

The most common trap: extrapolation

A surrogate is trustworthy only within the range covered by its training data. But an optimization algorithm keeps heading toward wherever the results look good, and that is often a region with no data. The model may say "this is the best" not because it really is good, but because the model is wrong.

Inside and outside the data

Even the same model deserves different levels of trust

Regions with enough data
Regions with no data
Prediction
Close to reality
Can be too high or too low without basis
Optimization result
Trustworthy
Mistakes model error for the optimum
Response
Use as is
Limit the search range, account for uncertainty

Jones (2001) shows that the trap appears even with surrogates that pass through the data points. If you repeatedly evaluate the surrogate's minimum and refit, you converge quickly to a nearby local minimum but can miss the global one. If the initial sample gives a misleading picture of the function, the model's error is grossly underestimated, and the search stops too early or stays too local.

He therefore concludes that any method aiming for the global optimum needs a feature that makes it go back, from time to time, to regions that have been explored less. A method that only follows the surrogate's minimum has no such feature.

Reducing the trap: trust regions and uncertainty

The first approach is the trust region. The surrogate is optimized only within a set range around the current conditions, and the conditions found are evaluated for real. In the framework of Alexandrov et al. (1998), the range is adjusted by comparing the improvement the surrogate predicted with the improvement actually achieved.

One iteration of a trust region

The next step widens only as far as the model has proven right

  1. 1
    Optimize the surrogate within the rangeLooks for the next candidate only within the allowed range around the current conditions
    Next
  2. 2
    Evaluate for realChecks the conditions found on the real process or a detailed model, and moves only if the result improved
    Next
  3. 3
    Compare predicted and actual improvementExpand the range if the actual/predicted ratio is above 0.75, shrink it if below 0.10 (commonly used values)
    Accurate → expand the rangeOff the mark → shrink the range

When the actual improvement exceeds the prediction, the range is not reduced. What this rule looks at is not the model's overall accuracy but whether it got the direction of improvement right. The authors showed that, with only mild requirements on the surrogate, this procedure converges to a stationary point or local optimum of the original problem. Jones suggests it is best thought of as "using surrogates to accelerate a proven local optimization method." In exchange for moving step by step with checks, it does not guarantee the global optimum.

The second approach is to look at uncertainty as well. According to Jin et al. (2019), when choosing which candidates to evaluate for real, both candidates with good predicted values and candidates where the surrogate's error is likely to be large are used. Uncertainty is estimated from the kriging standard error, the distance to the training data, or the variance of ensemble predictions.

If you can run confirmation evaluations, uncertain candidates are something to learn from. If you must execute without confirmation, they are something to avoid. The signal is the same; the direction in which it is used is different.

A worked example and what to check when applying it

The fused magnesium furnace case introduced by Jin et al. (2019) is an example of surrogate-based optimization using production history alone. The decision variables are the electricity-consumption-per-ton setpoints of five furnaces connected to one transformer, and the goals are three: high-quality rate, total output and electricity consumption. Originally, experienced operators set the setpoints for each batch based on raw material properties and furnace condition.

Because one batch takes 10 hours, only 60 noisy sets of data were available. The authors used a low-order polynomial model, which is less prone to overfitting, in place of the true function, updated a kriging model with synthetic data generated by that polynomial model, and searched with a multi-objective evolutionary algorithm (NSGA-II).

The hardest part was validation. Jin et al. classify cases where no new data can be generated during optimization as "offline," and note that here there is no data to assess the surrogate's reliability, so the search is easily misled. In this case, the algorithm was first validated on test functions and then applied to the real problem.

What to check when applying it to a process

Look at data and means of validation before the algorithm

Data rangeAre the conditions found within the operating history?
If outside it, model error may have been mistaken for the optimum
Means of validationCan confirmation runs provide new data?
If yes, retrain the model with the results; if not, start with a validation plan before execution
UncertaintyDoes the model also report the size of its error?
Discount uncertain prescriptions using standard errors, ensemble variance and distance to the training data

Relationship to other methods

Bayesian optimization in Part 4 uses the kriging surrogate's standard error directly to choose the next experiment. In Jones's (2001) taxonomy, the method that maximizes expected improvement falls here. The evolutionary algorithms of Part 6 serve as the search engine on top of the surrogate, and "model management," which decides which candidates to evaluate for real, determines performance.

Offline reinforcement learning in Part 5 faces the same problem. Levine et al. (2020) explain that the very act of maximizing a learned function leads to a distribution different from the training data. The responses are similar too: keep the policy close to existing operation, or use uncertainty to detect actions outside the data.

Even if a surrogate predicts accurately, one problem remains. Operating history contains operators' decisions, so a model can predict correctly and still give the wrong answer to "what happens if I change this?"

A surrogate makes possible many attempts you cannot make in reality, but their results can be trusted only within the range the model knows. In the next part, we look at causal inference, which prescribes based on causes rather than correlations.

References

Could this work for your process?

Talk to us