arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2101.08134cs.LGcs.AIcs.NE
收藏

轻量级NAS的零成本代理

Zero-Cost Proxies for Lightweight NAS

Samsung AI Center, Cambridge(三星剑桥人工智能中心);University of Cambridge(剑桥大学)

Mohamed S. Abdelfattah, Abhinav Mehrotra, Łukasz Dudziak, Nicholas D. Lane

摘要:

神经结构搜索(NAS)正迅速成为设计神经网络模型的标准方法。然而,NAS通常是计算密集型的,因为在选择最佳模型之前需要评估多个模型。为了减少计算能力和所需的时间,通常使用代理任务来评估每个模型,而不是完全训练。在本文中,我们评估了传统的简化训练代理,并量化了它们在搜索过程中与最终训练准确度产生的排名相比在多个模型之间保持排名的情况。我们提出了一系列零成本代理,基于最近的修剪文献,只使用一个小批量的训练数据来计算模型的分数。我们的零成本代理使用3个数量级的计算,但可以匹配,甚至优于传统的代理。例如,Spearman在NAS-Bench-201上的最终验证准确性与我们最好的零成本代理之间的等级相关系数为0.82,而EcoNAS(最近提出的减少训练代理)为0.61。最后,我们使用这些零成本代理来增强现有的NAS搜索算法,如随机搜索,强化学习,进化搜索和基于预测的搜索。对于所有搜索方法和三个不同的NAS数据集,我们能够显着提高样本效率,从而减少计算,通过使用我们的零成本代理。例如,在NAS-Bench-101上,我们实现了相同的精度,比之前的最佳结果快4 $\times$。我们的代码在https://github.com/mohsaied/zero-cost-nas上公开。

英文摘要:

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. 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑