Abstract
Hyperparameter optimization (HPO) is a critical yet computationally expensive step in machine learning. Traditional Bayesian Optimization (BO) treats model training as a black box, waiting for completion before updating its surrogate model. We describe "Freeze-Thaw" Bayesian Optimization, which monitors partial training curves to intelligently decide whether to continue a run, pause it, or start a new one. By leveraging a novel exponential decay kernel and Entropy Search, this method achieves state-of-the-art performance in significantly less time than standard HPO techniques.
Introduction
The "meta-game" of machine learning involves tuning hyperparameters like learning rates and regularization strengths. This is typically a "double loop" problem: an outer loop selects hyperparameters, and an inner loop trains the model. Standard BO is often wasteful because it ignores the intermediate information generated during the inner loop. Human experts, by contrast, often terminate poor runs early based on initial learning curves. Freeze-Thaw BO automates this intuition, treating training curves as predictable time series to navigate the hyperparameter space more efficiently.
Methods: Modeling Training Curves
The core of the Freeze-Thaw framework is the assumption that training loss generally follows a predictable exponential decay toward an asymptote.
The Exponential Decay Kernel
The authors derive a novel, positive-definite covariance kernel by integrating over an infinite mixture of exponentially decaying basis functions. This allows the Gaussian Process (GP) to forecast the final performance of a partially trained model with high accuracy.
Efficient Gaussian Process and Entropy Search
To manage computational complexity, the framework uses a conditional independence assumption. Each training curve is modeled as its own GP, conditioned on a "global" GP that captures the final asymptotic performance across the hyperparameter space. Instead of the standard "Expected Improvement" metric, the algorithm uses Entropy Search. This information-theoretic criterion selects actions—either starting a new model or "thawing" a partially trained one—that maximize information about the location of the global minimum at the asymptote.
Key Insights
- Predictability of Learning: We don't need a full training run to estimate the final outcome. The exponential decay kernel allows the GP to "fantasize" future observations.
- Information over Improvement: Entropy Search recognizes that "thawing" an existing model for a few more epochs can be more valuable than starting a new one if it clarifies whether that model is a true winner.
- Targeting the Asymptote: By explicitly modeling performance at $t = \infty$, the algorithm aligns with the user's goal of finding the best possible model given sufficient training time.
Experimental Results
The method was evaluated on three tasks: MNIST (Logistic Regression), Wikipedia (Online LDA), and MovieLens (Probabilistic Matrix Factorization).
- Speed: Freeze-Thaw reached lower loss levels faster than state-of-the-art methods like Warped GP.
- Dynamic Allocation: In the PMF task, the algorithm demonstrated "bet-hedging" behavior—starting many models, abandoning losers quickly, and returning to promising candidates later.
- Efficiency in LDA: The most dramatic gains were seen in Online LDA, where predicting the learning curve shape allowed the algorithm to skip hundreds of unnecessary epochs.
Conclusion and Future Work
While highly effective, Freeze-Thaw BO relies on the assumption of exponential decay. Future work could explore more flexible spatio-temporal priors to handle non-monotonic loss curves or phenomena like "double descent." Despite the computational overhead of Entropy Search, the method provides substantial time savings when the underlying model is expensive to train.
Summary updated