One-Shot Neural Architecture Search via Self-Evaluated Template Network

Xuanyi Dong, Yi Yang

Abstract

Neural Architecture Search (NAS) automates the design of neural network architectures, but traditional methods are computationally expensive. One-shot NAS reduces costs by sharing parameters across a "supernet," yet often relies on inefficient random sampling to find the best sub-networks. This paper introduces the Self-Evaluated Template Network (SETN), which employs a learned evaluator to identify promising candidates selectively. By combining a stochastic template network with this evaluator, SETN achieves state-of-the-art performance on CIFAR and ImageNet benchmarks with significantly reduced search time.

Introduction

The manual design of neural architectures is a labor-intensive process. While NAS has automated this, early reinforcement learning and evolutionary algorithms required thousands of GPU days. One-shot NAS emerged as a solution, using a Template Network where all candidate architectures share weights. However, after training the template network, the standard practice of random sampling often fails to find optimal architectures within the vast search space. SETN addresses this "blind" sampling by introducing a mechanism to evaluate candidate quality during the search.

The SETN Framework

SETN consists of two primary components: a Stochastic Template Network and an Evaluator.

  1. Stochastic Template Network: To avoid the "Matthew Effect"—where simple operations like skip-connections dominate early and prevent complex operations from maturing—SETN uses a uniform stochastic training strategy. In each iteration, a single path is sampled and updated, ensuring all operations are trained fairly.
  2. The Evaluator: The evaluator is a set of learnable parameters ($\alpha$) that represent the probability of selecting specific operations. It is trained on a validation set using continuous relaxation to minimize validation loss, effectively learning which architectural components contribute most to performance.
The SETN workflow: A template network shares weights, while an evaluator learns to sample high-quality candidates.

The workflow involves jointly training the network weights and the evaluator. Once trained, the evaluator is used to sample the top 1,000 most promising candidates, which are then evaluated using the shared weights to identify the best architecture.

Key Results and Insights

SETN demonstrates that the quality of candidates is more critical than the quantity. By focusing on high-probability architectures identified by the evaluator, SETN finds superior models more efficiently than random search.

Validation accuracy distributions for candidate networks. SETN (a) shifts the distribution toward higher performance compared to random sampling (b).

Empirical results highlight SETN's efficiency and effectiveness:

  • Search Efficiency: The search concludes in approximately 1.8 GPU days on a single V100 GPU, roughly 1,000x faster than early NAS methods.
  • CIFAR-10: SETN discovered an architecture with a 2.69% test error, matching the performance of NASNet-A while being discovered in a fraction of the time.
  • ImageNet: Under mobile-setting constraints (<600M FLOPs), the discovered architecture achieved 74.3% Top-1 accuracy, matching or exceeding human-designed models like MobileNet-v2 and ShuffleNet.

Conclusion

SETN significantly improves the efficiency of one-shot NAS by replacing random sampling with a learned evaluator. This approach ensures that the evaluation phase focuses on high-quality candidates, leading to state-of-the-art architectures with minimal computational overhead. Future work may involve integrating hardware constraints like latency directly into the evaluator to optimize for specific edge devices.

Summary updated

Abstract

Neural architecture search (NAS) aims to automate the search procedure of architecture instead of manual design. Even if recent NAS approaches finish the search within days, lengthy training is still required for a specific architecture candidate to get the parameters for its accurate evaluation. Recently one-shot NAS methods are proposed to largely squeeze the tedious training process by sharing parameters across candidates. In this way, the parameters for each candidate can be directly extracted from the shared parameters instead of training them from scratch. However, they have no sense of which candidate will perform better until evaluation so that the candidates to evaluate are randomly sampled and the top-1 candidate is considered the best. In this paper, we propose a Self-Evaluated Template Network (SETN) to improve the quality of the architecture candidates for evaluation so that it is more likely to cover competitive candidates. SETN consists of two components: (1) an evaluator, which learns to indicate the probability of each individual architecture being likely to have a lower validation loss. The candidates for evaluation can thus be selectively sampled according to this evaluator. (2) a template network, which shares parameters among all candidates to amortize the training cost of generated candidates. In experiments, the architecture found by SETN achieves state-of-the-art performance on CIFAR and ImageNet benchmarks within comparable computation costs. Code is publicly available on GitHub: https://github.com/D-X-Y/AutoDL-Projects.
BibTeX
@inproceedings{dong2019one,
  author = {Xuanyi Dong and Yi Yang},
  title = {{One-Shot Neural Architecture Search via Self-Evaluated Template Network}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2019},
  url = {https://openreview.net/forum?id=jbQy8jyFBq},
}
Figure