Bayesian Meta-network Architecture Learning.

Albert Shaw, Bo Dai, Weiyang Liu, Le Song

TL;DR

The authors introduce BASE (Bayesian Meta Architecture SEarch), a framework that treats neural architecture search as a meta-learning problem. By learning a task-agnostic "prior" across many different datasets, BASE can find high-performance architectures for new tasks in less than an hour—a massive speedup compared to the hundreds of GPU days required by traditional methods.

What Problem Does This Paper Address?

Neural Architecture Search (NAS) has revolutionized deep learning by automating the design of high-performance models. However, it has a major "efficiency tax": searching for an optimal structure often requires thousands of GPU hours. Furthermore, most NAS methods are "one-and-done"—if you have a new task or a different hardware constraint, you usually have to start the expensive search process all over again.

While some researchers try to transfer architectures found on one dataset (like CIFAR-10) to another (like ImageNet), this is often sub-optimal. The authors argue that the best architecture for a task depends heavily on the specific data and resolution. The challenge, then, is to create a system that can leverage knowledge from previous searches to adapt to new tasks almost instantly.

Methods

The researchers propose a Bayesian view of architecture search. Instead of looking for a single "best" network, they aim to learn a meta-network that represents a distribution over possible architectures ($z$) and their weights ($\theta$).

Key components of the BASE framework include:

  • Bayesian Formulation: They define a probabilistic model where architecture choices and weights are latent variables. The goal is to maximize the evidence lower bound (ELBO) across a distribution of tasks.
  • Optimization Embedding: To make the system learnable, they use an "inner-loop" gradient descent (similar to MAML) to update task-specific architectures and weights. This allows the meta-network to learn how to adapt quickly.
  • Differentiable Search: They use the Gumbel-Softmax trick to relax discrete architecture choices into a continuous space, allowing the entire system to be optimized using standard backpropagation.
  • Stochastic Super-Network: The search space is represented as a large stochastic network containing all possible paths. During adaptation, the meta-network "prunes" this space to find the best path for the specific task.
Figure 1: Illustrations of Meta Architecture Search. We train a shared distribution for the meta- network and a sample from the distribution will quick adapt to new task.

Datasets

To train a meta-network that truly generalizes, the authors created a massive multi-task environment:

  • Downsampled ImageNet: They sampled 10-class tasks from the 1000-class ImageNet dataset at three different resolutions: 32x32, 64x64, and 224x224. This created a pool of roughly $2.6 \times 10^{23}$ possible tasks.
  • Evaluation Datasets: The pre-trained meta-network was tested on Full ImageNet, CIFAR-10, and SVHN to measure adaptation speed and accuracy.
  • Few-shot Learning: They also evaluated on Mini-ImageNet to show the framework's flexibility in low-data regimes.

Key Insights and Ideas

  • The Power of the Prior: Training on a wide variety of tasks (different resolutions and classes) allows the model to learn a robust "architectural prior." This prior is so strong that the model can find competitive architectures for unseen datasets like CIFAR-10 in minutes.
  • Co-optimization is Crucial: A key finding is that you must adapt both the architecture parameters and the weights simultaneously. As shown in Figure 4, freezing the architecture parameters during adaptation significantly degrades performance.
  • Clustering by Task: Using PCA to visualize the learned distributions (Figure 3), the authors found that the meta-network naturally clusters similar tasks together. For instance, tasks with similar input resolutions have similar optimal architecture distributions.
Figure 3: Visualization of the PCA for (θ, z), i.e., weight and architecture, sampled from the posterior distribution of the meta-network.

Key Results

BASE achieves state-of-the-art results while being orders of magnitude faster than traditional NAS:

  • ImageNet: Achieved 25.7% top-1 error with an adaptation time of less than one hour. For comparison, methods like AmoebaNet take 3,150 GPU days to achieve similar results.
  • CIFAR-10: Found a model with 2.83% error in just 0.05 GPU days of adaptation.
  • Efficiency: As shown in Figure 2, BASE occupies a unique "sweet spot" in the design space—offering high accuracy with a fraction of the search time required by Reinforcement Learning or Genetic algorithms.
Figure 2: Top-1 Imagenet Accuracy vs Search Time in GPU Days of different NAS methods on Imagenet.

Limitations and Future Work

While BASE is a significant step forward, the authors note a few areas for improvement:

  • Search Space Constraints: The current search space is cell-based (following the DARTS/NASNet convention), which might limit the discovery of entirely new macro-architectures.
  • Meta-Training Cost: While adaptation is fast, the initial meta-training still requires about 8 GPU days. This is an upfront cost that only pays off if you plan to search across many different tasks.
  • Future Directions: The authors suggest extending this to "direct fast-adaptation," where the meta-network could potentially output both the optimal architecture and the final weights in a single step, bypassing the need for extensive fine-tuning.

Summary updated

BibTeX
@inproceedings{shaw2019bayesian,
  author = {Albert Shaw and Bo Dai and Weiyang Liu and Le Song},
  title = {{Bayesian Meta-network Architecture Learning.}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
}
Figure