Surrogate model

On this page 7

A surrogate model is a computationally cheap approximation of an expensive function, built from a limited number of evaluations and used in its place during search or analysis. In optimization for artificial intelligence and engineering, it stands in for an objective function that is slow, costly or noisy to evaluate, such as training a neural network with a given set of hyperparameters or running a physics simulation.

Surrogate models are also called metamodels, response surface models or emulators. They are the core of Bayesian optimization and of many derivative-free optimization methods, where the goal is to find a good solution with tens or hundreds of evaluations rather than thousands or millions.

How surrogate-based optimization works

Surrogate-based optimization follows a fit, select, evaluate, refit loop. The process starts with a small initial design, often 5 to 20 points chosen by random sampling or Latin hypercube sampling. The true objective is evaluated at these points, and a surrogate is fitted to the results.

  1. Evaluate an initial design on the expensive objective function.
  2. Fit the surrogate to all input-output pairs collected so far.
  3. Optimize an acquisition function on the cheap surrogate to choose the next point.
  4. Evaluate the true objective at that point and add the result to the data.
  5. Repeat until the budget is spent or improvement stalls.

The key idea is that searching the surrogate costs almost nothing compared with one true evaluation. Thousands of candidate points can be scored on the surrogate in seconds, while a single real evaluation may take hours of GPU time. The acquisition function decides how to balance exploration of uncertain regions against exploitation of regions that already look good.

Acquisition functions differ in how aggressively they explore. The table below summarizes the most common acquisition functions paired with probabilistic surrogates.

Acquisition functionSelection principleBehavior
Expected improvementAverage gain over the current bestBalanced, widely used default
Probability of improvementChance of beating the current bestTends to exploit, can stall
Upper confidence boundMean plus scaled standard deviationTunable exploration weight
Thompson samplingOptimum of a random surrogate drawNatural fit for parallel batches
Entropy searchInformation gained about the optimumSample efficient but costly to compute
Acquisition functions used with surrogate models

Types of surrogate models

Several model families serve as surrogates, and the choice depends on dimensionality, data volume and input types. The table below compares the most widely used options.

SurrogateStrengthsWeaknessesTypical use
Gaussian processCalibrated uncertainty, data efficientCubic cost in sample countLow-dimensional continuous tuning
Random forestHandles categorical inputsCoarse uncertainty estimatesAlgorithm configuration
Tree-structured Parzen estimatorScales to conditional spacesModels densities, not the functionHyperparameter search
Neural networkScales to large dataNeeds many samples, weak uncertaintySimulation emulation
Polynomial response surfaceSimple and interpretablePoor for complex landscapesClassical engineering design
Radial basis functionsFast interpolationLimited uncertainty modelingDeterministic simulations
Common surrogate model families

Gaussian processes remain the default for problems with up to roughly 20 continuous dimensions and a few hundred evaluations, because they provide both a mean prediction and a principled variance. Beyond that scale, tree-based or neural surrogates usually become more practical.

Surrogate models compared with other search strategies

Surrogate-based methods trade extra modeling overhead for far fewer evaluations. Simple strategies such as grid search and random search ignore previous results, whereas a surrogate learns from every evaluation. The following table shows when each approach is appropriate.

StrategyUses past resultsEvaluations neededBest when
Grid searchNoGrows exponentially with dimensionTwo or three parameters
Random searchNoModerate to highCheap evaluations, many parameters
Surrogate-based optimizationYesLow, often tens to hundredsExpensive black-box objective
HyperbandPartially, via early stoppingModeratePartial training is informative
Gradient-based methodsYes, through derivativesLow per stepGradients are available and cheap
Surrogate-based search versus alternative strategies

Hybrid methods combine these ideas. BOHB, for example, pairs a tree-structured Parzen estimator surrogate with Hyperband early stopping, which often outperforms either component alone on hyperparameter tuning tasks.

Beyond hyperparameter tuning

Surrogate models are used wherever evaluation is the bottleneck. In engineering, they replace computational fluid dynamics or finite element simulations during aerodynamic and structural design. In science, they guide experiments in materials discovery and drug design, where each evaluation is a physical laboratory test.

The term also appears in explainable AI, where a global or local surrogate, such as a decision tree or the linear model in LIME, approximates a black-box model to make its behavior interpretable. The principle is identical: a simpler model mimics a complex one, but here the goal is understanding rather than search.

Limitations and practical pitfalls

A surrogate is only as good as its fit to the true objective. Poor kernel or model choices, unscaled inputs and noisy evaluations can mislead the search. The table below lists common problems and their usual remedies.

ProblemSymptomRemedy
High dimensionalitySearch behaves like random samplingDimension reduction or trust regions
Overconfident surrogateRepeated sampling of one regionIncrease exploration in acquisition
Noisy objectiveSurrogate chases random fluctuationsModel observation noise explicitly
Unscaled inputsPoor length-scale estimatesNormalize or log-transform inputs
Cheap objectiveModeling overhead dominates runtimeUse random search or evolution instead
Common surrogate modeling problems

Surrogate-based methods are also inherently sequential, which limits parallel hardware use. Batch acquisition strategies can propose several points at once, but they usually lose some sample efficiency compared with strictly sequential selection.

Finally, a surrogate that predicts well on average may still be unreliable near constraint boundaries or in regions it has never sampled. Practitioners therefore validate surrogates with leave-one-out error or held-out evaluations, and they confirm the final candidate on the true objective before deploying any configuration or design selected by the search.

Understanding it simply

Some tests are very slow or very expensive. A surrogate model is a quick stand-in for that slow test. It learns from a few real results and then guesses what other results would look like.

Think of a chef tuning a recipe. Each full dish takes hours. After a few tries, the chef forms a mental picture of what works. That picture guides the next attempt. Fewer expensive tries reach a good result.

Applied in practice

A machine learning team must tune a gradient boosting model with eight hyperparameters, including learning rate, tree depth and regularization strength. Each training and validation run takes about 45 minutes, and the team has a budget of 60 runs.

The team starts with 10 Latin hypercube samples, then fits a Gaussian process surrogate and uses expected improvement as the acquisition function for the remaining 50 runs. A parallel random search with the same budget serves as a baseline. The surrogate-based search reaches the random search’s best validation score after about 25 evaluations and finishes with a lower validation error, saving roughly two days of compute that the team reallocates to feature engineering.