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

神经网络激活函数电路的设计空间探索

Design Space Exploration of Neural Network Activation Function Circuits

Tao Yang, Yadong Wei, Zhijun Tu, Haolun Zeng, Michel A. Kinsy, Nanning Zheng, Pengju Ren

摘要:

人工神经网络的广泛应用促使研究人员尝试使用FPGA和定制ASIC设计来加快计算速度。这些实现努力通常集中于权重乘法和信号求和运算,而较少集中于这些应用中使用的激活函数。然而,非线性激活函数(如指数线性单元(ELU),缩放指数线性单元(SELU)和双曲正切(tanh))的有效硬件实现对于设计有效的神经网络加速器至关重要,因为这些函数需要大量资源。在本文中,我们探索了使用纯组合电路的激活函数的有效硬件实现,重点是两个广泛使用的非线性激活函数,即,SELU和TANH。我们的实验表明,神经网络一般是不敏感的激活函数的精度。结果还证明,所提出的基于组合电路的方法是非常有效的速度和面积方面,与MNIST,CIFAR-10和IMAGENET基准测试的精度损失可以忽略不计。Synopsys Design Quancher综合结果表明,与基于LUT/存储器的实现相比,tanh和SELU的电路设计可以节省3.13-7.69和4.45-8:45的面积,并且可以使用28 nm SVT库分别在5.14GHz和4.52GHz下工作。该实现可在https://github.com/ThomasMrY/ActivationFunctionDemo上获得。

英文摘要:

The widespread application of artificial neural networks has prompted researchers to experiment with FPGA and customized ASIC designs to speed up their computation. These implementation efforts have generally focused on weight multiplication and signal summation operations, and less on activation functions used in these applications. Yet, efficient hardware implementations of nonlinear activation functions like Exponential Linear Units (ELU), Scaled Exponential Linear Units (SELU), and Hyperbolic Tangent (tanh), are central to designing effective neural network accelerators, since these functions require lots of resources. In this paper, we explore efficient hardware implementations of activation functions using purely combinational circuits, with a focus on two widely used nonlinear activation functions, i.e., SELU and tanh. Our experiments demonstrate that neural networks are generally insensitive to the precision of the activation function. The results also prove that the proposed combinational circuit-based approach is very efficient in terms of speed and area, with negligible accuracy loss on the MNIST, CIFAR-10 and IMAGENET benchmarks. Synopsys Design Compiler synthesis results show that circuit designs for tanh and SELU can save between 3.13-7.69 and 4.45-8:45 area compared to the LUT/memory-based implementations, and can operate at 5.14GHz and 4.52GHz using the 28nm SVT library, respectively. The implementation is available at: https://github.com/ThomasMrY/ActivationFunctionDemo.

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

↑