Memory Based Stochastic Optimization for Validation and Tuning of Function Approximators

Artur Dubrawski, Jeff SchneiderAISTATS 1997

TL;DR

This paper introduces a "racing" algorithm for efficiently tuning the "hyper-parameters" of function approximators, especially when evaluations are expensive and noisy. By intelligently allocating computational resources to promising parameter settings and quickly discarding poor ones, their method significantly speeds up the optimization process compared to traditional grid search.

What Problem Does This Paper Address?

Optimizing the performance of machine learning models often involves tuning a set of "hyper-parameters" – settings that control the learning process itself, rather than the model's internal parameters (like weights). This is crucial for achieving good results, but it can be computationally very expensive, especially when evaluating a single hyper-parameter setting (e.g., training and testing a model) takes a long time. Traditional methods like grid search exhaustively try many combinations, which is inefficient if many settings are clearly suboptimal. Furthermore, real-world evaluations can be "noisy," meaning the performance estimate for a given setting might vary due to random factors, making it harder to reliably identify the best settings. The paper tackles the challenge of finding good hyper-parameters efficiently and robustly in the face of these expensive and noisy evaluations.

Methods

The core of the paper's contribution is a memory-based stochastic optimization approach combined with a "racing" algorithm adapted for continuous parameter spaces.

  • Memory-Based Performance Model: They use Bayesian Locally Weighted Regression (LWR) to build a model of how hyper-parameter settings map to prediction performance. This model is built from all past experimental data and provides not only a prediction of performance but also a confidence interval around that prediction. This allows the algorithm to learn from all its experiences, not just the most recent ones.
  • Racing Algorithm (IEMAX): Inspired by previous work on discrete model selection, they adapt an interval estimation algorithm (Kaelbling's) for continuous spaces. IEMAX intelligently suggests the next hyper-parameter setting to evaluate. It focuses on points with the highest upper confidence interval (for minimization tasks, this would be the lowest lower confidence interval), effectively exploring promising regions while avoiding wasting time on clearly inferior ones.
  • Resampling Scheme: To manage computational cost and noise, they employ N-fold cross-validation. By varying N, they can trade off evaluation accuracy for computational savings. Using fewer folds results in noisier but cheaper evaluations, which the stochastic optimization algorithm is designed to handle. This allows for more experiments to be run within a fixed computational budget.

Datasets

The paper uses a dataset from the Building Energy Predictor Shootout [8]. This dataset contains four numeric input features and a single numeric output attribute (cooling load). The task is to predict the cooling load for a building given solar radiation sensing. The Bayesian LWR algorithm is trained to predict this cooling load, and its own hyper-parameters are then optimized using the proposed method.

Key Insights and Ideas

  • Intelligent Resource Allocation is Key: The most significant insight is that by actively modeling the performance landscape and using confidence intervals, the algorithm can dynamically allocate computational effort. It spends more time and resources on promising hyper-parameter regions and less on those that are unlikely to yield good results.
  • Trading Noise for Speed: The paper demonstrates that accepting noisier evaluations (by using fewer cross-validation folds) can lead to significant computational savings. The stochastic optimization framework is robust enough to handle this noise, and the ability to run more experiments compensates for the reduced accuracy of individual evaluations.
  • "Racing" in Continuous Spaces: Adapting the "racing" concept from discrete model selection to continuous hyper-parameter spaces is a novel contribution. This allows for a more efficient search than exhaustive methods like grid search.
  • Bayesian LWR's Dual Role: It's interesting that Bayesian LWR serves two purposes: it's the model being optimized (for cooling load prediction) and it's also the engine for building the performance model used by the optimizer.

Key Results

  • Speedup over Grid Search: In a 3-dimensional parameter space, their IEMAX algorithm, using 200 evaluations, outperformed a 6x6x6 grid search (216 samples) which took a similar amount of time. IEMAX found a best setting with an average leave-one-out (l-o-o) cross-validation error of 26.54 ± 0.38, compared to 31.24 ± 1.11 for the grid search.
  • Optimal Number of Samples per Experiment: Table 1 shows that using a moderate number of samples per experiment (specifically, 9 samples) yielded the best leave-one-out scores. Too few samples led to noisy evaluations, while too many increased computation time without proportional gains in accuracy.
  • Reduced Computation for Promising Regions: Figure 4 visually shows how IEMAX concentrates its experiments in promising regions of the parameter space, unlike a uniform grid search.

Limitations and Future Work

  • PMAX's Evaluation Difficulties: The authors note that while IEMAX effectively explores the space, using PMAX to evaluate the "best" setting found during optimization proved difficult. In some cases, PMAX selected mediocre settings even when IEMAX's data suggested better choices. They are continuing to work on alternatives to PMAX for progress evaluation.
  • Overfitting Risk: The paper acknowledges that even with leave-one-out cross-validation, there's still a risk of overfitting. They recommend using a true test set as an additional safeguard.
  • Future Work: The authors mention they are exploring applications of these algorithms to industrial design and manufacturing processes, indicating the broader applicability of their stochastic optimization techniques. They are also working on improving the evaluation of progress during optimization.

Summary updated

BibTeX
@inproceedings{dubrawski1997memory,
  author = {Artur Dubrawski and Jeff Schneider},
  title = {{Memory Based Stochastic Optimization for Validation and Tuning of Function Approximators}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {1997},
  url = {https://openreview.net/forum?id=DHaU73r31r},
}
Figure