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.
- Evaluate an initial design on the expensive objective function.
- Fit the surrogate to all input-output pairs collected so far.
- Optimize an acquisition function on the cheap surrogate to choose the next point.
- Evaluate the true objective at that point and add the result to the data.
- 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 function | Selection principle | Behavior |
|---|---|---|
| Expected improvement | Average gain over the current best | Balanced, widely used default |
| Probability of improvement | Chance of beating the current best | Tends to exploit, can stall |
| Upper confidence bound | Mean plus scaled standard deviation | Tunable exploration weight |
| Thompson sampling | Optimum of a random surrogate draw | Natural fit for parallel batches |
| Entropy search | Information gained about the optimum | Sample efficient but costly to compute |
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.
| Surrogate | Strengths | Weaknesses | Typical use |
|---|---|---|---|
| Gaussian process | Calibrated uncertainty, data efficient | Cubic cost in sample count | Low-dimensional continuous tuning |
| Random forest | Handles categorical inputs | Coarse uncertainty estimates | Algorithm configuration |
| Tree-structured Parzen estimator | Scales to conditional spaces | Models densities, not the function | Hyperparameter search |
| Neural network | Scales to large data | Needs many samples, weak uncertainty | Simulation emulation |
| Polynomial response surface | Simple and interpretable | Poor for complex landscapes | Classical engineering design |
| Radial basis functions | Fast interpolation | Limited uncertainty modeling | Deterministic simulations |
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.
| Strategy | Uses past results | Evaluations needed | Best when |
|---|---|---|---|
| Grid search | No | Grows exponentially with dimension | Two or three parameters |
| Random search | No | Moderate to high | Cheap evaluations, many parameters |
| Surrogate-based optimization | Yes | Low, often tens to hundreds | Expensive black-box objective |
| Hyperband | Partially, via early stopping | Moderate | Partial training is informative |
| Gradient-based methods | Yes, through derivatives | Low per step | Gradients are available and cheap |
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.
| Problem | Symptom | Remedy |
|---|---|---|
| High dimensionality | Search behaves like random sampling | Dimension reduction or trust regions |
| Overconfident surrogate | Repeated sampling of one region | Increase exploration in acquisition |
| Noisy objective | Surrogate chases random fluctuations | Model observation noise explicitly |
| Unscaled inputs | Poor length-scale estimates | Normalize or log-transform inputs |
| Cheap objective | Modeling overhead dominates runtime | Use random search or evolution instead |
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.