EmProx: Neural Network Performance Estimation For Neural Architecture Search

G. G. H. Franken, Prabhant Singh, Joaquin VanschorenarXiv 2022

Abstract

Common Neural Architecture Search (NAS) methods generate large amounts of candidate architectures that need training in order to assess their performance and find an optimal architecture. To minimize the search time, we use different performance estimation strategies. This study proposes a new method, EmProx Score (Embedding Proximity Score). Similar to Neural Architecture Optimization (NAO), this method maps candidate architectures to a continuous embedding space using an encoder-decoder framework. The performance of candidates is then estimated using weighted kNN based on the embedding vectors of architectures of which the performance is known. Performance estimations of this method are comparable to the MLP performance predictor used in NAO in terms of accuracy, while being nearly nine times faster to train. Benchmarking against other performance estimation strategies shows similar to better accuracy, while being five up to eighty times faster.

Introduction

Neural Architecture Search (NAS) aims to automate the design of optimal neural network architectures for specific tasks. However, the computational cost of training thousands of candidates from scratch is a significant barrier. To mitigate this, researchers employ performance predictors—proxy functions that estimate a model's performance based on its structural properties.

Existing predictors, such as those in Neural Architecture Optimization (NAO), often rely on training auxiliary models like Multi-Layer Perceptrons (MLPs) to map architecture representations to performance scores. This introduces a secondary bottleneck: the time required to train the predictor itself. EmProx (Embedding Proximity) addresses this by replacing parametric prediction models with a simpler, non-parametric geometric approach.

Methodology

EmProx leverages the encoder-decoder framework of NAO but simplifies the estimation step. The process consists of three primary stages:

  1. Architecture Encoding: A discrete neural network architecture is converted into a sequence and processed by an LSTM encoder-decoder, mapping it into a 128-dimensional continuous embedding space.
  2. Space Learning: The encoder-decoder is trained to ensure that the distance between points in the embedding space reflects structural and functional similarities between architectures.
  3. Weighted kNN Prediction: Instead of training an MLP, EmProx uses a weighted k-Nearest Neighbors (kNN) approach. To estimate the performance of a new architecture, the system identifies the $k$ closest architectures in the embedding space with known performance and calculates a weighted average of their scores.
The EmProx workflow: architectures are encoded into a continuous embedding space where performance is estimated via proximity to known models.

Results and Discussion

The authors evaluated EmProx using the NAS-Bench-201 benchmark across CIFAR-10, CIFAR-100, and ImageNet-16-120. The results demonstrate that performance is "local" in the embedding space; architectures with similar performance naturally cluster together, validating the encoder's ability to capture performance semantics.

Efficiency and Accuracy

As shown in the benchmarking table, EmProx achieves competitive accuracy while offering massive speedups in training time. On CIFAR-10, EmProx ($k=10$) achieved a Mean Absolute Error (MAE) of 4.40, outperforming the original NAO predictor (4.73). Notably, EmProx was nearly 9 times faster to train than NAO and up to 80 times faster than other high-performing strategies like BANANAS.

Benchmarking results comparing EmProx against other performance estimation strategies in terms of regression metrics, correlation, and time.

Ranking Performance

In the context of NAS, the relative ranking of architectures is often more critical than absolute accuracy. EmProx demonstrated strong Spearman and Kendall correlation coefficients, indicating its reliability in identifying superior models within the search space.

Conclusion

EmProx demonstrates that if an architecture representation is sufficiently expressive, complex parametric models for performance prediction are unnecessary. By utilizing a non-parametric kNN approach in a learned embedding space, EmProx provides a "fast and good enough" alternative that significantly reduces the overhead of the NAS loop. Future work includes integrating EmProx into end-to-end search pipelines and exploring Variational Autoencoders (VAEs) to further refine the embedding space geometry.

Summary updated

BibTeX
@misc{franken2022emprox,
  author = {G. G. H. Franken and Prabhant Singh and Joaquin Vanschoren},
  title = {{EmProx: Neural Network Performance Estimation For Neural Architecture Search}},
  year = {2022},
  eprint = {2206.05972},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.05972},
}
Figure