Abstract
In the quest for robust machine learning models, Spiking Neural Networks (SNNs) present a promising, bio-plausible alternative to traditional Artificial Neural Networks (ANNs). This work provides the first comprehensive analysis of SNN behavior under state-of-the-art adversarial tests. By comparing a VGG-9 ANN with equivalent SNNs on the CIFAR-10 dataset, we examine robustness in both whitebox and blackbox settings across various Fast Gradient Sign Method (FGSM) attacks. Our findings reveal that while SNNs are more resilient in blackbox scenarios, their robustness is heavily dependent on the training mechanism. Specifically, SNNs trained via spike-based backpropagation demonstrate superior resilience compared to those derived from ANN-to-SNN conversion.
Introduction
Artificial Neural Networks (ANNs) are notoriously susceptible to adversarial attacks—minute, intentional perturbations that cause misclassification. As AI integrates into safety-critical systems like autonomous vehicles, finding resilient architectures is paramount. Spiking Neural Networks (SNNs), which communicate via discrete spikes over time, offer a different computational paradigm. This study investigates whether the inherent noise and temporal dynamics of SNNs provide a natural defense against adversarial manipulation.
Methodology
The researchers evaluated a standard VGG-9 ANN against two distinct SNN implementations:
- SNN-I (Conversion): An ANN is trained and then converted to an SNN by mapping weights and replacing activations with spiking neurons.
- SNN-II (Spike-based Backpropagation): The network is trained directly in the spiking domain using specialized gradient descent.
To test these models, the authors developed a framework for generating adversarial inputs for SNNs. Since SNNs are non-differentiable, the framework maps SNN weights onto a "transformed" ANN to calculate gradients for perturbations.
Key Results and Analysis
The study utilized the CIFAR-10 dataset to measure "Loss," defined as the drop in accuracy from the baseline (Baseline accuracy % - Test accuracy %).
The Whitebox vs. Blackbox Performance
In whitebox settings, where the attacker has full access to model parameters, SNNs surprisingly showed higher accuracy degradation than ANNs. However, in blackbox scenarios—where the attacker uses a surrogate model to craft attacks—SNNs proved significantly more robust. This suggests that the stochastic nature of Poisson spike generation in SNNs acts as a "shield," making it difficult for attackers to find universal vulnerabilities.
Training Impact on Robustness
A critical insight is that the training method dictates resilience. SNNs trained directly with spike-based backpropagation (SNN-II) consistently outperformed converted models (SNN-I) in both whitebox and blackbox tests. The conversion process appears to strip away some of the inherent robustness provided by direct spiking dynamics.
Potency of SNN-Crafted Attacks
The researchers discovered that adversarial attacks crafted from SNNs are remarkably potent. An attack designed to fool an SNN is often more effective at fooling an ANN than an attack designed from the ANN itself. This "potency" explains the high loss in SNN whitebox settings: the model is being tested against a much stronger class of adversary.
Conclusion
This comprehensive analysis highlights SNNs as a robust alternative for applications where blackbox security is a priority. While whitebox vulnerability remains a challenge, the superior performance of spike-trained models (SNN-II) and the inherent defense provided by temporal stochasticity mark a significant step forward in adversarial machine learning. Future work will explore scaling these findings to larger architectures and more complex datasets.
Summary updated