Skip to main content
QUICK REVIEW

[Paper Review] Toward Robust Spiking Neural Network Against Adversarial Perturbation

Ling Liang, Kaidi Xu|arXiv (Cornell University)|Apr 12, 2022
Advanced Memory and Neural ComputingEngineering8 citations
TL;DR

This paper proposes S-IBP and S-CROWN, the first certified robust training methods for spiking neural networks (SNNs), by formalizing bounds for SNN-specific nonlinearities and input types (spike/digital). It achieves up to 37.7% reduction in adversarial attack error with only 3.7% drop in original accuracy, demonstrating the first end-to-end robust SNN training framework.

ABSTRACT

As spiking neural networks (SNNs) are deployed increasingly in real-world efficiency critical applications, the security concerns in SNNs attract more attention. Currently, researchers have already demonstrated an SNN can be attacked with adversarial examples. How to build a robust SNN becomes an urgent issue. Recently, many studies apply certified training in artificial neural networks (ANNs), which can improve the robustness of an NN model promisely. However, existing certifications cannot transfer to SNNs directly because of the distinct neuron behavior and input formats for SNNs. In this work, we first design S-IBP and S-CROWN that tackle the non-linear functions in SNNs' neuron modeling. Then, we formalize the boundaries for both digital and spike inputs. Finally, we demonstrate the efficiency of our proposed robust training method in different datasets and model architectures. Based on our experiment, we can achieve a maximum $37.7\%$ attack error reduction with $3.7\%$ original accuracy loss. To the best of our knowledge, this is the first analysis on robust training of SNNs.

Motivation & Objective

  • To address the growing security concern of adversarial attacks in spiking neural networks (SNNs), which are increasingly deployed in efficiency-critical applications.
  • To extend certified robust training methods—previously effective in artificial neural networks (ANNs)—to SNNs, where neuron dynamics and input formats differ significantly.
  • To formalize input boundaries for both spike and digital inputs under ℓ₀ and ℓ∞ norms in SNNs.
  • To develop a robust training framework that ensures guaranteed robustness against adversarial perturbations in SNNs.
  • To evaluate the method’s effectiveness across multiple datasets and network architectures, demonstrating practical trade-offs between robustness and accuracy.

Proposed method

  • Propose S-IBP and S-CROWN as extensions of certified training to handle the non-linear spike-firing function and temporal membrane potential updates in SNNs.
  • Formalize linear relaxation bounds for SNN operations, including spatial (convolutional/fully connected) and temporal (leaky integration) components.
  • Define input boundaries for both spike inputs (using ℓ₀ and ℓ∞ norms) and digital inputs, enabling robustness certification across input types.
  • Use a modified time-step schedule T′ during training (set to 3) to balance temporal dynamics capture and computational efficiency.
  • Apply the robust training procedure end-to-end, optimizing for both clean accuracy and certified robustness via S-CROWN loss.
  • Select optimal ε values for robust training based on trade-offs between original accuracy and robust error reduction across datasets and architectures.

Experimental results

Research questions

  • RQ1Can certified robust training methods from ANNs be adapted to SNNs despite their distinct neuron dynamics and input formats?
  • RQ2How can tight bounds be formally derived for the non-linear spike-firing function and temporal membrane potential updates in SNNs?
  • RQ3What are the effective input boundary formulations for both spike and digital inputs under ℓ₀ and ℓ∞ norms in SNNs?
  • RQ4How does the choice of robust training time steps T′ affect the trade-off between clean accuracy and robustness in SNNs?
  • RQ5To what extent can certified robust training reduce adversarial attack error in SNNs while preserving original model accuracy?

Key findings

  • The proposed S-IBP and S-CROWN methods achieve a maximum 37.7% reduction in adversarial attack error on the MNIST dataset with only a 3.7% drop in original accuracy.
  • The method demonstrates improved robustness across multiple datasets, including MNIST, FMNIST, and NMNIST, with consistent performance gains.
  • The optimal robust training time step T′ is found to be 3, balancing temporal dynamics capture and computational efficiency.
  • Robust training is more stable in fully connected networks than in convolutional networks, especially under larger ε values.
  • The robustness improvement is most significant in convolutional architectures, where higher parameter capacity allows better adaptation to adversarial perturbations.
  • Even with a smaller ε used during training, the model shows enhanced robustness against larger ε attacks, indicating strong generalization of the certified bounds.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.