{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,24]],"date-time":"2026-09-24T17:19:05Z","timestamp":1790270345631,"version":"4.1.0"},"reference-count":64,"publisher":"Association for Computing Machinery (ACM)","issue":"1","license":[{"start":{"date-parts":[[2019,10,15]],"date-time":"2019-10-15T00:00:00Z","timestamp":1571097600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"funder":[{"DOI":"10.13039\/100000001","name":"National Science Foundation","doi-asserted-by":"publisher","award":["1642424"],"award-info":[{"award-number":["1642424"]}],"id":[{"id":"10.13039\/100000001","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["J. Emerg. Technol. Comput. Syst."],"published-print":{"date-parts":[[2020,1,31]]},"abstract":"<jats:p>Hardware implementations of Artificial Neural Networks (ANNs) using conventional binary arithmetic units are computationally expensive, energy-intensive, and have large area overheads. Stochastic Computing (SC) is an emerging paradigm that replaces these conventional units with simple logic circuits and is particularly suitable for fault-tolerant applications. We propose an energy-efficient use of Magnetic Tunnel Junctions (MTJs), a spintronic device that exhibits probabilistic switching behavior, as Stochastic Number Generators (SNGs), which forms the basis of our NN implementation in the SC domain. Further, the error resilience of target applications of NNs allows approximating the synaptic weights in our MTJ-based NN implementation, in ways brought about by properties of the MTJ-SNG, to achieve energy-efficiency. An algorithm is designed that, given an error tolerance, can perform such approximations in a single-layer NN in an optimal way owing to the convexity of the problem formulation. We then use this algorithm and develop a heuristic approach for approximating multi-layer NNs. Classification problems were evaluated on the optimized NNs and results showed substantial savings in energy for little loss in accuracy.<\/jats:p>","DOI":"10.1145\/3359622","type":"journal-article","created":{"date-parts":[[2019,10,15]],"date-time":"2019-10-15T16:35:58Z","timestamp":1571157358000},"page":"1-27","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":12,"title":["Energy-efficient Design of MTJ-based Neural Networks with Stochastic Computing"],"prefix":"10.1145","volume":"16","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-9847-4225","authenticated-orcid":false,"given":"Ankit","family":"Mondal","sequence":"first","affiliation":[{"name":"University of Maryland College Park, MD"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Ankur","family":"Srivastava","sequence":"additional","affiliation":[{"name":"University of Maryland College Park, MD"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2019,10,15]]},"reference":[{"key":"e_1_2_1_1_1","unstructured":"National Institute of Standards and Technology. 2017. The NIST Statistical Test Suite. Retrieved from: https:\/\/github.com\/arcetri\/sts.  National Institute of Standards and Technology. 2017. The NIST Statistical Test Suite. Retrieved from: https:\/\/github.com\/arcetri\/sts."},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","DOI":"10.1145\/2465787.2465794"},{"key":"e_1_2_1_3_1","volume-title":"Proceedings of the 9th International Symposium on Turbo Codes and Iterative Information Processing (ISTC\u201916)","author":"Ardakani Arash","unstructured":"Arash Ardakani , Fran\u00e7ois Leduc-Primeau , Naoya Onizawa , Takahiro Hanyu , and Warren J. Gross . 2016. VLSI implementation of deep neural networks using integral stochastic computing . In Proceedings of the 9th International Symposium on Turbo Codes and Iterative Information Processing (ISTC\u201916) . IEEE, 216--220. Arash Ardakani, Fran\u00e7ois Leduc-Primeau, Naoya Onizawa, Takahiro Hanyu, and Warren J. Gross. 2016. VLSI implementation of deep neural networks using integral stochastic computing. In Proceedings of the 9th International Symposium on Turbo Codes and Iterative Information Processing (ISTC\u201916). IEEE, 216--220."},{"key":"e_1_2_1_4_1","volume-title":"Convex Optimization","author":"Boyd Stephen","unstructured":"Stephen Boyd and Lieven Vandenberghe . 2004. Convex Optimization . Cambridge University Press . Stephen Boyd and Lieven Vandenberghe. 2004. Convex Optimization. Cambridge University Press."},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1109\/12.954505"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1109\/TNNLS.2015.2413754"},{"key":"e_1_2_1_7_1","volume-title":"Modeling wine preferences by data mining from physicochemical properties. Dec. Supp. Syst. 47, 4","author":"Cortez Paulo","year":"2009","unstructured":"Paulo Cortez , Ant\u00f3nio Cerdeira , Fernando Almeida , Telmo Matos , and Jos\u00e9 Reis . 2009. Modeling wine preferences by data mining from physicochemical properties. Dec. Supp. Syst. 47, 4 ( 2009 ), 547--553. DOI:https:\/\/doi.org\/10.1016\/j.dss.2009.05.016. 10.1016\/j.dss.2009.05.016 Paulo Cortez, Ant\u00f3nio Cerdeira, Fernando Almeida, Telmo Matos, and Jos\u00e9 Reis. 2009. Modeling wine preferences by data mining from physicochemical properties. Dec. Supp. Syst. 47, 4 (2009), 547--553. DOI:https:\/\/doi.org\/10.1016\/j.dss.2009.05.016."},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1109\/NEWCAS.2015.7182031"},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.1088\/0953-8984\/19\/16\/165209"},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.7567\/APEX.7.083001"},{"key":"e_1_2_1_11_1","doi-asserted-by":"publisher","DOI":"10.1039\/c3nr01176c"},{"key":"e_1_2_1_12_1","volume-title":"Advances in Information Systems Science","author":"Gaines Brian R.","unstructured":"Brian R. Gaines . 1969. Stochastic computing systems . In Advances in Information Systems Science . Springer , 37--172. Brian R. Gaines. 1969. Stochastic computing systems. In Advances in Information Systems Science. Springer, 37--172."},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1016\/0893-6080(88)90023-8"},{"key":"e_1_2_1_14_1","volume-title":"CVX: Matlab Software for Disciplined Convex Programming, version 2.1. Retrieved from: http:\/\/cvxr.com\/cvx.","author":"Grant Michael","year":"2014","unstructured":"Michael Grant and Stephen Boyd . 2014 . CVX: Matlab Software for Disciplined Convex Programming, version 2.1. Retrieved from: http:\/\/cvxr.com\/cvx. Michael Grant and Stephen Boyd. 2014. CVX: Matlab Software for Disciplined Convex Programming, version 2.1. Retrieved from: http:\/\/cvxr.com\/cvx."},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1109\/ETS.2013.6569370"},{"key":"e_1_2_1_16_1","volume-title":"Proceedings of the Conference on Advances in Neural Information Processing Systems. 1135--1143","author":"Han Song","year":"2015","unstructured":"Song Han , Jeff Pool , John Tran , and William Dally . 2015 . Learning both weights and connections for efficient neural network . In Proceedings of the Conference on Advances in Neural Information Processing Systems. 1135--1143 . Song Han, Jeff Pool, John Tran, and William Dally. 2015. Learning both weights and connections for efficient neural network. In Proceedings of the Conference on Advances in Neural Information Processing Systems. 1135--1143."},{"key":"e_1_2_1_17_1","volume-title":"Proceedings of the 53rd Design Automation Conference (DAC\u201916)","author":"Hu Miao","unstructured":"Miao Hu , John Paul Strachan , Zhiyong Li , Emmanuelle M. Grafals , Noraica Davila , Catherine Graves , Sity Lam , Ning Ge , Jianhua Joshua Yang , and R. Stanley Williams . 2016. Dot-product engine for neuromorphic computing: Programming 1T1M crossbar to accelerate matrix-vector multiplication . In Proceedings of the 53rd Design Automation Conference (DAC\u201916) . IEEE, 1--6. Miao Hu, John Paul Strachan, Zhiyong Li, Emmanuelle M. Grafals, Noraica Davila, Catherine Graves, Sity Lam, Ning Ge, Jianhua Joshua Yang, and R. Stanley Williams. 2016. Dot-product engine for neuromorphic computing: Programming 1T1M crossbar to accelerate matrix-vector multiplication. In Proceedings of the 53rd Design Automation Conference (DAC\u201916). IEEE, 1--6."},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1109\/ASPDAC.2014.6742993"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1166\/jolpe.2018.1579"},{"key":"e_1_2_1_20_1","first-page":"33","article-title":"Spin-transfer torque MRAM (STT-MRAM): Challenges and prospects","volume":"18","author":"Huai Yiming","year":"2008","unstructured":"Yiming Huai . 2008 . Spin-transfer torque MRAM (STT-MRAM): Challenges and prospects . AAPPS Bull. 18 (2008), 33 -- 40 . Yiming Huai. 2008. Spin-transfer torque MRAM (STT-MRAM): Challenges and prospects. AAPPS Bull. 18 (2008), 33--40.","journal-title":"AAPPS Bull."},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1038\/nmat2804"},{"key":"e_1_2_1_22_1","volume-title":"SPINBIS: Spintronics based Bayesian inference system with stochastic computing","author":"Jia Xiaotao","year":"2019","unstructured":"Xiaotao Jia , Jianlei Yang , Pengcheng Dai , Runze Liu , Yiran Chen , and Weisheng Zhao . 2019 . SPINBIS: Spintronics based Bayesian inference system with stochastic computing . IEEE Trans. Comput.-Aided Des. Integ. Circ. Syst . (2019). DOI:10.1109\/TCAD.2019.2897631 10.1109\/TCAD.2019.2897631 Xiaotao Jia, Jianlei Yang, Pengcheng Dai, Runze Liu, Yiran Chen, and Weisheng Zhao. 2019. SPINBIS: Spintronics based Bayesian inference system with stochastic computing. IEEE Trans. Comput.-Aided Des. Integ. Circ. Syst. (2019). DOI:10.1109\/TCAD.2019.2897631"},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.5555\/3201607.3201742"},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.1038\/s41467-017-00869-x"},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.1145\/2897937.2898058"},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1109\/TED.2016.2594170"},{"key":"e_1_2_1_27_1","volume-title":"Proceedings of the Custom Integrated Circuits Conference (CICC\u201915)","author":"Kim Jongyeon","unstructured":"Jongyeon Kim , An Chen , Behtash Behin-Aein , Saurabh Kumar , Jian-Ping Wang , and Chris H. Kim . 2015. A technology-agnostic MTJ SPICE model with user-defined dimensions for STT-MRAM scalability studies . In Proceedings of the Custom Integrated Circuits Conference (CICC\u201915) . IEEE, 1--4. Jongyeon Kim, An Chen, Behtash Behin-Aein, Saurabh Kumar, Jian-Ping Wang, and Chris H. Kim. 2015. A technology-agnostic MTJ SPICE model with user-defined dimensions for STT-MRAM scalability studies. In Proceedings of the Custom Integrated Circuits Conference (CICC\u201915). IEEE, 1--4."},{"key":"e_1_2_1_28_1","doi-asserted-by":"publisher","DOI":"10.1109\/JPROC.2014.2361767"},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.1145\/2897937.2898011"},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","DOI":"10.1109\/ISOCC.2015.7401667"},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.1109\/TNANO.2014.2300342"},{"key":"e_1_2_1_32_1","volume-title":"Burges","author":"LeCun Yann","year":"1998","unstructured":"Yann LeCun , Corinna Cortes , and Christopher J. C . Burges . 1998 . The MNIST database of handwritten digits. Retrieved from http:\/\/yann.lecun.com\/exdb\/mnist. Yann LeCun, Corinna Cortes, and Christopher J. C. Burges. 1998. The MNIST database of handwritten digits. Retrieved from http:\/\/yann.lecun.com\/exdb\/mnist."},{"key":"e_1_2_1_33_1","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1109\/TMAG.2014.2367130","article-title":"Design of a fast and low-power sense amplifier and writing circuit for high-speed MRAM","volume":"51","author":"Lee Hochul","year":"2015","unstructured":"Hochul Lee , Juan G. Alzate , Richard Dorrance , Xue Qing Cai , Dejan Markovi\u0107 , Pedram Khalili Amiri , 2015 . Design of a fast and low-power sense amplifier and writing circuit for high-speed MRAM . IEEE Trans. Magnet. 51 , 5 (2015), 1 -- 7 . Hochul Lee, Juan G. Alzate, Richard Dorrance, Xue Qing Cai, Dejan Markovi\u0107, Pedram Khalili Amiri, et al. 2015. Design of a fast and low-power sense amplifier and writing circuit for high-speed MRAM. IEEE Trans. Magnet. 51, 5 (2015), 1--7.","journal-title":"IEEE Trans. Magnet."},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1145\/3309882"},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.1145\/3284933"},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.1109\/IJCNN.2017.7965993"},{"key":"e_1_2_1_37_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICCD.2016.7753357"},{"key":"e_1_2_1_38_1","volume-title":"Magnetization dynamics with a spin-transfer torque. Phys. Rev. B","author":"Li Z.","year":"2003","unstructured":"Z. Li and Shufeng Zhang . 2003. Magnetization dynamics with a spin-transfer torque. Phys. Rev. B ( 2003 ). Z. Li and Shufeng Zhang. 2003. Magnetization dynamics with a spin-transfer torque. Phys. Rev. B (2003)."},{"key":"e_1_2_1_39_1","unstructured":"M. Lichman. 2013. UCI Machine Learning Repository. Retrieved from http:\/\/archive.ics.uci.edu\/ml.  M. Lichman. 2013. UCI Machine Learning Repository. Retrieved from http:\/\/archive.ics.uci.edu\/ml."},{"key":"e_1_2_1_40_1","doi-asserted-by":"publisher","DOI":"10.23919\/DATE.2018.8342191"},{"key":"e_1_2_1_41_1","doi-asserted-by":"publisher","DOI":"10.1109\/TC.2016.2574353"},{"key":"e_1_2_1_42_1","doi-asserted-by":"publisher","DOI":"10.1109\/ISLPED.2017.8009167"},{"key":"e_1_2_1_43_1","doi-asserted-by":"publisher","DOI":"10.1109\/JETCAS.2014.2361070"},{"key":"e_1_2_1_44_1","doi-asserted-by":"publisher","DOI":"10.1145\/2966986.2967021"},{"key":"e_1_2_1_45_1","doi-asserted-by":"publisher","DOI":"10.1063\/1.4967352"},{"key":"e_1_2_1_46_1","doi-asserted-by":"publisher","DOI":"10.1016\/S0065-2458(08)60452-0"},{"key":"e_1_2_1_47_1","volume-title":"Advances in Computers.","author":"Poppelbaum W. J.","unstructured":"W. J. Poppelbaum , Apostolos Dollas , J. B. Glickman , and C. O\u2019Toole . 1987. Unary processing . In Advances in Computers. Vol. 26 . Elsevier , 47--92. W. J. Poppelbaum, Apostolos Dollas, J. B. Glickman, and C. O\u2019Toole. 1987. Unary processing. In Advances in Computers. Vol. 26. Elsevier, 47--92."},{"key":"e_1_2_1_48_1","doi-asserted-by":"publisher","DOI":"10.1109\/TC.2010.202"},{"key":"e_1_2_1_49_1","doi-asserted-by":"publisher","DOI":"10.1109\/TMAG.2017.2696041"},{"key":"e_1_2_1_50_1","volume-title":"Neural Networks for Applied Sciences and Engineering: From Fundamentals to Complex Pattern Recognition","author":"Samarasinghe Sandhya","unstructured":"Sandhya Samarasinghe . 2016. Neural Networks for Applied Sciences and Engineering: From Fundamentals to Complex Pattern Recognition . CRC Press . Sandhya Samarasinghe. 2016. Neural Networks for Applied Sciences and Engineering: From Fundamentals to Complex Pattern Recognition. CRC Press."},{"key":"e_1_2_1_51_1","doi-asserted-by":"publisher","DOI":"10.23919\/DATE.2017.7927045"},{"key":"e_1_2_1_52_1","doi-asserted-by":"publisher","DOI":"10.3103\/S1060992X15020125"},{"key":"e_1_2_1_53_1","doi-asserted-by":"publisher","DOI":"10.1109\/DSD.2014.75"},{"key":"e_1_2_1_54_1","doi-asserted-by":"publisher","DOI":"10.1109\/TMAG.2011.2105860"},{"key":"e_1_2_1_55_1","doi-asserted-by":"publisher","DOI":"10.1145\/2627369.2627613"},{"key":"e_1_2_1_56_1","doi-asserted-by":"publisher","DOI":"10.7873\/DATE.2015.0460"},{"key":"e_1_2_1_57_1","doi-asserted-by":"publisher","DOI":"10.1088\/0022-3727\/46\/7\/074003"},{"key":"e_1_2_1_58_1","volume-title":"Proceedings of the IEEE\/ACM International Symposium on Nanoscale Architectures (NANOARCH\u201916)","author":"Wang You","year":"2016","unstructured":"You Wang , Hao Cai , Lirida A. B. Naviner , Jacques-Olivier Klein , Jianlei Yang , and Weisheng Zhao . 2016 . A novel circuit design of true random number generator using magnetic tunnel junction . In Proceedings of the IEEE\/ACM International Symposium on Nanoscale Architectures (NANOARCH\u201916) . IEEE, 123--128. You Wang, Hao Cai, Lirida A. B. Naviner, Jacques-Olivier Klein, Jianlei Yang, and Weisheng Zhao. 2016. A novel circuit design of true random number generator using magnetic tunnel junction. In Proceedings of the IEEE\/ACM International Symposium on Nanoscale Architectures (NANOARCH\u201916). IEEE, 123--128."},{"key":"e_1_2_1_59_1","doi-asserted-by":"publisher","DOI":"10.1109\/ASPDAC.2017.7858418"},{"key":"e_1_2_1_60_1","volume-title":"Proceedings of the IEEE\/ACM International Symposium on Nanoscale Architectures (NANOARCH\u201916)","author":"Zhang Deming","year":"2016","unstructured":"Deming Zhang , Lang Zeng , Youguang Zhang , Weisheng Zhao , and Jacques Olivier Klein . 2016 . Stochastic spintronic device based synapses and spiking neurons for neuromorphic computation . In Proceedings of the IEEE\/ACM International Symposium on Nanoscale Architectures (NANOARCH\u201916) . IEEE, 173--178. Deming Zhang, Lang Zeng, Youguang Zhang, Weisheng Zhao, and Jacques Olivier Klein. 2016. Stochastic spintronic device based synapses and spiking neurons for neuromorphic computation. In Proceedings of the IEEE\/ACM International Symposium on Nanoscale Architectures (NANOARCH\u201916). IEEE, 173--178."},{"key":"e_1_2_1_61_1","doi-asserted-by":"publisher","DOI":"10.7873\/DATE.2015.0618"},{"key":"e_1_2_1_62_1","volume-title":"Proceedings of the Conference on Design, Automation and Test in Europe. EDA Consortium, 1313--1318","author":"Zhang Yaojun","year":"2012","unstructured":"Yaojun Zhang , Xiaobin Wang , Yong Li , Alex K. Jones , and Yiran Chen . 2012 . Asymmetry of MTJ switching and its implication to STT-RAM designs . In Proceedings of the Conference on Design, Automation and Test in Europe. EDA Consortium, 1313--1318 . Yaojun Zhang, Xiaobin Wang, Yong Li, Alex K. Jones, and Yiran Chen. 2012. Asymmetry of MTJ switching and its implication to STT-RAM designs. In Proceedings of the Conference on Design, Automation and Test in Europe. EDA Consortium, 1313--1318."},{"key":"e_1_2_1_63_1","doi-asserted-by":"publisher","DOI":"10.1109\/NANO.2013.6720849"},{"key":"e_1_2_1_64_1","doi-asserted-by":"publisher","DOI":"10.1016\/S1369-7021(06)71693-5"}],"container-title":["ACM Journal on Emerging Technologies in Computing Systems"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3359622","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3359622","content-type":"application\/pdf","content-version":"vor","intended-application":"syndication"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3359622","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T23:23:06Z","timestamp":1750202586000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3359622"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2019,10,15]]},"references-count":64,"journal-issue":{"issue":"1","published-print":{"date-parts":[[2020,1,31]]}},"alternative-id":["10.1145\/3359622"],"URL":"https:\/\/doi.org\/10.1145\/3359622","relation":{},"ISSN":["1550-4832","1550-4840"],"issn-type":[{"value":"1550-4832","type":"print"},{"value":"1550-4840","type":"electronic"}],"subject":[],"published":{"date-parts":[[2019,10,15]]},"assertion":[{"value":"2018-07-01","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2019-08-01","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2019-10-15","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}