arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.14778cs.LG
收藏

DNA:可微分的网络-加速器协同搜索

DNA: Differentiable Network-Accelerator Co-Search

Rice University(莱斯大学);University of Notre Dame(圣母大学);Facebook, Inc.(脸书公司)

Yongan Zhang, Yonggan Fu, Weiwen Jiang, Chaojian Li, Haoran You, Meng Li, Vikas Chandra, Yingyan Celine Lin

AI总结:

本文提出可微分的网络-加速器协同搜索框架 DNA,通过通用加速器设计空间和联合搜索算法同时优化 DNN 结构、加速器微架构与映射,在提升精度和效率的同时大幅缩短搜索时间。

摘要:

强大而复杂的深度神经网络(DNN)推动了对高效 DNN 解决方案的旺盛需求,以将 DNN 驱动的智能带入众多应用。联合优化网络及其加速器有望提供最优性能。然而,由于同时探索网络及其加速器庞大、相互纠缠但又不同的设计空间这一挑战,此类解决方案的巨大潜力尚未被释放。为此,我们提出 DNA,一个可微分的网络-加速器协同搜索框架,用于自动搜索匹配的网络和加速器,以同时最大化任务精度和加速效率。具体而言,DNA 集成了两个使能因素:(1)一个面向 DNN 加速器的通用设计空间,适用于基于 FPGA 和基于 ASIC 的 DNN 加速器,并兼容 PyTorch 等 DNN 框架,从而能够为更高效的 DNN 及其加速器进行算法探索;(2)一个联合 DNN 网络与加速器协同搜索算法,能够同时搜索最优 DNN 结构及其加速器的微架构和映射方法,以同时最大化任务精度和加速效率。基于 FPGA 实测和 ASIC 综合的实验与消融研究表明,DNA 生成的匹配网络和加速器在三个数据集上、相对于十个 SOTA 基线进行评估时,持续优于最先进的(SOTA)DNN 和 DNN 加速器(例如,在 ImageNet 上 FPS 提升 3.04 倍,同时精度提高 5.46%),并且与 SOTA 协同探索方法相比,所需搜索时间显著减少(最高达 1234.3 倍)。所有代码将在录用后发布。

英文摘要:

Powerful yet complex deep neural networks (DNNs) have fueled a booming demand for efficient DNN solutions to bring DNN-powered intelligence into numerous applications. Jointly optimizing the networks and their accelerators are promising in providing optimal performance. However, the great potential of such solutions have yet to be unleashed due to the challenge of simultaneously exploring the vast and entangled, yet different design spaces of the networks and their accelerators. To this end, we propose DNA, a Differentiable Network-Accelerator co-search framework for automatically searching for matched networks and accelerators to maximize both the task accuracy and acceleration efficiency. Specifically, DNA integrates two enablers: (1) a generic design space for DNN accelerators that is applicable to both FPGA- and ASIC-based DNN accelerators and compatible with DNN frameworks such as PyTorch to enable algorithmic exploration for more efficient DNNs and their accelerators; and (2) a joint DNN network and accelerator co-search algorithm that enables simultaneously searching for optimal DNN structures and their accelerators' micro-architectures and mapping methods to maximize both the task accuracy and acceleration efficiency. Experiments and ablation studies based on FPGA measurements and ASIC synthesis show that the matched networks and accelerators generated by DNA consistently outperform state-of-the-art (SOTA) DNNs and DNN accelerators (e.g., 3.04x better FPS with a 5.46% higher accuracy on ImageNet), while requiring notably reduced search time (up to 1234.3x) over SOTA co-exploration methods, when evaluated over ten SOTA baselines on three datasets. All codes will be released upon acceptance.

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

↑