arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1709.04322cs.NEcs.ET
收藏

基于随机计算的MTJ神经网络功耗优化

Power Optimizations in MTJ-based Neural Networks through Stochastic Computing

Ankit Mondal, Ankur Srivastava

摘要:

人工神经网络(ANN)在模式识别和图像分类等任务中得到了广泛的应用。然而,使用传统二进制算术单元的ANN的硬件实现在计算上是昂贵的、能量密集的并且具有大面积开销。随机计算(SC)是一种新兴的范例,它用简单的逻辑电路取代这些传统的单元,特别适合于容错应用。自旋电子器件,例如磁性隧道结(MTJ),能够取代存储器和逻辑电路中的CMOS。在这项工作中,我们提出了一种节能的使用MTJ,表现出概率切换行为,随机数发生器(SNG),这构成了我们的NN实现的基础上,在SC域。此外,NN的错误弹性目标应用允许我们引入近似计算,这是一个框架,其中计算的准确性是为了大幅降低功耗而权衡的。我们建议近似的突触权重在我们的MTJ为基础的神经网络的实现,我们的MTJ-SNG的属性所带来的方式,以实现能源效率。我们设计了一个算法,可以在给定的误差容限内进行这种近似在一个单层NN的最佳方式,由于凸性的问题制定。然后,我们使用该算法,并开发了一种启发式方法近似多层神经网络。为了给我们的方法的有效性的角度来看,在一个标准的分类问题,与26%的准确性损失小于1%,所提出的算法带来了43%的功耗降低。

英文摘要:

Artificial Neural Networks (ANNs) have found widespread applications in tasks such as pattern recognition and image classification. However, hardware implementations of ANNs using conventional binary arithmetic units are computationally expensive, energy-intensive and have large area overheads. Stochastic Computing (SC) is an emerging paradigm which replaces these conventional units with simple logic circuits and is particularly suitable for fault-tolerant applications. Spintronic devices, such as Magnetic Tunnel Junctions (MTJs), are capable of replacing CMOS in memory and logic circuits. In this work, we propose an energy-efficient use of MTJs, which exhibit probabilistic switching behavior, as Stochastic Number Generators (SNGs), which forms the basis of our NN implementation in the SC domain. Further, error resilient target applications of NNs allow us to introduce Approximate Computing, a framework wherein accuracy of computations is traded-off for substantial reductions in power consumption. We propose approximating the synaptic weights in our MTJ-based NN implementation, in ways brought about by properties of our MTJ-SNG, to achieve energy-efficiency. We design an algorithm that can perform such approximations within a given error tolerance in a single-layer NN in an optimal way owing to the convexity of the problem formulation. We then use this algorithm and develop a heuristic approach for approximating multi-layer NNs. To give a perspective of the effectiveness of our approach, a 43% reduction in power consumption was obtained with less than 1% accuracy loss on a standard classification problem, with 26% being brought about by the proposed algorithm.

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

↑