Abstract: Spiking Neural Networks (SNNs) are increasingly explored for their energy efficiency and robustness in real-world applications, yet their privacy risks remain largely unexamined. In this work, we investigate the susceptibility of SNNs to Membership Inference Attacks (MIAs) -- a major privacy threat where an adversary attempts to determine whether a given sample was part of the training dataset. While prior work suggests that SNNs may offer inherent robustness due to their discrete, event-driven nature, we find that its resilience diminishes as latency (T) increases. Furthermore, we introduce an input dropout strategy under black box setting, that significantly enhances membership inference in SNNs. Our findings challenge the assumption that SNNs are inherently more secure, and even though they are expected to be better, our results reveal that SNNs exhibit privacy vulnerabilities that are equally comparable to Artificial Neural Networks (ANNs). Our code is available at https://anonymous.4open.science/r/MIA_SNN-3610.
Introduction
As AI moves toward the edge—IoT devices, wearables, and low-power sensors—Spiking Neural Networks (SNNs) have emerged as a leading architecture due to their event-driven, energy-efficient nature. Because SNNs communicate via discrete "spikes" rather than continuous values, there has been a lingering assumption in the community that they might be inherently more robust against privacy leaks. This paper systematically investigates whether this "discrete" nature actually protects SNNs from Membership Inference Attacks (MIA), where an adversary tries to determine if a specific data point was used to train a model.
Methodology
The authors employ several sophisticated techniques to put SNN privacy to the test:
- Robust Membership Inference Attack (RMIA): Utilizing state-of-the-art MIA formulations that compare a target model's confidence against "shadow" or reference models.
- Efficient Online Attack Simulation: A clever data-splitting and shuffling strategy allows the simulation of high-strength online attacks using a fixed pool of pre-trained reference models, avoiding the computational cost of retraining for every query.
- Input Dropout Strategy: This is the paper's key technical contribution. In a black-box setting, the authors apply dropout to input data during inference. Averaging predictions over multiple "dropped-out" versions introduces stochasticity that helps distinguish between members (where the model is more certain) and non-members.
- SNN Training Variations: The study evaluates both ANN-to-SNN conversion and direct SNN training to ensure findings are robust across training methods.
Experimental Setup
The study uses two standard computer vision benchmarks:
- CIFAR-10: A dataset of 60,000 small images across 10 classes.
- CIFAR-100: A more complex version with 100 classes, providing a more challenging environment for both the model and the attacker.
Key Insights: The Latency-Privacy Trade-off
The most striking finding is that an SNN's privacy is tied to its latency ($T$). When $T=1$, the network is very discrete and "leaks" less information, making MIAs harder. However, as $T$ increases (e.g., to $T=4$), the SNN's output distribution begins to resemble a continuous ANN, and its privacy advantages vanish.
At low latencies, the confidence scores for members and non-members overlap significantly because discrete spikes limit the model's expressiveness. This overlap provides "accidental" privacy. As the model becomes more expressive with higher $T$, these distributions separate. Input dropout acts as a magnifying glass, reducing the model's confidence on non-members more drastically than on members, effectively widening the gap that an MIA exploits.
Key Results
On CIFAR-100, the RMIA achieved an Area Under the Curve (AUC) of 80.76% for an SNN with $T=4$ when using input dropout. This is remarkably close to the 82.51% AUC observed for standard ANNs.
The proposed input dropout strategy consistently improved attack performance. For example, on CIFAR-100 ($T=4$), it increased the True Positive Rate at a 1% False Positive Rate from 12.01% to 16.16%. Furthermore, the vulnerability persists even if the attacker uses a standard ANN as a reference model to attack an SNN, suggesting the risks are fundamental to the data representations.
Conclusion and Future Work
This research challenges the assumption that SNNs are inherently more secure. While they offer energy efficiency, their privacy vulnerabilities are comparable to traditional ANNs as their expressiveness increases. Future work will explore "native" neuromorphic temporal datasets and SNN-specific defense mechanisms, such as specialized versions of Differential Privacy or adversarial training tailored for spiking dynamics.
Summary updated