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

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

Abstract

Neural Architecture Search (NAS) has shown great potential in finding better neural network designs. Sample-based NAS is the most reliable approach but is computationally costly. Conversely, one-shot approaches using weight-sharing are fast but often unreliable due to interference between vastly different architectures. We propose BONAS (Bayesian Optimized Neural Architecture Search), a framework that combines the reliability of sample-based methods with the efficiency of weight-sharing. By using a Graph Convolutional Network (GCN) as a surrogate model for Bayesian Optimization, BONAS selects batches of related candidate models. These models are then trained simultaneously using localized weight-sharing. Extensive experiments show that BONAS achieves state-of-the-art results with significantly reduced computational costs.

Introduction

The automation of neural network design through Neural Architecture Search (NAS) has led to significant breakthroughs in deep learning. However, researchers typically face a trade-off between two paradigms. Sample-based NAS treats architectures as black boxes, training each from scratch to ensure reliability, but often requires thousands of GPU days. One-shot NAS utilizes a massive "super-network" to share weights across all possible architectures, offering extreme speed at the cost of accuracy due to "noisy" performance estimates.

BONAS (Bayesian Optimized Neural Architecture Search) bridges this gap. It introduces a hybrid approach that maintains the reliability of sampling while leveraging the speed of weight-sharing through a localized strategy.

The BONAS Framework

The BONAS framework operates as an iterative loop consisting of two primary phases: the Search Phase and the Query Phase.

The BONAS framework overview, illustrating the iterative cycle between the Search Phase (Bayesian Optimization) and the Query Phase (Localized Weight-Sharing).

In the Search Phase, the algorithm uses Bayesian Optimization to navigate the vast search space and identify the most promising candidates. In the Query Phase, these candidates are evaluated efficiently using a localized weight-sharing mechanism.

Search Phase: GCN-based Bayesian Optimization

A critical innovation in BONAS is the use of a Graph Convolutional Network (GCN) as the surrogate model for Bayesian Optimization. Traditional NAS methods often represent architectures as fixed-length strings for MLPs or sequences for LSTMs. However, neural networks are inherently directed graphs.

Structural encoding of a neural cell into an adjacency matrix and feature matrix for processing by the Graph Convolutional Network surrogate model.

By representing architectures as graphs (as shown in the figure above), the GCN can naturally capture the topological relationships between nodes and operations. This leads to significantly better performance predictions. To handle the uncertainty required for Bayesian Optimization, the authors developed Bayesian Sigmoid Regression (BSR), which provides both a predicted accuracy and an uncertainty measure. This allows the use of an Upper Confidence Bound (UCB) strategy to balance exploration and exploitation.

Furthermore, the surrogate model is trained using an exponentially weighted "focal loss." This forces the GCN to prioritize accuracy for high-performing architectures, ensuring the search focuses on the "winners" rather than wasting capacity on low-quality designs.

Query Phase: Localized Weight-Sharing

Unlike standard one-shot methods that share weights across the entire search space, BONAS employs localized weight-sharing. In each iteration, the top-$k$ (e.g., 100) most promising architectures identified in the Search Phase are merged into a "mini" super-network.

Weights are shared only among these related, high-performing candidates. This approach mitigates the interference problems found in global super-networks because the models being compared are structurally similar. To ensure fairness, weights are re-initialized at the start of each query phase, and each candidate is trained for the same number of iterations.

Experimental Results and Benchmarks

The effectiveness of BONAS was verified across multiple benchmarks:

  • NAS-Bench-101 & 201: BONAS showed superior correlation between predicted and actual performance. The GCN predictor achieved a correlation of 0.841 on NAS-Bench-101, outperforming MLP (0.830) and LSTM (0.741) baselines.
  • LSTM-12K: The authors introduced this new benchmark of 12,000 LSTM models to test NAS in the domain of natural language processing.
  • CIFAR-10: BONAS-D achieved a top-1 error rate of 2.43%.
  • Efficiency: The search on CIFAR-10 was completed in just 10 GPU days, a massive improvement over the 2,000+ days required by early sample-based methods like NASNet.

Conclusion

BONAS successfully addresses the limitations of both sample-based and one-shot NAS. By combining graph-based Bayesian Optimization with localized weight-sharing, it provides a fast, reliable, and scalable solution for automated architecture design. Its ability to achieve state-of-the-art performance with a fraction of the traditional computational budget makes it a powerful tool for the research community.

Summary updated

BibTeX
@inproceedings{han2020bridging,
  author = {Shi Han 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