arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.08119cs.LGcs.AI
收藏

ShiftAddNAS:硬件启发的搜索以构建更准确高效的神经网络

ShiftAddNAS: Hardware-Inspired Search for More Accurate and Efficient Neural Networks

Rice University(莱斯大学)

Haoran You, Baopu Li, Huihong Shi, Yonggan Fu, Yingyan Celine Lin

AI总结:

本文提出ShiftAddNAS,通过首个包含乘法与无乘法算子的混合搜索空间及支持异构分布的新颖权重共享策略,自动搜索构建更准确高效的混合神经网络,在提升精度的同时大幅节省能耗与延迟。

摘要:

具有密集乘法运算(例如卷积和transformers)的神经网络(NNs)能力强大但功耗高,阻碍了它们更广泛地部署到资源受限的设备中。因此,无乘法网络受到了越来越多的关注,这遵循了节能硬件实现的常见做法,即使用更高效的算子(例如位移和加法)来参数化NNs。然而,无乘法网络在所达到的准确率方面通常不如其原始对应网络。为此,这项工作提倡混合NNs,它同时包含强大但昂贵的乘法和高效但较弱的算子,以结合两者的优势,并提出了ShiftAddNAS,它可以自动搜索更准确和更高效的NNs。我们的ShiftAddNAS突出了两个关键点。具体而言,它集成了(1)首个混合搜索空间,该空间同时包含基于乘法的和无乘法的算子,以促进开发准确且高效的混合NNs;以及(2)一种新颖的权重共享策略,该策略能够在遵循异构分布(例如,卷积使用高斯分布,而加法算子使用拉普拉斯分布)的不同算子之间实现有效的权重共享,同时大幅减少了超网络的规模,并获得了更好的搜索到的网络。在各种模型、数据集和任务上的大量实验和消融研究一致地验证了ShiftAddNAS的有效性,例如,与最先进的NN相比,实现了高达+7.7%的更高准确率或+4.9的更好BLEU分数,同时分别带来了高达93%或69%的能耗和延迟节省。代码和预训练模型可在https://github.com/RICE-EIC/ShiftAddNAS获取。

英文摘要:

Neural networks (NNs) with intensive multiplications (e.g., convolutions and transformers) are capable yet power hungry, impeding their more extensive deployment into resource-constrained devices. As such, multiplication-free networks, which follow a common practice in energy-efficient hardware implementation to parameterize NNs with more efficient operators (e.g., bitwise shifts and additions), have gained growing attention. However, multiplication-free networks usually under-perform their vanilla counterparts in terms of the achieved accuracy. To this end, this work advocates hybrid NNs that consist of both powerful yet costly multiplications and efficient yet less powerful operators for marrying the best of both worlds, and proposes ShiftAddNAS, which can automatically search for more accurate and more efficient NNs. Our ShiftAddNAS highlights two enablers. Specifically, it integrates (1) the first hybrid search space that incorporates both multiplication-based and multiplication-free operators for facilitating the development of both accurate and efficient hybrid NNs; and (2) a novel weight sharing strategy that enables effective weight sharing among different operators that follow heterogeneous distributions (e.g., Gaussian for convolutions vs. Laplacian for add operators) and simultaneously leads to a largely reduced supernet size and much better searched networks. Extensive experiments and ablation studies on various models, datasets, and tasks consistently validate the efficacy of ShiftAddNAS, e.g., achieving up to a +7.7% higher accuracy or a +4.9 better BLEU score compared to state-of-the-art NN, while leading to up to 93% or 69% energy and latency savings, respectively. Codes and pretrained models are available at https://github.com/RICE-EIC/ShiftAddNAS.

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

↑