Glossary of AI Terminology

What Is A Surrogate Model?

Surrogate Model

A surrogate model is a simple, readable model trained to imitate the behavior of a more complex or inaccessible one. You send inputs to the original model, record what it predicted, and then fit something legible on that record: a linear regression, a shallow decision tree, a rule list, a generalized additive model. The surrogate becomes a stand-in. Whatever it says about how inputs map to outputs is your working account of what the original model is doing.

Two details define the technique, and both get skipped in casual descriptions. First, the surrogate is trained on the original model’s predictions, not on ground truth labels. A model trained on labels is just a second model. A model trained on predictions is an approximation of a decision function. Second, a surrogate is judged on fidelity, meaning how closely it reproduces the original model’s outputs, not on accuracy against reality. A surrogate that scores 0.94 against the original model and 0.61 against the labels is doing its job.

Teams reach for a surrogate when they cannot get inside the original model. You inherited a scoring service with no source code. The model runs behind a vendor API. The training environment is gone and all you kept was a table of inputs and predictions. In any of those cases you cannot compute SHAP values directly, because SHAP needs either the model object or many extra forward passes. A surrogate gets an explanation from prediction logs alone.

Key takeaways

  • A surrogate model is fit to another model’s predictions, which is what separates it from an ordinary model fit to labels.
  • The metric that matters is fidelity to the original model, not accuracy against ground truth. Report it or the explanation is unfalsifiable.
  • Surrogates are the fallback when the original model is inaccessible and direct attribution methods such as TreeSHAP or Deep SHAP are not available.
  • The same word means something different in engineering, where a surrogate is a cheap emulator of an expensive simulation.
  • A surrogate is only faithful in the input region you sampled, which is why it is weak evidence for regulated decisions.

How to fit one

  1. Collect a set of inputs that reflects the traffic the model actually sees. Historical production requests beat synthetic grids, because a surrogate is only trustworthy where you sampled.
  2. Score every input with the original model and keep the prediction, including the probability or score rather than only the hard class.
  3. Train an interpretable model with those predictions as the target. Depth-limited trees and linear models are the usual choices because you can read the whole thing.
  4. Measure fidelity. R-squared for a regression surrogate, accuracy or agreement rate for a classification surrogate, measured against the original model’s outputs on held-out inputs.
  5. Read the surrogate, then state the fidelity number every time you quote it.

Step 5 is the one people drop. A tree with 0.55 agreement is not an explanation, it is a rumor. Fidelity is the confidence interval on everything the surrogate tells you.

Global surrogates and local surrogates

A global surrogate tries to approximate the entire decision surface with one readable model. That is ambitious. If a gradient boosted ensemble were reproducible by a depth-4 tree, you would have shipped the tree.

A local surrogate gives up on global coverage and approximates the model in a small neighborhood around one prediction, where even a linear fit can be close. That is exactly the design of Local Interpretable Model-agnostic Explanations, or LIME: perturb the input, score the perturbations with the original model, and fit a weighted linear model nearby. LIME is a surrogate method, just a local one. The tradeoff between these views is the same one described in global, cohort, and local model explainability, and it decides which questions you can answer.

The other meaning: emulators for expensive simulations

Outside machine learning, a surrogate model is a cheap approximation of something expensive to evaluate. A fluid dynamics run takes hours per configuration, so engineers sample a few hundred runs and fit a Gaussian process or a neural network to the results. That fitted model, also called a metamodel, an emulator, or a response surface, then answers thousands of design queries in seconds and guides where to spend the next expensive run. This is the sense meant by “an outcome of interest cannot be measured directly, so a model of the outcome is used instead.”

The two senses share a shape: something costly or opaque gets replaced by something cheap and readable, and the exercise depends on how well the replacement tracks the original. In the explainability case the expensive thing is transparency. In the engineering case it is compute.

Where surrogates mislead

Coverage. A surrogate learns the original model only where you sampled. Push it into a region your input set never covered and it will still return a confident answer built from nothing.

Correlated features. When two inputs move together, the surrogate can attribute the decision to either one and fit equally well. Swap which one it picks and the story you tell a stakeholder changes while fidelity does not move.

Regulated decisions. Adverse action reasoning and model risk documentation need an account of the model that produced the decision. A surrogate gives you an account of an approximation, and its faithfulness depends on the data window it saw. If you have access to the model, use a direct method such as TreeSHAP instead and keep surrogates for triage. The broader tradeoffs across methods are laid out in the prevailing explainability methods.

Surrogate thinking with LLMs and agents

A hosted language model is the extreme case of an inaccessible model: no weights, no gradients, only text in and text out. Direct attribution does not transfer to it, and it would not transfer even with the weights, because a prompt has no fixed set of named features and a generated sequence is not one score to divide. The surrogate instinct, though, does transfer.

Fit a small interpretable model over structured properties of the request, such as prompt length, retrieved document count, language, or route, and have it predict whether the system refuses, scores badly, or costs too much. Read that model and you get claims a team can act on: refusals concentrate in one route, cost tracks retrieved document count. It is triage, and its honesty depends on calling it a correlation over metadata rather than an account of the network’s computation. Fidelity still applies: quote how closely the metadata model tracks the behavior. When you need the sequence of events rather than a correlation over it, record the run and score each step, which is what tracing and evaluating an agent covers.

FAQ

What is the difference between a surrogate model and the original model?

The original model makes the decisions. The surrogate exists only to describe those decisions in a form a person can read, and it is trained on the original model’s outputs rather than on labels. Nothing in production should be served by the surrogate.

How do I know whether a surrogate model can be trusted?

Measure fidelity on held-out inputs: R-squared for continuous outputs, agreement rate for classifications. There is no universal cutoff, but a low number means the surrogate has invented a simpler story than the model is actually following, and any explanation you read off it is unreliable.

Is LIME a surrogate model?

Yes. LIME fits a weighted linear model to perturbations around a single prediction, which makes it a local surrogate. The general form people call “the surrogate model approach” usually means the global version fit across the whole input space.

When should I use SHAP instead of a surrogate?

Whenever you can reach the model. Direct methods give attributions for the model itself rather than for an approximation of it, and there are fast exact implementations for tree ensembles. Surrogates are for the case where the model is genuinely out of reach.

What is a surrogate model in engineering and simulation?

A cheap statistical model fit to a small number of expensive simulation runs, then used in place of the simulator for optimization and design sweeps. Gaussian processes are a common choice because they return an uncertainty estimate along with each prediction, which tells you where to run the real simulation next.

Surrogate Model

Bi-weekly AI Research Paper Readings

Stay on top of emerging trends and frameworks.