arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2504.06414cond-mat.mes-hall
收藏

基于自旋电子随机计算实现的量化人工神经网络

Quantized Artificial Neural Networks Implemented with Spintronic Stochastic Computing

Saadi Sabyasachi, Walid Al Misba, Yixin Shao, Pedram Khalili Amiri, Jayasimha Atulasimha

AI总结:

针对ANN推理乘累加运算能耗高、设备占用大的问题,提出基于s-MTJ的量化SC-ANN,用离散量化权重和输出,在MNIST数据集上实现更高精度,延迟提升9倍、能耗提升2.6倍。

摘要:

人工神经网络(ANN)推理涉及矩阵向量乘法,需要大量乘累加运算,导致高能耗和大设备占用面积。随机计算(SC)提供了资源需求更低的ANN实现方式,可通过生成随机数的随机磁性隧道结(s-MTJ)实现,其上下状态切换的能垒被设计得较小。尽管s-MTJ此前已用于实现SC-ANN,但这些研究仅限于具有连续变化(模拟)权重的架构。我们研究了SC在量化突触权重和输出的矩阵向量乘法中的应用。我们发现,使用实验获得的s-MTJ比特流、且ANN的权重和隐藏层输出均采用有限数量离散量化状态实现的量化SC-ANN,与模拟实现相比,可有效降低SC的延迟和能耗,同时基本保持精度。我们在具有1个和3个隐藏层的神经网络上实现了5级和11级量化,并配置了100至500位长度的SC比特流。在MNIST数据集上分别进行了带SC和不带SC的推理训练,带SC的训练在所有情况下均提供了更高的精度。对于最短的100位比特流,1个隐藏层的最高精度为92%,3个隐藏层的最高精度超过96%。整个系统在使用3个隐藏层和400位随机比特流时达到96.82%的峰值精度,与类似的无量化s-MTJ基ANN架构相比,量化SC方法在神经元激活实现上的延迟提升了9倍,能耗提升了2.6倍。

英文摘要:

An Artificial Neural Network (ANN) inference involves matrix vector multiplications that require a very large number of multiply and accumulate operations, resulting in high energy cost and large device footprint. Stochastic computing (SC) offers a less resource-intensive ANN implementation and can be realized through stochastic-magnetic tunnel junctions (s-MTJ) that generate random numbers, where the energy barrier to switch between the up and down states is designed to be small. While s-MTJs have previously been used to implement SC-ANNs, these studies have been limited to architectures with continuously varying (analog) weights. We study the use of SC for matrix vector multiplication with quantized synaptic weights and outputs. We show that a quantized SC-ANN, implemented by using experimentally obtained s-MTJ bitstreams and using a limited number of discrete quantized states for both weights and hidden layer outputs in an ANN, can effectively reduce latency and energy consumption in SC compared to an analog implementation, while largely preserving accuracy. We implemented quantization with 5 and 11 quantized states, along with SC configured with stochastic bitstream lengths of 100 to 500 on neural networks with one and three hidden layers. Inference was performed on the MNIST dataset for both training with SC and without SC. Training with SC provided better accuracy for all cases. For the shortest bitstream of 100 bits, the highest accuracies were 92% for one hidden layer and over 96% for three hidden layers. The overall system attained its peak accuracy of 96.82% using a 400-bit stochastic bitstream with three hidden layers and demonstrated 9X improvement in latency to implement neuron activations and 2.6X improvement in energy consumption using the quantized SC approach compared to a similar s-MTJ based ANN architecture without quantization.

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

↑