SDE & MLE Prep

Hyperparameter Tuning

Q: How do you tune hyperparameters efficiently?

  • Grid search wastes budget on unimportant dimensions; random search covers important ones better (Bergstra & Bengio).
  • Bayesian optimization (Gaussian process / TPE surrogate + acquisition function) for expensive trainings; Hyperband / ASHA stop bad trials early.
  • Tune the most sensitive first: learning rate (log scale!), batch size, regularization strength, model size.
  • Always tune on a validation set (or CV), never on the test set; fix seeds and report variance across seeds.