Abstract
Recent research has shown the vulnerability of Spiking Neural Networks (SNNs) under adversarial examples that are nearly indistinguishable from clean data in the context of frame-based and event-based information. The majority of these studies are constrained in generating adversarial examples using Backpropagation Through Time (BPTT), a gradient-based method which lacks biological plausibility. In contrast, local learning methods, which relax many of BPTT's constraints, remain under-explored in the context of adversarial attacks. To address this problem, we examine adversarial robustness in SNNs through the framework of four types of training algorithms. We provide an in-depth analysis of the ineffectiveness of gradient-based adversarial attacks to generate adversarial instances in this scenario. To overcome these limitations, we introduce a hybrid adversarial attack paradigm that leverages the transferability of adversarial instances. The proposed hybrid approach demonstrates superior performance, outperforming existing adversarial attack methods. Furthermore, the generalizability of the method is assessed under multi-step adversarial attacks, adversarial attacks in black-box FGSM scenarios, and within the non-spiking domain.
Introduction
Spiking Neural Networks (SNNs) are highly regarded in neuromorphic computing for their energy efficiency, mimicking the brain's sparse communication via spikes. However, training SNNs is challenging due to the non-differentiable nature of spikes. While Backpropagation Through Time (BPTT) is the standard approach, it is computationally intensive and biologically unrealistic. This has spurred interest in "local learning" methods—such as Feedback Alignment (FA) and Local Error (LE) propagation—which are more suitable for direct hardware implementation.
A critical open question is the security of these local learning modules. While SNNs trained with BPTT are known to be vulnerable to adversarial attacks, the impact of local learning on robustness is less understood. This study investigates whether the inherent "noise" in local learning gradients provides a natural defense or merely masks vulnerabilities from standard attack tools.
Methods
The study evaluates SNNs using Feedforward (FF) and Recurrent (REC) Leaky-Integrate-and-Fire (LIF) neurons across four training paradigms:
- Backpropagation (BP): Standard global gradient descent.
- Feedback Alignment (FA): Replaces symmetric weights in the backward pass with fixed random matrices.
- Direct Feedback Alignment (DFA): Directly connects output error to all hidden layers.
- Local Error (LE): Employs layer-specific cost functions to avoid global error propagation.
Experiments were conducted on the MNIST and CIFAR-10 datasets using a LeNet-5 topology. To rigorously test robustness, the authors introduced a Hybrid Adversarial Attack. This method circumvents the "noisy" gradients of local learning by using a surrogate SNN trained with global error propagation to find adversarial directions, which are then transferred to the locally-trained target model.
Results and Analysis
The researchers identified a "gradient masking" effect where local learning methods appear robust because their backward pass uses fixed random matrices instead of weight transposes. This creates a mismatch between the learned decision boundaries and the gradients calculated by standard attackers.
Key findings include:
- Hybrid Attack Success: While standard attacks like FGSM often fail against LE or DFA models, the Hybrid Attack successfully exposes their vulnerability, significantly increasing accuracy loss.
- Recurrent Resilience: Recurrent SNNs (REC) generally demonstrated higher resilience than feedforward (FF) versions, likely because internal spike dynamics help dilute adversarial perturbations.
- SNN vs. ANN Robustness: The study confirms that SNNs are inherently more robust than traditional Artificial Neural Networks (ANNs) due to the discretization of continuous inputs into binary spikes, which filters out small analog perturbations.
Conclusion
The perceived adversarial robustness of SNN local learning modules is largely an illusion caused by gradient masking. By leveraging transferability through a hybrid attack, these vulnerabilities are readily exposed. Future work should focus on developing genuine defenses, such as specialized adversarial training, to secure biologically inspired learning modules for neuromorphic hardware.
Summary updated