Experienced Optimization with Reusable Directional Model for Hyper-Parameter Search

Yi-Qi Hu, Yang Yu, Zhi-Hua ZhouIJCAI 2018

Abstract

Hyper-parameter selection is a crucial yet difficult issue in machine learning. For this problem, derivative-free optimization has being playing an irreplaceable role. However, derivative-free optimization commonly requires a lot of hyper-parameter samples, while each sample could have a high cost for hyper-parameter selection due to the costly evaluation of a learning model. To tackle this issue, in this paper, we propose an experienced optimization approach, i.e., learning how to optimize better from a set of historical optimization processes. From the historical optimization processes on previous datasets, a directional model is trained to predict the direction of the next good hyper-parameter. The directional model is then reused to guide the optimization in learning new datasets. We implement this mechanism within a state-of-the-art derivative-free optimization method SRacos, and conduct experiments on learning the hyper-parameters of heterogeneous ensembles and neural network architectures. Experimental results verify that the proposed approach can significantly improve the learning accuracy within a limited hyper-parameter sample budget.

Introduction

Hyper-parameter optimization (HPO) is often described as the "black art" of machine learning. Selecting the optimal learning rate, layer count, or ensemble weights is critical for model performance, yet finding these values is computationally expensive. Each evaluation typically requires training a full model, often using $k$-fold cross-validation, which consumes significant time and resources.

Derivative-free optimization (DFO) methods are frequently employed for HPO because they do not require gradient information. However, these methods are notoriously "sample-hungry," often requiring hundreds or thousands of trials to converge. A major inefficiency in current HPO tools is the "cold start" problem: every new task is treated in isolation, ignoring the valuable "experience" gained from previous optimization runs on similar datasets or models.

The Directional Model Approach

The core innovation of this work is the Directional Model ($\Phi$). Rather than attempting to predict the exact performance of a hyper-parameter—a value that rarely transfers well between different datasets—the authors propose learning the direction of improvement.

Experience Collection and Representation

During optimization on "source" tasks, the algorithm logs "context matrices" ($\kappa$). These matrices represent the local search state by centralizing surrounding samples relative to the current best-known solution ($x_i - x^+$). This centralization makes the model agnostic to the absolute coordinates of the search space, allowing it to generalize across different tasks.

Learning to Navigate

A Multi-Layer Perceptron (MLP) is trained as a binary classifier using this historical data. Given a current state and a proposed next step, the model predicts whether the step will improve the objective function.

The EXPSRACOS Algorithm

This directional model is integrated into SRACOS, a state-of-the-art classification-based DFO. In a new task, EXPSRACOS "pre-samples" a batch of candidates and uses the directional model as a filter. It only performs the expensive real-world evaluation on the candidate the model is most confident will yield an improvement.

Experimental Evaluation

The researchers evaluated EXPSRACOS across three domains:

  1. Synthetic Benchmarks: The Ackley function was used to test the algorithm's ability to handle shifts in the global optimum's location and varying search space dimensions.
  2. AutoML (Ensemble Learning): 34 classification datasets from the UCI repository were used (24 source, 10 target) to optimize ensemble weights.
  3. Neural Network Architecture Search (NAS): Optimizing a 19-parameter CNN architecture, using MNIST as the source task and SVHN as the target.

Key Results

EXPSRACOS demonstrated superior efficiency and accuracy across all benchmarks. On the Ackley function, it converged significantly faster than standard SRACOS, SMAC, TPE, and CMAES.

Convergence on Ackley function ($x_i^* = 0.2, n = 20$) showing EXP-SRACOS outperforming baselines.

The method's robustness was further verified by varying the dimensionality ($n$) and the shift of the optimum ($x_i^*$). As shown in Figure 4, EXPSRACOS maintains its advantage as the complexity of the search space increases.

Convergence curves on the Ackley function for $x_i^* = 0.04$ with dimensions $n=10$ (left) and $n=20$ (right).

In the AutoML ensemble task, EXPSRACOS achieved the lowest average rank across 10 target datasets, outperforming the baseline SRACOS on 9 out of 10 tasks. For NAS on the SVHN dataset, it achieved a generalization error of 5.67%, surpassing both standard SRACOS (6.64%) and a hand-crafted baseline (6.34%) within a strict budget of 50 samples.

Discussion and Future Work

The success of EXPSRACOS suggests that search directions are highly reusable across tasks. By acting as a high-quality filter, the directional model saves massive amounts of computation.

However, some limitations remain. The current framework requires a consistent search space between source and target tasks. Additionally, the performance boost is most pronounced when the optimal solutions of the tasks are not excessively distant in the search space. This work represents a significant step toward the "Learnware" vision—creating reusable, evolvable software capable of leveraging past experience to solve new problems efficiently.

Summary updated

BibTeX
@inproceedings{hu2018experienced,
  author = {Yi-Qi Hu and Yang Yu and Zhi-Hua Zhou},
  title = {{Experienced Optimization with Reusable Directional Model for Hyper-Parameter Search}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2018},
  url = {https://openreview.net/forum?id=dK9Uxf7lSl-},
}
Figure