准确性与效率:通过FPGA实现感知神经架构搜索实现两者
Accuracy vs. Efficiency: Achieving Both through FPGA-Implementation Aware Neural Architecture Search
摘要:
一个基本问题几乎存在于深度神经网络的每一个应用中:给定特定数据集,最佳神经架构是什么?最近,已经开发了几个神经架构搜索(NAS)框架,其使用强化学习和进化算法来搜索解。然而,由于巨大的搜索空间和评估每个候选者所需的冗长训练过程,它们中的大多数需要很长时间才能找到最佳架构。此外,它们中的大多数仅以准确性为目标,而不考虑将用于实现架构的硬件。这可能会导致超出规范的过度延迟,从而使生成的架构变得无用。为了解决这两个问题,在本文中,我们使用现场可编程门阵列(FPGA)作为一种工具,提出了一种新的硬件感知NAS框架,即FNAS,这将提供一个最佳的神经网络架构,保证满足规范的延迟。此外,通过一个性能抽象模型来分析神经架构的延迟,而无需训练,我们的框架可以快速修剪不满足规范的架构,从而提高效率。在ImageNet等常见数据集上的实验结果表明,在现有技术生成的架构比规范长7.81倍的情况下,来自FNAS的架构可以满足规范,精度损失小于1%。此外,FNAS还实现了高达11.13倍的搜索过程加速。据作者所知,这是第一个硬件感知NAS。
英文摘要:
A fundamental question lies in almost every application of deep neural networks: what is the optimal neural architecture given a specific dataset? Recently, several Neural Architecture Search (NAS) frameworks have been developed that use reinforcement learning and evolutionary algorithm to search for the solution. However, most of them take a long time to find the optimal architecture due to the huge search space and the lengthy training process needed to evaluate each candidate. In addition, most of them aim at accuracy only and do not take into consideration the hardware that will be used to implement the architecture. This will potentially lead to excessive latencies beyond specifications, rendering the resulting architectures useless. To address both issues, in this paper we use Field Programmable Gate Arrays (FPGAs) as a vehicle to present a novel hardware-aware NAS framework, namely FNAS, which will provide an optimal neural architecture with latency guaranteed to meet the specification. In addition, with a performance abstraction model to analyze the latency of neural architectures without training, our framework can quickly prune architectures that do not satisfy the specification, leading to higher efficiency. Experimental results on common data set such as ImageNet show that in the cases where the state-of-the-art generates architectures with latencies 7.81x longer than the specification, those from FNAS can meet the specs with less than 1% accuracy loss. Moreover, FNAS also achieves up to 11.13x speedup for the search process. To the best of the authors' knowledge, this is the very first hardware aware NAS.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。