T. Hirtzlin, Bogdan Penkovsky, Jacques-Olivier Klein, N. Locatelli, A. Vincent, M. Bocquet, J. Portal, D. Querlioz
{"title":"Implementing Binarized Neural Networks with Magnetoresistive RAM without Error Correction","authors":"T. Hirtzlin, Bogdan Penkovsky, Jacques-Olivier Klein, N. Locatelli, A. Vincent, M. Bocquet, J. Portal, D. Querlioz","doi":"10.1109/NANOARCH47378.2019.181300","DOIUrl":null,"url":null,"abstract":"One of the most exciting applications of Spin Torque Magnetoresistive Random Access Memory (ST-MRAM) is the in-memory implementation of deep neural networks, which could allow improving the energy efficiency of Artificial Intelligence by orders of magnitude with regards to its implementation on computers and graphics cards. In particular, ST-MRAM could be ideal for implementing Binarized Neural Networks (BNNs), a type of deep neural networks discovered in 2016, which can achieve state-of-the-art performance with a highly reduced memory footprint with regards to conventional artificial intelligence approaches. The challenge of ST-MRAM, however, is that it is prone to write errors and usually requires the use of error correction. In this work, we show that these bit errors can be tolerated by BNNs to an outstanding level, based on examples of image recognition tasks (MNIST, CIFAR-10 and ImageNet): bit error rates of ST-MRAM up to 0.1% have little impact on recognition accuracy. The requirements for ST-MRAM are therefore considerably relaxed for BNNs with regards to traditional applications. By consequence, we show that for BNNs, ST-MRAMs can be programmed with weak (low-energy) programming conditions, without error correcting codes. We show that this result can allow the use of low energy and low area ST-MRAM cells, and show that the energy savings at the system level can reach a factor two.","PeriodicalId":229795,"journal":{"name":"2019 IEEE/ACM International Symposium on Nanoscale Architectures (NANOARCH)","volume":"112 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2019-07-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"12","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2019 IEEE/ACM International Symposium on Nanoscale Architectures (NANOARCH)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/NANOARCH47378.2019.181300","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 12
Abstract
One of the most exciting applications of Spin Torque Magnetoresistive Random Access Memory (ST-MRAM) is the in-memory implementation of deep neural networks, which could allow improving the energy efficiency of Artificial Intelligence by orders of magnitude with regards to its implementation on computers and graphics cards. In particular, ST-MRAM could be ideal for implementing Binarized Neural Networks (BNNs), a type of deep neural networks discovered in 2016, which can achieve state-of-the-art performance with a highly reduced memory footprint with regards to conventional artificial intelligence approaches. The challenge of ST-MRAM, however, is that it is prone to write errors and usually requires the use of error correction. In this work, we show that these bit errors can be tolerated by BNNs to an outstanding level, based on examples of image recognition tasks (MNIST, CIFAR-10 and ImageNet): bit error rates of ST-MRAM up to 0.1% have little impact on recognition accuracy. The requirements for ST-MRAM are therefore considerably relaxed for BNNs with regards to traditional applications. By consequence, we show that for BNNs, ST-MRAMs can be programmed with weak (low-energy) programming conditions, without error correcting codes. We show that this result can allow the use of low energy and low area ST-MRAM cells, and show that the energy savings at the system level can reach a factor two.
自旋扭矩磁阻随机存取存储器(ST-MRAM)最令人兴奋的应用之一是深度神经网络的内存实现,它可以提高人工智能在计算机和显卡上实现的数量级的能源效率。特别是,ST-MRAM可能是实现二值化神经网络(bnn)的理想选择,bnn是2016年发现的一种深度神经网络,与传统的人工智能方法相比,它可以实现最先进的性能,同时大大减少内存占用。然而,ST-MRAM的挑战在于它容易出现写入错误,并且通常需要使用纠错。在这项工作中,基于图像识别任务(MNIST, CIFAR-10和ImageNet)的示例,我们证明了这些误码率可以被bnn容忍到一个出色的水平:ST-MRAM的误码率高达0.1%对识别精度的影响很小。因此,与传统应用相比,bnn对ST-MRAM的要求相当宽松。因此,我们证明了对于bnn, st - mram可以在弱(低能量)编程条件下编程,而无需纠错码。我们表明,这一结果可以允许使用低能量和低面积的ST-MRAM电池,并表明在系统层面上的节能可以达到两倍。