TL;DR
Spiking Neural Networks (SNNs) are often touted for their inherent privacy benefits due to their discrete, spike-based nature. This paper shatters that myth, demonstrating that SNNs are just as vulnerable to Membership Inference Attacks (MIAs) as traditional Artificial Neural Networks (ANNs), especially as their processing latency increases. By introducing a novel black-box "input dropout" strategy, the authors show that an attacker can effectively strip away the SNN's perceived privacy shield.
What Problem Does This Paper Address?
As AI moves toward edge devices and low-power applications, Spiking Neural Networks (SNNs) have gained traction for their biological plausibility and energy efficiency. A common assumption in the field has been that SNNs are inherently more robust and private because they process information through discrete "spikes" rather than continuous values. This discreteness was thought to naturally obscure the fine-grained confidence scores that adversaries exploit in Membership Inference Attacks (MIAs)—attacks where a hacker tries to determine if a specific data point was used to train a model.
The authors set out to rigorously test this assumption. They investigate whether the "privacy by design" of SNNs actually holds up under sophisticated attacks and how factors like network latency ($T$) and training methods influence their vulnerability.
Methods
The researchers evaluated SNNs against three primary MIA variants: Attack-P (confidence-based), Attack-R (reference-model-based), and the state-of-the-art RMIA (Robust MIA).
To make their analysis robust and efficient, they introduced two key methodological innovations:
-
Efficient Online Attack Simulation: They developed a data-splitting strategy (illustrated in Figure 1) that allows for an unbiased "online" attack setting—where half the reference models have seen the target query and half haven't—without the massive computational cost of retraining models for every single query. Illustration of the efficient data splitting strategy used to simulate online attacks.
-
Dropout-Enhanced MIA: Recognizing that SNNs' discrete outputs can cause member and non-member samples to have overlapping confidence scores, the authors proposed an input dropout method. By randomly dropping parts of the input during inference and averaging the results, they introduce stochasticity that helps reveal the model's "epistemic uncertainty." This effectively widens the gap between how the model treats familiar training data versus unseen data.
Datasets
The study utilized two standard computer vision benchmarks:
- CIFAR-10: A dataset of 60,000 32x32 color images in 10 classes.
- CIFAR-100: A more complex version with 100 classes, providing a more challenging scenario for both classification and privacy analysis.
The authors evaluated both hybrid-trained (ANN-to-SNN conversion) and directly trained SNNs using the ResNet18 and VGG-16 architectures.
Key Insights and Ideas
-
The Latency-Privacy Trade-off: The most striking finding is that as SNN latency ($T$) increases, privacy decreases. At low $T$ (e.g., $T=1$), the sparse spikes act as a natural defense by providing very coarse information. However, as $T$ increases, the SNN accumulates more information, its decision boundaries become sharper, and it begins to behave more like a standard ANN, making it easier to attack. ROC curves showing that as latency T increases, the SNN becomes more vulnerable to attacks, approaching ANN levels.
-
Stochasticity is the Attacker's Friend: The proposed input dropout strategy significantly boosts attack effectiveness. By perturbing the input, the attacker can "probe" the model's confidence. Members (training data) tend to maintain higher, more stable confidence under these perturbations than non-members.
- Transferability of Vulnerabilities: An attacker doesn't even need to know the specific parameters of the SNN (like membrane thresholds). The authors found that using a standard, conventionally trained ANN as a reference model is still highly effective for attacking an SNN.
Key Results
- RMIA Dominance: RMIA consistently proved to be the most potent attack across all settings.
- Quantifiable Risk: On CIFAR-100, the RMIA attack achieved an AUC of 80.76 for an SNN with $T=4$, which is remarkably close to the 82.51 AUC achieved against a standard ANN.
-
Dropout Impact: Incorporating input dropout consistently raised the AUC scores. For instance, on CIFAR-100 with $T=1$, the RMIA AUC jumped from approximately 69.06 to 75.82 when dropout was applied. Line plot demonstrating how input dropout consistently enhances the AUC of membership inference attacks across different latency values.
-
Training Independence: The vulnerability was found to be inherent to the SNN architecture and dynamics, persisting regardless of whether the model was trained directly or converted from an ANN.
Limitations and Future Work
While the paper provides a comprehensive analysis, the authors note a few areas for further exploration:
- Scaling to Real-World Data: The current study focuses on CIFAR datasets. Future work should investigate if these vulnerabilities scale to more complex, high-resolution, or sensitive real-world datasets (e.g., medical imaging).
- Defense Mechanisms: Now that the vulnerability is established, there is an urgent need for SNN-specific privacy-preserving techniques, such as specialized versions of Differential Privacy or adversarial training tailored for spiking dynamics.
- Other Attack Vectors: This work focuses on Membership Inference. Other privacy risks, like property inference or model inversion in the context of SNNs, remain largely unexamined.
Summary updated