NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Hyperparameter Optimization with Differentiable Metafeatures

Hadi Samer Jomaa, Lars Schmidt-Thieme, Josif Grabocka · OpenReview

Introduction

Hyperparameter optimization (HPO) is a critical yet computationally expensive step in machine learning. While Sequential Model-Based Optimization (SMBO) techniques like Bayesian Optimization are effective, they typically suffer from a "cold-start" problem, requiring several initial evaluations on a new dataset before providing useful recommendations. Transfer learning can mitigate this by leveraging performance data from previous datasets, often using hand-crafted "metafeatures" to measure dataset similarity. However, these engineered features are often rigid and not optimized for the specific task of predicting hyperparameter responses.

Problem Statement

Traditional HPO transfer learning relies on fixed dataset statistics (e.g., number of instances, classes). These features fail to capture the underlying data distribution and are not end-to-end differentiable with the surrogate model. This paper addresses the gap by proposing a method to learn dataset representations—metafeatures—directly from raw data, optimized for the HPO task.

Methodology: Differentiable Metafeature-Based Surrogate (DMFBS)

The authors introduce the Differentiable Metafeature-Based Surrogate (DMFBS), which learns to extract metafeatures and predict hyperparameter performance simultaneously.

The DMFBS architecture and multi-task learning framework.

The framework consists of several key innovations:

  1. Differentiable Metafeature Extractor (MFE): Utilizing a deep-sets architecture (Dataset2Vec), the model processes raw tabular data into a fixed-size vector representation.
  2. Multi-Task Learning Objective: To handle the small scale of HPO metadata, a three-part loss function is employed:
  3. Regression Loss ($f^{SUR}$): Direct prediction of validation loss.
  4. Manifold Regularization ($f^{MR}$): Ensures similar learned metafeatures lead to similar predicted hyperparameter responses.
  5. Dataset Batch Identification (DBI): An auxiliary self-supervised task where the model identifies if two data batches originate from the same dataset, providing abundant training signals for the MFE.
  6. Meta-Learned Initialization: Using first-order meta-learning (e.g., Reptile), the network is initialized at a point that allows rapid adaptation to new, unseen datasets.

Experimental Setup

The approach was evaluated using 120 tabular datasets from the UCI repository. The authors generated three new meta-datasets—Layout, Regularization, and Optimization—by recording neural network performance across various search spaces. Unlike previous benchmarks, these meta-datasets include the raw source data, enabling the training of learned metafeature extractors.

Results

DMFBS demonstrates state-of-the-art performance, outperforming existing transfer-learning HPO baselines by an average of 10% in normalized regret.

Comparison of true hyperparameter response surfaces versus DMFBS predictions.

As shown in the figure above, the learned surrogate accurately reconstructs complex hyperparameter response surfaces. Notably, DMFBS excels in "zero-shot" scenarios, providing superior recommendations even before any configurations are tested on a target dataset. Ablation studies confirmed that the auxiliary DBI task and manifold regularization are essential for robust performance, and that learned metafeatures significantly outperform hand-crafted alternatives.

Discussion and Conclusion

While DMFBS is highly effective, it currently lacks uncertainty quantification, relying on a deterministic neural network and greedy search. This prevents the use of standard acquisition functions like Expected Improvement. Future work involves integrating Bayesian deep learning to provide principled uncertainty estimates. Despite this, the end-to-end learning of metafeatures represents a significant advancement in making HPO more efficient and dataset-aware.

Summary updated

BibTeX
@misc{jomaa2021hyperparameter,
  author = {Hadi Samer Jomaa and Lars Schmidt-Thieme and Josif Grabocka},
  title = {{Hyperparameter Optimization with Differentiable Metafeatures}},
  year = {2021},
  eprint = {2102.03776},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.03776},
}
Figure