BANANAS: Bayesian Optimization with Neural Architectures for Neural Architecture Search

Colin White, Willie Neiswanger, Yash Savani

Abstract

Over the past half-decade, many methods have been considered for neural architecture search (NAS). Bayesian optimization (BO), which has long had success in hyperparameter optimization, has recently emerged as a very promising strategy for NAS when it is coupled with a neural predictor. Recent work has proposed different instantiations of this framework, for example, using Bayesian neural networks or graph convolutional networks as the predictive model within BO. However, the analyses in these papers often focus on the full-fledged NAS algorithm, so it is difficult to tell which individual components of the framework lead to the best performance. In this work, we give a thorough analysis of the "BO + neural predictor" framework by identifying five main components: the architecture encoding, neural predictor, uncertainty calibration method, acquisition function, and acquisition optimization strategy. We test several different methods for each component and also develop a novel path-based encoding scheme for neural architectures, which we show theoretically and empirically scales better than other encodings. Using all of our analyses, we develop a final algorithm called BANANAS, which achieves state-of-the-art performance on NAS search spaces.

Introduction

Designing optimal neural network architectures is traditionally a manual, labor-intensive process requiring significant domain expertise. Neural Architecture Search (NAS) aims to automate this design process. While Bayesian Optimization (BO) has been a staple for hyperparameter tuning, its application to NAS is non-trivial. Traditional BO relies on Gaussian Processes (GPs) and distance metrics (like edit distance) to compare architectures, which often fail to scale or capture the structural nuances of large search spaces.

Recent shifts toward using neural network predictors instead of GPs have shown promise, but these systems are often evaluated as monolithic "black boxes." This makes it difficult to discern whether performance gains stem from the model architecture, the encoding scheme, or the search strategy. BANANAS addresses this by deconstructing the BO-NAS framework into five modular components: architecture encoding, neural predictor, uncertainty calibration, acquisition function, and acquisition optimization.

The Path Encoding Framework

The core innovation of BANANAS is the Path Encoding scheme. Standard adjacency matrix representations are often problematic for neural predictors because node indexing is arbitrary, creating dependencies that are difficult for the model to learn.

Visualization of the path encoding scheme, showing how a graph is decomposed into constituent paths from input to output to form a binary vector.

Path encoding represents an architecture as a binary vector where each bit corresponds to a unique path from the input to the output. If a specific path exists in the architecture, its corresponding bit is set to 1. This approach provides a more orthogonal feature set that aligns with the functional data flow of the network.

Empirical Analysis and Key Insights

The authors conducted extensive ablation studies across several benchmarks, including NASBench-101, NASBench-201, and the DARTS search space. Several key findings emerged:

  • Scalability through Truncation: While the number of possible paths can grow exponentially with cell size, the authors demonstrated that the encoding can be truncated to include only the most common paths (e.g., the shortest paths) without a significant loss in predictive accuracy. This makes the method highly scalable for complex search spaces.
Empirical results showing that test error remains stable even when the path encoding length is truncated, demonstrating the scalability of the approach.
  • Predictor and Calibration: For uncertainty estimation, simple ensembles of five feedforward networks outperformed more complex Bayesian Neural Networks (BNNs). Ensembles provided better calibration and were significantly easier to implement.
  • Search Strategy: In the acquisition optimization phase, local search (mutating the best-known architectures) proved far more effective than random sampling for identifying high-performing candidates.

Results and Performance

BANANAS demonstrated state-of-the-art performance across multiple benchmarks:

  • NASBench-101: It achieved the lowest test error among 15 competitive algorithms, including Regularized Evolution and DARTS.
  • DARTS Search Space: On CIFAR-10, BANANAS identified an architecture with a 2.64% test error, surpassing the original DARTS (2.76%) and other strong baselines like ASHA.
  • Efficiency: By utilizing a neural predictor, BANANAS avoids the $O(n^3)$ computational bottleneck associated with traditional GP-based Bayesian Optimization, making it highly parallelizable and efficient for large-scale searches.

Conclusion

BANANAS provides a robust and modular framework for NAS by optimizing the individual components of Bayesian Optimization. The introduction of path encoding offers a scalable and effective way to represent neural architectures for predictive modeling. Future work may explore multi-fidelity search techniques and extending path-based logic to non-cell-based macro-architectures.

Summary updated

BibTeX
@inproceedings{white2021bananas,
  author = {Colin White and Willie Neiswanger and Yash Savani},
  title = {{BANANAS: Bayesian Optimization with Neural Architectures for Neural Architecture Search}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i12.17233},
}
Figure