Introduction
Hyperparameter optimization (HPO) is a critical component of modern machine learning, often determining the success or failure of a model. While automated tools like Bayesian Optimization (BO) are highly effective at identifying optimal configurations, they typically function as "black boxes." Practitioners are left with a single set of parameters but little understanding of the underlying loss landscape or the sensitivity of specific variables. This work introduces a novel approach to "human-centered HPO" by utilizing symbolic regression to transform complex HPO metadata into interpretable, closed-form mathematical equations.
Methodology
The proposed framework bridges the gap between automated optimization and human intuition by combining Bayesian Optimization with Symbolic Regression (SR).
The process follows three primary stages:
- HPO Execution: A standard BO process is run to generate metadata consisting of evaluated configurations and their performance.
- Addressing Sampling Bias (BO-GP): A key challenge in fitting symbolic models to HPO data is sampling bias; BO naturally focuses on high-performance regions, leaving other areas sparse. To mitigate this, the authors fit the symbolic model to the surrogate model (a Gaussian Process) rather than the raw data points. This allows for uniform sampling across the entire search space.
- Symbolic Regression: Using genetic programming, the system evolves mathematical expressions. A parsimony coefficient is employed to penalize excessive complexity, ensuring the resulting formulas remain readable.
Experimental Setup
The method was evaluated using HPOBench, encompassing a diverse range of machine learning models (Logistic Regression, SVM, Random Forests, XGBoost, and Multi-Layer Perceptrons) across eight OpenML datasets. This broad evaluation ensures the robustness of the symbolic explanations across different mathematical terrains.
Key Insights
- Functional Relationships: Unlike simple feature importance scores, symbolic regression provides explicit functional relationships (e.g., exponential or power-law dependencies), offering deeper physical intuition into hyperparameter behavior.
- Surrogate as Teacher: The BO surrogate model acts as an effective "teacher," smoothing noise and interpolating gaps in the raw data, which leads to more stable and accurate symbolic formulas.
- Interpretability Trade-off: By applying the elbow heuristic, users can select formulas that balance accuracy with simplicity, avoiding overly complex "spaghetti" equations.
Results and Discussion
The SR (BO-GP) approach demonstrated high faithfulness to the original black-box surrogate models, often achieving comparable Root Mean Square Error (RMSE).
For instance, a neural network's performance on the kc1 dataset was accurately captured by the simple expression:
$$s(\alpha, \text{batch size}) = 0.078 \cdot \exp((\alpha/\text{batch size})^{1/4})$$
Furthermore, symbolic models significantly outperformed standard linear regression baselines, highlighting the non-linear nature of hyperparameter interactions.
Limitations and Future Directions
While promising, the current approach is limited to numerical hyperparameters and does not yet support categorical variables (e.g., activation function types). Future work will explore multi-objective optimization for the accuracy-simplicity trade-off and extending the framework to multi-fidelity HPO settings, where performance is evaluated across varying data subsets.
Summary updated