Skip to main content
QUICK REVIEW

[Paper Review] Bayesian Optimization for Machine Learning : A Practical Guidebook

Ian Dewancker, Michael McCourt|arXiv (Cornell University)|Dec 14, 2016
Machine Learning and AlgorithmsComputer Science11 references67 citations
TL;DR

This guidebook demonstrates how Bayesian optimization accelerates hyperparameter tuning in machine learning workflows using real-world examples with scikit-learn and Apache Spark. It shows significant performance gains—up to 40.7% lower RMSE—by efficiently optimizing complex models like logistic regression and matrix factorization via sequential, probabilistic search over hyperparameters, outperforming random search and default configurations.

ABSTRACT

The engineering of machine learning systems is still a nascent field; relying on a seemingly daunting collection of quickly evolving tools and best practices. It is our hope that this guidebook will serve as a useful resource for machine learning practitioners looking to take advantage of Bayesian optimization techniques. We outline four example machine learning problems that can be solved using open source machine learning libraries, and highlight the benefits of using Bayesian optimization in the context of these common machine learning applications.

Motivation & Objective

  • To provide a practical guide for machine learning practitioners on applying Bayesian optimization to real-world hyperparameter tuning problems.
  • To demonstrate the effectiveness of Bayesian optimization in improving model generalization and performance across diverse ML workloads.
  • To showcase open-source implementations of Bayesian optimization on common ML tasks using scikit-learn and Apache Spark.
  • To compare Bayesian optimization against random search and default configurations in terms of predictive performance and efficiency.

Proposed method

  • Bayesian optimization is applied to tune hyperparameters in logistic regression pipelines using cross-validation as the objective metric.
  • The objective function f(λ) is defined as the mean 5-fold cross-validation accuracy over multiple data splits.
  • Tunable parameters include feature representation (n-gram ranges, document frequency filters) and logistic regression regularization (log_min_df, C, loss, penalty).
  • For collaborative filtering, alternating least squares (ALS) in Apache Spark is tuned using RMSE on a validation set as the objective function.
  • The method uses a probabilistic surrogate model (Gaussian process) to guide sequential hyperparameter selection, minimizing costly evaluations.
  • SigOpt’s Bayesian optimization engine is used to search over continuous, integer, and categorical hyperparameters in parallelized, distributed environments.

Experimental results

Research questions

  • RQ1Can Bayesian optimization significantly improve model performance on text classification tasks compared to random search or default hyperparameters?
  • RQ2How effective is Bayesian optimization in tuning complex, high-dimensional hyperparameter spaces in logistic regression pipelines?
  • RQ3To what extent can Bayesian optimization reduce RMSE in collaborative filtering using ALS on large-scale recommendation systems?
  • RQ4How does Bayesian optimization compare to random search in terms of convergence speed and final model performance?

Key findings

  • Bayesian optimization reduced holdout set RMSE to 0.7864 in the ALS-based recommendation system, representing a 40.7% improvement over the default MLlib ALS configuration (1.3263).
  • The tuned model achieved lower RMSE than random search (0.7901), demonstrating superior convergence and optimization efficiency.
  • Bayesian optimization effectively balanced model complexity and generalization by optimizing regularization (λ), rank (k), and iteration count (T) in ALS.
  • The method achieved high performance with fewer evaluations than random search, making it suitable for expensive ML pipelines.
  • The guidebook demonstrates that Bayesian optimization can be effectively applied to both small-scale (scikit-learn) and large-scale (Spark) ML systems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.