BinSparX:用于降低 Xbar 阵列中硬件非理想性的稀疏化二值神经网络
BinSparX: Sparsified Binary Neural Networks for Reduced Hardware Non-Idealities in Xbar Arrays
AI总结:
本文提出无需训练的 BinSparX,通过静态权重稀疏化与动态激活稀疏化降低 Xbar 电流和 IR 压降,从而缓解 CiM-BNN 硬件非理想性,并在 7nm SRAM/ReRAM 实验中显著恢复精度。
摘要:
基于存内计算(CiM)的二值神经网络(CiM-BNN)加速器结合了 CiM 与超低精度量化的优势,因此非常适合边缘计算。然而,支持 CiM 的交叉开关(Xbar)阵列受到寄生电阻和器件非线性等硬件非理想性的困扰,这些问题会损害推理精度,在按比例缩小的工艺技术中尤为明显。在本工作中,我们首先分析了 Xbar 非理想性对各种 CiM-BNN 推理精度的影响,并证实 CiM-BNN 的独特性质使其相比更高精度的深度神经网络(DNN)更容易受到硬件非理想性影响。为解决这一问题,我们提出 BinSparX,这是一种无需训练的技术,可缓解 CiM-BNN 中的非理想性。BinSparX 利用 BNN 的鲜明属性来降低 Xbar 阵列中 CiM 操作期间产生的平均电流。其实现方式是分别对 BNN 权重和激活进行静态与动态稀疏化(在 BNN 语境中,这被定义为减少 +1 权重和激活的数量)。这会最大限度降低寄生电阻上的 IR 压降,从而显著减轻其对推理精度的影响。为评估该技术,我们在采用 7nm 工艺节点、使用 8T-SRAM 和 1T-1ReRAM 设计的 ResNet-18 与 VGG-small CiM-BNN 上进行了实验。结果表明,BinSparX 在缓解非理想性影响方面非常有效,在某些情况下可将推理精度恢复到接近理想(软件)水平,并带来最高 77.25% 的精度提升。这些收益还伴随着能耗降低,不过代价是延迟/面积略有增加。
英文摘要:
Compute-in-memory (CiM)-based binary neural network (CiM-BNN) accelerators marry the benefits of CiM and ultra-low precision quantization, making them highly suitable for edge computing. However, CiM-enabled crossbar (Xbar) arrays are plagued with hardware non-idealities like parasitic resistances and device non-linearities that impair inference accuracy, especially in scaled technologies. In this work, we first analyze the impact of Xbar non-idealities on the inference accuracy of various CiM-BNNs, establishing that the unique properties of CiM-BNNs make them more prone to hardware non-idealities compared to higher precision deep neural networks (DNNs). To address this issue, we propose BinSparX, a training-free technique that mitigates non-idealities in CiM-BNNs. BinSparX utilizes the distinct attributes of BNNs to reduce the average current generated during the CiM operations in Xbar arrays. This is achieved by statically and dynamically sparsifying the BNN weights and activations, respectively (which, in the context of BNNs, is defined as reducing the number of +1 weights and activations). This minimizes the IR drops across the parasitic resistances, drastically mitigating their impact on inference accuracy. To evaluate our technique, we conduct experiments on ResNet-18 and VGG-small CiM-BNNs designed at the 7nm technology node using 8T-SRAM and 1T-1ReRAM. Our results show that BinSparX is highly effective in alleviating the impact of non-idealities, recouping the inference accuracy to near-ideal (software) levels in some cases and providing accuracy boost of up to 77.25%. These benefits are accompanied by energy reduction, albeit at the cost of mild latency/area increase.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。