ExperienceThinking: Hyperparameter Optimization with Budget Constraints

Chunnan Wang, Hongzhi Wang, Chang Zhou, Hanxiao Chen, Jianzhong Li, Hong Gao

Abstract

Machine learning algorithms are very sensitive to the hyperparameters, and their evaluations are generally expensive. Users desperately need intelligent methods to quickly optimize hyperparameter settings according to known evaluation information, and thus reduce computational cost and promote optimization efficiency. Motivated by this, we propose ExperienceThinking algorithm to quickly find the best possible hyperparameter configuration of machine learning algorithms within a few configuration evaluations. ExperienceThinking design two novel methods, which intelligently infer optimal configurations from two aspects: search space pruning and knowledge utilization respectively. Two methods complement each other and solve the constrained hyperparameter optimization problems effectively. To demonstrate the benefit of ExperienceThinking, we compare it with 3 classical hyperparameter optimization algorithms with a small number of configuration evaluations. The experimental results present that our proposed algorithm provides superior results and achieve better performance.

Introduction

Hyperparameter Optimization (HPO) is the critical process of finding the optimal settings for machine learning models, such as learning rates, tree depths, or neural network architectures. While established techniques like Bayesian Optimization (BO) are powerful, they often require hundreds of evaluations to converge. In many real-world applications, evaluating a single configuration is prohibitively expensive, potentially taking hours or days. This paper introduces the Constrained Hyperparameter Optimization (CHPO) problem: how to find the optimal configuration when the budget allows for only a handful of trials.

Methodology

The proposed ExperienceThinking (ET) framework integrates two complementary strategies to navigate the search space efficiently: Human Experience (HE) and Parameter Analysis (PA).

1. Human Experience (HE)

The HE module is a knowledge-driven approach that treats historical evaluations as "experience." It utilizes two distinct neural networks to mimic human-like reasoning and refinement:

  • NNAdjust (NNA): This network learns which adjustments to a configuration are likely to improve performance. It takes the current configuration and a target performance improvement as input to suggest a new configuration.
  • NNVerify (NNB): This network acts as a critic, predicting the actual performance change if a suggested adjustment is implemented.
Architectures of NNAdjust (a) and NNVerify (b) within the Human Experience module.

By iterating between these two networks, the system can reliably infer optimal configurations from limited data, effectively "thinking" through potential changes before evaluating them.

2. Parameter Analysis (PA)

The PA module is a pruning-driven approach designed to handle high-dimensional search spaces. It employs a Random Forest classifier to rank hyperparameters by their importance relative to model performance. By identifying and "pruning" unimportant parameters, the algorithm focuses its search on "KeyPars" (Key Parameters), significantly simplifying the optimization task and avoiding the curse of dimensionality.

Experimental Evaluation

The researchers evaluated ExperienceThinking across 10 diverse datasets, including 8 UCI classification datasets (e.g., zoo, breast cancer, banknote) and 2 image classification datasets (CIFAR-10 and Fashion-MNIST). The tasks included tuning XGBoost, Multi-Layer Perceptron (MLP) architectures, and Convolutional Neural Network (CNN) architectures.

Key Results

ExperienceThinking was compared against Grid Search (GS), Random Search (RS), and Bayesian Optimization (BO) with budgets of $N=128$ and $N=256$ evaluations.

  • Superior Performance: In XGBoost tuning, ET achieved an average Performance Increase Rate (PIRate) of 8.24% at $N=256$, outperforming RS (6.87%) and BO (6.81%).
  • Architecture Search: ET achieved the highest accuracy scores on both CIFAR-10 and Fashion-MNIST for CNN architecture search compared to all baselines.
  • Computational Efficiency: ET is significantly faster than BO in terms of "analysis time." For high-dimensional spaces (e.g., 60 hyperparameters), BO's analysis took over 5 days, whereas ET completed the same task in minutes.

Discussion and Conclusion

The success of ExperienceThinking lies in the synergy between its HE and PA modules. HE excels when hyperparameters are decisive, while PA manages complexity by removing redundancy. This mimicry of human expert behavior—leveraging past experience and focusing on critical factors—allows ET to outperform traditional methods in low-budget scenarios. Future work will focus on mitigating initial sampling bias and further reducing the computational cost of model evaluations through techniques like early stopping or low-fidelity approximations.

Summary updated

BibTeX
@article{wang2021experiencethinking,
  author = {Chunnan Wang and Hongzhi Wang and Chang Zhou and Hanxiao Chen and Jianzhong Li and Hong Gao},
  title = {{ExperienceThinking: Hyperparameter Optimization with Budget Constraints}},
  journal = {Knowledge-Based Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=JG4IBn12sG4},
}
Figure