{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,2,17]],"date-time":"2026-02-17T17:57:20Z","timestamp":1771351040479,"version":"3.50.1"},"reference-count":57,"publisher":"Association for Computing Machinery (ACM)","issue":"4","license":[{"start":{"date-parts":[[2023,5,17]],"date-time":"2023-05-17T00:00:00Z","timestamp":1684281600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"funder":[{"name":"C-BRIC, a JUMP center sponsored by DARPA and SRC, Google Research Scholar Award, the National Science Foundation","award":["1947826"],"award-info":[{"award-number":["1947826"]}]},{"name":"TII"},{"name":"DARPA AI Exploration (AIE) program, and the DoE MMICC center SEA-CROGS","award":["DE-SC0023198"],"award-info":[{"award-number":["DE-SC0023198"]}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Des. Autom. Electron. Syst."],"published-print":{"date-parts":[[2023,7,31]]},"abstract":"<jats:p>Memristive crossbars can efficiently implement<jats:italic>Binarized Neural Networks<\/jats:italic>(BNNs) wherein the weights are stored in high-resistance states (HRS) and low-resistance states (LRS) of the synapses. We propose<jats:italic>SwitchX<\/jats:italic>mapping of BNN weights onto ReRAM crossbars such that the impact of crossbar non-idealities, that lead to degradation in computational accuracy, are minimized. Essentially,<jats:italic>SwitchX<\/jats:italic>maps the binary weights in such a manner that a crossbar instance comprises of more HRS than LRS synapses. We find BNNs mapped onto crossbars with<jats:italic>SwitchX<\/jats:italic>to exhibit better robustness against adversarial attacks than the standard crossbar-mapped BNNs, the baseline. Finally, we combine<jats:italic>SwitchX<\/jats:italic>with state-aware training (that further increases the feasibility of HRS states during weight mapping) to boost the robustness of a BNN on hardware. We find that this approach yields stronger defense against adversarial attacks than adversarial training, a state-of-the-art software defense. We perform experiments on a VGG16 BNN with benchmark datasets (CIFAR-10, CIFAR-100 and TinyImagenet) and use<jats:italic>Fast Gradient Sign Method<\/jats:italic>(\u03b5 = 0.05 to 0.3) and<jats:italic>Projected Gradient Descent<\/jats:italic>(<jats:inline-formula content-type=\"math\/tex\"><jats:tex-math notation=\"LaTeX\" version=\"MathJax\">\\(\\epsilon =\\frac{2}{255}\\)<\/jats:tex-math><\/jats:inline-formula>to<jats:inline-formula content-type=\"math\/tex\"><jats:tex-math notation=\"LaTeX\" version=\"MathJax\">\\(\\frac{32}{255},~\\alpha =\\frac{2}{255}\\)<\/jats:tex-math><\/jats:inline-formula>) adversarial attacks. We show that<jats:italic>SwitchX<\/jats:italic>combined with state-aware training can yield upto \u223c35% improvements in clean accuracy and \u223c6\u201316% in adversarial accuracies against conventional BNNs. Furthermore, an important by-product of<jats:italic>SwitchX<\/jats:italic>mapping is increased crossbar power savings, owing to an increased proportion of HRS synapses, which is furthered with state-aware training. We obtain upto \u223c21\u201322% savings in crossbar power consumption for state-aware trained BNN mapped via<jats:italic>SwitchX<\/jats:italic>on 16 \u00d7 16 and 32 \u00d7 32 crossbars using the CIFAR-10 and CIFAR-100 datasets.<\/jats:p>","DOI":"10.1145\/3576195","type":"journal-article","created":{"date-parts":[[2022,12,12]],"date-time":"2022-12-12T14:48:25Z","timestamp":1670856505000},"page":"1-21","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":10,"title":["<i>SwitchX<\/i>: Gmin-Gmax Switching for Energy-efficient and Robust Implementation of Binarized Neural Networks on ReRAM Xbars"],"prefix":"10.1145","volume":"28","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-7721-271X","authenticated-orcid":false,"given":"Abhiroop","family":"Bhattacharjee","sequence":"first","affiliation":[{"name":"Yale University, New Haven, CT"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-4167-6782","authenticated-orcid":false,"given":"Priyadarshini","family":"Panda","sequence":"additional","affiliation":[{"name":"Yale University, New Haven, CT"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2023,5,17]]},"reference":[{"key":"e_1_3_1_2_2","doi-asserted-by":"crossref","unstructured":"Aayush Ankit Izzat El Hajj Sai Rahul Chalamalasetti Geo\u0327rey Ndu Martin Foltin R. Stanley Williams Paolo Faraboschi Wen-mei W. Hwu John Paul Strachan Kaushik Roy et\u00a0al. 2019. PUMA: A programmable ultra-efficient memristor-based accelerator for machine learning inference. In Proceedings of the Twenty-Fourth International Conference on Architectural Support for Programming Languages and Operating Systems . 715\u2013731.","DOI":"10.1145\/3297858.3304049"},{"key":"e_1_3_1_3_2","unstructured":"Abhiroop Bhattacharjee and Priyadarshini Panda. 2020. Rethinking non-idealities in memristive crossbars for adversarial robustness in neural networks. arXiv preprint arXiv:2008.11298 (2020)."},{"key":"e_1_3_1_4_2","doi-asserted-by":"crossref","unstructured":"Abhiroop Bhattacharjee Abhishek Moitra and Priyadarshini Panda. 2021. Efficiency-driven hardware optimization for adversarially robust neural networks. In 2021 Design Automation & Test in Europe Conference & Exhibition (DATE) . IEEE 884\u2013889.","DOI":"10.23919\/DATE51398.2021.9474001"},{"key":"e_1_3_1_5_2","doi-asserted-by":"crossref","unstructured":"Abhiroop Bhattacharjee Lakshya Bhatnagar Youngeun Kim and Priyadarshini Panda. 2021. NEAT: Non-linearity aware training for accurate energy-efficient and robust implementation of neural networks on 1T-1R crossbars. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems 41 8 (2021) 2625\u20132637.","DOI":"10.1109\/TCAD.2021.3109857"},{"key":"e_1_3_1_6_2","unstructured":"Nicholas Carlini Anish Athalye Nicolas Papernot Wieland Brendel Jonas Rauber Dimitris Tsipras Ian Goodfellow Aleksander Madry and Alexey Kurakin. 2019. On evaluating adversarial robustness. arXiv preprint arXiv:1902.06705 (2019)."},{"key":"e_1_3_1_7_2","doi-asserted-by":"crossref","unstructured":"Indranil Chakraborty Mustafa Fayez Ali Dong Eun Kim Aayush Ankit and Kaushik Roy. 2020. GENIEx: A generalized approach to emulating non-ideality in memristive xbars using neural networks. In 2020 57th ACM\/IEEE Design Automation Conference (DAC) . IEEE 1\u20136.","DOI":"10.1109\/DAC18072.2020.9218688"},{"key":"e_1_3_1_8_2","doi-asserted-by":"publisher","DOI":"10.1063\/1.5113536"},{"key":"e_1_3_1_9_2","doi-asserted-by":"crossref","unstructured":"Meng-Fan Chang Albert Lee Pin-Cheng Chen Chrong Jung Lin Ya-Chin King Shyh-Shyuan Sheu and Tzu-Kun Ku. 2015. Challenges and circuit techniques for energy-efficient on-chip nonvolatile memory using memristive devices. IEEE Journal on Emerging and Selected Topics in Circuits and Systems 5 2 (2015) 183\u2013193.","DOI":"10.1109\/JETCAS.2015.2426531"},{"key":"e_1_3_1_10_2","doi-asserted-by":"crossref","unstructured":"Wei-Hao Chen Win-San Khwa Jun-Yi Li Wei-Yu Lin Huan-Ting Lin Yongpan Liu Yu Wang Huaqiang Wu Huazhong Yang and Meng-Fan Chang. 2017. Circuit design for beyond von Neumann applications using emerging memory: From nonvolatile logics to neuromorphic computing. In 2017 18th International Symposium on Quality Electronic Design (ISQED) . IEEE 23\u201328.","DOI":"10.1109\/ISQED.2017.7918287"},{"key":"e_1_3_1_11_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICCAD.2015.7372570"},{"key":"e_1_3_1_12_2","doi-asserted-by":"publisher","DOI":"10.1109\/ISSCC.2018.8310400"},{"key":"e_1_3_1_13_2","doi-asserted-by":"publisher","DOI":"10.1088\/1361-6641\/ac461f"},{"key":"e_1_3_1_14_2","doi-asserted-by":"publisher","DOI":"10.1109\/TED.2012.2231683"},{"key":"e_1_3_1_15_2","doi-asserted-by":"publisher","DOI":"10.1109\/TNANO.2015.2437902"},{"key":"e_1_3_1_16_2","unstructured":"Ian J. Goodfellow Jonathon Shlens and Christian Szegedy. 2014. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572 (2014)."},{"key":"e_1_3_1_17_2","volume-title":"Proceedings of the Advances in Neural Information Processing Systems.","volume":"32","author":"Gui Shupeng","year":"2019","unstructured":"Shupeng Gui, Haotao Wang, Haichuan Yang, Chen Yu, Zhangyang Wang, and Ji Liu. 2019. Model compression with adversarial robustness: A unified optimization framework. In Proceedings of the Advances in Neural Information Processing Systems.H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alch\u00e9-Buc, E. Fox, and R. Garnett (Eds.), Vol. 32, Curran Associates, Inc.Retrieved from https:\/\/proceedings.neurips.cc\/paper\/2019\/file\/2ca65f58e35d9ad45bf7f3ae5cfd08f1-Paper.pdf."},{"key":"e_1_3_1_18_2","doi-asserted-by":"publisher","DOI":"10.1109\/ACCESS.2019.2954753"},{"key":"e_1_3_1_19_2","unstructured":"Yintao He Ying Wang Xiandong Zhao Huawei Li and Xiaowei Li. 2020. Towards state-aware computation in ReRAM neural networks. In 2020 57th ACM\/IEEE Design Automation Conference (DAC) . IEEE 1\u20136."},{"key":"e_1_3_1_20_2","first-page":"1","article-title":"Saving energy of RRAM-based neural accelerator through state-aware computing","author":"He Yintao","year":"2021","unstructured":"Yintao He, Ying Wang, Huawei Li, and Xiaowei Li. 2021. Saving energy of RRAM-based neural accelerator through state-aware computing. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems (2021), 1\u20131. DOI:https:\/\/doi.org\/10.1109\/TCAD.2021.3103147","journal-title":"IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems"},{"key":"e_1_3_1_21_2","doi-asserted-by":"publisher","DOI":"10.1109\/AICAS.2019.8771544"},{"key":"e_1_3_1_22_2","article-title":"Binarized neural networks","volume":"29","author":"Hubara Itay","year":"2016","unstructured":"Itay Hubara, Matthieu Courbariaux, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. 2016. Binarized neural networks. Advances in Neural Information Processing Systems 29 (2016).","journal-title":"Advances in Neural Information Processing Systems"},{"key":"e_1_3_1_23_2","doi-asserted-by":"publisher","DOI":"10.1145\/3307650.3322237"},{"key":"e_1_3_1_24_2","doi-asserted-by":"crossref","unstructured":"Shubham Jain Abhronil Sengupta Kaushik Roy and Anand Raghunathan. 2020. RxNN: A framework for evaluating deep neural networks on resistive crossbars. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems 40 2 (2020) 326\u2013338.","DOI":"10.1109\/TCAD.2020.3000185"},{"key":"e_1_3_1_25_2","doi-asserted-by":"crossref","unstructured":"Shubham Jain and Anand Raghunathan. 2019. CxDNN: Hardware-software compensation methods for deep neural networks on resistive crossbar systems. ACM Transactions on Embedded Computing Systems (TECS) 18 6 (2019) 1\u201323.","DOI":"10.1145\/3362035"},{"key":"e_1_3_1_26_2","unstructured":"Jiang et\u00a0al. 2014. Stanford university resistive-switching random access memory (RRAM) verilog-A model. NanoHUB (2014). DOI:https:\/\/doi.org\/doi:\/10.4231\/D37H1DN48"},{"key":"e_1_3_1_27_2","doi-asserted-by":"crossref","unstructured":"Yong Kim Won Hee Jeong Son Bao Tran Hyo CheonWoo Jihun Kim Cheol Seong Hwang Kyeong-Sik Min and Byung Joon Choi. 2019. Memristor crossbar array for binarized neural networks. AIP Advances 9 4 (2019) 045131.","DOI":"10.1063\/1.5092177"},{"key":"e_1_3_1_28_2","unstructured":"Yulhwa Kim Hyungjun Kim and Jae-Joon Kim. 2018. Neural network-hardware co-design for scalable RRAM-based BNN accelerators. arXiv preprint arXiv:1811.02187 (2018)."},{"key":"e_1_3_1_29_2","unstructured":"Alex Krizhevsky Geoffrey Hinton et\u00a0al. 2009. Learning multiple layers of features from tiny images. (2009)."},{"key":"e_1_3_1_30_2","unstructured":"Alexey Kurakin Ian Goodfellow and Samy Bengio. 2016. Adversarial machine learning at scale. arXiv preprint arXiv:1611.01236 (2016)."},{"key":"e_1_3_1_31_2","unstructured":"Hyeungill Lee Sungyeob Han and Jungwoo Lee. 2017. Generative adversarial trainer: Defense to adversarial perturbations with GAN. arXiv preprint arXiv:1705.03387 (2017)."},{"key":"e_1_3_1_32_2","unstructured":"Ji Lin Chuang Gan and Song Han. 2019. Defensive quantization: When efficiency meets robustness. arXiv preprint arXiv:1904.08444 (2019)."},{"key":"e_1_3_1_33_2","doi-asserted-by":"crossref","unstructured":"Beiye Liu Hai Li Yiran Chen Xin Li Tingwen Huang Qing Wu and Mark Barnell. 2014. Reduction and IR-drop compensations techniques for reliable neuromorphic computing systems. In 2014 IEEE\/ACM International Conference on Computer-Aided Design (ICCAD) . IEEE 63\u201370.","DOI":"10.1109\/ICCAD.2014.7001330"},{"key":"e_1_3_1_34_2","doi-asserted-by":"publisher","DOI":"10.1145\/2744769.2744930"},{"key":"e_1_3_1_35_2","unstructured":"Aleksander Madry Aleksandar Makelov Ludwig Schmidt Dimitris Tsipras and Adrian Vladu. 2017. Towards deep learning models resistant to adversarial attacks. arXiv preprint arXiv:1706.06083 (2017)."},{"key":"e_1_3_1_36_2","doi-asserted-by":"publisher","DOI":"10.3389\/fnins.2019.00593"},{"key":"e_1_3_1_37_2","doi-asserted-by":"publisher","DOI":"10.1109\/JXCDC.2017.2697910"},{"key":"e_1_3_1_38_2","doi-asserted-by":"publisher","DOI":"10.1109\/ISQED54688.2022.9806294"},{"key":"e_1_3_1_39_2","doi-asserted-by":"crossref","unstructured":"Priyadarshini Panda Indranil Chakraborty and Kaushik Roy. 2019. Discretization based solutions for secure machine learning against adversarial attacks. IEEE Access 7 (2019) 70157\u201370168.","DOI":"10.1109\/ACCESS.2019.2919463"},{"key":"e_1_3_1_40_2","doi-asserted-by":"crossref","unstructured":"Priyadarshini Panda. 2020. QUANOS: Adversarial noise sensitivity driven hybrid quantization of neural networks. In Proceedings of the ACM\/IEEE International Symposium on Low Power Electronics and Design . 187\u2013192.","DOI":"10.1145\/3370748.3406585"},{"key":"e_1_3_1_41_2","doi-asserted-by":"crossref","unstructured":"Nicolas Papernot Patrick McDaniel Ian Goodfellow Somesh Jha Z. Berkay Celik and Ananthram Swami. 2017. Practical black-box attacks against machine learning. In Proceedings of the 2017 ACM on Asia Conference on Computer and Communications Security . 506\u2013519.","DOI":"10.1145\/3052973.3053009"},{"key":"e_1_3_1_42_2","doi-asserted-by":"publisher","DOI":"10.1109\/IEDM19573.2019.8993491"},{"key":"e_1_3_1_43_2","unstructured":"Deboleena Roy Indranil Chakraborty Timur Ibrayev and Kaushik Roy. 2020. Robustness hidden in plain sight: Can analog computing defend against adversarial attacks? arXiv: 2008.1201 (2020)."},{"key":"e_1_3_1_44_2","doi-asserted-by":"publisher","DOI":"10.1109\/DAC18074.2021.9586202"},{"key":"e_1_3_1_45_2","unstructured":"Catherine D. Schuman Thomas E. Potok Robert M. Patton J. Douglas Birdwell Mark E. Dean Garrett S. Rose and James S. Plank. 2017. A survey of neuromorphic computing and neural networks in hardware. arXiv preprint arXiv:1705.06963 (2017)."},{"key":"e_1_3_1_46_2","first-page":"19655","article-title":"Hydra: Pruning adversarially robust neural networks","volume":"33","author":"Sehwag Vikash","year":"2020","unstructured":"Vikash Sehwag, Shiqi Wang, Prateek Mittal, and Suman Jana. 2020. Hydra: Pruning adversarially robust neural networks. Advances in Neural Information Processing Systems 33 (2020), 19655\u201319666.","journal-title":"Advances in Neural Information Processing Systems"},{"key":"e_1_3_1_47_2","doi-asserted-by":"crossref","unstructured":"Abhronil Sengupta Yong Shim and Kaushik Roy. 2016. Proposal for an all-spin artificial neural network: Emulating neural and synaptic functionalities through domain wall motion in ferromagnets. IEEE Transactions on Biomedical Circuits and Systems 10 6 (2016) 1152\u20131160.","DOI":"10.1109\/TBCAS.2016.2525823"},{"key":"e_1_3_1_48_2","doi-asserted-by":"publisher","DOI":"10.1145\/3007787.3001139"},{"key":"e_1_3_1_49_2","doi-asserted-by":"crossref","unstructured":"Mrigank Sharad Georgios Panagopoulos and Kaushik Roy. 2012. Spin neuron for ultra low power computational hardware. In 70th Device Research Conference . IEEE 221\u2013222.","DOI":"10.1109\/DRC.2012.6257039"},{"key":"e_1_3_1_50_2","unstructured":"Karen Simonyan and Andrew Zisserman. 2014. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556 (2014)."},{"key":"e_1_3_1_51_2","doi-asserted-by":"publisher","DOI":"10.1109\/HPCA.2017.55"},{"key":"e_1_3_1_52_2","doi-asserted-by":"publisher","DOI":"10.1007\/s42514-019-00014-8"},{"key":"e_1_3_1_53_2","doi-asserted-by":"publisher","DOI":"10.1109\/ASP-DAC52403.2022.9712542"},{"key":"e_1_3_1_54_2","doi-asserted-by":"publisher","DOI":"10.5573\/JSTS.2014.14.3.356"},{"key":"e_1_3_1_55_2","doi-asserted-by":"publisher","DOI":"10.1109\/JPROC.2012.2190369"},{"key":"e_1_3_1_56_2","doi-asserted-by":"publisher","DOI":"10.1007\/s11390-016-1608-8"},{"key":"e_1_3_1_57_2","doi-asserted-by":"publisher","DOI":"10.1109\/TCAD.2019.2944582"},{"key":"e_1_3_1_58_2","doi-asserted-by":"publisher","DOI":"10.1109\/DAC18072.2020.9218590"}],"container-title":["ACM Transactions on Design Automation of Electronic Systems"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3576195","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3576195","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T18:09:03Z","timestamp":1750183743000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3576195"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,5,17]]},"references-count":57,"journal-issue":{"issue":"4","published-print":{"date-parts":[[2023,7,31]]}},"alternative-id":["10.1145\/3576195"],"URL":"https:\/\/doi.org\/10.1145\/3576195","relation":{},"ISSN":["1084-4309","1557-7309"],"issn-type":[{"value":"1084-4309","type":"print"},{"value":"1557-7309","type":"electronic"}],"subject":[],"published":{"date-parts":[[2023,5,17]]},"assertion":[{"value":"2022-04-25","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2022-11-30","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2023-05-17","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}