Skip to main content
QUICK REVIEW

[Paper Review] HyperNOMAD: Hyperparameter optimization of deep neural networks using mesh adaptive direct search

Dounia Lakhmiri, Sébastien Le Digabel|arXiv (Cornell University)|Jul 3, 2019
Machine Learning and Data ClassificationComputer Science55 references10 citations
TL;DR

HyperNOMAD introduces a derivative-free hyperparameter optimization framework for deep neural networks using the Mesh Adaptive Direct Search (MADS) algorithm within the NOMAD software. It simultaneously tunes architectural and optimization hyperparameters—including categorical variables—achieving state-of-the-art test accuracy of 99.61% on MNIST and 92.54% on CIFAR-10, outperforming Bayesian optimization and random search in challenging search spaces with infeasible configurations.

ABSTRACT

The performance of deep neural networks is highly sensitive to the choice of the hyperparameters that define the structure of the network and the learning process. When facing a new application, tuning a deep neural network is a tedious and time consuming process that is often described as a "dark art". This explains the necessity of automating the calibration of these hyperparameters. Derivative-free optimization is a field that develops methods designed to optimize time consuming functions without relying on derivatives. This work introduces the HyperNOMAD package, an extension of the NOMAD software that applies the MADS algorithm [7] to simultaneously tune the hyperparameters responsible for both the architecture and the learning process of a deep neural network (DNN), and that allows for an important flexibility in the exploration of the search space by taking advantage of categorical variables. This new approach is tested on the MNIST and CIFAR-10 data sets and achieves results comparable to the current state of the art.

Motivation & Objective

  • To automate the hyperparameter tuning process in deep neural networks, which is often described as a 'dark art' due to its complexity and time intensity.
  • To address the challenge of optimizing mixed-integer and categorical hyperparameters in deep learning, including network architecture and optimizer settings.
  • To develop a flexible, derivative-free optimization framework that can explore complex, non-convex search spaces without relying on gradient information.
  • To improve upon existing hyperparameter optimization methods by ensuring feasibility and convergence in high-dimensional, combinatorial search spaces.

Proposed method

  • HyperNOMAD extends the NOMAD software to apply the Mesh Adaptive Direct Search (MADS) algorithm for derivative-free optimization of deep neural network hyperparameters.
  • The framework treats the entire training and evaluation pipeline as a single black-box function, encapsulating network construction, training, validation, and testing.
  • It supports mixed-variable optimization, including real, integer, and categorical hyperparameters, enabling exploration of diverse network architectures and learning strategies.
  • The MADS algorithm uses a mesh refinement strategy to iteratively improve solutions by generating and evaluating trial points in a structured, direct search manner.
  • The method ensures feasibility by constraining search steps to avoid infeasible configurations, such as those causing zero-sized feature maps in convolutional layers.
  • HyperNOMAD integrates with PyTorch and Caffe, allowing flexible deployment and comparison with other hyperparameter optimization tools.

Experimental results

Research questions

  • RQ1Can a derivative-free optimization framework effectively tune both the architecture and training hyperparameters of deep neural networks simultaneously?
  • RQ2How does HyperNOMAD perform compared to Bayesian optimization and random search in terms of convergence speed and final model accuracy?
  • RQ3To what extent can categorical hyperparameters be leveraged to explore diverse neural network architectures within a single optimization run?
  • RQ4How does the MADS algorithm maintain feasibility during search in high-dimensional, combinatorial hyperparameter spaces with constraints?
  • RQ5Can HyperNOMAD outperform existing methods in challenging scenarios where random search and Bayesian optimization frequently generate infeasible configurations?

Key findings

  • On the MNIST dataset, HyperNOMAD achieved a test accuracy of 99.61% after 100 black-box evaluations, surpassing TPE (99.17%) and random search, which failed to improve from the initial point.
  • On CIFAR-10 with a default starting point, HyperNOMAD reached a test accuracy of 77.6%, significantly outperforming TPE (64.12%) and random search, which did not improve from the initial 28.3% accuracy.
  • When initialized from a VGG-13 architecture on CIFAR-10, HyperNOMAD achieved a final test accuracy of 92.54%, while both TPE and random search failed to improve and generated only 50 feasible configurations out of 100 evaluations.
  • HyperNOMAD demonstrated superior feasibility control, with all 50 evaluated points remaining valid, unlike TPE and random search, which frequently sampled infeasible architectures due to simultaneous changes in multiple hyperparameters.
  • The framework consistently outperformed all baselines on both datasets, showing robustness and efficiency in complex, mixed-variable hyperparameter search spaces.
  • The results indicate that MADS-based direct search is highly effective for hyperparameter optimization in deep learning, especially in scenarios with high constraint complexity and non-differentiable objectives.

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.