Skip to main content
QUICK REVIEW

[Paper Review] Hyp-RL : Hyperparameter Optimization by Reinforcement Learning

Hadi S. Jomaa, Josif Grabocka|arXiv (Cornell University)|Jun 27, 2019
Machine Learning and Data ClassificationComputer Science37 references34 citations
TL;DR

This paper formulates hyperparameter tuning as a reinforcement learning problem and introduces Hyp-RL, a Q-learning–based policy with an LSTM that navigates the hyperparameter space to maximize future rewards, showing gains over state-of-the-art baselines on a 50-dataset meta-dataset.

ABSTRACT

Hyperparameter tuning is an omnipresent problem in machine learning as it is an integral aspect of obtaining the state-of-the-art performance for any model. Most often, hyperparameters are optimized just by training a model on a grid of possible hyperparameter values and taking the one that performs best on a validation sample (grid search). More recently, methods have been introduced that build a so-called surrogate model that predicts the validation loss for a specific hyperparameter setting, model and dataset and then sequentially select the next hyperparameter to test, based on a heuristic function of the expected value and the uncertainty of the surrogate model called acquisition function (sequential model-based Bayesian optimization, SMBO). In this paper we model the hyperparameter optimization problem as a sequential decision problem, which hyperparameter to test next, and address it with reinforcement learning. This way our model does not have to rely on a heuristic acquisition function like SMBO, but can learn which hyperparameters to test next based on the subsequent reduction in validation loss they will eventually lead to, either because they yield good models themselves or because they allow the hyperparameter selection policy to build a better surrogate model that is able to choose better hyperparameters later on. Experiments on a large battery of 50 data sets demonstrate that our method outperforms the state-of-the-art approaches for hyperparameter learning.

Motivation & Objective

  • Motivate hyperparameter tuning as a scalable, robust automatic process for high-dimensional models.
  • Propose a reinforcement learning framework to replace acquisition functions in traditional Bayesian optimization for hyperparameters.
  • Demonstrate transfer learning potential by training across multiple datasets and evaluating on unseen data sets.
  • Show empirical evidence that Hyp-RL improves final model performance compared to baselines on a large meta-dataset.

Proposed method

  • Formulate hyperparameter optimization as a Markov Decision Process with states including dataset meta-features and history of tested configurations and rewards.
  • Use a Q-learning–based policy (Hyp-RL) with an LSTM to model the action-value function and navigate the hyperparameter surface.
  • Define actions as choosing the next hyperparameter configuration from a grid; reward equals the negative validation loss of the resulting model.
  • Incorporate metafeatures to condition the initial LSTM state (h0 = W0 * s_static) to adapt to the dataset.
  • Train with experience replay and a target network, and terminate episodes when budget exhausted or repeated action occurs.
  • Construct a meta-dataset (nnMeta) from 50 random UCI classification datasets to study cross-dataset transfer and evaluation.

Experimental results

Research questions

  • RQ1Can a reinforcement learning policy effectively navigate high-dimensional hyperparameter spaces to improve validation loss?
  • RQ2Does conditioning on dataset metafeatures enable transfer across datasets in hyperparameter optimization?
  • RQ3How does Hyp-RL compare to Bayesian optimization baselines and meta-learning surrogates on a diverse set of datasets?
  • RQ4What are the computational characteristics and scalability of the Hyp-RL approach?

Key findings

  • Hyp-RL consistently outperforms baselines that do not transfer knowledge across datasets.
  • Hyp-RL is competitive with a meta-learned surrogate (F-MLP) while offering faster inference since it does not re-fit a surrogate after every configuration.
  • The policy exhibits learning progress with increased episode rewards and better navigation of the hyperparameter response surfaces over time.
  • Conditioning the policy on dataset metafeatures enables better initial configurations and rapid improvement on unseen data.
  • Training the policy requires substantial upfront compute (about 24 GPU-hours to train for 10 million frames) but online inference is immediate for selecting configurations.

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.