TL;DR
The researchers introduce HART (Hybrid Adversarial attack based on Rate and Temporal information), a novel method that exposes the vulnerabilities of Spiking Neural Networks (SNNs) by simultaneously exploiting their rate-based and timing-based information. By dynamically balancing these two attributes, HART achieves state-of-the-art attack success rates across various architectures and datasets, even outperforming existing methods in challenging black-box scenarios.
What Problem Does This Paper Address?
Spiking Neural Networks (SNNs) are often touted as the "third generation" of neural networks due to their biological plausibility and extreme energy efficiency on neuromorphic hardware. Unlike traditional Analog Neural Networks (ANNs), SNNs communicate via discrete binary spikes over time. This unique characteristic means they process information in two distinct ways: rate information (the average number of spikes) and temporal information (the precise timing and order of those spikes).
While SNNs are generally considered more robust than ANNs, they are not immune to adversarial attacks—maliciously crafted inputs designed to trigger incorrect outputs. Existing SNN attacks typically focus on either approximating the SNN as an ANN (ignoring timing) or using standard backpropagation through time (which can struggle to capture rate-level dynamics effectively). This paper addresses the gap by asking: How can we combine both rate and temporal information to create a more potent and efficient adversarial attack?
Methods
The authors propose the HART framework, which introduces several key innovations to optimize the adversarial attack process:
- Gradient Pruning and Merging: Standard backpropagation through time (BPTT) creates complex dependencies across time steps. HART simplifies this by "pruning" certain temporal gradients and "merging" others. This allows the attack to capture stable rate information more effectively without getting lost in the "noise" of individual time-step fluctuations.
- Adjustable Surrogate Gradient: Since the discrete spike function is non-differentiable, researchers use "surrogate gradients" to estimate derivatives. HART introduces a parameter $\gamma$ that controls the shape of this surrogate curve. A larger $\gamma$ creates a smoother gradient that emphasizes rate information, while a smaller $\gamma$ sharpens the focus on precise temporal spike timings.
- Pre-calculation Property: By restructuring the gradient calculation, HART allows for certain terms to be computed in advance during the forward pass. This reduces the computational complexity of the backpropagation phase from $O(T)$ to $O(1)$, where $T$ is the number of time steps.
Datasets
The effectiveness of HART was validated on three widely used benchmarks:
- CIFAR-10: A standard static image dataset.
- CIFAR-100: A more complex static image dataset with 100 classes.
- CIFAR10-DVS: A neuromorphic (event-based) dataset, which naturally contains rich temporal information.
Key Insights and Ideas
- The Dual Nature of SNN Info: The authors quantitatively show that SNNs "reserve" both rate and temporal information, and the degree of retention depends on neuron parameters like the membrane decay constant and the total time steps.
- Rate Information is Not Deterministic: Unlike ANNs, the same average input current in an SNN can result in different firing rates depending on the sequence of spikes. This makes simple ANN-like gradient approximations insufficient.
- Tuning the "Temporal Attribute": One of the most elegant findings is that the "temporal-ness" of an attack can be tuned simply by adjusting the surrogate gradient's width ($\gamma$). This allows HART to adapt to different models that might rely more heavily on one type of information over the other.
Key Results
HART consistently outperformed previous state-of-the-art attacks (like CBA, STBP, and RGA) across almost all tested scenarios:
- White-Box Superiority: On CIFAR-10 using a VGG-11 architecture, HART achieved a 100% Attack Success Rate (ASR) for PGD attacks, significantly higher than the baseline CBA attack (~42%).
- Black-Box Robustness: In black-box settings (where the attacker doesn't know the target model's parameters), HART surpassed the previous best method (RGA) by up to 8.54% in certain configurations.
- Neuromorphic Success: On the event-based CIFAR10-DVS dataset, HART achieved an ASR of 93.03%, proving it can effectively exploit the complex temporal dynamics inherent in neuromorphic data.
Limitations and Future Work
While HART is a powerful attack tool, the authors acknowledge that its primary purpose is to highlight vulnerabilities so that better defenses can be built.
- Empirical Tuning: Currently, the optimal value for the hyperparameter $\gamma$ is determined empirically. Future work could involve automated methods to find the best balance between rate and temporal attributes.
- Defense Integration: The authors suggest that the insights gained from HART—specifically how rate and temporal information are utilized—could be used to develop more robust training techniques for SNNs.
- Model Variety: The study focused on IF and LIF neuron models; exploring more biologically complex models (like the Izhikevich model) remains an open area.
Summary updated