What is the main limitation of grid search and random search regarding the history of previous trials?

Quick Overview

Asks what grid search and random search fail to do with the results of earlier trials and what that costs during hyperparameter tuning. Tests understanding of adaptive tuning methods such as Bayesian optimization and Hyperband, and of when simple search is still the better choice.

What is the main limitation of grid search and random search regarding the history of previous trials?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

Grid search and random search are the two simplest ways to tune hyperparameters. What is their main limitation with respect to the history of previous trials, and what does that limitation cost you in practice? ```hint Trace one choice Think about how each method picks its 20th configuration, and whether the results of trials 1 to 19 change that choice in any way. ``` ### What a Strong Answer Covers - The property both methods share in how they pick configurations, and what it means for the use of past results - The practical cost of that property, especially when each trial is expensive - How adaptive methods use the trial history instead, with at least one concrete family of methods - The advantages that come with being non-adaptive ### Follow-up Questions - Why does random search usually beat grid search for the same budget when only a few hyperparameters matter? - Hyperband samples its configurations at random. In what sense is it adaptive, and what does BOHB add? - With 100 GPUs available at once, would you still choose Bayesian optimization over random search? Why? - How would you warm-start an adaptive search from the trials of an earlier tuning run?

Overview: Asks what grid search and random search fail to do with the results of earlier trials and what that costs during hyperparameter tuning. Tests understanding of adaptive tuning methods such as Bayesian optimization and Hyperband, and of when simple search is still the better choice.

General logo
General
Nov 25, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

Grid search and random search are the two simplest ways to tune hyperparameters. What is their main limitation with respect to the history of previous trials, and what does that limitation cost you in practice?

What a Strong Answer Covers Guidance

  • The property both methods share in how they pick configurations, and what it means for the use of past results
  • The practical cost of that property, especially when each trial is expensive
  • How adaptive methods use the trial history instead, with at least one concrete family of methods
  • The advantages that come with being non-adaptive

Follow-up Questions Guidance

  • Why does random search usually beat grid search for the same budget when only a few hyperparameters matter?
  • Hyperband samples its configurations at random. In what sense is it adaptive, and what does BOHB add?
  • With 100 GPUs available at once, would you still choose Bayesian optimization over random search? Why?
  • How would you warm-start an adaptive search from the trials of an earlier tuning run?