Abstract
Machine learning algorithms are highly sensitive to hyperparameters, and their evaluations are generally expensive. Users need intelligent methods to quickly optimize hyperparameter settings according to known evaluation information, reducing computational cost and promoting optimization efficiency. We propose the ExperienceThinking algorithm to quickly find the best possible hyperparameter configuration within a few evaluations. ExperienceThinking designs two novel methods: search space pruning and knowledge utilization. These methods complement each other to solve constrained hyperparameter optimization (CHPO) problems effectively. Experimental results show that ExperienceThinking provides superior results and achieves better performance compared to three classical HPO algorithms.
Introduction
Hyperparameter Optimization (HPO) is essential for peak machine learning performance, but it is notoriously expensive. Standard techniques like Grid Search or Bayesian Optimization (BO) often require hundreds or thousands of trial evaluations to converge. In real-world scenarios—where training a single large model can take days—users face a Constrained HPO (CHPO) problem: finding the best configuration within a very small, finite budget (e.g., fewer than 200 trials).
Existing methods struggle in this regime. Grid and Random Search suffer from the "curse of dimensionality" and ignore historical data. Bayesian Optimization, while effective, scales poorly with the number of hyperparameters and can become computationally prohibitive as the search space grows.
Methodology: The ExperienceThinking Framework
ExperienceThinking treats HPO as a dual-process system inspired by human reasoning, alternating between two core modules:
1. Human Experience (The Knowledge Module)
This module utilizes two specialized neural networks to infer optimal settings through a collaborative process:
- NNAdjust (NNA): Learns the relationship between a current configuration and the adjustment needed to improve performance.
- NNVerify (NNB): Acts as a critic, predicting the expected performance increase if a specific adjustment is made.
By comparing the outputs of these two "brains," the algorithm selects candidates where both networks agree on a high probability of success.
2. Parameter Analysis (The Pruning Module)
To combat high-dimensional noise, this module uses a Random Forest to rank hyperparameter importance. It identifies "KeyPars"—the few parameters that actually drive performance—and prunes the rest of the search space. This allows the search to focus on the most impactful variables rather than getting lost in redundant settings.
Experimental Evaluation
The researchers evaluated ExperienceThinking across 10 diverse datasets, including 8 classification datasets from the UCI Repository (e.g., zoo, ecoli, breast cancer, banknote, cbsonar) and image classification benchmarks (CIFAR-10 and Fashion MNIST). These were used to optimize models such as XGBoost, Multi-Layer Perceptrons (MLP), and Convolutional Neural Networks (CNN).
Key Results
- Superior Performance: In XGBoost optimization, ExperienceThinking achieved an average Performance Increase Rate (PIRate) of 8.24%, significantly higher than Random Search (6.87%) and Bayesian Optimization (6.81%).
- Computational Efficiency: On the cbsonar dataset (60 hyperparameters), BO took over 5 days to suggest configurations, while ExperienceThinking provided superior results in just 24 minutes.
- Scalability: ExperienceThinking maintained high performance even as the number of hyperparameters increased, whereas the effectiveness of Grid and Random Search dropped sharply.
Discussion and Conclusion
ExperienceThinking demonstrates that combining knowledge-driven neural networks with pruning-driven random forests creates a robust system for HPO on a tight budget. The "Human Experience" module excels when most hyperparameters are decisive, while the "Parameter Analysis" module handles cluttered spaces with redundant parameters.
While the algorithm is efficient, it can be sensitive to the quality of initial random samples. Future work will focus on reducing the cost of individual model evaluations through multi-fidelity optimization to further accelerate the process.
Summary updated