Exposing the Robustness and Vulnerability of Hybrid 8T-6T SRAM Memory Architectures to Adversarial Attacks in Deep Neural Networks

Abhishek Moitra, Priyadarshini PandaarXiv 2020

Abstract

Deep Learning models are powerful but vulnerable to input adversarial attacks. This work investigates the dual role of hybrid 8T-6T SRAM memory architectures—typically used for energy efficiency—in both defending against and facilitating these attacks. We demonstrate that bit-error noise in these memories, termed "surgical noise," is deterministic based on hardware configurations like supply voltage ($V_{DD}$) and the 8T-6T cell ratio. By strategically injecting this noise into specific DNN layers, we improve adversarial accuracy by 2-8% without retraining. Conversely, we reveal a potent white-box attack on parameters stored in these memory banks that can drop inference accuracy by over 60%. Our findings, validated on VGG19 and ResNet18 architectures using CIFAR datasets, highlight a critical energy-security trade-off in approximate computing.

Introduction

Adversarial attacks, which use small, calculated perturbations to fool Deep Neural Networks (DNNs), remain a significant hurdle for autonomous deployment. While algorithmic defenses like adversarial training are common, they are often computationally expensive. This research explores a hardware-centric approach using hybrid 8T-6T SRAM architectures. These memories balance reliability and efficiency by using robust 8T cells for critical data and error-prone 6T cells for less critical data. We show that the resulting "surgical noise" can be a double-edged sword: a built-in defense mechanism or a new vector for catastrophic parameter attacks.

Surgical Noise Injection (SNI)

The defining characteristic of hybrid 8T-6T SRAM is that its bit-errors are not random but deterministic. This "surgical noise" is tied directly to the hardware configuration, specifically the supply voltage ($V_{DD}$) and the ratio of 8T to 6T cells ($r$).

Deterministic bit-error rate (μ) as a function of the 8T-6T cell ratio (r) across different supply voltages (Vdd).

As illustrated in the figure above, the bit-error rate (μ) can be precisely tuned. This predictability allows designers to inject specific levels of noise into the network, a process we call Surgical Noise Injection (SNI).

Methodology: Defense and Attack

The impact of surgical noise depends on where it is applied within the DNN's memory hierarchy. DNN layers are mapped to memory banks for both parameters (weights) and activations (intermediate outputs).

Architectural mapping of DNN layers to Parameter and Activation Memory Banks (MB) within the hybrid SRAM.

Defense via Activation Noise

To improve robustness, we identify "strong" or "moderate" layers for noise injection. By applying SNI to the Activation Memory Banks, the hardware-induced errors interfere with the formation of adversarial perturbations. This effectively "masks" the attack, acting as a form of regularization that makes the decision boundaries more robust. We propose a heuristic methodology to select the optimal layers and hardware settings ($V_{DD}, r$) to maximize this effect.

Vulnerability via Parameter Attack

Conversely, the deterministic nature of these faults creates a vulnerability. In a white-box attack scenario, an attacker with knowledge of the memory mapping can identify specific bits in the Parameter Memory Banks where bit-flips align with the gradient of the loss function. By choosing the right hybrid configuration, they can "surgically" corrupt the model's weights, leading to a massive failure in inference accuracy.

Experimental Results

The study evaluated these concepts using VGG19 and ResNet18 models on the CIFAR10 and CIFAR100 benchmarks.

  • Robustness Gains: The SNI defense achieved 2-8% higher adversarial accuracy against white-box FGSM attacks compared to baseline models, without requiring any retraining.
  • Attack Potency: The proposed parameter attack caused inference accuracy to drop by more than 60% with over 90% confidence.
  • Energy-Security Trade-off: While hybrid memories offer ~35% energy savings over standard 8T-SRAM, they introduce predictable vulnerabilities that must be carefully managed.

Conclusion

This work demonstrates that hardware-induced errors in energy-efficient memories are a powerful tool for both securing and attacking DNNs. While SNI provides a low-cost defense against input perturbations, the inherent predictability of hybrid SRAM faults necessitates new security protocols for approximate computing. Future research will explore automated optimization for noise configurations and the impact of these vulnerabilities in black-box attack scenarios.

Summary updated

BibTeX
@misc{moitra2020exposing,
  author = {Abhishek Moitra and Priyadarshini Panda},
  title = {{Exposing the Robustness and Vulnerability of Hybrid 8T-6T SRAM Memory Architectures to Adversarial Attacks in Deep Neural Networks}},
  year = {2020},
  eprint = {2011.13392},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.13392},
}
Figure