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
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
| Type | Example | Characteristic | Uncertainty estimate |
|---|---|---|---|
| Fitted fixed form | Quadratic regression | May fail to capture the function's shape even with more points | None |
| Interpolation through points | Splines, radial basis functions | Approaches the true function as points are added | None |
| Kriging | Gaussian process | Tunes each variable's importance from the data | Provides a standard error |
| Model ensemble | Combined predictions of several models | Built from models of the same or different kinds | Variance of predictions across models |
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
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
- 1Optimize the surrogate within the rangeLooks for the next candidate only within the allowed range around the current conditionsNext
- 2Evaluate for realChecks the conditions found on the real process or a detailed model, and moves only if the result improvedNext
- 3Compare 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
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
- Progress in Aerospace Sciences 2009 (Forrester et al.), "Recent advances in surrogate-based optimization" ↗
- Computers & Chemical Engineering 2018 (Bhosekar et al.), "Advances in surrogate based modeling, feasibility analysis, and optimization: A review" ↗
- Journal of Global Optimization 2001 (Jones), "A Taxonomy of Global Optimization Methods Based on Response Surfaces" ↗
- Structural Optimization 1998 (Alexandrov et al.), "A trust-region framework for managing the use of approximation models in optimization" ↗
- IEEE Transactions on Evolutionary Computation 2019 (Jin et al.), "Data-Driven Evolutionary Optimization: An Overview and Case Studies" ↗
- arXiv 2020 (Levine et al.), "Offline Reinforcement Learning: Tutorial, Review, and Perspectives on Open Problems" (2020-05-04) ↗
Could this work for your process?
Talk to us