Transfer NAS with Meta-learned Bayesian Surrogates

Gresa Shala, Thomas Elsken, Frank Hutter, Josif Grabocka

Introduction

Neural Architecture Search (NAS) aims to automate the design of deep learning models, but traditional approaches typically fall into two extremes. Black-box methods (like Bayesian Optimization or Evolutionary algorithms) are reliable and robust, but they are computationally expensive because they start every search from scratch. Conversely, One-shot methods are incredibly fast but often brittle, failing to generalize across different datasets or search spaces.

A major gap in these automated systems is that they ignore prior knowledge. Human engineers do not design architectures from scratch; they use intuition gained from previous projects (e.g., "this type of residual block worked well on ImageNet, so it might work on CIFAR"). TNAS (Transferable Neural Architecture Search) mimics this human strategy by meta-learning a "surrogate model" that understands how different architectures perform across a wide variety of datasets. By transferring knowledge from previous tasks, TNAS achieves state-of-the-art accuracy across diverse computer vision benchmarks while matching the blazing speed of one-shot NAS methods.

Methodology

The core innovation of TNAS is a Deep-Kernel Gaussian Process (GP). Standard GPs use hand-crafted kernels to measure similarity between points. TNAS replaces this with a learned neural network pipeline that jointly evaluates both the architecture and the target dataset.

Overview of the TNAS pipeline with joint architecture and dataset encoding.

The pipeline consists of three main components:

  • Architecture Encoder ($\psi$): A Graph Neural Network (GNN) processes the directed acyclic graph (DAG) structure of a neural network to create a latent embedding.
  • Dataset Encoder ($\phi$): A Set-Transformer takes raw data points from a dataset and extracts "meta-features" to describe the task's unique characteristics.
  • Joint Encoding ($\xi$): A Multi-Layer Perceptron (MLP) merges the architecture and dataset embeddings into a single, unified vector.

The entire system is trained using the REPTILE meta-learning algorithm across a massive "meta-dataset" of previous NAS evaluations. This allows the model to learn a kernel that accurately represents the joint space of architectures and datasets. During the search on a new task, TNAS uses Bayesian Optimization (BO). It selects the most promising architectures based on its meta-learned prior and updates its belief based on the actual results it observes on the new task.

Experimental Setup

To train the surrogate, the authors utilized 4,230 meta-training datasets derived from ImageNet. The method was then evaluated on six popular computer vision benchmarks: CIFAR-10, CIFAR-100, SVHN, Aircraft, Oxford IIT Pets, and MNIST. Experiments were conducted across two distinct search spaces: the tabular NAS-Bench-201 and the large-scale MobileNetV3 space.

Key Insights

  • Context is King: An architecture's performance is not absolute; it is relative to the dataset. By conditioning the search on dataset meta-features, TNAS can distinguish between what makes a "good" model for simple digits (MNIST) versus complex natural images (CIFAR).
  • Probabilistic vs. Deterministic: Previous transfer methods (like MetaD2A) acted as deterministic predictors. TNAS is probabilistic, meaning it quantifies its own uncertainty. This allows it to naturally balance exploration (trying unknown designs) and exploitation (refining known good designs).
  • Test-Time Adaptation: Unlike "frozen" predictors, TNAS actively learns from the evaluations it performs during the search. If the meta-prior is slightly off for a specific new task, the Bayesian framework corrects it as new data comes in.

Key Results

TNAS demonstrates exceptional performance across multiple dimensions:

  • Consistency and Robustness: TNAS consistently ranked as the top performer across all six benchmarks. While other methods might win on one dataset but fail on another, TNAS showed remarkable ranking stability.
Ranking stability of TNAS compared to baselines across six benchmarks.
  • Efficiency: TNAS achieved these top-tier results in the same order of magnitude of time as one-shot methods. For example, on CIFAR-10, it matched or exceeded the accuracy of methods like DrNAS and MetaD2A while maintaining a highly competitive search budget.
  • Ablation Success: The authors proved that removing either the GNN (architecture encoder) or the Set-Transformer (dataset encoder) significantly degraded performance, validating the necessity of their complex joint encoding design.

Limitations and Future Work

While highly effective, TNAS has a few limitations. First, the authors acknowledge that an architecture's performance is heavily tied to training hyperparameters (learning rate, weight decay, etc.), whereas TNAS currently focuses primarily on the graph structure. Second, the method relies on having a rich history of architecture evaluations to meta-learn from. Applying this to entirely new, exotic search spaces might require generating substantial new meta-data.

Future work will likely focus on extending the surrogate to model the three-way interaction between architecture embeddings, dataset meta-features, and training hyperparameter configurations, paving the way for a truly end-to-end automated deep learning pipeline.

Summary updated

BibTeX
@inproceedings{shala2023transfer,
  author = {Gresa Shala and Thomas Elsken and Frank Hutter and Josif Grabocka},
  title = {{Transfer NAS with Meta-learned Bayesian Surrogates}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=paGvsrl4Ntr},
}
Figure