Bridging the Gap between Sample-based and One-shot Neural Architecture Search with BONAS

Han Shi, Renjie Pi, Hang Xu, Zhenguo Li, James T. Kwok, Tong Zhang

TL;DR

BONAS (Bayesian Optimized Neural Architecture Search) combines the reliability of sample-based NAS with the efficiency of one-shot methods. By using a Graph Convolutional Network (GCN) as a performance predictor and applying weight-sharing only to a small batch of high-potential candidates, it achieves state-of-the-art results on vision and NLP tasks with significantly reduced computational costs.

What Problem Does This Paper Address?

Neural Architecture Search (NAS) aims to automate the design of deep learning models, but it faces a strict "reliability vs. efficiency" trade-off:

  1. Sample-based methods (like Reinforcement Learning or Evolutionary Algorithms) are highly reliable because they evaluate architectures by training them from scratch. However, they are incredibly expensive, often requiring thousands of GPU days.
  2. One-shot methods (like DARTS or ENAS) are fast because they use "weight-sharing." They train a single "super-network" containing all possible architectures. The problem? Forcing one set of weights to work for millions of vastly different sub-networks makes the performance estimates noisy and less reliable.

The authors of BONAS seek to bridge this gap: they want the speed of weight-sharing without the reliability issues caused by sharing weights across an entire, diverse search space.

The BONAS Framework

BONAS Framework

BONAS introduces a hybrid framework that iterates through a search phase and a query phase:

  • GCN-based Surrogate Model: Instead of treating a neural network as a simple string or vector, BONAS treats it as a graph. It uses a Graph Convolutional Network (GCN) to extract structural embeddings. To handle the whole graph, they add a "global node" connected to all other nodes.
GCN Architecture Encoding
  • Bayesian Sigmoid Regression (BSR): To guide the search, they use Bayesian Optimization (BO). While most BO uses Gaussian Processes (which are computationally slow), BONAS uses BSR. This model predicts the mean and variance of a candidate's accuracy, allowing the algorithm to balance "exploitation" (picking models that look good) and "exploration" (picking models we are uncertain about).
  • Weighted Loss Function: They train the predictor using an exponentially weighted loss that prioritizes accuracy for high-performing models. After all, we don't care if the predictor is wrong about a bad model; we only need it to be right about the winners.
  • Local Weight-Sharing: This is the core innovation. In each iteration, BONAS selects the top $k$ (e.g., 100) candidate architectures. Instead of training them individually, it merges only these $k$ models into a mini super-network. Because these models are "related" (all have high predicted scores), weight-sharing is much more accurate than in traditional one-shot methods.

Datasets and Evaluation

The authors evaluated BONAS across several benchmarks:

  • NAS-Bench-101 & NAS-Bench-201: Standard tabular benchmarks for convolutional architectures.
  • LSTM-12K: A newly introduced benchmark by the authors, containing 12,000 LSTM models trained on the Penn TreeBank dataset, specifically for evaluating NAS in the NLP domain.
  • CIFAR-10 & ImageNet: Used for open-domain search to test how well the discovered architectures generalize to large-scale real-world tasks.

Key Insights and Results

  • The Power of "Relatedness": Weight-sharing fails when the architectures are too different. By only sharing weights among the "top-k" candidates found by Bayesian Optimization, BONAS ensures the weights are optimized for a specific, high-performing region of the search space.
  • Graphs > Paths: Previous work used "path encoding," which can grow exponentially with the number of nodes. By using a GCN, BONAS handles variable-sized graphs naturally and captures structural information more effectively.
  • Superior Accuracy: On CIFAR-10, BONAS achieved a 2.43% top-1 error, outperforming popular methods like DARTS (2.76%) and PNASNet (3.41%).
  • Efficiency: BONAS found these high-performing models in just 10 GPU days, whereas traditional sample-based methods like NASNet-A took 2,000 GPU days to reach a similar error rate.
  • Transferability: Architectures found on CIFAR-10 transferred well to ImageNet, achieving a 24.6% top-1 error, which is competitive with or better than state-of-the-art hand-crafted and automated designs.

Limitations and Future Work

  • Hyperparameter Sensitivity: The choice of $k$ (the number of models in the mini super-network) and the number of epochs for weight-sharing training are crucial. The paper uses $k=100$, but the optimal value might vary by search space.
  • Computational Floor: While much faster than pure sample-based NAS, 10 GPU days is still more expensive than the fastest "proxyless" one-shot methods (which can take < 1 day).
  • Future Directions: The authors suggest that the GCN + BSR surrogate could be applied to other optimization problems beyond NAS, and the local weight-sharing strategy could be further refined to handle even larger batches of candidates.

Summary updated

BibTeX
@inproceedings{shi2020bridging,
  author = {Han Shi and Renjie Pi and Hang Xu and Zhenguo Li and James T. Kwok and Tong Zhang},
  title = {{Bridging the Gap between Sample-based and One-shot Neural Architecture Search with BONAS}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=n_8A1SFtM6},
}
Figure