MathNAS:如果块在数学架构设计中发挥作用
MathNAS: If Blocks Have a Role in Mathematical Architecture Design
AI总结:
针对NAS搜索空间大、评估成本高的问题,提出基于数学规划的分治框架MathNAS,通过先评估块性能再预测网络性能,免训练快速评估,显著降低复杂度。
摘要:
神经架构搜索(NAS)已成为发现高效神经架构的一种常用方法。近期大型模型的发展加剧了对更快搜索速度和更准确搜索结果的需求。然而,由于搜索空间的急剧扩大以及随之而来的巨大性能评估成本,通过NAS设计大型模型颇具挑战性。考虑一个在NAS中广泛使用的典型模块化搜索空间,其中神经架构由$m$个块节点组成,且一个块节点有$n$个可选块。面对包含$n^m$个候选网络的空间,现有NAS方法试图通过直接搜索和评估候选网络来找到最佳网络。与将架构搜索视为整体问题的通用策略不同,我们利用搜索空间的模块化特性,提出了一种新颖的分治策略。在此,我们介绍MathNAS,一个基于数学规划的通用NAS框架。在MathNAS中,首先计算搜索空间中$m*n$个可能构建块的性能,然后根据其构建块的性能直接预测网络的性能。尽管估计块性能涉及网络训练,正如现有NAS方法中网络性能评估所做的那样,但预测网络性能完全无需训练,因此速度极快。与现有NAS方法中需要训练且计算负担巨大的$n^m$个候选网络相比,MathNAS中仅需处理$m*n$个可能的块。因此,我们的方法有效降低了网络性能评估的复杂度。我们的代码可在https://github.com/wangqinsi1/MathNAS获取。
英文摘要:
Neural Architecture Search (NAS) has emerged as a favoured method for unearthing effective neural architectures. Recent development of large models has intensified the demand for faster search speeds and more accurate search results. However, designing large models by NAS is challenging due to the dramatical increase of search space and the associated huge performance evaluation cost. Consider a typical modular search space widely used in NAS, in which a neural architecture consists of $m$ block nodes and a block node has $n$ alternative blocks. Facing the space containing $n^m$ candidate networks, existing NAS methods attempt to find the best one by searching and evaluating candidate networks directly.Different from the general strategy that takes architecture search as a whole problem, we propose a novel divide-and-conquer strategy by making use of the modular nature of the search space.Here, we introduce MathNAS, a general NAS framework based on mathematical programming.In MathNAS, the performances of the $m*n$ possible building blocks in the search space are calculated first, and then the performance of a network is directly predicted based on the performances of its building blocks. Although estimating block performances involves network training, just as what happens for network performance evaluation in existing NAS methods, predicting network performance is completely training-free and thus extremely fast. In contrast to the $n^m$ candidate networks to evaluate in existing NAS methods, which require training and a formidable computational burden, there are only $m*n$ possible blocks to handle in MathNAS. Therefore, our approach effectively reduces the complexity of network performance evaluation.Our code is available at https://github.com/wangqinsi1/MathNAS.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。