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

Meta-learning Hyperparameter Performance Prediction with Neural Processes

Ying Wei, Peilin Zhao, Junzhou HuangICML 2021

Introduction

Hyperparameter optimization (HPO) is a critical but computationally expensive step in deploying machine learning models. Traditional methods often start from scratch for every new task, ignoring a wealth of potentially useful historical data. To address this inefficiency, researchers have introduced Transfer Neural Processes (TNP), a novel meta-learning framework that dramatically accelerates HPO. By simultaneously transferring historical observations, model parameters, and initial configurations from past tasks, TNP achieves state-of-the-art performance using up to ten times fewer trials than traditional methods.

The Bottleneck in Traditional HPO

The standard approach to finding optimal hyperparameters—such as learning rate or batch size—is Sequential Model-Based Optimization (SMBO). SMBO relies on a surrogate model, traditionally a Gaussian Process (GP), to predict how a given configuration will perform and to select the next configuration to test.

However, traditional GP-based surrogates face two major limitations:

  1. Scalability: GPs scale cubically with the number of observations. As more data is collected, the surrogate becomes computationally sluggish.
  2. Fragmented Knowledge Transfer: When tackling a new dataset, most systems either start completely from scratch or transfer only a single piece of prior knowledge (e.g., past observations, model weights, or starting points). The authors argue that to achieve true "trial-efficiency" and mimic human expertise, an HPO system must transfer all three elements simultaneously.

Introducing Transfer Neural Processes (TNP)

To overcome these hurdles, the authors propose TNP, which leverages Neural Processes to combine the probabilistic uncertainty estimation of GPs with the linear scalability and trainability of neural networks.

The TNP architecture is built on three core components:

  • The Encoder: Learns a latent representation (embedding) for every observed hyperparameter-performance pair.
  • Dataset-Aware Attention: Instead of treating all historical data equally, this mechanism calculates the similarity between past datasets and the current task. It aggregates historical observations based on this similarity, allowing the model to filter out irrelevant noise and focus on related tasks. Crucially, TNP learns this similarity directly from performance data, bypassing the need for hand-crafted, error-prone "meta-features" (like the number of rows or classes).
  • The Decoder: Takes the aggregated history and a new candidate configuration to predict both the expected performance and its uncertainty (variance).

Meta-Learning Strategy

To ensure TNP generalizes across different datasets, the authors employ a meta-learning strategy inspired by Model-Agnostic Meta-Learning (MAML). The model is pre-trained to find a "global" set of parameters that can be rapidly fine-tuned for any new dataset using just a few gradient steps. Additionally, the system meta-learns a set of "warm-start" initial configurations that are statistically likely to perform well across diverse data distributions.

Experimental Setup and Key Results

The research team evaluated TNP on a massive scale, testing it on 100 diverse supervised classification datasets from OpenML (optimizing Logistic Regression and Fully Connected Networks) and three classic computer vision benchmarks: MNIST, SVHN, and CIFAR-10 (optimizing Convolutional Neural Networks).

The experiments revealed several key insights:

  • 10x Speedup: On the OpenML datasets, TNP reached maximum accuracy in roughly 10 trials. In contrast, competing methods often required up to 100 trials to achieve the same performance.
  • Consistent Superiority: TNP maintained the highest average rank across all 100 datasets, outperforming nine baseline methods, including SMAC, BOHAMIANN, and various Transfer GP approaches.
  • The Necessity of Joint Transfer: Ablation studies demonstrated that transferring only one type of knowledge (e.g., just initializations) is insufficient. Only when observations, parameters, and initializations are transferred together does the surrogate model accurately map the ground-truth response function.
  • Low Computational Overhead: Because TNP scales linearly with the number of observations, its overhead time—the time required to select the next configuration—remained low and stable even as the number of historical datasets grew. GP-based transfer methods, by comparison, suffered from exploding computational costs.

Limitations and Future Directions

While TNP excels at comparing hyperparameter performances across tasks, the authors note that it does not yet fully account for the underlying feature distribution of the datasets themselves (e.g., the structural differences between image pixel data and tabular data).

Future work will focus on developing methods to compare datasets in heterogeneous feature spaces. This advancement would allow the model to understand that two datasets are similar not just because they share optimal hyperparameters, but because their underlying data structures are fundamentally related.

Summary updated

BibTeX
@inproceedings{wei2021meta,
  author = {Ying Wei and Peilin Zhao and Junzhou Huang},
  title = {{Meta-learning Hyperparameter Performance Prediction with Neural Processes}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=O1S17PTwRPC},
}
Figure