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

Transferable Neural Processes for Hyperparameter Optimization

Ying Wei, Peilin Zhao, Huaxiu Yao, Junzhou HuangarXiv 2019

Introduction

Hyperparameter optimization (HPO) is a critical yet computationally expensive phase in the machine learning workflow. Evaluating a single configuration on large-scale datasets can take hours or even days. Traditional Sequential Model-Based Optimization (SMBO) typically employs Gaussian Processes (GPs) as surrogate models. However, these models often start from scratch for every new task, failing to leverage knowledge from previous HPO trials. While existing transfer learning methods attempt to address this, they often rely on hand-crafted statistical meta-features and suffer from poor scalability due to the cubic complexity of GPs.

This paper introduces Transferable Neural Processes (TNP), an end-to-end HPO framework designed to accelerate the search process by effectively transferring knowledge from historical datasets. By integrating Neural Processes with a novel dataset-aware attention mechanism, TNP eliminates the need for manual meta-features and achieves state-of-the-art performance with significantly fewer trials.

Methodology: Transferable Neural Processes

The core of TNP is the replacement of traditional GP surrogates with Neural Processes (NPs). NPs offer the uncertainty estimation capabilities of GPs while maintaining the linear scalability and training efficiency of neural networks. The architecture, illustrated in Figure 1, incorporates three primary innovations for cross-dataset knowledge transfer.

The TNP architecture showing meta-training and meta-test phases, featuring dataset-aware attention and meta-learned parameters.

Dataset-Aware Attention

A significant bottleneck in automated machine learning (AutoML) is the reliance on manual meta-features (e.g., dataset size, number of classes) to determine dataset similarity. TNP bypasses this by using a multi-head attention mechanism. It learns to compute similarities between the target dataset and historical datasets directly from the embedded representations of past HPO observations. This "dataset-aware" approach allows the model to selectively borrow information from relevant tasks while mitigating "negative transfer" from unrelated ones.

Meta-Learning for Parameter Transfer

To further enhance the surrogate model's adaptability, TNP utilizes Model-Agnostic Meta-Learning (MAML). This process learns a global initialization for the NP's parameters, effectively creating a transferable kernel. When faced with a new target dataset, the model can be rapidly fine-tuned with just a few gradient steps, providing a highly accurate surrogate from the very first trials.

Optimized Initial Configurations

Standard HPO often begins with random or fixed initial configurations. TNP instead learns a diverse set of "well-generalized" initial hyperparameters based on historical performance across various datasets. This data-driven initialization provides the search process with a significant head start.

Experimental Setup

The authors evaluated TNP against 11 baseline methods, including Random Search, standard GPs, SMAC, and advanced transfer-learning HPO methods like MTGP and RGPE. Testing was conducted on two major benchmarks:

  1. OpenML: 100 supervised classification datasets used to tune a Logistic Regression model (4-dimensional hyperparameter space).
  2. Computer Vision (CV): CIFAR-10, MNIST, and SVHN datasets used to tune a 3-layer Convolutional Neural Network (5-dimensional hyperparameter space).

Results and Discussion

TNP demonstrated superior performance across all benchmarks. On the OpenML datasets, TNP consistently achieved the lowest average rank and the fastest convergence toward maximum accuracy over 100 trials, as shown in Figure 2.

Performance comparison on 100 OpenML datasets. TNP (red) outperforms 11 baselines in both average rank and distance to the maximum accuracy.

In computer vision tasks, the efficiency gains were even more pronounced. TNP identified high-performing configurations within just 10 trials—and occasionally within the first three—representing an order of magnitude reduction in computational cost compared to methods starting from scratch.

Scalability and Limitations

The linear scalability of Neural Processes allows TNP to ingest massive amounts of historical data that would be computationally prohibitive for GP-based methods. However, ablation studies indicated a potential "diminishing returns" effect: when the number of historical datasets ($M$) becomes very large (e.g., $M=50$), performance can slightly degrade. This suggests that as the volume of historical data grows, the model may become more sensitive to noise from highly dissimilar datasets.

Conclusion

Transferable Neural Processes represent a significant step forward in making HPO more efficient and automated. By moving away from manual meta-features and leveraging the scalability of Neural Processes, TNP provides a robust framework for cross-dataset knowledge transfer. Future work aims to incorporate "freeze-thaw" mechanisms to dynamically manage computational budgets, further optimizing the search for the best machine learning models.

Summary updated

BibTeX
@misc{wei2019transferable,
  author = {Ying Wei and Peilin Zhao and Huaxiu Yao and Junzhou Huang},
  title = {{Transferable Neural Processes for Hyperparameter Optimization}},
  year = {2019},
  eprint = {1909.03209},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.03209},
}
Figure