Skip to main content
QUICK REVIEW

[论文解读] SWAP-NAS: Sample-Wise Activation Patterns for Ultra-fast NAS

Yameng Peng, Andy Song|arXiv (Cornell University)|Mar 7, 2024
Parallel Computing and Optimization TechniquesComputer Science被引用 3
一句话总结

本文提出 SWAP-Score,一种基于样本级激活模式的新型无训练度量,其在多种搜索空间和任务中与神经网络性能具有强相关性。通过利用激活模式的多样性与正则化,SWAP-NAS 仅使用 6 分钟和 9 分钟的 GPU 时间,分别在 CIFAR-10 和 ImageNet 上实现了最先进性能,且计算成本极低,采用进化搜索策略。

ABSTRACT

Training-free metrics (a.k.a. zero-cost proxies) are widely used to avoid resource-intensive neural network training, especially in Neural Architecture Search (NAS). Recent studies show that existing training-free metrics have several limitations, such as limited correlation and poor generalisation across different search spaces and tasks. Hence, we propose Sample-Wise Activation Patterns and its derivative, SWAP-Score, a novel high-performance training-free metric. It measures the expressivity of networks over a batch of input samples. The SWAP-Score is strongly correlated with ground-truth performance across various search spaces and tasks, outperforming 15 existing training-free metrics on NAS-Bench-101/201/301 and TransNAS-Bench-101. The SWAP-Score can be further enhanced by regularisation, which leads to even higher correlations in cell-based search space and enables model size control during the search. For example, Spearman's rank correlation coefficient between regularised SWAP-Score and CIFAR-100 validation accuracies on NAS-Bench-201 networks is 0.90, significantly higher than 0.80 from the second-best metric, NWOT. When integrated with an evolutionary algorithm for NAS, our SWAP-NAS achieves competitive performance on CIFAR-10 and ImageNet in approximately 6 minutes and 9 minutes of GPU time respectively.

研究动机与目标

  • 解决现有无训练度量的局限性,例如相关性弱以及在不同搜索空间和任务中泛化能力差的问题。
  • 开发一种可在神经架构搜索过程中实现模型尺寸控制而无需微调的度量方法。
  • 设计一种超快速的 NAS 流程,实现在极低 GPU 时间内达到具有竞争力的性能。
  • 验证所提度量在多样化架构和任务中的鲁棒性与泛化能力。

提出的方法

  • SWAP-Score 通过分析小批量中单个输入样本的激活模式多样性来计算网络表达能力。
  • 通过测量不同样本间激活值的变化,捕捉网络表示复杂函数的能力。
  • 对 SWAP-Score 应用正则化,以提升其与真实性能的相关性,尤其是在基于单元的搜索空间中。
  • 将 SWAP-Score 集成到一种进化 NAS 算法中,用于评估初始种群、突变后代以及交叉生成的架构。
  • 随机应用交叉操作,交换父网络之间的架构组件(例如连接权重)。
  • 通过精英策略更新种群,用得分最高的后代替换表现最差的网络,以加速收敛。

实验结果

研究问题

  • RQ1基于样本级激活模式的无训练度量是否能比现有零样本代理度量实现更强的真实性能相关性?
  • RQ2SWAP-Score 在不同搜索空间(包括堆叠式和基于单元的架构)中是否具有良好的泛化能力?
  • RQ3对 SWAP-Score 进行正则化是否能提升其预测准确性,并实现在 NAS 中的模型尺寸控制?
  • RQ4SWAP-NAS 在标准基准测试中与最先进 NAS 方法相比,在效率和性能方面表现如何?
  • RQ5SWAP-NAS 是否能以极低的 GPU 时间在 ImageNet 上发现高性能架构?

主要发现

  • 在 NAS-Bench-201 上,正则化的 SWAP-Score 与 CIFAR-100 验证准确率的 Spearman 等级相关系数达到 0.90,优于第二名度量(NWOT)0.10。
  • 在包括 NAS-Bench-101、201、301 和 TransNAS-Bench-101(Micro/Macro)在内的五个基准搜索空间中,相关性保持强劲,且始终优于 15 种现有度量。
  • SWAP-NAS 仅用 0.004 GPU 天(6 分钟)即完成 CIFAR-10 的搜索,达到最先进性能。
  • 在 ImageNet 上,SWAP-NAS 仅用 0.006 GPU 天(9 分钟)完成搜索,展现出超快的效率。
  • SWAP-NAS 发现的架构在模型尺寸约束增大时,其拓扑复杂度持续提升,证实了通过正则化实现有效尺寸控制。
  • 可视化结果表明,正则化的 SWAP-Score 使点更集中分布在真实性能周围,表明其具有更高的预测保真度。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。