How does a random-forest surrogate, as used in SMAC, differ from a Gaussian process surrogate in Bayesian optimisation?

Quick Overview

Asks how the random-forest surrogate used in SMAC differs from a Gaussian process surrogate in Bayesian optimisation for hyperparameter tuning. Tests how each estimates uncertainty, handles categorical and conditional parameters, scales with evaluations, and where each one breaks down.

How does a random-forest surrogate, as used in SMAC, differ from a Gaussian process surrogate in Bayesian optimisation?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: hard

Interview Round: Other

In Bayesian optimisation for hyperparameter tuning, a surrogate model predicts the objective and its uncertainty at untested configurations. How does a random-forest surrogate, as used in SMAC, differ from a Gaussian process surrogate? ```hint Where uncertainty comes from A GP gets a posterior variance from its kernel. Ask what a forest of trees could use as a stand-in for that variance. ``` ```hint Picture the search space Imagine a categorical solver choice whose child parameters exist for only one solver, plus a budget of a few thousand evaluations. Ask which surrogate copes with each part. ``` ### What a Strong Answer Covers - How each surrogate produces a predictive mean and uncertainty, and how an acquisition function such as EI is computed from the forest's predictions - Handling of categorical, integer and conditional parameters - Computational cost as the number of evaluations grows - Where the forest surrogate is weaker than a GP and why - When to choose each surrogate ### Follow-up Questions - Why can a forest's uncertainty be too small far from observed configurations, and how does SMAC keep exploring anyway? - How would you make a GP work on a space with a categorical solver choice and conditional child parameters? - Where does TPE fit relative to these two surrogates?

Overview: Asks how the random-forest surrogate used in SMAC differs from a Gaussian process surrogate in Bayesian optimisation for hyperparameter tuning. Tests how each estimates uncertainty, handles categorical and conditional parameters, scales with evaluations, and where each one breaks down.

Nov 25, 2026
hardMachine Learning EngineerOtherMachine Learning
0
0

In Bayesian optimisation for hyperparameter tuning, a surrogate model predicts the objective and its uncertainty at untested configurations. How does a random-forest surrogate, as used in SMAC, differ from a Gaussian process surrogate?

What a Strong Answer Covers Guidance

  • How each surrogate produces a predictive mean and uncertainty, and how an acquisition function such as EI is computed from the forest's predictions
  • Handling of categorical, integer and conditional parameters
  • Computational cost as the number of evaluations grows
  • Where the forest surrogate is weaker than a GP and why
  • When to choose each surrogate

Follow-up Questions Guidance

  • Why can a forest's uncertainty be too small far from observed configurations, and how does SMAC keep exploring anyway?
  • How would you make a GP work on a space with a categorical solver choice and conditional child parameters?
  • Where does TPE fit relative to these two surrogates?