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

ALWANN:无需重新训练的深度神经网络加速器的自动逐层逼近

ALWANN: Automatic Layer-Wise Approximation of Deep Neural Network Accelerators without Retraining

Brno University of Technology(布尔诺理工大学);Technische Universität Wien (TU Wien)(维也纳技术大学)

Vojtech Mrazek, Zdenek Vasicek, Lukas Sekanina, Muhammad Abdullah Hanif, Muhammad Shafique

摘要:

最先进的方法采用近似计算来降低DNN硬件的能耗。近似DNN随后需要大量的重新训练,以从使用近似运算造成的准确性损失中恢复过来。然而,复杂DNN的再训练不能很好地扩展。在本文中,我们证明了可以将有效的近似引入DNN加速器的计算路径中,同时可以完全避免重新训练。ALWANN为定制的低功耗加速器提供高度优化的DNN实现,其中计算单元的数量低于DNN层的数量。首先,一个经过完全训练的DNN被转换为在卷积层中使用8位权重和8位乘法器进行操作。然后从近似乘法器库中为每个计算元件选择合适的近似乘法器,使得(i)一个近似乘法器服务于若干层,以及(ii)总分类误差和能量消耗最小化。包括乘数选择问题的优化是通过多目标优化NSGA-II算法解决的。为了完全避免DNN的计算昂贵的再训练,这通常是用来提高分类精度,我们提出了一个简单的权重更新方案,补偿采用近似乘法器引入的不准确性。所提出的方法进行评估的DNN加速器与近似乘法器从开源的“EvoApprox”库的两个架构。我们报告说,所提出的方法节省了ResNet-50卷积层乘法所需的30%的能量,而准确度仅下降了0.6%。所提出的技术和近似层可作为TensorFlow的开源扩展在https://github.com/ehw-fit/tf-approximate上获得。

英文摘要:

The state-of-the-art approaches employ approximate computing to reduce the energy consumption of DNN hardware. Approximate DNNs then require extensive retraining afterwards to recover from the accuracy loss caused by the use of approximate operations. However, retraining of complex DNNs does not scale well. In this paper, we demonstrate that efficient approximations can be introduced into the computational path of DNN accelerators while retraining can completely be avoided. ALWANN provides highly optimized implementations of DNNs for custom low-power accelerators in which the number of computing units is lower than the number of DNN layers. First, a fully trained DNN is converted to operate with 8-bit weights and 8-bit multipliers in convolutional layers. A suitable approximate multiplier is then selected for each computing element from a library of approximate multipliers in such a way that (i) one approximate multiplier serves several layers, and (ii) the overall classification error and energy consumption are minimized. The optimizations including the multiplier selection problem are solved by means of a multiobjective optimization NSGA-II algorithm. In order to completely avoid the computationally expensive retraining of DNN, which is usually employed to improve the classification accuracy, we propose a simple weight updating scheme that compensates the inaccuracy introduced by employing approximate multipliers. The proposed approach is evaluated for two architectures of DNN accelerators with approximate multipliers from the open-source "EvoApprox" library. We report that the proposed approach saves 30% of energy needed for multiplication in convolutional layers of ResNet-50 while the accuracy is degraded by only 0.6%. The proposed technique and approximate layers are available as an open-source extension of TensorFlow at https://github.com/ehw-fit/tf-approximate.

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

↑