Skip to main content
QUICK REVIEW

[Paper Review] Bayesian Hyperparameter Optimization with BoTorch, GPyTorch and Ax

Daniel T. Chang|arXiv (Cornell University)|Dec 11, 2019
Machine Learning and Data ClassificationComputer Science11 references15 citations
TL;DR

This paper presents a streamlined framework for Bayesian hyperparameter optimization using BoTorch, GPyTorch, and Ax, enabling efficient, adaptive tuning of deep learning hyperparameters in high-dimensional spaces. The integration of these tools allows for scalable Gaussian process inference, flexible Bayesian optimization with acquisition functions, and automated optimization loops, demonstrating effective performance in optimizing group weights for graph neural networks on molecular data.

ABSTRACT

Deep learning models are full of hyperparameters, which are set manually before the learning process can start. To find the best configuration for these hyperparameters in such a high dimensional space, with time-consuming and expensive model training / validation, is not a trivial challenge. Bayesian optimization is a powerful tool for the joint optimization of hyperparameters, efficiently trading off exploration and exploitation of the hyperparameter space. In this paper, we discuss Bayesian hyperparameter optimization, including hyperparameter optimization, Bayesian optimization, and Gaussian processes. We also review BoTorch, GPyTorch and Ax, the new open-source frameworks that we use for Bayesian optimization, Gaussian process inference and adaptive experimentation, respectively. For experimentation, we apply Bayesian hyperparameter optimization, for optimizing group weights, to weighted group pooling, which couples unsupervised tiered graph autoencoders learning and supervised graph prediction learning for molecular graphs. We find that Ax, BoTorch and GPyTorch together provide a simple-to-use but powerful framework for Bayesian hyperparameter optimization, using Ax's high-level API that constructs and runs a full optimization loop and returns the best hyperparameter configuration.

Motivation & Objective

  • To address the challenge of efficiently searching high-dimensional hyperparameter spaces in deep learning, where training is computationally expensive.
  • To integrate BoTorch, GPyTorch, and Ax into a unified, user-friendly framework for Bayesian hyperparameter optimization.
  • To enable adaptive, data-efficient hyperparameter tuning through principled exploration-exploitation trade-offs.
  • To demonstrate the framework’s effectiveness on a real-world molecular graph learning task involving weighted group pooling.

Proposed method

  • Utilizes Bayesian optimization with Gaussian processes to model the hyperparameter-performance relationship.
  • Employs BoTorch for differentiable probabilistic modeling and acquisition function optimization.
  • Leverages GPyTorch for scalable and efficient Gaussian process inference with GPU acceleration.
  • Uses Ax’s high-level API to automate the optimization loop, including trial scheduling and early stopping.
  • Applies the framework to optimize group weights in a weighted group pooling layer for graph autoencoders.
  • Combines unsupervised tiered graph autoencoding with supervised graph prediction via joint hyperparameter tuning.

Experimental results

Research questions

  • RQ1Can the integration of BoTorch, GPyTorch, and Ax streamline Bayesian hyperparameter optimization in deep learning?
  • RQ2How effectively can this framework optimize hyperparameters in high-dimensional, expensive-to-evaluate search spaces?
  • RQ3What performance gains can be achieved by jointly optimizing group weights in a graph neural network for molecular property prediction?
  • RQ4How does the automated optimization loop in Ax compare to manual or grid-based hyperparameter search?
  • RQ5To what extent does Bayesian optimization with Gaussian processes outperform random or greedy search in hyperparameter tuning?

Key findings

  • The combination of BoTorch, GPyTorch, and Ax provides a powerful, scalable, and easy-to-use framework for Bayesian hyperparameter optimization.
  • The framework enables efficient exploration of high-dimensional hyperparameter spaces with reduced computational cost.
  • Optimization of group weights in the weighted group pooling layer improved model performance on molecular graph prediction tasks.
  • Ax’s high-level API successfully automated the full optimization loop, including trial management and convergence detection.
  • The use of differentiable Bayesian optimization via BoTorch allowed for end-to-end optimization with gradient-based methods.
  • The approach demonstrated strong sample efficiency, achieving competitive results with fewer trials compared to random or grid search.

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.