Efficient Sampling for Predictor-Based Neural Architecture Search

Lukas Mauch, Stephen Tiedemann, Javier Alonso García, Bac Nguyen Cong, Kazuki Yoshiyama, Fabien Cardinaux, Thomas Kemp

Abstract

Predictor-based Neural Architecture Search (NAS) significantly reduces the computational cost of designing deep neural networks by using proxy models to estimate performance. However, as search spaces expand to include billions of architectures, evaluating the predictor itself becomes a bottleneck. This paper addresses the "needle in a haystack" problem where random sampling of large search spaces leads to poor predictor performance. We introduce a "sample efficiency gain" metric and demonstrate that evolutionary sampling strategies can restore peak search performance in massive spaces, achieving efficiency gains up to 50 dB over random search.

Introduction

The manual design of deep neural networks (DNNs) is an expert-intensive process. Neural Architecture Search (NAS) automates this by searching for optimal structures. While predictor-based NAS—which trains a "proxy" model to guess accuracy—is efficient, it faces a scaling challenge. Modern search spaces are so vast (often exceeding $10^{50}$ architectures) that running a predictor on every candidate is computationally infeasible. If the predictor only evaluates a small, random subset, the quality of discovered models drops significantly. This paper investigates how to intelligently sample these subsets to maintain NAS benefits at scale.

Methods

The study evaluates three sampling strategies for the predictor's candidate subset ($S'$): uniform sampling (random baseline), Maximum Likelihood (ML) sampling via gradient descent, and evolutionary sampling using mutations and crossovers.

Overview of the predictor-based NAS framework, illustrating the selection of a subset $\mathcal{C}$ from the search space $\mathcal{S}$ using a predictor and a selection mechanism.

The authors employ a Graph Convolutional Network (GCN) as the predictor, leveraging its ability to process the graph-based topology of neural networks. Performance is measured using "Sample Efficiency Gain (dB)," comparing the number of models trained to reach a target accuracy against a random search baseline. Experiments are conducted on NASBench-101, which contains over 400,000 pre-evaluated architectures.

Key Results

The "Needle in a Haystack" problem is evident when using small random subsets; for instance, reducing the subset size to 100 models can decrease search efficiency by a factor of 300. However, the proposed evolutionary-predictor hybrid overcomes this. By combining the global search capabilities of evolution with the fine-tuning precision of the predictor, the algorithm achieves performance comparable to having access to the entire search space.

Validation accuracy vs. number of trained DNNs. The plot demonstrates how performance degrades as the random subset size $N'$ decreases, and how the full-space predictor ($N'=|S|$) approaches the validation oracle.

Key findings include:

  • Efficiency Recovery: Evolutionary sampling allows the predictor to reach the same performance levels as a full-space search, even when only a fraction of the space is evaluated.
  • Rapid Convergence: The hybrid method converged to the "validation oracle" (the best possible model in the dataset) after observing only ~1,400 architectures out of nearly 500,000.
  • Quantifiable Gains: The best methods achieved a 50 dB gain, representing a 100,000x efficiency improvement over random search.

Conclusion

Smart sampling is essential for scaling NAS to modern, massive search spaces. While uniform sampling fails in large-scale applications, evolutionary sampling restores the efficiency of predictor-based methods. Future work will explore these techniques in even larger production search spaces and multi-objective scenarios balancing accuracy with hardware constraints like latency and power consumption.

Summary updated

Abstract

Recently, predictor-based algorithms emerged as a promising approach for neural architecture search (NAS). For NAS, we typically have to calculate the validation accuracy of a large number of Deep Neural Networks (DNNs), what is computationally complex. Predictor-based NAS algorithms address this problem. They train a proxy model that can infer the validation accuracy of DNNs directly from their network structure. During optimization, the proxy can be used to narrow down the number of architectures for which the true validation accuracy must be computed, what makes predictor-based algorithms sample efficient. Usually, we compute the proxy for all DNNs in the network search space and pick those that maximize the proxy as candidates for optimization. However, that is intractable in practice, because the search spaces are often very large and contain billions of network architectures. The contributions of this paper are threefold: 1) We define a sample efficiency gain to compare different predictor-based NAS algorithms. 2) We conduct experiments on the NASBench-101 dataset and show that the sample efficiency of predictor-based algorithms decreases dramatically if the proxy is only computed for a subset of the search space. 3) We show that if we choose the subset of the search space on which the proxy is evaluated in a smart way, the sample efficiency of the original predictor-based algorithm that has access to the full search space can be regained. This is an important step to make predictor-based NAS algorithms useful, in practice.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
NASBench-101Predictor-based NAS with evolutionary sampling (pb-ev)sample efficiency gain50dBNeural Architecture Search · N-prime=100 or 1000; unspecified · sampling-method=evolutionary sampling
Source quote
L356: Most promising is evolutionary sampling. For J-target<0.05, it approaches a gain of 50dB and therefore is comparable to the performance of predictor-based with N'=|\mathcal{S}|.
BibTeX
@misc{mauch2020efficient,
  author = {Lukas Mauch and Stephen Tiedemann and Javier Alonso García and Bac Nguyen Cong and Kazuki Yoshiyama and Fabien Cardinaux and Thomas Kemp},
  title = {{Efficient Sampling for Predictor-Based Neural Architecture Search}},
  year = {2020},
  eprint = {2011.12043},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.12043},
}
Figure