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

BCIM:基于内存计算的二进制神经网络的高效实现

BCIM: Efficient Implementation of Binary Neural Network Based on Computation in Memory

Mahdi Zahedi, Taha Shahroodi, Stephan Wong, Said Hamdioui

摘要:

二进制神经网络(BNN)的应用是有前途的嵌入式系统与计算能力的硬约束。与浮点数据类型的传统神经网络相反,BNN使用二进制化的权重和激活,这额外地减少了内存需求。忆阻器是一种新兴的非易失性存储器件,通过集成存储和计算单元,显示出作为BNN目标实现平台的巨大潜力。能量和性能的改善主要是由于1)加速矩阵-矩阵乘法作为BNN的主要内核,2)减少von-Neumann架构中的存储器瓶颈,3)并带来大规模并行化。然而,这种硬件的效率在很大程度上取决于网络如何在这些设备上映射和执行。在本文中,我们提出了一个有效的实现XNOR为基础的BNN最大限度地提高并行化,同时使用一个简单的传感方案来生成激活值。此外,引入了一种新的映射,以最小化映射到不同忆阻器交叉条的卷积层之间的数据通信的开销。这伴随着广泛的分析和基于模拟的分析,以评估考虑网络精度的不同设计选择的影响。结果表明,我们的方法实现了$10\times$节能和$100\times$的延迟改善相比,国家的最先进的内存中的硬件设计。

英文摘要:

Applications of Binary Neural Networks (BNNs) are promising for embedded systems with hard constraints on computing power. Contrary to conventional neural networks with the floating-point datatype, BNNs use binarized weights and activations which additionally reduces memory requirements. Memristors, emerging non-volatile memory devices, show great potential as the target implementation platform for BNNs by integrating storage and compute units. The energy and performance improvements are mainly due to 1) accelerating matrix-matrix multiplication as the main kernel for BNNs, 2) diminishing memory bottleneck in von-Neumann architectures, 3) and bringing massive parallelization. However, the efficiency of this hardware highly depends on how the network is mapped and executed on these devices. In this paper, we propose an efficient implementation of XNOR-based BNN to maximize parallelization while using a simple sensing scheme to generate activation values. Besides, a new mapping is introduced to minimize the overhead of data communication between convolution layers mapped to different memristor crossbars. This comes with extensive analytical and simulation-based analysis to evaluate the implication of different design choices considering the accuracy of the network. The results show that our approach achieves up to $10\times$ energy-saving and $100\times$ improvement in latency compared to the state-of-the-art in-memory hardware design.

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

↑