Efficient Sample-based Neural Architecture Search with Learnable Predictor

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

Abstract

Neural Architecture Search (NAS) has shown great potential in finding better neural network designs than human experts. Sample-based NAS is a fundamental approach that explores a search space and evaluates promising architectures. However, improving sampling efficiency remains a challenge. We propose BONAS (Bayesian Optimized Neural Architecture Search), a sample-based NAS framework that combines Bayesian Optimization with a Graph Convolutional Network (GCN) predictor. By treating architectures as graphs and utilizing a weighted loss function focused on high-performance models, BONAS achieves significant efficiency gains. Extensive experiments show BONAS is up to 123.7x more efficient than Random Search and 7.5x more efficient than previous state-of-the-art methods like LaNAS on the NAS-Bench-101 dataset.

Introduction

Designing deep learning architectures manually is often a slow, trial-and-error process. While Neural Architecture Search (NAS) aims to automate this, it faces a significant trade-off. Sample-based NAS is highly accurate but computationally expensive because it requires training many individual models. Conversely, One-shot NAS is fast but often produces sub-optimal results due to noisy approximations in its "super-network" approach.

BONAS addresses three critical gaps in current sample-based NAS methods:

  1. Inefficient Sampling: Most methods lack an intelligent mechanism to choose the next architecture to test.
  2. Structural Blindness: Traditional predictors (like MLPs or LSTMs) treat architectures as text sequences, ignoring the inherent graph structure of neural networks.
  3. Scaling Issues: Standard Bayesian Optimization using Gaussian Processes scales poorly with data and struggles with the complex "distance" between network graphs.

The BONAS Framework

BONAS treats NAS as a Bayesian Optimization problem, integrating a learnable predictor to guide the search process efficiently.

The BONAS framework overview, illustrating the iterative loop between the learnable sampler, embedding extractor, and Bayesian Optimization predictor.

Key Components

  • GCN Predictor: Instead of standard regressors, BONAS uses a Graph Convolutional Network to extract embeddings. Since neural networks are directed graphs, GCNs naturally capture the relationships between nodes and operations better than sequence models.
  • Bayesian Linear Regression (BLR): To ensure scalability, the heavy Gaussian Process is replaced with BLR on top of GCN embeddings. This allows the system to estimate both predicted accuracy and the uncertainty of that prediction.
  • Evolutionary Sampler: The system uses an Evolutionary Algorithm to mutate high-performing architectures. It then calculates the Expected Improvement (EI) for these mutations, only fully training those with the highest potential.
  • Exponential Weighted Loss: Since the goal is to find the best models, the authors use a loss function that penalizes the predictor more heavily for errors on high-performing architectures while being more forgiving for low-performing ones.

Graph-based Architecture Representation

A core innovation of BONAS is representing neural architectures as graphs rather than strings. This allows the GCN to process the structural topology of the network directly.

Illustration of an architecture represented as a graph, alongside its corresponding adjacency matrix and one-hot encoded feature matrix.

By converting the architecture into an adjacency matrix and a feature matrix (representing operations like Conv1x1 or MaxPooling), the GCN can learn a rich embedding space. This approach led to a 97.3% correlation between predicted and actual accuracy on the NAS-Bench-102 benchmark, significantly outperforming sequence-based models.

Experimental Results

The researchers evaluated BONAS across several benchmarks, including NAS-Bench-101, NAS-Bench-102, and a newly introduced LSTM-12K benchmark for natural language processing.

  • Efficiency: On NAS-Bench-101, BONAS found the optimal architecture 123.7x faster than random search and 7.5x faster than LaNAS.
  • Accuracy: In open-domain searches on CIFAR-10, BONAS identified a model with a 2.44% Top-1 error after evaluating only 186 samples. For comparison, older methods like NASNet-A required 20,000 samples for similar performance.
  • Scalability: On ImageNet, BONAS-found architectures achieved a 21.7% Top-1 error, outperforming established hand-crafted models like ResNet-101 while maintaining a smaller parameter count.

Discussion and Conclusion

BONAS demonstrates that "Graphs > Strings" in NAS; understanding topology is vital for accurate performance prediction. Furthermore, the use of Exponential Weighted Loss proves that a predictor doesn't need to be perfect across the entire search space—it only needs to be highly accurate for the top-tier models.

While BONAS is highly efficient, it requires a "warm start" phase where a small set of random architectures (10-100) are fully trained to initialize the predictor. Future research could explore multi-objective optimization to find architectures that are not only accurate but also optimized for low latency and mobile deployment.

Summary updated

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