Every model has hyperparameters — learning rate, regularization strength, tree depth and so on — and tuning them means searching a multi-dimensional hyperparameter space. This scene collapses two hyperparameters (x₁, x₂) onto a horizontal plane and plots the resulting validation loss as a 3D surface: peaks are bad configurations, valleys are good ones. The surface's topology — how many valleys it has, how smooth or jagged it is — determines how hard the space is to search.
In high-dimensional hyperparameter spaces most of a hypercube's volume sits near its corners and surface, not its center — a geometric quirk that is part of why naive grid search scales so poorly and why smarter samplers like Bayesian optimization matter.
A 3D loss landscape shaped by two hyperparameters, explored live by grid search, random search, Latin hypercube sampling, or a Bayesian-guided sampler that homes in on the best region found so far.
The surface's peaks, valleys and ridges are the topology of a hyperparameter search space; its ruggedness controls how many local minima exist and how easily a search strategy can get stuck in one.
Pick a search strategy and sample budget, then watch colored spheres populate the landscape as each configuration is evaluated. The glowing marker tracks the best loss found; the purple trail shows the Bayesian sampler's exploration path.
Grid search cost grows exponentially with the number of hyperparameters, while random and Bayesian methods degrade far more gracefully — one reason modern AutoML tools default to smarter samplers.