Skip to main content
U.S. Department of Energy
Office of Scientific and Technical Information

SwitchX: Gmin-Gmax Switching for Energy-efficient and Robust Implementation of Binarized Neural Networks on ReRAM Xbars

Journal Article · · ACM Transactions on Design Automation of Electronic Systems
DOI:https://doi.org/10.1145/3576195· OSTI ID:2422211
Memristive crossbars can efficiently implement Binarized Neural Networks (BNNs) wherein the weights are stored in high-resistance states (HRS) and low-resistance states (LRS) of the synapses. We propose SwitchX 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, SwitchX 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 SwitchX to exhibit better robustness against adversarial attacks than the standard crossbar mapped BNNs, the baseline. Finally, we combine SwitchX 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 Fast Gradient Sign Method (ϵ = 0.05 to 0.3) and Projected Gradient Descent (ϵ = $$\frac{2}{255}$$ to $$\frac{32}{255}$$, α = $$\frac{2}{255}$$) adversarial attacks. We show that SwitchX combined with state-aware training can yield upto ~35% improvements in clean accuracy and ~6–16% in adversarial accuracies against conventional BNNs. Furthermore, an important by-product of SwitchX mapping is increased crossbar power savings, owing to an increased proportion of HRS synapses, which is furthered with state-aware training. We obtain upto ~21–22% savings in crossbar power consumption for state-aware trained BNN mapped via SwitchX on 16 × 16 and 32 × 32 crossbars using the CIFAR-10 and CIFAR-100 datasets.
Research Organization:
Yale Univ., New Haven, CT (United States)
Sponsoring Organization:
Defense Advanced Research Projects Agency (DARPA); National Science Foundation (NSF); USDOE Office of Science (SC)
Grant/Contract Number:
SC0023198
OSTI ID:
2422211
Journal Information:
ACM Transactions on Design Automation of Electronic Systems, Journal Name: ACM Transactions on Design Automation of Electronic Systems Journal Issue: 4 Vol. 28; ISSN 1084-4309
Publisher:
Association for Computing Machinery (ACM)Copyright Statement
Country of Publication:
United States
Language:
English

References (40)

A Survey of Neuromorphic Computing and Neural Networks in Hardware preprint January 2017
Technological Exploration of RRAM Crossbar Array for Matrix-Vector Multiplication journal January 2016
ReBNN: in-situ acceleration of binarized neural networks in ReRAM using complementary resistive cell journal October 2019
Memristor crossbar array for binarized neural networks journal April 2019
Pathways to efficient neuromorphic computing with non-volatile memory technologies journal June 2020
Improving the accuracy and robustness of RRAM-based in-memory computing against RRAM hardware noise and adversarial attacks journal January 2022
Discretization Based Solutions for Secure Machine Learning Against Adversarial Attacks journal January 2019
RRAM Device Models: A Comparative Analysis With Experimental Validation journal January 2019
Outstanding Bit Error Tolerance of Resistive RAM-Based Binarized Neural Networks conference March 2019
HAWIS: Hardware-Aware Automated WIdth Search for Accurate, Energy-Efficient and Robust Binary Neural Network on ReRAM Dot-Product Engine conference January 2022
Lattice: An ADC/DAC-less ReRAM-based Processing-In-Memory Architecture for Accelerating Deep Convolution Neural Networks conference July 2020
GENIEx: A Generalized Approach to Emulating Non-Ideality in Memristive Xbars using Neural Networks conference July 2020
On the Intrinsic Robustness of NVM Crossbars Against Adversarial Attacks conference December 2021
Spin neuron for ultra low power computational hardware conference June 2012
PipeLayer: A Pipelined ReRAM-Based Accelerator for Deep Learning
  • Song, Linghao; Qian, Xuehai; Li, Hai
  • 2017 IEEE International Symposium on High-Performance Computer Architecture (HPCA), 2017 IEEE International Symposium on High Performance Computer Architecture (HPCA) https://doi.org/10.1109/HPCA.2017.55
conference February 2017
Reduction and IR-drop compensations techniques for reliable neuromorphic computing systems conference November 2014
Mitigating effects of non-ideal synaptic device characteristics for on-chip learning conference November 2015
DNN+NeuroSim: An End-to-End Benchmarking Framework for Compute-in-Memory Accelerators with Versatile Device Technologies conference December 2019
Circuit design for beyond von Neumann applications using emerging memory: From nonvolatile logics to neuromorphic computing conference March 2017
Cross-layer Designs against Non-ideal Effects in ReRAM-based Processing-in-Memory System conference April 2022
A 65nm 1Mb nonvolatile computing-in-memory ReRAM macro with sub-16ns multiply-and-accumulate for binary DNN AI edge processors conference February 2018
Challenges and Circuit Techniques for Energy-Efficient On-Chip Nonvolatile Memory Using Memristive Devices journal June 2015
Metal–Oxide RRAM journal June 2012
An Energy-Efficient Digital ReRAM-Crossbar-Based CNN With Bitwise Parallelism journal December 2017
Proposal for an All-Spin Artificial Neural Network: Emulating Neural and Synaptic Functionalities Through Domain Wall Motion in Ferromagnets journal December 2016
Handling Stuck-at-Fault Defects Using Matrix Transformation for Robust Inference of DNNs journal October 2020
RxNN: A Framework for Evaluating Deep Neural Networks on Resistive Crossbars journal February 2021
NEAT: Nonlinearity Aware Training for Accurate, Energy-Efficient, and Robust Implementation of Neural Networks on 1T-1R Crossbars journal August 2022
RRAM Crossbar Array With Cell Selection Device: A Device and Circuit Interaction Study journal February 2013
STT-SNN: A Spin-Transfer-Torque Based Soft-Limiting Non-Linear Neuron for Low-Power Artificial Neural Networks journal November 2015
Vortex: variation-aware training for memristor X-bar conference June 2015
ISAAC: a convolutional neural network accelerator with in-situ analog arithmetic in crossbars journal June 2016
Practical Black-Box Attacks against Machine Learning
  • Papernot, Nicolas; McDaniel, Patrick; Goodfellow, Ian
  • ASIA CCS '17: ACM Asia Conference on Computer and Communications Security, Proceedings of the 2017 ACM on Asia Conference on Computer and Communications Security https://doi.org/10.1145/3052973.3053009
conference April 2017
PUMA: A Programmable Ultra-efficient Memristor-based Accelerator for Machine Learning Inference
  • Ankit, Aayush; Hajj, Izzat El; Chalamalasetti, Sai Rahul
  • ASPLOS '19: Architectural Support for Programming Languages and Operating Systems, Proceedings of the Twenty-Fourth International Conference on Architectural Support for Programming Languages and Operating Systems https://doi.org/10.1145/3297858.3304049
conference April 2019
FloatPIM conference June 2019
CxDNN: Hardware-software Compensation Methods for Deep Neural Networks on Resistive Crossbar Systems journal January 2020
Quanos conference August 2020
Efficiency-driven Hardware Optimization for Adversarially Robust Neural Networks conference February 2021
Simulation of Inference Accuracy Using Realistic RRAM Devices journal June 2019
New Memristor-Based Crossbar Array Architecture with 50-% Area Reduction and 48-% Power Saving for Matrix-Vector Multiplication of Analog Neuromorphic Computing journal June 2014

Similar Records

XploreNAS: Explore Adversarially Robust and Hardware-efficient Neural Architectures for Non-ideal Xbars
Journal Article · Sun Jul 23 20:00:00 EDT 2023 · ACM Transactions on Embedded Computing Systems · OSTI ID:2422212

Harnessing ML Privacy by Design Through Crossbar Array Non-idealities
Conference · Mon Jun 10 00:00:00 EDT 2024 · OSTI ID:2426423

ASK: Adversarial Soft k-Nearest Neighbor Attack and Defense
Journal Article · Sun Sep 25 20:00:00 EDT 2022 · IEEE Access · OSTI ID:1922471