Imagine you are training a neural network and you need to pick the right learning rate, the number of hidden layers, and the dropout probability. Each combination requires a full training run that can take hours â sometimes days â on expensive hardware. Trying every combination is simply impossible.
This is the setting Bayesian optimization was built for: find the best input to an expensive black-box function using as few evaluations as possible. The word black-box means you can measure the output for any input you choose, but you cannot see a formula or gradient â only the result.
The key idea is to be smart about where you look next. Instead of searching at random (which wastes evaluations) or following a gradient (which doesn't exist), Bayesian optimization builds a probabilistic model of the unknown function, uses that model to decide the most promising next point, evaluates the function there, then updates the model and repeats. Every evaluation makes the model sharper.
Introduced in its modern form by Jonas Mockus in the 1970s and popularized for machine learning by Snoek, Larochelle, and Adams (2012), Bayesian optimization is now the backbone of hyperparameter tuning systems like Google Vizier and Optuna.
Comments
Loading comments...