Skip to main content
QUICK REVIEW

[Paper Review] A Comparative study of Hyper-Parameter Optimization Tools

Shashank Shekhar, Adesh Bansode|arXiv (Cornell University)|Jan 17, 2022
Metaheuristic Optimization Algorithms ResearchComputer Science6 citations
TL;DR

This paper evaluates four hyper-parameter optimization (HPO) libraries—Optuna, HyperOpt, Optunity, and SMAC—on two benchmarks: a combined algorithm selection and hyper-parameter optimization (CASH) problem and the NeurIPS black-box optimization challenge. Optuna outperforms others in the CASH benchmark, while HyperOpt achieves the best results for MLP architecture tuning, demonstrating superior performance and efficiency in neural network applications.

ABSTRACT

Most of the machine learning models have associated hyper-parameters along with their parameters. While the algorithm gives the solution for parameters, its utility for model performance is highly dependent on the choice of hyperparameters. For a robust performance of a model, it is necessary to find out the right hyper-parameter combination. Hyper-parameter optimization (HPO) is a systematic process that helps in finding the right values for them. The conventional methods for this purpose are grid search and random search and both methods create issues in industrial-scale applications. Hence a set of strategies have been recently proposed based on Bayesian optimization and evolutionary algorithm principles that help in runtime issues in a production environment and robust performance. In this paper, we compare the performance of four python libraries, namely Optuna, Hyper-opt, Optunity, and sequential model-based algorithm configuration (SMAC) that has been proposed for hyper-parameter optimization. The performance of these tools is tested using two benchmarks. The first one is to solve a combined algorithm selection and hyper-parameter optimization (CASH) problem The second one is the NeurIPS black-box optimization challenge in which a multilayer perception (MLP) architecture has to be chosen from a set of related architecture constraints and hyper-parameters. The benchmarking is done with six real-world datasets. From the experiments, we found that Optuna has better performance for CASH problem and HyperOpt for MLP problem.

Motivation & Objective

  • To evaluate and compare the performance of four prominent HPO libraries—Optuna, HyperOpt, Optunity, and SMAC—on real-world machine learning problems.
  • To assess the trade-off between optimization performance (measured by model accuracy) and runtime efficiency across different HPO strategies.
  • To benchmark these tools on two distinct challenges: the CASH problem involving 12 classifiers and 58 hyper-parameters, and the NeurIPS black-box optimization challenge for MLP architecture search.
  • To provide empirical guidance on tool selection based on problem type, particularly distinguishing between tabular ML and deep learning workloads.

Proposed method

  • The study employs Bayesian optimization (Optuna, HyperOpt, SMAC) and evolutionary algorithms (Optunity) for hyper-parameter search.
  • For the CASH benchmark, 12 classifiers were tuned across 58 hyper-parameters using six real-world datasets, with accuracy and runtime as evaluation metrics.
  • The NeurIPS challenge benchmark involved optimizing a multilayer perceptron (MLP) with 9 hyper-parameters, including hidden layer size, learning rate, batch size, and regularization terms.
  • Search spaces were defined with mixed types: continuous (log, logit), integer (linear), and real-valued parameters with specified ranges.
  • Each tool was run with multiple configurations (e.g., TPE, random search, PSO) to compare performance across optimization strategies.
  • Experiments were conducted using standard machine learning pipelines, and results were aggregated across datasets to assess generalization of tool performance.
Figure 1: A demonstration of Bayesian optimization on a 1-dimensional maximization problem. The figures show a Gaussian process (GP) approximation of the objective function over four iterations of sampled values of the objective function. The figure also shows the acquisition function in the lower s
Figure 1: A demonstration of Bayesian optimization on a 1-dimensional maximization problem. The figures show a Gaussian process (GP) approximation of the objective function over four iterations of sampled values of the objective function. The figure also shows the acquisition function in the lower s

Experimental results

Research questions

  • RQ1Which HPO library achieves the highest model performance (accuracy) across diverse real-world datasets in the CASH benchmark?
  • RQ2How do the runtime characteristics of Optuna, HyperOpt, Optunity, and SMAC compare when optimizing a wide range of machine learning models?
  • RQ3Does the performance of HPO tools vary significantly between tabular data problems (CASH) and deep learning architecture search (MLP tuning)?
  • RQ4How stable are the optimization trajectories of each tool across iterations, and does this affect convergence speed or final performance?
  • RQ5Can evolutionary or nature-inspired algorithms (e.g., Optunity’s PSO) outperform Bayesian optimization-based methods in specific problem settings?

Key findings

  • Optuna achieved the highest average performance score across all datasets in the CASH benchmark, with a maximum F1-score of 0.937144 on the nomao dataset.
  • HyperOpt demonstrated the fastest runtime in the MLP benchmark, completing the search in 72 seconds on the dna dataset, outperforming Optuna (415 seconds) and SMAC (388 seconds).
  • For the MLP problem, HyperOpt’s TPE configuration achieved the highest score of 0.950322 on the dna dataset, surpassing Optuna (0.947453) and SMAC (0.950322).
  • SMAC achieved competitive performance on several datasets but had significantly higher runtime than Optuna and HyperOpt, with 12,316 seconds on the nomao dataset.
  • Optunity’s PSO configuration showed the lowest performance across all benchmarks, with a score of 0.700295 on the semeion dataset, indicating limited effectiveness for these tasks.
  • Optuna exhibited the most stable optimization trajectory across iterations, while Optunity and HyperOpt showed oscillatory behavior, suggesting less consistent convergence.
Figure 2: Plot of f1-score v/s iteration for benchmark-I. The corresponding algorithm and dataset are marked as a legend in each plot.
Figure 2: Plot of f1-score v/s iteration for benchmark-I. The corresponding algorithm and dataset are marked as a legend in each plot.

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.