arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.07902cs.ETcs.AR
收藏

Bayes2IMC:面向贝叶斯二值神经网络的存内计算

Bayes2IMC: In-Memory Computing for Bayesian Binary Neural Networks

Prabodh Katti, Clement Ruah, Osvaldo Simeone, Bashir M. Al-Hashimi, Bipin Rajendran

AI总结:

针对贝叶斯神经网络集成推理资源消耗高的问题,提出基于PCM固有随机性的Bayes2IMC存内计算架构,通过软硬件协同校正与电导漂移补偿保证精度,相较SRAM基线及现有忆阻BNN架构显著提升能效。

摘要:

贝叶斯神经网络(BNNs)通过生成预测分布集成集来提供更优的不确定性估计。然而,基于集成集的推理过程资源消耗极高,需要额外的熵源来生成随机性,这进一步增加了资源开销。我们提出了Bayes2IMC,这是一种专为二值贝叶斯神经网络设计的存内计算(IMC)架构,它利用纳米级器件的固有随机性来生成所需的分布。我们的创新方法采用相变存储器(PCM)来利用其固有的噪声特性,从而实现二值神经网络的构建。该设计无需在神经元前端设置模数转换器(ADC),显著提升了功耗与面积效率。我们还开发了一种软硬件协同优化的校正方法,该方法仅作用于最后一层的logits(对数几率),以降低硬件部署过程中由器件差异导致的精度波动。此外,我们设计了一种简单的补偿技术,即使PCM发生电导漂移,也能保证分类精度不下降。我们在CIFAR-10数据集上使用VGGBinaryConnect模型验证了所提方法的有效性,其精度指标与理想软件实现相当,也与文献中采用其他技术报道的结果相当。最后,我们提出了完整的核心架构,并将其预估的功耗、性能和面积效率与等效的SRAM基线进行了对比,结果显示其总效率(单位为GOPS/W/mm²)提升了3.8至9.6倍,功耗效率(单位为GOPS/W)提升了2.2至5.6倍。此外,Bayes2IMC的预估硬件性能超过了文献中报道的大多数基于忆阻器件的BNN架构,与现有最优方案相比,功耗效率最高提升了20%。

英文摘要:

Bayesian Neural Networks (BNNs) provide superior estimates of uncertainty by generating an ensemble of predictive distributions. However, inference via ensembling is resource-intensive, requiring additional entropy sources to generate stochasticity which increases resource consumption. We introduce Bayes2IMC, an in-memory computing (IMC) architecture designed for binary Bayesian neural networks that leverage nanoscale device stochasticity to generate desired distributions. Our novel approach utilizes Phase-Change Memory (PCM) to harness inherent noise characteristics, enabling the creation of a binary neural network. This design eliminates the necessity for a pre-neuron Analog-to-Digital Converter (ADC), significantly improving power and area efficiency. We also develop a hardware-software co-optimized correction method applied solely on the logits in the final layer to reduce device-induced accuracy variations across deployments on hardware. Additionally, we devise a simple compensation technique that ensures no drop in classification accuracy despite conductance drift of PCM. We validate the effectiveness of our approach on the CIFAR-10 dataset with a VGGBinaryConnect model, achieving accuracy metrics comparable to ideal software implementations as well as results reported in the literature using other technologies. Finally, we present a complete core architecture and compare its projected power, performance, and area efficiency against an equivalent SRAM baseline, showing a $3.8$ to $9.6 \times$ improvement in total efficiency (in GOPS/W/mm$^2$) and a $2.2 $ to $5.6 \times$ improvement in power efficiency (in GOPS/W). In addition, the projected hardware performance of Bayes2IMC surpasses that of most of the BNN architectures based on memristive devices reported in the literature, and achieves up to $20\%$ higher power efficiency compared to the state-of-the-art.

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

↑