[Paper Review] Transferable Neural Processes for Hyperparameter Optimization
This paper proposes Transferable Neural Processes (TNP), an end-to-end hyperparameter optimization (HPO) method that accelerates Bayesian optimization by transferring knowledge from historical HPO trials on related datasets. TNP uses a dataset-aware attention mechanism to dynamically weigh similar datasets, learns transferable model parameters and initial hyperparameter configurations, and achieves state-of-the-art performance in up to one order of magnitude fewer trials than baselines.
Automated machine learning aims to automate the whole process of machine learning, including model configuration. In this paper, we focus on automated hyperparameter optimization (HPO) based on sequential model-based optimization (SMBO). Though conventional SMBO algorithms work well when abundant HPO trials are available, they are far from satisfactory in practical applications where a trial on a huge dataset may be so costly that an optimal hyperparameter configuration is expected to return in as few trials as possible. Observing that human experts draw on their expertise in a machine learning model by trying configurations that once performed well on other datasets, we are inspired to speed up HPO by transferring knowledge from historical HPO trials on other datasets. We propose an end-to-end and efficient HPO algorithm named as Transfer Neural Processes (TNP), which achieves transfer learning by incorporating trials on other datasets, initializing the model with well-generalized parameters, and learning an initial set of hyperparameters to evaluate. Experiments on extensive OpenML datasets and three computer vision datasets show that the proposed model can achieve state-of-the-art performance in at least one order of magnitude less trials.
Motivation & Objective
- To address the challenge of hyperparameter optimization (HPO) with extremely limited trials, especially on costly, large-scale datasets.
- To overcome the inefficiency of conventional SMBO methods that require abundant trials to converge.
- To enable effective transfer learning in HPO by leveraging historical trials from related datasets without manual meta-features.
- To develop a scalable, end-to-end HPO framework that combines transferable model initialization, adaptive similarity modeling, and optimized initial configurations.
- To reduce negative transfer by dynamically assessing dataset similarity through learned representations rather than hand-crafted meta-features.
Proposed method
- TNP employs Neural Processes (NPs) as a surrogate model to define distributions over functions, combining the expressivity of neural networks with the uncertainty quantification of Gaussian Processes.
- The model uses an encoder to embed each hyperparameter-accuracy observation into a latent representation.
- A dataset-aware cross-attention mechanism computes similarity between the target dataset and historical datasets using their aggregated observation representations.
- The latent distribution from the attention mechanism is used as input to a decoder that predicts performance and uncertainty for new hyperparameter configurations.
- The model is trained end-to-end with a meta-learning strategy (MAML-inspired) to learn a transferable initialization for the surrogate model parameters.
- TNP initializes SMBO with a well-generalized set of hyperparameter configurations derived from the learned transferable prior, accelerating convergence.
Experimental results
Research questions
- RQ1Can transfer learning from historical HPO trials on related datasets significantly reduce the number of trials needed to find optimal hyperparameters?
- RQ2How can dataset similarity be modeled effectively without relying on hand-crafted meta-features?
- RQ3Can a neural process surrogate model with implicit kernel learning generalize across diverse datasets and scale efficiently?
- RQ4Does combining transfer of observations, model parameters, and initial configurations yield superior HPO performance compared to single-source transfer?
- RQ5How does the model mitigate negative transfer when transferring from dissimilar datasets?
Key findings
- TNP achieves state-of-the-art performance on OpenML datasets and computer vision benchmarks such as CIFAR-10, SVHN, and MNIST, requiring up to one order of magnitude fewer trials than baselines.
- On the CIFAR-10 dataset, TNP achieves high classification accuracy within just 10 trials, outperforming even GP-based methods and random search.
- The ablation study confirms that all components—dataset-aware attention, transferable initialization, and generalized initial configurations—significantly improve HPO performance.
- The model effectively avoids negative transfer by learning similarity vectors between datasets, with a similarity score of 0.5439 to a related dataset (breast-w) and 0.1174 to a dissimilar one (mfeat-zernike).
- TNP maintains strong performance regardless of the base method used to generate historical observations, demonstrating robustness to noisy or suboptimal prior data.
- When the number of historical datasets exceeds 50, performance slightly degrades, suggesting a trade-off between knowledge diversity and noise accumulation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.