Zero-Cost Proxies for Lightweight NAS

Mohamed S. Abdelfattah, Abhinav Mehrotra, Łukasz Dudziak, Nicholas D. Lane
1/20/2021
399 citations
cs.LGcs.AIcs.NE

Official code: mohsaied/zero-cost-nas (9 stars, Jupyter Notebook, Apache-2.0, last commit 2025-07-07).

Abstract

Neural Architecture Search (NAS) is quickly becoming the standard methodology to design neural network models. However, NAS is typically compute-intensive because multiple models need to be evaluated before choosing the best one.

Show full abstract

To reduce the computational power and time needed, a proxy task is often used for evaluating each model instead of full training. In this paper, we evaluate conventional reduced-training proxies and quantify how well they preserve ranking between multiple models during search when compared with the rankings produced by final trained accuracy. We propose a series of zero-cost proxies, based on recent pruning literature, that use just a single minibatch of training data to compute a model's score. Our zero-cost proxies use 3 orders of magnitude less computation but can match and even outperform conventional proxies. For example, Spearman's rank correlation coefficient between final validation accuracy and our best zero-cost proxy on NAS-Bench-201 is 0.82, compared to 0.61 for EcoNAS (a recently proposed reduced-training proxy). Finally, we use these zero-cost proxies to enhance existing NAS search algorithms such as random search, reinforcement learning, evolutionary search and predictor-based search. For all search methodologies and across three different NAS datasets, we are able to significantly improve sample efficiency, and thereby decrease computation, by using our zero-cost proxies. For example on NAS-Bench-101, we achieved the same accuracy 4$\times$ quicker than the best previous result. Our code is made public at: https://github.com/mohsaied/zero-cost-nas.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
94Jupyter Notebook, PythonJul 7, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{abdelfattah2021zerocost,
  title  = {Zero-Cost Proxies for Lightweight NAS},
  author = {Mohamed S. Abdelfattah and Abhinav Mehrotra and Łukasz Dudziak and Nicholas D. Lane},
  year   = {2021},
  eprint = {2101.08134},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2101.08134}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2101.08134.svg)](https://codeofpaper.com/paper/2101.08134)

Discussion