[Paper Review] Rethinking Non-idealities in Memristive Crossbars for Adversarial Robustness in Neural Networks
This paper demonstrates that intrinsic non-idealities in memristive crossbars—such as device variations and interconnect parasitics—naturally enhance adversarial robustness in DNNs without additional optimization. When VGG8 and VGG16 networks are mapped onto crossbars, they achieve >10–20% higher robustness against FGSM and PGD attacks than software-based DNNs, outperforming several state-of-the-art defense techniques.
Deep Neural Networks (DNNs) have been shown to be prone to adversarial attacks. Memristive crossbars, being able to perform Matrix-Vector-Multiplications (MVMs) efficiently, are used to realize DNNs on hardware. However, crossbar non-idealities have always been devalued since they cause errors in performing MVMs, leading to computational accuracy losses in DNNs. Several software-based defenses have been proposed to make DNNs adversarially robust. However, no previous work has demonstrated the advantage conferred by the crossbar non-idealities in unleashing adversarial robustness. We show that the intrinsic hardware non-idealities yield adversarial robustness to the mapped DNNs without any additional optimization. We evaluate the adversarial resilience of state-of-the-art DNNs (VGG8 & VGG16 networks) using benchmark datasets (CIFAR-10, CIFAR-100 & Tiny Imagenet) across various crossbar sizes. We find that crossbar non-idealities unleash significantly greater adversarial robustness (>10-20%) in crossbar-mapped DNNs than baseline software DNNs. We further assess the performance of our approach with other state-of-the-art efficiency-driven adversarial defenses and find that our approach performs significantly well in terms of reducing adversarial loss.
Motivation & Objective
- To investigate whether hardware non-idealities in memristive crossbars can unintentionally improve adversarial robustness in DNNs.
- To evaluate the impact of device-level and circuit-level non-idealities on adversarial resilience across different DNN architectures and datasets.
- To compare the robustness of crossbar-mapped DNNs with state-of-the-art software-based adversarial defenses, especially in terms of adversarial loss reduction.
- To analyze how combining non-idealities with efficiency-driven techniques (e.g., quantization, pixel discretization) affects robustness.
- To reframe the perception of non-idealities from computational impairments to assets for adversarial security in neuromorphic hardware.
Proposed method
- Developed a PyTorch-based framework to map VGG8 and VGG16 networks onto resistive crossbar arrays with configurable non-idealities.
- Incorporated device-level (e.g., synaptic resistance variation) and circuit-level (e.g., interconnect parasitics, driver/sensor resistances) non-idealities into the MVM computation pipeline.
- Used FGSM and PGD attacks to evaluate robustness, measuring adversarial loss (AL) across varying perturbation magnitudes (ε = 0.1 to 0.3).
- Evaluated robustness across multiple crossbar sizes (16×16 to 32×32) and datasets (CIFAR-10, CIFAR-100, Tiny ImageNet).
- Compared results with software-only defenses, including 4-bit pixel discretization and QUANOS-based quantization, to isolate the contribution of hardware non-idealities.
- Analyzed the role of key parameters like R_MIN in modulating adversarial resilience.
Experimental results
Research questions
- RQ1Can intrinsic non-idealities in memristive crossbars enhance adversarial robustness in DNNs without additional optimization?
- RQ2How does the adversarial robustness of crossbar-mapped DNNs compare to that of baseline software DNNs under FGSM and PGD attacks?
- RQ3What is the impact of combining hardware non-idealities with efficiency-driven techniques like quantization or pixel discretization on adversarial resilience?
- RQ4How do varying crossbar sizes and device parameters (e.g., R_MIN) influence the level of robustness conferred by non-idealities?
- RQ5Does the presence of non-idealities make DNNs more resilient than state-of-the-art software-based defenses such as QUANOS or 4-bit discretization?
Key findings
- Crossbar-mapped DNNs exhibit >10–20% higher adversarial robustness than baseline software DNNs across all evaluated datasets and attack types.
- For FGSM attacks on VGG16 with CIFAR-100, non-idealities outperform all other state-of-the-art defenses, including 4-bit pixel discretization and QUANOS, by ~15% in adversarial loss reduction.
- Under PGD attacks, non-idealities rank second among all methods, outperforming 4-bit discretization by ~12% and QUANOS by ~18–22%.
- The combination of 4-bit pixel discretization and crossbar non-idealities yields the highest robustness at ε = 0.3, indicating synergistic effects at high perturbation levels.
- QUANOS combined with non-idealities reduces adversarial loss by ~15–30% compared to full-precision models mapped on hardware, showing additive benefits.
- Non-idealities alone provide greater robustness than 4-bit discretization at ε = 0.1, and the effect is consistent across different crossbar dimensions and network architectures.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.