The Inherent Adversarial Robustness of Analog In-Memory Computing
Corey Lammie, Julian Büchel, Athanasios Vasilopoulos, Manuel Le Gallo, Abu Sebastian
TL;DR
The paper investigates whether analog in-memory computing (AIMC) substrates inherently resist adversarial DNN attacks. It combines hardware experiments on a PCM-based AIMC chip with simulations that dissect stochastic noise sources, using a ResNet CNN on CIFAR-10 and a RoBERTa transformer on MNLI, evaluated under multiple attack types with an adversarial success rate metric. The results show that AIMC's intrinsic stochasticity yields increased robustness, particularly when weight noise and output noise play dominant roles, and that this robustness persists in hardware-in-loop attacks and in larger NLP models. These findings suggest leveraging inherent hardware noise as an efficient defense mechanism and provide a methodology for assessing adversarial robustness across AIMC platforms and modalities.
Abstract
A key challenge for Deep Neural Network (DNN) algorithms is their vulnerability to adversarial attacks. Inherently non-deterministic compute substrates, such as those based on Analog In-Memory Computing (AIMC), have been speculated to provide significant adversarial robustness when performing DNN inference. In this paper, we experimentally validate this conjecture for the first time on an AIMC chip based on Phase Change Memory (PCM) devices. We demonstrate higher adversarial robustness against different types of adversarial attacks when implementing an image classification network. Additional robustness is also observed when performing hardware-in-the-loop attacks, for which the attacker is assumed to have full access to the hardware. A careful study of the various noise sources indicate that a combination of stochastic noise sources (both recurrent and non-recurrent) are responsible for the adversarial robustness and that their type and magnitude disproportionately effects this property. Finally, it is demonstrated, via simulations, that when a much larger transformer network is used to implement a Natural Language Processing (NLP) task, additional robustness is still observed.
