NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Bayesian Optimization for Selecting Efficient Machine Learning Models

Lidan Wang, Franck Dernoncourt, Trung BuiarXiv 2020

Abstract

Hyper-parameter optimization (HPO) is critical for achieving state-of-the-art performance in machine learning, yet standard Bayesian Optimization (BO) techniques often prioritize accuracy at the expense of training efficiency. This paper introduces a unified BO framework designed to jointly optimize models for both predictive performance and computational cost. By treating training set size as a tunable hyper-parameter and utilizing a weighted acquisition function, the proposed method enables practitioners to explore the tradeoff between model accuracy and training time. Experimental results on SVM and LSTM models demonstrate significant reductions in training time with minimal impact on accuracy.

Introduction

In production environments, hyper-parameter optimization is often the "secret sauce" behind successful deployments. However, standard tools typically treat training time as an afterthought. A model that offers a marginal 0.5% increase in accuracy but requires 10x the training time may be impractical due to hardware constraints or the necessity for frequent retraining.

Most HPO methods focus exclusively on "intrinsic" parameters, such as learning rates or layer sizes, while ignoring "extrinsic" factors like training set size—often the most significant lever for controlling training speed. This research addresses this gap by providing a principled approach to finding the "sweet spot" where a model is both effective and efficient.

Methodology

The proposed framework integrates a multi-objective approach into the standard BO loop through several key components:

  1. The Tradeoff Metric ($T_\alpha$): A new objective function is defined as $T_\alpha(\lambda) = L(\lambda) - \alpha \cdot \sigma(\lambda)$, where $L(\lambda)$ represents accuracy, $\sigma(\lambda)$ is the normalized training time, and $\alpha$ is a user-defined parameter controlling the priority of speed versus accuracy.
  2. Dual Gaussian Processes: The framework maintains two surrogate models: $V_L$ for the accuracy response surface and $V_\sigma$ for the training time response surface.
  3. Joint Acquisition Function: Candidates are selected by combining the Expected Improvement (EI) of both models, targeting points likely to increase accuracy while decreasing training time.
  4. Enriched Search Space: Crucially, the authors include training set size (e.g., 20% to 100% of the data) as a hyper-parameter. This allows the optimizer to identify instances where a subset of data yields sufficient performance much faster.
Enriched hyper-parameter search space including training set size.

Experimental Evaluation

The framework was evaluated using two distinct tasks:

  • Yelp Rating Prediction: A sentiment analysis task using a Support Vector Machine (SVM) to predict star ratings from text reviews.
  • InsuranceQA: A question-answering task utilizing a Deep Learning BiLSTM model to capture similarity between queries and answers.

Key Results and Insights

The proposed algorithm consistently identified models that reached near-baseline accuracy in a fraction of the time. In the InsuranceQA task, the algorithm achieved 94% of the baseline accuracy while utilizing only 55% of the baseline training time. Similarly, for the Yelp task, it reached 96% of the baseline accuracy using 57% of the training time.

Accuracy vs. training time for the InsuranceQA task, showing the tradeoff optimization curve.

A primary insight from this work is that the marginal gain in accuracy from the final portions of a dataset often does not justify the resulting jump in training time. By varying the $\alpha$ parameter, the framework generates a Pareto frontier, allowing developers to choose high $\alpha$ values for rapid prototyping and lower values for final production models.

Limitations and Future Work

While effective, the framework relies on wall-clock time, which can be noisy depending on hardware load. Future work may involve developing more robust analytical models for training time. Additionally, the current acquisition function assumes independence between accuracy and time; explicitly modeling the correlation between model complexity, performance, and speed could further refine the search process. Finally, while tested on SVMs and LSTMs, the scalability of this approach to massive-scale transformer models remains an area for further investigation.

Summary updated

BibTeX
@misc{wang2020bayesian,
  author = {Lidan Wang and Franck Dernoncourt and Trung Bui},
  title = {{Bayesian Optimization for Selecting Efficient Machine Learning Models}},
  year = {2020},
  eprint = {2008.00386},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2008.00386},
}
Figure